/* pitchform.app home page, 2.0 look (21 Nov 2026). Mirrors the app's final 2.0 theme (ScreenColour.swift): the
   #0C1014 ground with a cool slate wash, one accent (Match detail blue #2F9BFF), the coach's violet #9F7AEA, and colour
   otherwise only where it means something (heat map, zones, medals). SF Pro, white sentence-case headlines, left-aligned.
   The hero and closing reuse the store art's floodlit night pitch (ui_review/2026-11-20b/app-store/tools/hero). */

:root {
  color-scheme: dark;
  --ground: #0C1014;
  --raised: #151B22;
  --line: rgba(142, 154, 175, .18);
  --chalk: #F4F7FB;
  --chalk-2: #B4BECA;
  --chalk-3: #7F8A98;
  --blue: #2F9BFF;
  --violet: #9F7AEA;
  --gold: #F5A524;
  --wash: #8E9AAF;
  --edge: 20px;
  --max: 1160px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--chalk); font: 17px/1.55 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; }
.edge { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
.dim { color: var(--chalk-3); }
.blue { color: var(--blue); }
.violet { color: var(--violet); }
.gold { color: var(--gold); }
.zones { background: linear-gradient(90deg, #3FA9F5, #F2D43D 45%, #F5A524 70%, #F0503C); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(12, 16, 20, .78); border-bottom: 1px solid transparent;
  transition: border-color .2s; padding-top: env(safe-area-inset-top); }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--chalk-2); }
.bar nav a:hover { color: var(--chalk); }
.bar nav .get { color: #000; background: var(--chalk); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.bar nav .get:hover { color: #000; background: #fff; }

/* Floodlit night pitch (hero and close) */
.stadium { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(47, 155, 255, .12), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #0E1A2B 0%, #080D16 55%, var(--ground) 100%); }
.flood { position: absolute; top: 70px; width: 220px; height: 92px; }
.flood::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(210, 235, 255, .30), rgba(120, 190, 230, .08) 45%, transparent 75%); }
.flood::after { content: ""; position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(circle, #fff 0 34%, rgba(220, 240, 255, .85) 40%, transparent 58%) 0 0 / 27.5px 23px;
  filter: drop-shadow(0 0 12px rgba(200, 230, 255, .9)); }
.flood.l { left: -40px; transform: rotate(12deg); }
.flood.r { right: -40px; transform: rotate(-12deg); }
.turf { position: absolute; left: -30%; right: -30%; bottom: 0; height: 46%; perspective: 1100px; perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.turf i { position: absolute; left: 0; right: 0; top: 0; height: 260%; transform-origin: top center; transform: rotateX(62deg);
  background: repeating-linear-gradient(to bottom, #0F4A2C 0 7%, #0C3F25 7% 14%);
  box-shadow: inset 0 0 300px 100px rgba(2, 6, 10, .8); }
.stadium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, var(--ground)); }

/* Hero */
.hero { position: relative; padding: calc(56px + env(safe-area-inset-top) + 64px) 0 72px; min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--chalk-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; font-weight: 700; letter-spacing: -.035em; text-shadow: 0 8px 40px rgba(0, 0, 0, .6); }
.lede { margin: 22px 0 0; max-width: 33em; font-size: clamp(17px, 1.6vw, 20px); color: var(--chalk-2); }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; }
.store img { height: 55px; width: auto; }
.needs { margin: 0; font-size: 14px; line-height: 1.45; color: var(--chalk-3); }

.hero-art { position: relative; height: 620px; }
.hero-art .phone { position: absolute; right: 6%; top: 0; width: 290px; }
.hero-art .watch { position: absolute; left: 0; bottom: 0; width: 250px; z-index: 2; transform: rotate(-4deg); }

