/* StrikeSight website: one stylesheet for every page.
   The design system is written down in DESIGN.md (tokens, type, components).
   Pages use the tokens below by name, never raw values. */

/* Fonts: self-hosted, latin subset, SIL Open Font License (fonts/OFL-*.txt) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F6F2;
  --paper-2: #FBFAF7;
  --panel: #ECEAE3;
  --line: #D8D5CC;
  --ink: #16141B;
  --ink-2: #4C4955;
  --ink-3: #8A8693;
  --night: #131118;
  --night-2: #1F1C26;
  --night-line: #36313F;
  --on-night: #F3F1F6;
  --on-night-2: #ABA6B6;
  --lime: #D4F53C;
  --pocket: #55E08F;
  --no: #D03A2F;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fig: "Barlow Semi Condensed", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-sm: 8px; --r-md: 16px; --r-lg: 28px; --r-phone: 40px; --r-pill: 999px;
  --shadow-phone: 0 1px 2px rgb(22 20 27 / .06), 0 24px 48px -20px rgb(22 20 27 / .35);

  --wrap: 1200px;
  --gutter: 24px;
  --section: var(--s10);
  --header-h: 68px;

  --t-display: clamp(2.5rem, 5vw, 4.25rem);
  --t-h1-doc: clamp(2.25rem, 4vw, 3.25rem);
  --t-h2: clamp(2rem, 3.4vw, 2.875rem);
  --t-h2-doc: clamp(1.5rem, 2.2vw, 1.75rem);
  --t-h3: 1.375rem;
  --t-lead: clamp(1.125rem, 1.5vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.875rem;
  --t-fig-xl: clamp(3.25rem, 6vw, 5.25rem);
  --t-fig-l: 2.5rem;
  --t-fig-m: 1.75rem;
  color-scheme: light;
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 500;
}
.skip:focus { top: var(--s3); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band {
  max-width: 1360px; margin: 0 auto; border-radius: var(--r-lg);
  background: var(--night); color: var(--on-night);
}
.band-outer { padding: 0 var(--s4); }
@media (max-width: 600px) { .band-outer { padding: 0 var(--s2); } .band { border-radius: 22px; } }

.section { padding: var(--section) 0 0; }
.h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.dark .lead { color: var(--on-night-2); }
.muted { color: var(--ink-2); }
.dark .muted { color: var(--on-night-2); }
.small { font-size: var(--t-small); line-height: 1.5; }
.section-head { display: grid; gap: var(--s4); max-width: 760px; margin-bottom: var(--s8); }
.title-gap { margin-bottom: var(--s7); }
@media (max-width: 600px) { .section-head { margin-bottom: var(--s7); } }

/* Figures */
.fig { font-family: var(--fig); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.005em; }
.unit { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; margin-left: 4px; color: var(--on-night-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(247 246 242 / .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.015em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: var(--s6); font-size: var(--t-small); font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .nav { gap: var(--s5); } .nav .wide { display: none; } }

/* ---------- App Store badge, coming soon (not a link until launch) ---------- */
.badge {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 8px 22px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-pill);
}
.badge svg { width: 24px; height: 24px; flex: none; }
.badge small { display: block; font-size: 0.75rem; line-height: 1.2; opacity: .82; }
.badge strong { display: block; font-size: 1.1875rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.dark .badge { background: var(--on-night); color: var(--night); }
/* The pair side by side at one width, the wider label's. */
.badges { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .badges { grid-template-columns: 1fr; } .badges .badge { justify-content: flex-start; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.text-link { font-weight: 500; padding: 12px 0; }

/* Buttons (pill). Primary: ink fill. Quiet: outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 10px 22px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  font-weight: 500; text-decoration: none;
}
.btn:hover { background: #2B2733; border-color: #2B2733; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--panel); border-color: var(--ink); }
.dark .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.dark .btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.dark .btn-quiet { background: transparent; color: var(--on-night); border-color: var(--on-night-2); }
.dark .btn-quiet:hover { background: var(--night-2); border-color: var(--on-night); }

/* Phone frame */
.phone {
  position: relative; border-radius: var(--r-phone); padding: 7px;
  background: var(--ink); box-shadow: var(--shadow-phone);
}
.phone img { border-radius: calc(var(--r-phone) - 7px); width: 100%; }
.dark .phone { background: #2A2633; box-shadow: 0 0 0 1px #47414F; }

/* Tag (Pro) */
.tag { font-size: 0.75rem; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; background: var(--ink); color: var(--paper); white-space: nowrap; }

/* Tick list */
.ticks { display: grid; gap: var(--s3); margin-top: var(--s2); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; }

/* Photo placeholder: where a real photo goes (see PHOTOS.md) */
.placeholder {
  position: relative; display: grid; place-items: end start; padding: var(--s5);
  background: var(--panel); border: 1.5px dashed var(--ink-2); border-radius: var(--r-md); color: var(--ink-2);
}
.placeholder p { font-size: var(--t-small); max-width: 46ch; }
.placeholder p strong { color: var(--ink); font-weight: 600; }
/* A real photo in a placeholder's place: same box, the picture cropped to fill it */
.photo { display: block; width: 100%; height: auto; padding: 0; border: 0; object-fit: cover; border-radius: var(--r-md); background: var(--panel); }
.photo.ph-setup { aspect-ratio: 4 / 3; }

/* ---------- Frame box (bowling sheet accent) ---------- */
.frame {
  display: inline-grid; grid-template-columns: 1fr 26px 26px; grid-template-rows: 26px 30px;
  border: 1.5px solid currentColor; border-radius: 4px; width: 88px; flex: none;
}
.frame .no { grid-row: 1; grid-column: 1; font: 600 0.8125rem/26px var(--fig); padding-left: 6px; }
.frame .ball { border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; display: grid; place-items: center; }
.frame .ball svg { width: 16px; height: 16px; }
.frame .ball b { font: 600 1rem/1 var(--fig); }
.frame .tot { grid-column: 1 / -1; }
/* Small frame above each section heading: frames 1 to 6, a strike each, to the tenth at the end */
.frame.mini { grid-template-columns: 1fr 26px 26px; grid-template-rows: 26px; width: 80px; color: var(--ink-3); }
.frame.mini .no { font-size: 0.8125rem; line-height: 26px; padding-left: 6px; color: var(--ink-2); }
.frame.mini .ball { border-bottom: 0; }
.frame.mini .ball svg { width: 14px; height: 14px; color: var(--ink); }
.dark .frame.mini { color: var(--on-night-2); }
.dark .frame.mini .no { color: var(--on-night-2); }
.dark .frame.mini .ball svg { color: var(--lime); }
.frame.tenth { grid-template-columns: 1fr 26px 26px 26px; width: 118px; }
.mark { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Home: hero ---------- */
.hero { padding-top: var(--s4); }
.hero .band { position: relative; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: var(--s7); align-items: center; padding: var(--s9) var(--s8) 0;
}
/* A real lane from the tripod spot, dimmed, behind the phone */
.hero-alley {
  position: absolute; inset: 0 0 0 46%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(rgb(19 17 24 / .62), rgb(19 17 24 / .62)), url("img/hero-alley.jpg") center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%);
  mask-image: linear-gradient(90deg, transparent, #000 34%);
}
.hero-copy { display: grid; gap: var(--s5); padding-bottom: var(--s9); }
.hero h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.025em; max-width: 13ch; }
.hero .actions { margin-top: var(--s3); }
.hero-note { font-size: var(--t-small); color: var(--on-night-2); }
.hero-note strong { color: var(--on-night); font-weight: 600; }
.hero-shot { position: relative; justify-self: center; width: min(340px, 100%); margin-bottom: -150px; }
/* The ready banner, drawn in HTML so it shows the same throw as the phone; it sits on the lane's left margin, clear of the numbers */
.hero-banner {
  position: absolute; left: -106px; top: 54%; width: 208px; display: grid; gap: 4px;
  padding: 10px 14px 11px; border-radius: 18px; background: var(--pocket); color: var(--night);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .6);
}
.hb-top { display: flex; align-items: center; gap: 8px; font-size: 1.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.hb-top svg { width: 26px; height: 26px; flex: none; }
.hb-top circle { fill: var(--night); }
.hb-top path { fill: none; stroke: var(--pocket); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hb-row { display: flex; gap: 0; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.hb-row > span + span { border-left: 1.5px solid rgb(19 17 24 / .45); margin-left: 8px; padding-left: 8px; }
.hb-row b { font: 600 1rem/1 var(--fig); }
.hero-after { height: 150px; }
/* Two columns at their narrowest: the banner hangs over the copy's edge, so the note stops short of it. */
@media (min-width: 961px) and (max-width: 1260px) { .hero-note { max-width: 20rem; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: var(--s8) var(--s6) 0; gap: var(--s6); }
  .hero-copy { padding-bottom: 0; }
  /* One column: the photo only behind the phone, from just above its top (phone 300 px or 78% wide, 1630/750 tall, 120 px of it below the band) */
  .hero .band { container-type: inline-size; }
  .hero-alley {
    inset: auto 0 0 0; height: calc(min(300px, 0.78 * (100cqw - 64px)) * 2.1733 + 14px - 120px - 6px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 36px); mask-image: linear-gradient(180deg, transparent, #000 36px);
  }
  .hero-shot { width: min(300px, 78%); margin-bottom: -120px; }
  .hero-banner { left: -104px; top: -3.5%; }
  .hero-after { height: 120px; }
}
@media (max-width: 600px) {
  .hero-grid { padding: var(--s7) var(--s5) 0; }
  .hero-shot { width: 74%; margin-bottom: -96px; }
  .hero-alley { height: calc(0.74 * (100cqw - 48px) * 2.1733 + 14px - 96px - 6px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 32px); mask-image: linear-gradient(180deg, transparent, #000 32px); }
  .hero-banner { left: -15%; top: -3.5%; width: auto; padding: 7px 10px 8px; border-radius: 14px; }
  .hb-top { font-size: 1.25rem; gap: 6px; } .hb-top svg { width: 19px; height: 19px; }
  .hb-row { font-size: 0.6875rem; } .hb-row b { font-size: 0.8125rem; } .hb-row > span + span { margin-left: 5px; padding-left: 5px; }
  .hero-after { height: 96px; }
}

/* ---------- Home: shot card ---------- */
.shot-card { padding: var(--s7) var(--s7) var(--s6); }
.shot-head { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; padding-bottom: var(--s6); border-bottom: 1px solid var(--night-line); }
.shot-head .frame { color: var(--on-night-2); }
.shot-head .frame .ball:first-of-type { color: var(--lime); }
.shot-title { display: grid; gap: 2px; }
.shot-title h3 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; }
.shot-title p { color: var(--on-night-2); }
.shot-result { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--pocket); font-weight: 500; }
.shot-result svg { width: 20px; height: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats > div { padding: var(--s6) var(--s5) var(--s6) 0; display: grid; gap: var(--s2); align-content: start; }
.stats > div + div { border-left: 1px solid var(--night-line); padding-left: var(--s5); }
.stat-label { font-size: var(--t-label); line-height: 1.35; font-weight: 500; color: var(--on-night-2); }
.stat-value { font-size: var(--t-fig-xl); line-height: .95; }
.stat-value.lead-fig { color: var(--lime); }
.stat-sub { font-size: var(--t-small); color: var(--on-night-2); }
.lane-strip { border-top: 1px solid var(--night-line); padding-top: var(--s6); }
.lane-strip svg { width: 100%; height: auto; overflow: visible; }
.lane-strip .strip-h { max-width: 1040px; margin: 0 auto; }
.lane-strip .strip-v { display: none; width: min(250px, 72%); margin: 0 auto; }
.lane-strip .lbl { font: 500 13px var(--sans); fill: var(--on-night-2); }
.lane-strip .lbl.fig { font-family: var(--fig); font-weight: 600; font-size: 14px; }
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); padding-top: var(--s5); }
.boards > div { display: grid; gap: 4px; align-content: start; }
.boards .v { font-size: var(--t-fig-m); line-height: 1.05; }
.boards .v small { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--on-night-2); margin-left: 4px; }
.shot-foot {
  margin-top: var(--s6); padding: var(--s5); border-radius: var(--r-md); background: var(--night-2);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center;
}
.chance { font-size: var(--t-fig-l); line-height: 1; }
.chance small { display: block; font: 500 var(--t-label)/1.35 var(--sans); color: var(--on-night-2); margin-top: 6px; }
.shot-caption { margin-top: var(--s4); }

.ball-line { stroke: var(--lime); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.pt circle:first-child { fill: var(--night); stroke: var(--lime); stroke-width: 3; }
.pt circle:last-child { fill: var(--lime); }

/* The one motion moment: the ball line draws itself from lay down to the
   pocket as the lane strip scrolls into view (CSS scroll timeline, no script).
   Without support, or with reduced motion, the line is simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lane-strip { view-timeline: --strip block; }
    /* The hidden start lives only in the keyframes, so an inactive timeline shows the whole line */
    .lane-strip .ball-line {
      stroke-dasharray: 1;
      animation: draw linear both; animation-timeline: --strip; animation-range: cover 30% cover 55%;
    }
    .lane-strip .pt { animation: pop linear both; animation-timeline: --strip; }
    .lane-strip .pt-1 { animation-range: cover 30% cover 31%; }
    .lane-strip .pt-2 { animation-range: cover 36% cover 37%; }
    .lane-strip .pt-3 { animation-range: cover 48% cover 49%; }
    .lane-strip .pt-4 { animation-range: cover 54% cover 55%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
}
@media (max-width: 600px) {
  .shot-card { padding: var(--s6) var(--s5) var(--s5); }
  .shot-title h3 { font-size: 1.625rem; }
  .shot-result { margin-left: 0; width: 100%; }
  .stats > div { padding-top: var(--s5); padding-bottom: var(--s5); }
  .stats > div + div { padding-left: var(--s4); }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stat-value { font-size: 3rem; }
  .lane-strip .strip-h { display: none; }
  .lane-strip .strip-v { display: block; }
  .shot-foot { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ---------- Home: what it measures ---------- */
.measure-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.measure-grid .phone { position: sticky; top: 100px; }
.glossary { background: var(--panel); border-radius: var(--r-md); padding: var(--s3) var(--s6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
.glossary > div { padding: var(--s5) 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.glossary > div:nth-last-child(-n+2) { border-bottom: 0; }
.glossary dt { font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.glossary dd { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.measure-note { margin-top: var(--s5); }
@media (max-width: 900px) {
  .measure-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .measure-grid .phone { position: relative; top: 0; width: min(300px, 80%); margin: 0 auto; }
}
@media (max-width: 600px) {
  .glossary { grid-template-columns: 1fr; padding: var(--s2) var(--s5); }
  .glossary > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Home: feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s8); align-items: center; }
.feature + .feature { margin-top: var(--s9); }
.feature.flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.feature.flip .media { order: 2; }
.feature .copy { display: grid; gap: var(--s4); max-width: 520px; }
.feature .media.wide img { border-radius: var(--r-md); width: 100%; }
.feature .media.tall { display: flex; justify-content: center; background: var(--panel); border-radius: var(--r-lg); padding: var(--s7) var(--s6); }
.feature .media.tall .phone { width: min(330px, 100%); }
.figcap { margin-top: var(--s3); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: var(--s6); }
  .feature.flip .media { order: 0; }
  .feature + .feature { margin-top: var(--s8); }
}
@media (max-width: 600px) {
  .feature .media.tall { padding: var(--s6) var(--s5); }
  .feature .media.tall .phone { width: 78%; }
}

/* ---------- Home: after the game band ---------- */
.after { padding: var(--s9) var(--s8); }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.screens figure { display: grid; gap: var(--s4); align-content: start; }
.screens .phone { padding: 5px; border-radius: 30px; }
.screens .phone img { border-radius: 25px; }
.screens figcaption { display: grid; gap: 4px; }
.screens figcaption strong { font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 960px) { .after { padding: var(--s8) var(--s6); } .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); } }
@media (max-width: 600px) { .after { padding: var(--s7) var(--s4); } .screens { gap: var(--s6) var(--s4); } .screens .phone { border-radius: 22px; padding: 4px; } .screens .phone img { border-radius: 18px; } }

/* ---------- Setup (home and support) ---------- */
.setup-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: center; }
.setup-shot { justify-self: center; width: min(320px, 100%); }
.ph-setup { aspect-ratio: 4 / 3; }
.diagram { background: var(--panel); border-radius: var(--r-md); padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.diagram svg { width: 100%; max-width: 440px; margin: 0 auto; }
.diagram .d-lane { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.25; }
.diagram .d-thin { stroke: var(--line); stroke-width: 1; }
.diagram .d-ink { stroke: var(--ink); stroke-width: 1.75; fill: none; }
.diagram .d-app { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.25; }
.diagram .d-gutter { fill: var(--line); stroke: var(--ink-2); stroke-width: 1.25; }
.diagram .d-ink-thin { stroke: var(--ink-2); stroke-width: 1.25; fill: none; }
.diagram .d-arrows { fill: var(--ink-2); }
.diagram .d-cone { fill: rgb(22 20 27 / .08); stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 4 4; }
.diagram .d-seats { fill: var(--line); }
.diagram .d-pins { fill: var(--ink); }
.diagram .d-return { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.diagram .d-tripod { fill: var(--ink); }
.diagram .d-lens { fill: var(--lime); }
.diagram .d-pointer { stroke: var(--ink-2); stroke-width: 1; }
.diagram text { font: 500 13px var(--sans); fill: var(--ink-2); }
.diagram text.strong { fill: var(--ink); font-weight: 600; }
.setup-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.setup-facts dt { font-weight: 600; margin-bottom: var(--s2); }
.setup-facts dd { color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; }
.setup-more { margin-top: var(--s6); }
@media (max-width: 900px) {
  .setup-grid { grid-template-columns: 1fr; }
  .setup-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .setup-facts { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- Home: pricing table ---------- */
.plans-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
.plans { width: 100%; border-collapse: collapse; }
.plans th, .plans td { padding: 14px var(--s5); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans thead th { background: var(--panel); vertical-align: top; padding-top: var(--s6); padding-bottom: var(--s5); }
.plans thead th:first-child { vertical-align: bottom; font-weight: 500; color: var(--ink-2); font-size: var(--t-small); }
.plans .col { width: 26%; }
.plans tbody th { font-weight: 400; }
.plans tbody th strong { font-weight: 600; }
.plans td { text-align: center; }
.plans td svg { width: 20px; height: 20px; margin: 0 auto; }
.plans td .no-mark { stroke: var(--no); }
.plan-name { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.plan-price { display: block; font-size: var(--t-fig-l); line-height: 1.1; margin-top: var(--s2); }
.plan-price small { font: 500 0.9375rem var(--sans); color: var(--ink-2); margin-left: 2px; }
.plan-sub { display: block; font-size: var(--t-small); font-weight: 400; color: var(--ink-2); margin-top: 4px; }
.trial { display: inline-block; margin-top: var(--s3); background: var(--lime); color: var(--ink); font-size: 0.8125rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.th-pro { border-left: 1px solid var(--line); }
.plans td.pro { border-left: 1px solid var(--line); background: rgb(212 245 60 / .10); }
.plans thead th.th-pro { background: #E3E6D2; }
.fine { margin-top: var(--s5); max-width: 80ch; }
.plans-phone { display: none; }
@media (max-width: 600px) {
  .plans th, .plans td { padding: 12px 12px; }
  .plans thead th { padding-top: var(--s5); }
  .plans { table-layout: fixed; }
  .plans tbody th { font-size: var(--t-small); line-height: 1.45; }
  .plans .col { width: 70px; }
  .plans .col.th-pro { width: 92px; }
  .plan-price { font-size: var(--t-fig-m); white-space: nowrap; }
  .plan-price small { display: block; margin: 2px 0 0; font-size: 0.8125rem; }
  .plan-sub, .plans .trial { display: none; }
  .plans-phone { display: block; margin-bottom: var(--s4); }
  .plans thead th:first-child { font-size: 0; padding: 0; }
}

/* ---------- Closing panel ---------- */
.closing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s7); align-items: center; padding: var(--s8); }
.closing .frame { color: var(--lime); }
.closing .frame .no { color: var(--on-night-2); }
.closing h2, .closing h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.closing p { color: var(--on-night-2); margin-top: var(--s2); }
.closing .actions { margin-top: var(--s5); gap: var(--s3); }
.closing .badges { justify-self: start; }
@media (max-width: 900px) { .closing { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s7) var(--s5); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s9); border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.site-footer .brand { font-size: 1.0625rem; }
.site-footer .brand img { width: 26px; height: 26px; border-radius: 6px; }
.foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.foot-left p { font-size: var(--t-small); color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-small); }
.site-footer nav a { padding: 10px 0; display: inline-block; }

/* ---------- Document pages (support, privacy, terms) ---------- */
.doc-head { padding: var(--s9) 0 var(--s7); border-bottom: 1px solid var(--line); }
.doc-head .wrap { display: grid; gap: var(--s4); }
.doc-head h1 { font-size: var(--t-h1-doc); line-height: 1.08; letter-spacing: -0.025em; max-width: 20ch; }
.doc-head .lead { max-width: 62ch; }
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 600px) { .doc-head { padding: var(--s8) 0 var(--s6); } }

.doc-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s8);
  align-items: start; padding-top: var(--s7);
}
.toc { position: sticky; top: calc(var(--header-h) + var(--s5)); max-height: calc(100vh - var(--header-h) - var(--s7)); overflow: auto; font-size: var(--t-small); line-height: 1.4; padding-bottom: var(--s4); }
.toc h2 { font-size: var(--t-label); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s3); }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px var(--s4); margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc .sub a { padding-left: var(--s6); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s6); }
  .toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); }
  .toc ol { border-left: 0; }
  .toc a { padding: 7px 0; margin-left: 0; border-left: 0; text-decoration: underline; text-decoration-color: var(--line); }
  .toc .sub a { padding-left: var(--s4); }
}

/* Long-form text */
.prose { max-width: 68ch; font-size: var(--t-body); line-height: 1.65; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 {
  font-size: var(--t-h2-doc); line-height: 1.2; letter-spacing: -0.015em;
  margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.01em; margin-top: var(--s6); }
.prose h2 + p, .prose h2 + ul, .prose h3 + p, .prose h3 + ul { margin-top: var(--s3); }
.prose ul { display: grid; gap: var(--s3); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--ink-2); }
.prose a { text-decoration-color: var(--ink-3); }
.prose a:hover { text-decoration-color: currentColor; }
.prose :target { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:target, .prose h3:target { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lime); text-underline-offset: 6px; }
.prose .key { background: var(--panel); border-radius: var(--r-md); padding: var(--s5); }

/* The short version, at the top of a policy */
.summary { background: var(--panel); border-radius: var(--r-md); padding: var(--s5) var(--s6) var(--s6); }
.summary h2 { font-size: 1.1875rem; line-height: 1.35; margin: 0; padding: 0; border: 0; letter-spacing: -0.01em; }
.summary ul.ticks { margin-top: var(--s4); gap: var(--s3); }
.summary ul.ticks li { padding-left: 0; }
.summary ul.ticks li::before { content: none; }
@media (max-width: 600px) { .summary { padding: var(--s5); } }

/* ---------- Support ---------- */
.doc-body { min-width: 0; }
.contact { padding: var(--s6) var(--s7) var(--s7); display: grid; gap: var(--s3); align-content: start; }
.contact h2 { font-size: var(--t-label); font-weight: 600; color: var(--on-night-2); }
.contact .email { justify-self: start; font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-underline-offset: 6px; overflow-wrap: anywhere; margin-bottom: var(--s2); }
.contact p { color: var(--on-night-2); max-width: 60ch; }
.contact p strong { color: var(--on-night); }
@media (max-width: 600px) { .contact { padding: var(--s5) var(--s5) var(--s6); } }

.help-block { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }
.help-h2 { font-size: var(--t-h2-doc); line-height: 1.2; letter-spacing: -0.015em; }
.help-intro { margin-top: var(--s3); max-width: 62ch; }
.help-block .steps-grid { margin-top: var(--s6); }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s6); align-items: start; }
.steps-grid .h3 { font-size: 1.1875rem; margin-bottom: var(--s4); }
.steps { counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--ink); border-radius: 4px; font: 600 1rem/1 var(--fig);
}
.steps p { padding-top: 2px; }
.steps-note { margin-top: var(--s4); }
@media (max-width: 1100px) { .steps-grid { grid-template-columns: 1fr; } .steps-grid .diagram { max-width: 420px; } .help-block .setup-shot { justify-self: start; width: min(300px, 100%); } }

.help-faq { margin-top: var(--s8); max-width: none; }
.help-faq > * { max-width: 68ch; }
.help-faq > h2, .help-faq > .help-more { max-width: none; }
.help-faq > h2:first-child { padding-top: var(--s6); border-top: 1px solid var(--line); }
.help-faq h3 { font-size: 1.1875rem; }
.help-more { padding-top: var(--s6); margin-top: var(--s8) !important; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 960px) { .toc-long .sub { display: none; } }

/* ---------- 404 ---------- */
.lost { padding-top: var(--s4); }
.lost .closing { grid-template-columns: auto minmax(0, 1fr); padding: var(--s9) var(--s8); }
.lost .frame .ball:first-of-type { color: var(--on-night); }
@media (max-width: 900px) { .lost .closing { grid-template-columns: 1fr; padding: var(--s7) var(--s5); } }

/* ---------- Print (legal pages) ---------- */
@media print {
  .site-header, .site-footer nav, .toc, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .doc-head { padding: 0 0 12pt; }
  .doc-layout { display: block; padding-top: 12pt; }
  .prose { max-width: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--ink-2); }
}
