/* Pitch template — centered bold headline, grouped deliverable cards, preview modal. */

:root {
  --bg: #f4f2f0;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #57544f;
  --line: #e1ddd8;
  --accent: #d61f26;
  --dark: #0b1220;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 50% at 50% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(20,20,20,.045) 119px 120px),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Brand ---------- */
.brand {
  position: absolute; top: 30px; left: 32px; z-index: 5;
  font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.brand img { height: 22px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: 116px; text-align: center; }
.hero__title {
  font: 800 clamp(30px, 3.4vw, 46px)/1.14 var(--display);
  letter-spacing: -0.028em; max-width: 26ch; margin: 0 auto 40px;
}
.hero__title em {
  font-style: normal; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em;
}
.hero__sub { color: var(--ink-2); font-size: 18px; max-width: 56ch; margin: -18px auto 36px; }

.video {
  position: relative; aspect-ratio: 16 / 9; max-width: 760px; margin: 0 auto;
  background: #111; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20,20,20,.5);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #bdbab3; font: 500 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.07), transparent 60%), #111;
}
.video__ph .play {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; margin: 0 auto 16px;
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.12);
}
.video__ph .play::after { content: ""; border-left: 22px solid #111; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }

.more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 17px 28px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.5); text-decoration: none; font: 500 16px/1 var(--sans);
  transition: background .2s, border-color .2s;
}
.more:hover { background: #fff; border-color: #ccc7c1; }
.more::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }

/* ---------- Sections ---------- */
.section { padding-top: 130px; }
.section__title {
  font: 800 clamp(32px, 4vw, 54px)/1.06 var(--display); letter-spacing: -0.035em;
  text-align: center; margin: 0 auto 20px; white-space: pre-line;
}
.section__lead { text-align: center; color: var(--ink-2); font-size: 18px; max-width: 56ch; margin: 0 auto 40px; }

/* Group header: title between two lines + number */
.group { margin-top: 72px; }
.group__head { text-align: center; margin-bottom: 40px; }
.group__title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font: 600 18px/1.3 var(--sans); letter-spacing: -0.01em; margin: 0;
}
.group__title::before, .group__title::after { content: ""; flex: 0 1 220px; height: 1px; background: var(--line); }
.group__num { font: 400 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .14em; margin-top: 12px; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--wide { max-width: 820px; margin: 0 auto; }

/* ---------- Card ---------- */
.card {
  background: var(--card); border: 1px solid #ece9e5; border-radius: 16px; padding: 12px 12px 26px;
  box-shadow: 0 20px 40px -30px rgba(20,20,20,.25);
  display: flex; flex-direction: column;
}
.card__body { padding: 16px 8px 0; display: flex; flex-direction: column; flex: 1; }
.card__tag { font: 500 11.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card__title { font: 600 21px/1.25 var(--sans); letter-spacing: -0.015em; margin: 6px 0 8px; }
.card__text { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.card__link {
  margin-top: 16px; align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 15px/1 var(--sans); color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
}
.card__link::after { content: "›"; font-size: 18px; transition: transform .2s; }
.card__link:hover::after { transform: translateX(3px); }

/* wide card: media left, text right */
.card--wide { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.card--wide .frame { flex: 0 0 46%; }
.card--wide .card__body { padding: 8px 16px; }

/* full card: big media, text row under */
.card--full .card__body { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; }
.card--full .card__text-wrap { flex: 1 1 420px; }
.card--full .frame__screen { aspect-ratio: 16 / 7; }

/* ---------- Frames ---------- */
.frame { border-radius: 10px; overflow: hidden; border: 1px solid #e3e0dc; background: #f7f6f4; }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #f7f6f4; border-bottom: 1px solid #e3e0dc; }
.frame__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.frame__dot:nth-child(2) { background: #febc2e; }
.frame__dot:nth-child(3) { background: #28c840; }
.frame__url {
  flex: 1; margin-left: 8px; height: 16px; border-radius: 6px; background: #ebe9e5;
  font: 400 10.5px/16px var(--mono); color: #6b6862; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.frame__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.card:hover .frame__screen img { transform: scale(1.02); }

/* phone frame: device centred on a dark stage (same outer height as a browser frame) */
.frame--phone { border: 0; padding-top: 28px; background: radial-gradient(80% 60% at 50% 0%, #1b2a4a, var(--dark) 70%); }
.frame--phone .frame__screen { background: transparent; overflow: hidden; }
.phone {
  position: absolute; left: 50%; top: 0; height: 118%; aspect-ratio: 9 / 17; transform: translateX(-50%);
  border-radius: 22px 22px 0 0; background: #000; border: 5px solid #262626; border-bottom: 0; overflow: hidden;
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 34%; height: 11px; transform: translateX(-50%); background: #000; border-radius: 10px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* placeholder (no image yet) */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px;
  background: radial-gradient(90% 70% at 50% 0%, #1d2b4d, var(--dark) 70%); color: #fff;
}
.ph__kicker { font: 500 9px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #7fa2ff; }
.ph__title { font: 700 clamp(15px, 1.6vw, 20px)/1.2 var(--display); letter-spacing: -0.02em; max-width: 18ch; }
.ph__lines { width: 62%; display: grid; gap: 6px; margin-top: 8px; }
.ph__lines span { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ph__lines span:nth-child(2) { width: 85%; }
.ph__lines span:nth-child(3) { width: 70%; }
.phone .ph { padding: 30px 12px 12px; }
.phone .ph__title { font-size: 13px; }

/* ---------- CTA ---------- */
#cta { padding-bottom: 110px; }
.cta-card {
  max-width: 900px; margin: 30px auto 0; background: var(--card); border-radius: 22px; padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(20,20,20,.35); text-align: center;
}
.cta-card .calendly-inline-widget { min-width: 300px; height: 720px; }
.cta-card .btn {
  display: inline-flex; padding: 18px 30px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 600 16px/1 var(--sans); text-decoration: none;
}

/* ---------- Footer ---------- */
.footer { padding: 26px 20px; text-align: center; background: rgba(20,20,20,.035); font: 400 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 16px/1 var(--sans); text-decoration: none;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s ease, opacity .3s ease;
}
.float-cta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
.float-cta:hover { transform: translateY(-2px); }
.float-cta.is-hidden { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.72); backdrop-filter: blur(4px); }
.modal__panel {
  position: absolute; inset: 4vh 4vw; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5); display: flex;
}
.modal__body { flex: 1; overflow: auto; background: #f4f2f0; }
.modal__body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.modal__body img { width: 100%; max-width: 1100px; margin: 0 auto; }
.modal__body img + img { margin-top: 16px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(20,20,20,.85); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .brand { top: 22px; left: 20px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 84px; }
  .hero__title { font-size: 27px; }
  .section { padding-top: 96px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; align-items: stretch; padding: 12px 12px 26px; }
  .card--wide .frame { flex: none; }
  .card--wide .card__body { padding: 16px 8px 0; }
  .card--full .frame__screen { aspect-ratio: 16 / 10; }
  .group__title::before, .group__title::after { flex-basis: 40px; }
  .modal__panel { inset: 0; border-radius: 0; }
  .float-cta { right: 16px; bottom: 16px; padding: 15px 22px; font-size: 15px; }
  .cta-card { padding: 12px; }
  .cta-card .calendly-inline-widget { height: 1000px; }
}