/* Devices */
.phone { margin: 0; border-radius: 15% / 7%; padding: 2.6%; aspect-ratio: 603 / 1311;
  background: linear-gradient(145deg, #5B6470, #1E242C 40%, #3A424D 70%, #15191F);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08); position: relative; }
.phone img { width: 100%; height: 100%; border-radius: 12.6% / 5.9%; background: #000; }
.phone::after { content: ""; position: absolute; inset: 2.6%; border-radius: 12.6% / 5.9%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 32%, transparent 70%, rgba(255, 255, 255, .04)); }
.tilt-l { transform: perspective(2400px) rotateY(10deg) rotateZ(-3deg); }
.tilt-r { transform: perspective(2400px) rotateY(-10deg) rotateZ(3deg); }

.watch { margin: 0; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.watch .band { width: 64%; height: 70px; background: linear-gradient(90deg, #11161C, #1E242C 50%, #11161C); }
.watch .band.top { border-radius: 14px 14px 4px 4px; -webkit-mask-image: linear-gradient(to top, #000 40%, transparent); mask-image: linear-gradient(to top, #000 40%, transparent); }
.watch .band.bottom { border-radius: 4px 4px 14px 14px; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
/* The case is shaped so its opening holds the whole 422 × 514 Watch shot: 5% metal, then a black glass
   border (the img's padding) so text never sits on the bezel, and the shot drawn whole (contain).
   Height = width × (0.9 + 0.837 × 514 / 422 + 0.063) ≈ width / 0.846. Until 25 Nov 2026 a square
   7% padding left a narrower opening and cover cropped the shot's sides on phones. */
.watch .case { position: relative; width: 100%; aspect-ratio: 0.846; padding: 5%; border-radius: 26% / 22%;
  background: linear-gradient(150deg, #6A737F, #222830 38%, #444C57 70%, #16191E);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.watch .case img { display: block; box-sizing: border-box; width: 100%; height: 100%; padding: 3.5%;
  border-radius: 21% / 17.5%; background: #000; object-fit: contain; }
.watch .crown { position: absolute; right: -5%; top: 26%; width: 6%; height: 17%; border-radius: 4px;
  background: linear-gradient(90deg, #3A424D, #8A939E, #3A424D); }
.watch .crown::after { content: ""; position: absolute; left: 10%; top: 150%; width: 80%; height: 90%; border-radius: 3px; background: #2C333C; }

/* Sections */
.sec { padding: 112px 0; position: relative; }
.sec h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; font-weight: 700; }

.how { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.how li { background: linear-gradient(180deg, rgba(142, 154, 175, .10), rgba(142, 154, 175, .03)); border: 1px solid var(--line);
  border-radius: 28px; padding: 32px 24px 28px; }
.how .watch.small { width: 150px; margin: 0 0 28px; }
.how .watch.small .band { height: 34px; }
.how h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; }
.how .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px;
  background: rgba(47, 155, 255, .16); color: var(--blue); }
.how p { margin: 8px 0 0; color: var(--chalk-2); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.tag { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--chalk-3); }
.coach .tag { color: var(--violet); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { color: var(--chalk-2); padding-left: 18px; border-left: 2px solid var(--line); }
.points b { color: var(--chalk); font-weight: 600; display: block; }
.body { margin: 24px 0 0; color: var(--chalk-2); max-width: 32em; }
.aside { margin: 24px 0 0; font-size: 15px; color: var(--chalk-3); max-width: 34em; }

.pair { position: relative; height: 600px; }
.pair::before { content: ""; position: absolute; left: 15%; right: 15%; top: 20%; bottom: 10%; border-radius: 50%;
  background: var(--blue); filter: blur(110px); opacity: .22; }
.coach .pair::before { background: var(--violet); opacity: .28; }
.pair .phone { position: absolute; width: 250px; top: 0; left: 8%; }
.pair .phone.front { left: auto; right: 8%; top: 60px; z-index: 1; }
.pair.one .phone { left: 50%; margin-left: -135px; width: 270px; }

.coach .feature-copy h2 { max-width: 12em; }

/* Privacy */
.yours h2, .pricing h2, .guides h2 { max-width: 16em; }
.trio { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio li { padding: 24px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); }
.trio b { display: block; font: 600 20px var(--display); }
.trio span { display: block; margin-top: 6px; color: var(--chalk-2); font-size: 16px; }
.quiet { display: inline-block; margin-top: 24px; color: var(--chalk-3); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.plan { padding: 28px; border-radius: 28px; background: var(--raised); border: 1px solid var(--line); }
.plan.pro { background: linear-gradient(160deg, rgba(159, 122, 234, .20), rgba(159, 122, 234, .04) 60%), var(--raised); border-color: rgba(159, 122, 234, .35); }
.plan h3 { font-size: 26px; font-weight: 700; }
.plan.pro h3 { color: var(--violet); }
.plan .sub { margin: 6px 0 0; color: var(--chalk-2); font-size: 16px; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border: solid var(--blue); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan.pro li::before { border-color: var(--violet); }

/* Guides */
.qs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qs a { display: block; height: 100%; padding: 18px 44px 18px 20px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; position: relative; }
.qs a::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%); font-size: 24px; color: var(--chalk-3); }
.qs a:hover { border-color: rgba(142, 154, 175, .4); }

/* Close */
.close { position: relative; padding: 140px 0 120px; overflow: hidden; }
.close .turf { height: 60%; }
.close-in { position: relative; }
.close .icon { border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.close h2 { margin: 28px 0 28px; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 700; }
.close .store img { height: 60px; }
.close .needs { margin-top: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--chalk-3); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.foot a { color: var(--chalk-2); text-decoration: none; }
.foot a:hover { color: var(--chalk); }
.foot-note { flex-basis: 100%; margin-top: 6px; }

/* Reveal on scroll (home.js adds .in). Without JS or with Reduce Motion everything shows. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
  .hero-art { height: 560px; max-width: 520px; width: 100%; }
  .pair { height: 560px; max-width: 560px; width: 100%; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-s { display: none; }
  .bar nav { gap: 16px; }
  .hero { padding-top: calc(56px + env(safe-area-inset-top) + 108px); padding-bottom: 32px; min-height: 0; }
  .flood { width: 140px; height: 58px; top: 50px; opacity: .85; }
  .flood::after { background-size: 17.5px 14.5px; }
  .hero-art { height: 470px; }
  .hero-art .phone { width: 210px; right: 0; }
  .hero-art .watch { width: 176px; left: 0; bottom: 0; }
  .hero-art .watch .band { height: 48px; }
  .sec { padding: 80px 0; }
  .how { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .how li { display: grid; grid-template-columns: 96px 1fr; gap: 0 18px; align-items: center; padding: 18px; }
  .how .watch.small { width: 96px; margin: 0; grid-row: span 2; }
  .how .watch.small .band { height: 18px; }
  .how h3 { font-size: 19px; align-self: end; }
  .how p { align-self: start; font-size: 15px; }
  .pair { height: 470px; }
  .pair .phone { width: 200px; left: 0; }
  .pair .phone.front { right: 0; top: 48px; }
  .pair.one .phone { width: 220px; margin-left: -110px; }
  .trio, .plans, .qs { grid-template-columns: 1fr; }
  .close { padding: 96px 0 88px; }
}
@media (max-width: 370px) {
  .pair .phone { width: 172px; }
  .hero-art .phone { width: 186px; }
  .hero-art .watch { width: 136px; }
}
