/* Boardie marketing site. Tokens from the Boardie brand kit (FINAL), every color FROM APP THEME. */

/* Fredoka, self-hosted from the app's own bundle (composeResources/font, SIL OFL, see fonts/Fredoka-OFL.txt). */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka_500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka_600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka_700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Midnight, dark (kit section 3) */
  --navy: #12151F;
  --raised: #1B2030;
  --raised-low: #171B28;
  --raised-high: #252B3D;
  --raised-top: #2E3549;
  --line: #2C3244;
  --outline: #4A5268;
  --ink: #EEF0F6;
  --muted: #9AA3B8;
  --brass: #D6B25E;
  --gold-light: #F2D08A;
  --brass-well: #3A3220;
  --brass-soft: #F2DDA4;
  --blue: #8FB3FF;
  /* The app's own player color for "You" (ui/Visuals.kt playerColor: hue 210, s .45, l .34 on dark). Only inside a total row. */
  --player-you: #2F4F7C;
  /* Light scheme, long reading pages only (kit section 3) */
  --paper: #F6F4EE;
  --paper-raised: #ECE8DE;
  --paper-ink: #181C2C;
  --paper-muted: #5C6275;
  --deep-brass: #8C6A1C;
  --paper-blue: #2F5BB7;

  /* Type (kit section 4) */
  --display: "Fredoka", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(40px, 5.6vw, 72px);
  --fs-h2: clamp(30px, 3.4vw, 44px);
  --fs-h3: clamp(21px, 2.2vw, 26px);
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-body: 18px;
  --fs-small: 15px;
  --fs-label: 14px;
  --fs-button: 17px;

  /* Shape (kit "Shape") */
  --r-card: 20px;
  --r-small: 12px;
  --r-pill: 999px;
  --r-phone: 40px;
  --r-band: 36px;

  /* Layout */
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: clamp(72px, 9vw, 128px);
  --header-h: 88px;
  --phone-w: 300px;
  --shadow-phone: 0 30px 60px -30px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The Midnight Tally motif (Themes.kt Motif.Tally): four strokes and a strike, brass at 7%, rows 36px apart, odd rows offset 10px */
  --tally: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='72' viewBox='0 0 88 72'%3E%3Cg fill='none' stroke='%23D6B25E' stroke-opacity='0.07' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 8v20M12 8v20M18 8v20M24 8v20M2 24L28 12'/%3E%3Cpath d='M50 8v20M56 8v20M62 8v20M68 8v20M46 24L72 12'/%3E%3Cpath d='M16 44v20M22 44v20M28 44v20M34 44v20M12 60L38 48'/%3E%3Cpath d='M60 44v20M66 44v20M72 44v20M78 44v20M56 60L82 48'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 719px) { :root { --fs-body: 17px; --header-h: 76px; --phone-w: 260px; --r-band: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (max-width: 859px) { html { scroll-padding-top: calc(var(--header-h) + 52px); } }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--body); font-size: var(--fs-body); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
p { margin: 0 0 var(--space-2); }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-family: var(--display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.4; max-width: 34em; }
.lead.wide { max-width: none; }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }
.narrow { max-width: 760px; }
.link-after { margin-top: var(--space-3); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brass); color: var(--navy); padding: 10px 16px; border-radius: var(--r-pill); font-family: var(--display); font-weight: 600; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Buttons: kit "Primary: pill, 52px min, navy on brass, hover light gold. Ghost: ink text, 2px outline ring." */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 600; font-size: var(--fs-button); letter-spacing: 0.02em; text-decoration: none; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn-primary { background: var(--brass); color: var(--navy); border: 2px solid var(--brass); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--outline); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.text-link { font-family: var(--display); font-weight: 600; font-size: var(--fs-button); color: var(--brass); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 31, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.brand .tile { display: none; width: 56px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-family: var(--display); font-weight: 500; font-size: 17px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; margin-left: 32px; }
.nav-actions .login { font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink); }
.nav-actions .login:hover { color: var(--brass); }
.nav-actions .btn { min-height: 46px; padding: 0 20px; }
/* One brass button per view: the nav button rests as an outline while the hero's brass button is on screen, then fills. */
.nav-actions .btn.resting { background: transparent; color: var(--brass); border-color: var(--brass); }
.nav-actions .btn.resting:hover { background: var(--brass-well); }
@media (max-width: 999px) { .nav-links { gap: 18px; font-size: 16px; } .nav-actions { margin-left: 22px; gap: 14px; } }
@media (max-width: 859px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .brand .lockup { display: none; }
  .brand .tile { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; padding: 6px 0 10px; gap: 22px; font-size: 15px; }
}
@media (max-width: 380px) { .nav-links { gap: 16px; font-size: 14px; } .nav-actions .login { font-size: 15px; } .nav-actions .btn { padding: 0 16px; font-size: 16px; } .nav-actions { gap: 12px; } }
.bar.simple .nav-actions { margin-left: auto; }

