/* pitchform.app home page. The look of the showcase film: near-black ground, SF Pro Display headlines tight and left
   on one page edge, dimmed lead-in words then bright payoff words, SF Pro bold for the big numbers. Since 2 Nov 2026
   on the app's tokens (DESIGN_SYSTEM.md): neutral #121212 ground, chalk greys, white accent, SF Pro throughout, and a
   faint white floodlight instead of the film's cool key (every grey untinted). Subpages keep styles.css. */

:root {
  color-scheme: dark;
  --ground: #121212;
  --raised: #222222;
  --line: rgba(245, 245, 245, 0.09);
  --chalk: #F5F5F5;
  --chalk-2: #AEAEAE;
  --chalk-3: #8E8E8E;
  --dim: rgba(245, 245, 245, 0.46);
  --ink: #121212;
  --head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  --num: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --edge: max(20px, calc((100vw - 1200px) / 2));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--chalk); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 6px; }

.edge { padding-left: var(--edge); padding-right: var(--edge); }

/* type: one display voice */
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.04; }
h3 { font-size: 26px; letter-spacing: -0.02em; }
.dim { color: var(--dim); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--chalk-2); max-width: 30em; margin: 24px 0 0; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--chalk-2); margin: 0 0 18px; }
.note { font-size: 13px; color: var(--chalk-3); margin: 0; }
.store { display: inline-block; margin-top: 36px; border-radius: 12px; transition: transform 0.2s var(--ease); }
.store:active { transform: scale(0.97); }
/* what the app costs and needs, right under each badge */
.needs { font-size: 15px; color: var(--chalk-3); margin: 12px 0 0; }
/* the no-Watch line in the Watch scene, under the lede */
.aside { font-size: 15px; line-height: 1.45; color: var(--chalk-3); max-width: 30em; margin: 16px 0 0; }

/* header: floats over the dive, takes a material once you scroll */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.bar.solid { background: rgba(18, 18, 18, 0.92); border-color: var(--line); }   /* no backdrop blur: it repaints with every canvas frame */
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; gap: 10px; align-items: center; font: 600 18px var(--head); letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.bar nav a { text-decoration: none; opacity: 0.8; }
.bar nav a:hover { opacity: 1; }
.bar .get { opacity: 1; background: var(--chalk); color: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; }