/* ---------- Sections ---------- */
section { padding: var(--space-6) 0; position: relative; }
.band { background: var(--raised-low); border-radius: var(--r-band); margin: 0 clamp(8px, 1.6vw, 24px); }
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.shot-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.shot-left > .shot-col { order: -1; }
  .split.bottom { align-items: end; }
}
.shot-col { display: flex; justify-content: center; }
.stack > * + * { margin-top: var(--space-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: var(--space-4); }

/* ---------- Phone frames (kit section 5: neutral frame, --raised-low body, --raised-top edge, no maker branding) ---------- */
.phone { width: var(--phone-w); max-width: 100%; padding: 10px; border-radius: var(--r-phone); background: var(--raised-low); border: 1px solid var(--raised-top); box-shadow: var(--shadow-phone); }
.band .phone { background: var(--navy); }
.phone .screen { border-radius: calc(var(--r-phone) - 10px); overflow: hidden; background: var(--navy); aspect-ratio: 412 / 915; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.short .screen { aspect-ratio: 412 / 830; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.45; }
/* Placeholder: an empty state with the secondary mark (kit: empty states only), never a fake UI */
.screen.coming { display: grid; place-items: center; text-align: center; background: var(--raised); padding: 24px; }
.screen.coming img { width: 88px; height: auto; object-fit: contain; margin: 0 auto 14px; }
.screen.coming b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.screen.coming span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.card-frame { border-radius: var(--r-card); overflow: hidden; background: var(--raised); border: 1px solid var(--raised-top); box-shadow: var(--shadow-phone); }
.card-frame .screen.coming { height: 100%; }

/* ---------- The device: the line under the total ----------
   Drawn from the app's real kit total row (LogPlayScreen.kt PlayerCard: 20dp card on surfaceContainer, 6x40 player bar,
   name over a rank, the total at headline size). Under it, the one line Boardie says: a Coach sentence (core/Coach.kt)
   or a cheer (core/Highlights.kt). Only where Boardie speaks. Never a rule, divider or underline. */
.said { margin: var(--space-4) 0 0; max-width: 460px; }
.said.flush { margin-top: 0; }
.said .total-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line); }
.band .said .total-row { background: var(--raised-high); border-color: var(--raised-top); }
.said .p-bar { width: 6px; height: 40px; border-radius: 3px; background: var(--player-you); flex: none; }
.said .who { flex: 1; min-width: 0; line-height: 1.25; }
.said .who b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.said .who small { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.said .total { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.said .total.win { color: var(--brass); }
.said .line { margin: 0; padding: 14px 18px 0 36px; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.35; }
.said .tag { display: block; margin: 0; padding: 6px 0 0 36px; font-size: 13px; color: var(--muted); text-align: left; }
@media (max-width: 719px) { .said .line { padding-left: 18px; font-size: 19px; } .said .tag { padding-left: 18px; } .said .total { font-size: 34px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 var(--space-6); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52%; right: 0; background-image: var(--tally); background-size: 88px 72px; pointer-events: none; }
.hero .wrap { position: relative; }
/* r5 house gate: the status is a plain line under the buttons, no fill, no pill */
.hero .status { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); margin: var(--space-3) 0 0; }
.hero .status + .under { margin-top: 4px; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: var(--space-3); }
.hero .text-link { display: inline-block; margin-top: 20px; }
.hero .under { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.hero .under a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Stakes ---------- */
.stakes-grid { display: grid; gap: var(--space-4) var(--space-5); }
@media (min-width: 900px) { .stakes-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.pencil-list { list-style: none; margin: 0; padding: 0; }
.pencil-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.pencil-list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.pencil-list li.first { font-family: var(--display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.4; }
.after { font-family: var(--display); font-weight: 600; font-size: 20px; margin: var(--space-4) 0 var(--space-2); }

/* ---------- Guide ---------- */
.pillars { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { background: var(--raised); border-radius: var(--r-card); padding: 28px; border: 1px solid var(--line); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--muted); }
.guide-close { display: grid; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
@media (min-width: 900px) { .guide-close { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.identity { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; margin: 0; }
.maker { color: var(--muted); font-size: var(--fs-small); margin: 0; }

/* ---------- Plan (a real sequence, so the numbers stay) ---------- */
.steps { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.steps li { background: var(--raised); border-radius: var(--r-card); padding: 28px; border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--raised-top); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.steps .said { margin-top: 22px; }
.steps .said .total-row { background: var(--raised-low); }
.steps .said .line { font-size: 18px; padding-left: 18px; color: var(--ink); }
.steps .said .tag { padding-left: 18px; }

/* ---------- Good nights (s10 fix: one grid that fills the column, phone | 4:5 card | phone, shared top and bottom edges) ---------- */
.trio { display: grid; grid-template-columns: 9fr 16fr 9fr; gap: clamp(16px, 2.4vw, 32px); margin-top: var(--space-5); }
.trio > figure { display: flex; flex-direction: column; min-width: 0; }
.trio .phone { width: 100%; }
.trio .mid .card-frame { flex: 1; }
@media (max-width: 719px) {
  .trio { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trio .mid { grid-column: 1 / -1; grid-row: 1; }
  .trio .mid .card-frame { flex: none; aspect-ratio: 4 / 5; width: 100%; max-width: 300px; margin: 0 auto; }
  .trio .phone { padding: 6px; border-radius: 26px; }
  .trio .phone .screen { border-radius: 20px; }
}
.two-col { display: grid; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Sync ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); width: 100%; max-width: 560px; }
.pair .phone { width: 100%; }
@media (max-width: 719px) { .pair .phone { padding: 6px; border-radius: 26px; } .pair .phone .screen { border-radius: 20px; } .pair .screen.coming { padding: 12px; } .pair .screen.coming img { width: 56px; } .pair .screen.coming b { font-size: 15px; } }

/* ---------- Themes (s10 fix: three equal columns across the full width) ---------- */
.even { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 32px); margin-top: var(--space-5); justify-items: center; }
.even .phone { width: 100%; max-width: 300px; }
@media (max-width: 719px) { .even .phone { padding: 5px; border-radius: 20px; } .even .phone .screen { border-radius: 16px; } .even .screen.coming { padding: 8px; } .even .screen.coming img { width: 40px; margin-bottom: 8px; } .even .screen.coming b { font-size: 13px; } .even .screen.coming span { display: none; } }
.themes-foot { display: grid; gap: var(--space-4) var(--space-5); margin-top: var(--space-5); align-items: center; }
@media (min-width: 900px) { .themes-foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.list-head { font-family: var(--display); font-weight: 600; margin: var(--space-3) 0 0; }
.theme-list { list-style: none; padding: 0; margin: var(--space-1) 0 0; }
.theme-list li { margin-bottom: 8px; }
.theme-list b { font-family: var(--display); font-weight: 600; }
.table-themes { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); max-width: 440px; width: 100%; justify-self: center; }
.table-themes img { width: 100%; }

/* ---------- Sign up ---------- */
.paths { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.path p { color: var(--muted); flex: 1; margin-bottom: var(--space-3); }
.path h3 { margin-bottom: 10px; }
.path.web { background: var(--raised-high); border-color: var(--raised-top); }
.forms { display: grid; gap: var(--space-3); margin-top: var(--space-4); align-items: start; }
@media (min-width: 900px) { .forms { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--raised-low); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; }
.form-card h3 { margin-bottom: 10px; }
.form-card form > p, .form-card .done p { color: var(--muted); font-size: var(--fs-small); }
.field { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; padding: 0; }
.field input[type="text"], .field input[type="email"] { display: block; width: 100%; margin-top: 8px; height: 48px; padding: 0 14px; border-radius: var(--r-small); border: 2px solid var(--outline); background: var(--navy); color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--brass-soft); }
.help { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.err { font-size: 14px; color: var(--brass-soft); margin-top: 6px; font-weight: 600; }
.err:empty { display: none; }
.err a { color: var(--ink); }
.soft { font-size: 14px; color: var(--muted); margin-top: 6px; font-style: italic; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: var(--r-pill); border: 2px solid var(--outline); cursor: pointer; }
.radios input { accent-color: var(--brass); margin: 0; }
.radios label:has(input:checked) { border-color: var(--brass); background: var(--brass-well); }
.radios label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brass); flex: none; }
.form-card .btn { margin-top: 22px; }
.consent { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.consent a { color: var(--ink); }
.preview-note { font-size: 13px; color: var(--muted); border: 1px dashed var(--outline); border-radius: var(--r-small); padding: 8px 12px; margin: 16px 0 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-4) var(--space-5); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq dl { margin: 0; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 21px; margin-top: 32px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.faq dd a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--space-6) 0 var(--space-5); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52%; right: 0; background-image: var(--tally); background-size: 88px 72px; pointer-events: none; }
.site-footer .wrap { position: relative; }
.foot-top { display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; } }
.foot-logo { display: inline-block; }
.foot-logo img { height: 72px; width: auto; }
.tagline { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: var(--space-3) 0 0; }
.foot-links { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--display); font-weight: 500; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--brass); }
.foot-links .na { color: var(--muted); }
.credits { margin-top: var(--space-4); color: var(--muted); font-size: var(--fs-small); display: grid; gap: 6px; }
.credits p { margin: 0; }

/* ---------- Privacy page (light scheme for long reading, kit section 3) ---------- */
body.paper { background: var(--paper); color: var(--paper-ink); }
body.paper .site-header { background: rgba(246, 244, 238, 0.94); }
body.paper .site-header.scrolled { border-bottom-color: var(--paper-raised); }
body.paper .nav-actions .login { color: var(--paper-ink); }
body.paper .nav-actions .login:hover { color: var(--deep-brass); }
body.paper .btn-primary { background: var(--deep-brass); border-color: var(--deep-brass); color: #FFFFFF; }
body.paper .btn-primary:hover { background: var(--paper-ink); border-color: var(--paper-ink); }
body.paper :focus-visible { outline-color: var(--paper-blue); }
.doc { padding: var(--space-5) 0 var(--space-6); }
.doc .wrap { max-width: 820px; }
.draft { background: var(--paper-raised); border-radius: var(--r-card); padding: 20px 24px; margin-bottom: var(--space-4); }
.draft b { font-family: var(--display); font-weight: 700; font-size: 18px; display: block; margin-bottom: 4px; }
.draft p { margin: 0; color: var(--paper-muted); font-size: var(--fs-small); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc .date { color: var(--paper-muted); margin-top: 10px; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin: var(--space-5) 0 var(--space-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--deep-brass); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: var(--space-2) 0 var(--space-3); font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--paper-raised); }
.doc th { font-family: var(--display); font-weight: 600; background: var(--paper-raised); }
.doc thead th:first-child { border-top-left-radius: var(--r-small); }
.doc thead th:last-child { border-top-right-radius: var(--r-small); }
.gap { display: inline; font-size: 14px; color: var(--paper-ink); background: var(--paper-raised); border: 1px dashed var(--paper-muted); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 599px) { .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; } .doc thead { display: none; } .doc tr { padding: 12px 0; border-bottom: 1px solid var(--paper-raised); } .doc td { border: 0; padding: 2px 0; } .doc td:first-child { font-weight: 600; } }
.paper-footer { border-top: 1px solid var(--paper-raised); padding: var(--space-4) 0; color: var(--paper-muted); font-size: var(--fs-small); }
.paper-footer .wrap { max-width: 820px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.paper-footer a { color: var(--paper-ink); }

/* Motion: transform/opacity only; none under reduced motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a, .site-header { transition: none; }
}

/* Shot wrapper: frame plus caption outside it */
.shot { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.trio > .shot, .pair > .shot, .even > .shot { width: 100%; }
.even > .shot { max-width: 300px; }
.trio > .shot .phone, .pair > .shot .phone, .even > .shot .phone { width: 100%; }
/* r1 fixes: equal slots in the plan; quieter placeholders; smaller theme slots */
@media (min-width: 900px) { .steps { align-items: stretch; } }
.screen.coming { border: 2px dashed var(--outline); }
.phone .screen.coming { border-radius: calc(var(--r-phone) - 10px); }
.even > .shot { max-width: 240px; }

/* ---------- Round 2 (critics r1: fidelity, brief, taste) ---------- */
:root { --r-card: 16px; --fs-h2: clamp(28px, 3.2vw, 40px); --fs-h3: clamp(22px, 2.2vw, 28px); --player-you: var(--blue); }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; }
.text-link { color: var(--ink); text-decoration-color: var(--brass); }
.text-link:hover { color: var(--brass); }
.err { color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--ink); }
.said .total { color: var(--brass); }
/* Guide: body left, the two pillars stacked right; identity closes with the maker line under it */
.guide-grid { display: grid; gap: var(--space-4) var(--space-5); align-items: start; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .pillars.stacked { grid-template-columns: 1fr; margin-top: 0; } }
.guide-close { display: block; max-width: 760px; }
.guide-close .maker { margin-top: var(--space-2); }
/* Plan: plain numbered row, no cards */
.steps li { background: none; border: 0; padding: 0; }
.steps li::before { background: var(--brass-well); color: var(--brass-soft); }
/* How you score: the copy's sample line, set apart */
.sample { margin-top: var(--space-4); padding-left: 20px; border-left: 3px solid var(--outline); max-width: 460px; }
.sample blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.35; }
.sample figcaption { text-align: left; margin-top: 8px; }
/* Good nights: three real captures, equal columns that fill the row */
.even.trio-fix { margin-top: var(--space-5); justify-items: stretch; gap: clamp(12px, 3vw, 48px); }
.even.trio-fix > .shot { max-width: none; }
@media (max-width: 719px) { .even.trio-fix { gap: 8px; } .even.trio-fix figcaption { font-size: 11px; } }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
/* Themes: three game-page headers from the web app, equal columns */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 32px); margin-top: var(--space-5); }
.games figure { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--raised-top); box-shadow: var(--shadow-phone); }
.games img { width: 100%; }
.coming-line { font-size: 14px; color: var(--muted); margin-top: var(--space-3); }
.games-note { text-align: left; }
.forms { align-items: stretch; }
/* FAQ: heading above the list */
.faq-wrap h2 { margin-bottom: var(--space-4); }
.faq-wrap .faq-head { position: static; }
.faq-wrap dl { max-width: 820px; }
/* Round 3 (fidelity r2) */
.hero .lead { max-width: 27em; text-wrap: pretty; }
.even.trio-fix > .shot .phone { max-width: none; width: 100%; }
@media (max-width: 719px) { .games { grid-template-columns: 1fr; gap: 12px; } }
/* Round 3 (taste r2) */
.games.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 719px) { .games.two { grid-template-columns: 1fr; } }
.single > * { max-width: 760px; }
.single > .reveal { margin-top: var(--space-3); }
/* Good nights at phone width: a swipeable row of full-size phones instead of three tiny ones */
@media (max-width: 719px) {
  .even.trio-fix { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .even.trio-fix > .shot { flex: 0 0 240px; scroll-snap-align: start; }
  .even.trio-fix figcaption { font-size: 13px; }
}

/* frontend-design polish (last, under house constraints): one staggered hero load, transform/opacity only; nothing under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero .status, .hero h1, .hero .lead, .hero .cta-row, .hero .text-link, .hero .under, .hero .shot { animation: rise .8s var(--ease) both; }
  .hero h1 { animation-delay: .06s; } .hero .lead { animation-delay: .14s; } .hero .cta-row { animation-delay: .22s; }
  .hero .text-link, .hero .status, .hero .under { animation-delay: .28s; } .hero .shot { animation-delay: .18s; }
  .btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); }
}
html.capture .hero * { animation: none !important; }

/* ---------- Round 4 (critic pass 1) ---------- */
/* s06/s07: cut captures. The screen takes the image's own height (width/height attrs), so the two sections never repeat a block. */
.phone.cut .screen { aspect-ratio: auto; }
.phone.cut .screen img { height: auto; }

/* s08 at phone width: all three shots visible, stacked at the page's standard phone width, centered. No swipe, nothing off screen. */
@media (max-width: 719px) {
  .even.trio-fix { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin-left: 0; margin-right: 0; padding: 0; gap: var(--space-4); justify-items: center; }
  .even.trio-fix > .shot { flex: none; width: var(--phone-w); max-width: 100%; }
  .even.trio-fix > .shot .phone { padding: 8px; border-radius: 28px; }
  .even.trio-fix > .shot .phone .screen { border-radius: 20px; }
  .even.trio-fix figcaption { font-size: 14px; }
}

/* Header under 860px: the section links sit in a thin strip ABOVE the bar and scroll away; the bar (badge, Log in, Open Boardie) stays pinned at --header-h. */
:root { --links-h: 40px; }
@media (max-width: 859px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
  .site-header:has(.nav-links) { top: calc(-1 * var(--links-h)); }
  .bar { padding-top: 0; height: auto; }
  .bar > .brand, .bar > .nav-actions { height: var(--header-h); }
  .nav-links { order: -1; height: var(--links-h); align-items: center; padding: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .nav-links::-webkit-scrollbar { display: none; }
}

/* r5 house gate: product in the first viewport at phone and tablet width.
   Headline and lead, then the top of the screen in a cut frame, then the buttons and small lines.
   The pinned header keeps Open Boardie on screen the whole time. */
@media (max-width: 899px) {
  .hero { padding-top: 28px; }
  .hero .split { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .lead { order: 2; }
  .hero .hero-shot { order: 3; margin-top: 28px; }
  .hero .cta-row { order: 4; margin-top: 28px; }
  .hero .text-link { order: 5; align-self: flex-start; }
  .hero .status { order: 6; }
  .hero .under { order: 7; }
  .hero .hero-shot .phone { width: 244px; }
  .hero .hero-shot .phone .screen { aspect-ratio: var(--peek, 412 / 578); }
  .hero .hero-shot figcaption { margin-top: 10px; }
}

/* ==========================================================================
   v2 (Caleb on the private preview: "tons of text versus visuals", "board game inspired icons").
   Icons from assets/icons (site-visuals): brass main stroke, muted second tone. Never in a brass fill, never a face.
   ========================================================================== */
:root { --ico: 40px; --tile-r: 14px; }
.ico { display: block; flex: none; width: var(--ico); height: var(--ico); color: var(--brass); --icon-2: var(--muted); }

/* Icon index at the foot of the hero: each tile is a link to its section */
.box-index { margin-top: var(--space-5); position: relative; }
.box-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.box-index a { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 14px 18px; border-radius: var(--r-card); background: var(--raised-low); border: 1px solid var(--line);
  text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.25; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.box-index a:hover { border-color: var(--outline); background: var(--raised); }
.box-index .ico { --ico: 38px; }
@media (max-width: 899px) {
  .box-index { margin-top: var(--space-4); }
  .box-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .box-index a { gap: 10px; min-height: 64px; padding: 10px 12px; font-size: 15px; }
  .box-index .ico { --ico: 30px; }
}

/* Icon lines: an icon on a raised game tile beside one short line */
.irows { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 16px; max-width: 34em; }
.irows li { display: flex; align-items: center; gap: 18px; }
.irows .ico { --ico: 32px; box-sizing: content-box; padding: 11px; border-radius: var(--tile-r); background: var(--raised); border: 1px solid var(--line); }
.band .irows .ico { background: var(--raised-high); border-color: var(--raised-top); }
.irows.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--space-5); max-width: none; margin-top: var(--space-4); }
.irows.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: none; margin-top: var(--space-5); }
.irows.cols li { flex-direction: column; align-items: flex-start; gap: 16px; }
.irows.cols .ico { --ico: 40px; padding: 14px; }
@media (max-width: 899px) {
  .irows.grid, .irows.cols { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: var(--space-4); }
  .irows.cols li { flex-direction: row; align-items: center; gap: 18px; }
  .irows.cols .ico { --ico: 32px; padding: 11px; }
}

/* Problem: the pencil line leads under the heading; the after-game lines are four tiles. Problem icons stay muted, brass is Boardie's. */
.pain-first { display: flex; align-items: flex-start; gap: 16px; margin-top: var(--space-4) !important; font-family: var(--display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.4; max-width: 26em; }
.pain-first .ico, .pains .ico { color: var(--muted); --icon-2: var(--outline); }
.pain-first .ico { --ico: 44px; margin-top: 2px; }
.stakes .after { margin-top: 0; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pains li { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; border-radius: var(--r-card); background: var(--raised-low); border: 1px solid var(--line); line-height: 1.45; }
.pains .ico { --ico: 40px; }
@media (max-width: 599px) {
  .pains { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pains li { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .pains .ico { --ico: 34px; }
}

/* Guide: body, identity and maker in the left column (no dead half), pillars led by their icons */
.pillar .ico { --ico: 48px; margin-bottom: 16px; }
.guide-grid > .stack > .guide-close { max-width: 30em; margin-top: var(--space-5); }

/* Plan as a game track: each step a space with its icon, the step number on the space, a dotted path between */
.steps.track { gap: var(--space-4); margin-top: var(--space-5); }
.steps.track li { position: relative; }
.steps.track li::before { display: none; }
.token { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 50%; background: var(--raised); border: 2px solid var(--raised-top); }
.token .ico { --ico: 44px; }
.token::after { content: counter(step); position: absolute; top: -4px; right: -8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--navy);
  background: var(--brass-well); color: var(--brass-soft); font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1; }
@media (min-width: 900px) {
  .steps.track li:not(:last-child)::after { content: ""; position: absolute; top: 41px; left: 108px; right: calc(-1 * var(--space-4) + 16px); border-top: 3px dotted var(--outline); }
}
@media (max-width: 899px) {
  .steps.track li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .steps.track .token { grid-row: 1 / span 2; width: 72px; height: 72px; margin: 0; }
  .steps.track .token .ico { --ico: 38px; }
  .steps.track h3 { padding-top: 6px; }
  .steps.track li:not(:last-child)::after { content: ""; position: absolute; left: 35px; top: 84px; bottom: calc(-1 * var(--space-4) + 10px); border-left: 3px dotted var(--outline); }
}

/* Good nights: the captures lead, then the moments as chips, then four icon lines */
.moments { margin-top: var(--space-5); }
.moments .list-head { margin: 0; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 12px; border-radius: var(--r-pill); background: var(--raised-high); border: 1px solid var(--raised-top); font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.chips .ico { --ico: 30px; }
.studio { margin: var(--space-4) 0 0; font-size: var(--fs-small); }
@media (max-width: 599px) { .chips li { font-size: 16px; padding: 7px 16px 7px 10px; } .chips .ico { --ico: 26px; } }

/* Editions: heading left, icon lines right */
.duo { display: grid; gap: var(--space-4) var(--space-5); align-items: start; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.duo > .irows { margin-top: 0; max-width: none; gap: 20px; }

/* Why: single column on the kit's tally motif, closing on its one big line */
.why { overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0 0 0 52%; background-image: var(--tally); background-size: 88px 72px; pointer-events: none; }
.why-wrap { position: relative; }
.why-wrap > * { max-width: 760px; }
.why-wrap > .reveal { margin-top: var(--space-3); }
.said-big { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; max-width: 22em; margin: var(--space-3) 0 0; }

/* Sign-up: cards led by icons; each form opens from its card (no JS: both show) */
.path .ico { --ico: 48px; margin-bottom: 16px; }
.forms { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.forms .form-card { flex: 1 1 420px; max-width: 640px; }
html:not(.no-js) .form-card.fold:not(.open) { display: none; }
html:not(.no-js) .forms:not(:has(.form-card.open)) { margin-top: 0; }

/* FAQ: short answers that open and close */
.qa { max-width: 820px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--raised-high); color: var(--brass); font-size: 26px; font-weight: 500; line-height: 1; transition: transform .2s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details > p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.qa a { color: var(--ink); }
@media (max-width: 599px) { .qa summary { font-size: 18px; padding: 16px 0; } .qa summary::after { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .qa summary::after, .box-index a { transition: none; } }

/* v2: at phone width the capture follows the heading and lead, so the screen leads the section's detail */
@media (max-width: 899px) {
  .score .split, .coach .split { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .score .split > .stack, .coach .split > .stack { display: contents; }
  .score .split > .stack > *, .coach .split > .stack > * { order: 4; }
  .score .split > .stack > h2, .coach .split > .stack > h2 { order: 1; }
  .score .split > .stack > .lead, .coach .split > .stack > .lead { order: 2; margin-top: var(--space-2); }
  .score .split > .shot-col, .coach .split > .shot-col { order: 3; margin: var(--space-4) 0 var(--space-2); }
  .editions .duo > .stack .cta-row { display: none; }
  .editions .duo > .cta-mobile { display: flex; }
}
.cta-mobile { display: none; }

/* ---------- v2 round 2 (taste r1: fewer icons, bigger; plain lines; a real board track; no hero index) ---------- */
.ico.big { --ico: 64px; }
.ico.huge { --ico: 112px; }

/* Plain lines: hairlines between, no icon tiles */
.plain { list-style: none; margin: var(--space-3) 0 0; padding: 0; max-width: 34em; }
.plain li { padding: 12px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); max-width: none; margin-top: var(--space-4); }
.plain.two li:nth-child(2) { border-top: 0; padding-top: 0; }
@media (max-width: 899px) { .plain.two { grid-template-columns: minmax(0, 1fr); } .plain.two li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; } }

/* Problem: one big muted tally beside the pencil line; the after-game lines plain */
.pain-first { display: flex; align-items: center; gap: 20px; margin-top: var(--space-4) !important; max-width: 28em; }
.pain-first p { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.4; }
.pain-first .ico.big { --ico: 72px; color: var(--muted); --icon-2: var(--outline); }
.pains { display: block; }
.pains li { display: block; padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 19px; line-height: 1.45; }
.pains li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 599px) { .pains li { padding: 12px 0; font-size: 17px; } }

/* Plan: three tokens on one run of board spaces */
.steps.track { column-gap: 8px; row-gap: var(--space-4); }
.steps.track li::after { display: none !important; }
.squares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.sq { aspect-ratio: 1; border-radius: var(--r-small); background: var(--raised-low); border: 1px solid var(--line); }
.sq.on { position: relative; display: grid; place-items: center; background: var(--raised-high); border: 1px solid var(--raised-top); }
.sq.on .ico { --ico: 52%; width: 52%; height: 52%; }
.sq.on::before { content: counter(step); position: absolute; top: 7px; left: 10px; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1; color: var(--muted); }
@media (min-width: 900px) { .steps.track h3, .steps.track p { padding-right: 32px; } }
@media (max-width: 899px) {
  .steps.track li { display: block; }
  .squares { max-width: 360px; margin-bottom: 18px; }
  .steps.track h3 { padding-top: 0; }
}

/* Good nights: the four moments as big marks, the rest as plain lines */
.awards { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.awards li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
@media (max-width: 599px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); } .awards li { font-size: 18px; } .awards .ico.big { --ico: 52px; } }

/* Sync: one big glyph beside three plain lines */
.glyph-lines { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.glyph-lines .plain { margin-top: 0; }
@media (max-width: 599px) { .glyph-lines { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } .glyph-lines .ico.huge { --ico: 80px; } }
.sync .stack > p.muted { max-width: 30em; }

/* Editions: the glyph above the heading */
.lead-glyph { margin-bottom: 20px; }

/* Why: one big line beside one big glyph on the tally half */
.why-glyph { --ico: 96px; margin-bottom: var(--space-3); }
@media (min-width: 900px) {
  .why-wrap { min-height: 220px; }
  .why-glyph { position: absolute; --ico: 200px; right: calc(var(--gutter) + 8%); top: 50%; transform: translateY(-50%); margin: 0; }
}

/* Themes: caption under the table-themes capture */
.table-themes figcaption { margin: 0; padding: 10px 12px; background: var(--raised-low); }

/* Coach device spans the text column; its line and tag share the card's inner edge */
.coach .said { max-width: none; }
.coach .said .line, .coach .said .tag { padding-left: 18px; }
@media (min-width: 900px) { .editions .duo { align-items: center; } }

/* ---------- v2 round 3 (taste r2 + fidelity r2) ---------- */
/* Guide pillars: open text beside a large icon, no card */
.pillar { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; align-items: start; background: none; border: 0; padding: 0; }
.pillar .ico { --ico: 72px; grid-row: 1 / span 2; margin: 0; }
.pillar h3 { margin: 4px 0 8px; }
.pillars.stacked { gap: var(--space-4); }
/* Plan: the tokens stand on the track, no numerals, no tile behind them */
.sq.on { background: transparent; border-color: transparent; overflow: visible; }
.sq.on::before { content: none; }
.sq.on .ico { --ico: 120%; width: 120%; height: 120%; }
/* Coach: sentence and tag on the card's edge; the capture on the right column line */
.coach .said .line, .coach .said .tag { padding-left: 0; }
@media (min-width: 900px) { .coach .shot-col { justify-content: flex-end; } .score .shot-col { justify-content: flex-start; } }
/* Sync: glyph and lines share one center line */
.sync .duo { align-items: center; }
.glyph-lines { align-items: center; }
/* Editions: lines start level with the heading, under the glyph */
@media (min-width: 900px) { .editions .duo { align-items: start; } .editions .duo > .plain { margin-top: 84px; } }
/* Why: no glyph now, the motif carries the right half */
.why-wrap { min-height: 0; }

/* ---------- v2 round 4 (taste r3 A-list + fidelity r3) ---------- */
/* One accent: icons in ink with a muted second tone; brass stays on the buttons, the mark and the Coach total */
.ico { color: var(--ink); --icon-2: var(--muted); }
/* Plan: one large mark per step on a shared baseline, no squares, no numerals */
.piece { display: flex; align-items: flex-end; height: 112px; margin-bottom: 20px; }
.piece .ico { --ico: 104px; }
@media (max-width: 899px) { .piece { height: 80px; margin-bottom: 14px; } .piece .ico { --ico: 76px; } }
/* Guide: identity follows the body at one spacing step */
.guide-grid > .stack > .guide-close { margin-top: var(--space-4); }
/* Good nights: the four marks on the same column lines as the two text columns under them */
@media (min-width: 600px) { .awards { column-gap: var(--space-5); } }
/* Editions: lines lead on the left, the heading block on the right */
@media (min-width: 900px) {
  .duo.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .duo.flip > .stack { order: 2; }
  .duo.flip > .plain { order: 1; margin-top: 84px; }
}
/* Themes: text top on the panel top */
.themes-foot { align-items: start; }
/* FAQ: heading left, questions right */
@media (min-width: 900px) { .faq-wrap.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-5); } .faq-wrap.faq-grid .qa { max-width: none; } }
/* Footer tagline wraps evenly */
.tagline { text-wrap: balance; }
@media (max-width: 899px) { .editions .duo { row-gap: var(--space-3); } .editions .duo > .plain { margin-top: 0; } .editions .duo > .cta-mobile { margin-top: 0; } }

/* ---------- v2 round 5: the board-game piece set (assets/icons/pieces.svg) ----------
   Each piece is cropped to its own drawing (viewBox = its bounds), so its foot is the svg's bottom edge
   and it can stand on a line. --t = the piece's displayed size in px on its longer side (72 to 120, never under 56). */
:root { --t: 96px; --edge: var(--raised-top); }
.pc { display: block; flex: none; width: calc(var(--w) / var(--m) * var(--t)); height: calc(var(--h) / var(--m) * var(--t)); overflow: visible; }

/* Problem: the score pad and pencil beside the pencil line */
.pain-first { align-items: flex-end; gap: 24px; }
.pain-first .pc { --t: 120px; }

/* Guide pillars: each pillar led by its piece */
.pillar { grid-template-columns: 104px minmax(0, 1fr); column-gap: 24px; }
.pillar .pc { --t: 104px; grid-row: 1 / span 2; justify-self: center; margin-top: 2px; }

/* Plan: three pieces standing on one table edge, the step under each */
.piece { height: 128px; margin-bottom: 0; align-items: flex-end; border-bottom: 2px solid var(--edge); }
.piece .pc { --t: 120px; margin-left: 4px; }
.steps.track h3 { margin-top: 22px; }
@media (min-width: 900px) {
  .steps.track { position: relative; column-gap: var(--space-4); }
  .steps.track .piece { border-bottom: 0; }
  .steps.track::before { content: ""; position: absolute; left: 0; right: 0; top: 126px; height: 2px; background: var(--edge); }
}
@media (max-width: 899px) { .piece { height: 112px; } .piece .pc { --t: 104px; } .steps.track h3 { margin-top: 16px; } }

/* Good nights: the four moments as pieces sharing one foot line */
.awards li { gap: 16px; }
.stand { display: flex; align-items: flex-end; height: 104px; }
.stand .pc { --t: 104px; }
@media (max-width: 599px) { .stand { height: 84px; } .stand .pc { --t: 84px; } }

/* Sync: the phone-and-laptop piece beside the three lines */
.sync-pc { --t: 120px; }
@media (max-width: 599px) { .sync-pc { --t: 96px; } }

/* Editions: the stack of boxes above the heading */
.lead-pc { --t: 104px; margin-bottom: 20px; }
@media (max-width: 599px) { .lead-pc { --t: 88px; } }

/* Why: a still life on the table edge, the year's pieces left out after game night */
.still { display: flex; align-items: flex-end; gap: 20px; border-bottom: 2px solid var(--edge); padding: 0 16px; margin-top: var(--space-4); width: max-content; max-width: 100%; }
.still .s1 { --t: 120px; } .still .s2 { --t: 104px; } .still .s3 { --t: 100px; } .still .s4 { --t: 96px; }
@media (min-width: 900px) {
  .why-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-5); align-items: end; }
  .why-wrap > .stack, .why-wrap > .reveal { grid-column: 1; }
  .why-wrap > .still { grid-column: 2; grid-row: 1 / span 2; justify-self: center; margin: 0; }
}
@media (max-width: 599px) { .still { gap: 12px; padding: 0 8px; } .still .s1 { --t: 88px; } .still .s2 { --t: 76px; } .still .s3 { --t: 72px; } .still .s4 { --t: 72px; } }
/* Editions: the lines start level with the heading, under the taller piece */
@media (min-width: 900px) { .editions .duo > .plain, .duo.flip > .plain { margin-top: 132px; } }
@media (max-width: 599px) { .pillar { grid-template-columns: 80px minmax(0, 1fr); column-gap: 18px; } .pillar .pc { --t: 80px; } }

/* ---------- v2 round 5, critic pass ---------- */
/* Plan: piece edge on the heading edge */
.piece .pc { margin-left: 0; }
/* Aside role = 120px (problem, sync, editions) */
.lead-pc { --t: 120px; }
/* Pillar headings wrap naturally */
.pillar h3 { text-wrap: wrap; }
/* Good nights: the four moments stand on one table edge */
.awards { border-bottom: 2px solid var(--edge); padding-bottom: 0; }
.awards li { padding-bottom: 18px; }
@media (max-width: 599px) { .awards { border-bottom: 0; } .awards .stand { border-bottom: 2px solid var(--edge); width: 100%; } }
/* Why: three pieces, feet on the edge */
.still .s1 { --t: 120px; } .still .s2 { --t: 104px; } .still .s3 { --t: 100px; }
.still .pc { margin-bottom: -3px; }
@media (max-width: 599px) { .still .s1 { --t: 92px; } .still .s2 { --t: 80px; } .still .s3 { --t: 76px; } }
/* Editions: no longer the heading/list split; piece, heading and lead, then the three lines across */
@media (min-width: 900px) {
  .duo.flip { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .duo.flip > .stack { order: 1; max-width: 40em; }
  .duo.flip > .plain { order: 2; margin-top: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-5); max-width: none; border-top: 2px solid var(--edge); }
  .duo.flip > .plain li { border-top: 0; padding: 18px 0 0; }
  .editions .duo > .stack .cta-row { display: none; }
  .editions .duo > .cta-mobile { display: flex; order: 3; margin-top: 0; }
}
/* Moments: the edge runs under the feet, labels below it */
.awards { border-bottom: 0; position: relative; }
.awards li { padding-bottom: 0; }
@media (min-width: 600px) { .awards::before { content: ""; position: absolute; left: 0; right: 0; top: 102px; height: 2px; background: var(--edge); } .awards li { gap: 20px; } }

/* ==========================================================================
   r9 (2026-11-27, site-page): the buddy, the app tile on the get-the-app cards,
   form plumbing (honeypot, live status), and full-size phones at phone width.
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Honeypot: off screen, out of the tab order, hidden from assistive tech */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The buddy: a fixed box; tilly.js draws him in its own full 200 unit view (never stretched or cropped), so the box
   carries clear space around him. Boxes run 150px and up so he stands 64px+ tall. Midnight or raised navy only. */
.buddy { flex: none; position: relative; }
.buddy > svg, .buddy > img { display: block; width: 100%; height: 100%; }
.buddy.stood-down { visibility: hidden; }

/* Hero: beside the phone at 900px and up (feet level with its foot); beside the status lines below that */
.hero-foot { display: block; }
.hero-foot > .buddy { display: none; }
.buddy-hero[data-slot="wide"] { display: none; }
@media (min-width: 900px) {
  .hero-shot .phone { position: relative; }
  .buddy-hero[data-slot="wide"] { display: block; position: absolute; width: 200px; height: 200px; right: calc(100% - 44px); bottom: -42px; pointer-events: none; }
}
@media (max-width: 899px) {
  .hero .hero-foot { order: 6; display: flex; align-items: center; gap: 0; margin-top: var(--space-3); }
  .hero-foot > .buddy { display: block; width: 150px; height: 150px; margin: -34px -14px -34px -44px; }
  .hero .hero-foot .status { margin-top: 0; }
}

/* Guides: left of the lead they point at (he points to his right) */
.buddy-says { display: flex; align-items: center; gap: 0; }
.buddy-says > .lead { margin: 0; }
.buddy-guide { width: 176px; height: 176px; margin: -44px -16px -44px -50px; }
@media (max-width: 599px) { .buddy-guide { width: 150px; height: 150px; margin: -36px -16px -36px -44px; } }
@media (max-width: 899px) { .coach .split > .stack > .buddy-says { order: 2; margin-top: var(--space-2); } }

/* Sign-up success: he celebrates once above the heading, on the raised navy card */
.buddy-done { width: 176px; height: 176px; margin: -40px 0 -24px -46px; }

/* The app tile (the tilted hex) wherever the app is named on a card. Shipped SVG, untouched; half its width clear below. */
.app-tile { display: block; width: 48px; height: 48px; margin: 0 0 24px; }

/* Phones at phone width: one per row, near full width, nothing shrunk to a watch face */
@media (max-width: 719px) {
  :root { --phone-w: min(316px, calc(100vw - 2 * var(--gutter))); }
  .phone { padding: 8px; border-radius: 34px; }
  .phone .screen { border-radius: 26px; }
}
@media (max-width: 899px) {
  .hero .hero-shot .phone { width: var(--phone-w); }
}

.paper-links { display: inline-flex; gap: 20px; }
/* 404: one short hero; the buddy beside the tagline */
.hero.lost { padding-bottom: var(--space-6); min-height: 72vh; }
.hero.lost .cta-row .text-link { margin-left: 8px; }
.buddy-hero.buddy-lost { display: block; position: static; width: 176px; height: 176px; margin: -44px -16px -44px -50px; }
@media (max-width: 599px) { .buddy-hero.buddy-lost { width: 150px; height: 150px; margin: -36px -16px -36px -44px; } }
.done:focus { outline: none; }