/* pinned scenes */
.stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 1 · the dive */
.dive { height: 420vh; position: relative; }
#dive-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dive-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.dive-copy > * { max-width: 640px; }
.dive-copy a { pointer-events: auto; }
#dive-intro h1 { max-width: 11.5em; }
.cue { position: absolute; bottom: 28px; left: var(--edge); font-size: 15px; color: var(--chalk-3); }
.cue::after { content: ""; display: block; width: 1px; height: 36px; margin-top: 10px; background: linear-gradient(var(--chalk-3), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
.dive-land { opacity: 0; }
.clock { font: 700 22px var(--num); color: var(--chalk-2); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.big { font: 700 clamp(38px, 4.4vw, 64px)/1.04 var(--head); letter-spacing: -0.03em; margin: 0; max-width: 6.6em; }
.facts-row { display: flex; gap: clamp(22px, 3vw, 44px); margin: 36px 0 28px; }
.facts-row div { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.facts-row.on div { opacity: 1; transform: none; }
.facts-row.on div:nth-child(2) { transition-delay: 0.08s; }
.facts-row.on div:nth-child(3) { transition-delay: 0.16s; }
.facts-row dt { font-size: 13px; color: var(--chalk-3); }
.facts-row dd { margin: 4px 0 0; font: 700 clamp(30px, 3.2vw, 44px)/1 var(--num); font-variant-numeric: tabular-nums; }
.facts-row small { font: 600 14px var(--body); color: var(--chalk-2); margin-left: 4px; }
/* which way you attacked: the app's glass pill at the foot of the pitch (no backdrop blur over the canvas) */
.attack { position: absolute; left: 0; top: 0; margin: 0; z-index: 1; opacity: 0; pointer-events: none; white-space: nowrap;
  height: 28px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; font: 600 12px var(--body);
  color: var(--chalk); background: rgba(34, 34, 34, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2–5 · scroll-drawn scenes, all on the one ground */
.scene { height: 280vh; position: relative; }
.scene .stick { display: flex; align-items: center; background: radial-gradient(80vw 70vh at 70% 50%, rgba(255, 255, 255, 0.035), transparent 70%); }
.scene:has(.flip) .stick { background: radial-gradient(80vw 70vh at 30% 50%, rgba(255, 255, 255, 0.035), transparent 70%); }   /* the light falls where the picture is */
.scene-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.scene-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene-grid.flip .scene-copy { order: 2; }
.scene canvas { width: 100%; height: auto; }
#heart-canvas { aspect-ratio: 1080 / 960; max-height: 80vh; justify-self: center; }
#watch-canvas { aspect-ratio: 1 / 1; max-height: 84vh; justify-self: center; }
#form-canvas { aspect-ratio: 1080 / 900; max-height: 80vh; justify-self: center; }
.phone-scene { height: 360vh; }
.phone-scene.short { height: 300vh; }


/* words arrive one by one, blur to sharp; driven by scroll in the pinned scenes (so they leave the same way) */
[data-words] .w { display: inline-block; }   /* no will-change: a layer per word cost more than it saved */
.yours [data-words] .w, .close [data-words] .w { opacity: 0; filter: blur(8px); transform: translateY(0.25em); transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.yours.in [data-words] .w, .close.in [data-words] .w { opacity: 1; filter: none; transform: none; }

/* 5 · the phone demo */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; max-width: 26em; }
.steps li { color: var(--chalk-3); font-size: 17px; line-height: 1.45; border-left: 2px solid var(--line); padding-left: 18px; transition: color 0.35s, border-color 0.35s; }
.steps li b { display: block; color: var(--chalk-2); font: 600 21px var(--head); letter-spacing: -0.015em; margin-bottom: 4px; transition: color 0.35s; }
.steps li.on { color: var(--chalk-2); border-color: var(--chalk); }
.steps li.on b { color: var(--chalk); }
.phone-stage { perspective: 1600px; display: flex; justify-content: center; }
.phone { position: relative; width: min(330px, 38vh, 80vw); border-radius: 15% / 7%; padding: 3.6%; background: linear-gradient(145deg, #3D3D3D, #171717 40%, #2E2E2E 70%, #121212); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -24px rgba(0, 0, 0, 0.9); will-change: transform; }
.phone::after { content: ""; position: absolute; top: 4.9%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }
.screens { position: relative; aspect-ratio: 603 / 1311; border-radius: 12.5% / 5.9%; overflow: hidden; background: #000; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 7 · yours */
.yours { padding: 140px 0; }
.trio { list-style: none; padding: 0; margin: 56px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio li { border-top: 1px solid var(--line); padding-top: 22px; }
.trio b { display: block; font: 700 clamp(26px, 2.6vw, 36px)/1.1 var(--head); letter-spacing: -0.025em; }
.trio span { display: block; margin-top: 8px; color: var(--chalk-2); }
.quiet { color: var(--chalk-3); font-size: 15px; text-underline-offset: 3px; }

/* 8 · close */
.close { padding: 120px 0 160px; background: radial-gradient(60vw 50vh at 50% 100%, rgba(255, 255, 255, 0.05), transparent 70%); }
.close-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.close .icon { border-radius: 24px; margin-bottom: 36px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6); }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--chalk-3); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--chalk-2); text-decoration: none; }
.foot a:hover { color: var(--chalk); }
.foot-note { flex-basis: 100%; }

/* arrivals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* phones */
@media (max-width: 820px) {
  .scene-grid.flip { grid-template-columns: 1fr; }
  .bar nav a:not(.get) { display: none; }
  .dive { height: 380vh; }
  .dive-copy { justify-content: flex-start; padding-top: 104px; }
  .dive-land { justify-content: flex-end; padding-bottom: 36px; background: linear-gradient(transparent 52%, rgba(18, 18, 18, 0.92) 74%); }
  .dive-land .big { font-size: 38px; max-width: 9em; }
  .facts-row { margin: 22px 0 18px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-grid { gap: 8px; align-content: center; height: 100%; padding-top: 72px; }
  .scene-grid.flip .scene-copy { order: 0; }
  .scene .lede { font-size: 15px; margin-top: 10px; }
  .scene .aside { font-size: 13px; margin-top: 6px; }
  .scene h2 { font-size: 32px; }
  #heart-canvas, #form-canvas, #watch-canvas { max-height: 50vh; }
  #watch-canvas { max-height: 46vh; }
  .steps { margin-top: 18px; gap: 0; }
  .steps li { display: none; border: 0; padding: 0; }
  .steps li.on { display: block; }
  .phone { width: min(240px, 50vh); }
  .phone-scene .scene-copy h2 { font-size: 30px; }
  .trio { grid-template-columns: 1fr; gap: 0; }
  .trio li { padding: 20px 0; }
  .yours { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dive, .scene { height: auto; }
  .stick { position: relative; height: auto; min-height: 100vh; }
  .reveal, [data-words] .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .cue::after { animation: none; }
}
