/* RailRobin website. Plain CSS, no framework. Colours are the app's (app/lib/theme.dart). */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-800.a0562a1961.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-400.99e86993d9.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-600.931b850226.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-700.ba9198c65c.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  /* Brand (same in both modes) */
  --paper: #FFF8EC;
  --ink: #161412;
  --yellow: #FFC83D;
  --red: #D9411E;
  --teal: #8FD3C8;
  --coral: #F6C9B8;
  --butter: #FFE7A3;
  --green: #237047;
  --blue: #1F4FA0;
  --dark2: #2A2622;
  --dark3: #3A352F;
  --beak: #F5A623;

  /* Metro lines */
  --blr-purple: #8B3A9C;
  --blr-green: #1E9A4C;
  --blr-yellow: #F2C200;
  --che-blue: #1F5FAD;
  --che-green: #2E8B57;
  --che-yellow: #FFDF00;

  /* Neutrals (light) */
  --bg: var(--paper);
  --bg-alt: #FBEFD9;
  --surface: #FFFFFF;
  --surface-2: #FFF3DD;
  --fg: var(--ink);
  --muted: #4A443C;
  --line: #E5DCCD;
  --edge: var(--ink);
  --accent-text: #A33512;
  --green-text: var(--green);
  --robin-outline: transparent;
  --shadow: 0 1px 0 rgba(22, 20, 18, .06), 0 18px 40px -18px rgba(22, 20, 18, .28);
  --shadow-pop: 6px 6px 0 var(--ink);

  --display: "Bricolage", "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110F;
    --bg-alt: #1A1715;
    --surface: #221F1C;
    --surface-2: #2C2825;
    --fg: #F4EFE7;
    --muted: #B9B0A3;
    --line: #3A352F;
    --edge: #5C554C;
    --accent-text: #FF9878;
    --green-text: #6FD39C;
    --robin-outline: var(--paper);
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-pop: 6px 6px 0 #000;
  }
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(2.25rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--yellow); } }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: var(--red); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }

/* ---------- Buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.4em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.1 var(--body); text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--edge); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--surface); }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) {
  .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); box-shadow: 0 4px 0 #000; }
  .btn:hover { box-shadow: 0 6px 0 #000; }
  .btn-yellow { --btn-bg: var(--yellow); border-color: var(--yellow); }
  .btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--edge); box-shadow: none; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--yellow); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 40px; height: 40px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; }
.brand-word span { color: var(--red); }
@media (prefers-color-scheme: dark) { .brand-word span { color: #FF7A55; } }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { min-height: 44px; padding: .6em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--edge);
    background: var(--surface); color: var(--fg); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; box-shadow: var(--shadow);
  }
  .nav-menu { display: none; }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 12px; font-size: 1.1rem; border-radius: 12px; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
}
@media (min-width: 901px) { .nav-menu { display: flex; align-items: center; } }

/* ---------- Robin mascot (inline SVG) */
.robin .r-ink { fill: var(--ink); }
.robin .r-wing { fill: var(--dark3); }
.robin .r-red { fill: var(--red); }
.robin .r-beak { fill: var(--beak); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.robin .r-white { fill: #fff; }
.robin .r-outline { fill: none; stroke: var(--robin-outline); stroke-width: 7; stroke-linejoin: round; }
.robin .r-leg { stroke: var(--ink); stroke-width: 4.4; stroke-linecap: round; }
.robin .r-dot { fill: #fff; stroke: var(--ink); stroke-width: 3.4; }
.robin.on-dark .r-outline { stroke: var(--paper); }
.robin.on-dark .r-leg { stroke: var(--paper); }
.robin.on-dark .r-perch { fill: var(--paper); }
@media (prefers-color-scheme: dark) {
  .robin .r-leg { stroke: var(--paper); }
  .robin .r-perch { fill: var(--paper); }
  .robin.on-light .r-outline { stroke: transparent; }
  .robin.on-light .r-leg { stroke: var(--ink); }
  .robin.on-light .r-perch { fill: var(--ink); }
}
/* Robin waves hello three times and blinks once, then holds still: no motion loops past five seconds. */
.robin .r-eye { transform-box: fill-box; transform-origin: center; animation: robin-blink 4.4s 1; }
.robin .r-wave { transform-box: fill-box; transform-origin: 20% 80%; animation: robin-wave 1.3s ease-in-out 3; }
@keyframes robin-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.12); } }
@keyframes robin-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); } }

/* ---------- Hero */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .hero h1 em { color: #FF7A55; } }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; z-index: -1;
  background: var(--yellow); border-radius: 99px; transform-origin: left; animation: underline 1s .4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; margin-bottom: 22px; color: var(--fg);
}
.pill .live { width: 10px; height: 10px; border-radius: 50%; background: var(--blr-green); margin-left: 6px; }
.hero .lede { margin-bottom: 28px; max-width: 34ch; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; flex: none; }

.hero-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; z-index: -1; pointer-events: none; opacity: .9; }
.hero-lines path { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 2.4s .2s cubic-bezier(.3, .7, .2, 1) forwards; }
.hero-lines path:nth-child(2) { animation-delay: .45s; }
.hero-lines path:nth-child(3) { animation-delay: .7s; }
.hero-lines circle { fill: var(--bg); stroke: var(--fg); stroke-width: 4; opacity: 0; animation: fade 1s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; padding-top: 70px; }
.phone-wrap { position: relative; }
.hero-robin { position: absolute; width: 138px; top: -96px; right: -54px; z-index: 3; filter: drop-shadow(0 10px 18px rgba(22, 20, 18, .18)); }
.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); color: var(--fg); border: 2px solid var(--ink);
  font-weight: 700; font-size: .92rem; box-shadow: 4px 4px 0 var(--ink);
}
@media (prefers-color-scheme: dark) { .float-chip { border-color: var(--edge); box-shadow: 4px 4px 0 #000; } }
.float-chip .coin { width: 22px; height: 22px; }
.chip-coins { left: -150px; top: 56%; }

/* Arrival bubble: the app's Arrived state, balancing "+15 combo!" on the other side; it slides in once. */
.chip-arrive { left: calc(100% + 12px); top: 79%; gap: 9px; padding: 9px 12px 9px 10px; animation: chip-in .6s 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.float-chip { width: max-content; }
.float-chip .coin, .float-chip .spark { flex: none; }
.chip-arrive .txt { display: flex; flex-direction: column; line-height: 1.15; }
.chip-arrive b { font-size: .86rem; white-space: nowrap; }
.chip-arrive small { font-size: .8rem; font-weight: 800; color: var(--green-text); }
@keyframes chip-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
/* Narrower desktops and tablets: under the phone on the right, clear of its content. */
@media (max-width: 1300px) {
  .chip-arrive { left: auto; right: -6px; top: calc(100% + 22px); }
  .hero-visual { padding-bottom: 74px; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Value line, city toggle and the app Home inside the hero phone (redesign sheets 2 and 4). */
.value { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; margin: 0 0 26px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--fg); max-width: 40ch; }
.value .coin { width: 22px; height: 22px; flex: none; grid-row: 1 / span 2; margin-top: 2px; }
.value b { color: var(--fg); grid-column: 2; display: block; }
.value .v-more { color: var(--muted); font-weight: 600; grid-column: 2; display: block; }
.value .v-sm { display: none; }
.hero-visual.v2 { padding-top: 70px; min-height: 600px; }
.hero-visual.v2 .phone { transform: rotate(2.5deg); }
.hero-visual.v2 .hero-robin { top: -88px; right: -44px; }
.city-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); position: absolute; left: 0; top: 16px; margin: 0; z-index: 5; }
.city-toggle[hidden] { display: none; }
.city-toggle button { padding: 8px 16px; min-height: 40px; border: 0; border-radius: 999px; font: 700 .92rem var(--body); color: var(--muted); background: transparent; cursor: pointer; }
.city-toggle button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.hero-visual[data-city="che"] .blr, .hero-visual:not([data-city="che"]) .che { display: none !important; }
.hero-glance { display: none; }
.mini { font: 700 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }

/* ---------- Phone frame */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.2;
  border-radius: 46px; background: #0E0D0C; padding: 11px;
  box-shadow: 0 0 0 2px #2b2724, 0 40px 80px -30px rgba(22, 20, 18, .55), inset 0 0 0 2px #2b2724;
  transform: rotate(2.5deg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 20px; background: #0E0D0C; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.phone.tilt-left { transform: rotate(-2deg); }
.status-bar { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-weight: 700; font-size: 12px; }
.status-bar .sb-icons { display: flex; gap: 5px; align-items: center; }
.status-bar .sb-icons i { display: block; width: 14px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.status-bar .sb-icons i:first-child { width: 10px; }

/* The approved ride card (redesign sheet 2), as on the app's Home: the coach front in the ride's line
   colour, a static two-script board (English over the city language), the next station and minutes,
   one line pill and status line, the source, an outlined "Play a round" and a muted coins line.
   The glass is dark in both themes, as in the app. */
.phone-screen.app { background: var(--paper); }
.rc { --rmuted: #9A9286; --rsoft: #E8E4DC; --rlive: #58D28B; --line-c: var(--blr-green);
  position: relative; padding-top: 26px; padding-bottom: 34px; width: 330px; font-family: var(--body); color: #F5EFE3; text-align: left; }
.rc.che { --line-c: var(--che-blue); }
.rc .coach { background: #C9CED6; border-radius: 30px 30px 14px 14px; padding: 7px; position: relative; z-index: 1; }
.rc .frame { border: 4px solid var(--line-c); border-radius: 25px 25px 10px 10px; padding: 6px; background: #D9DDE3; position: relative; }
.rc .glass { background: #1C2433; border-radius: 20px 20px 6px 6px; padding: 12px 14px 14px; position: relative; overflow: hidden; min-height: 250px; }
.rc .mark { position: absolute; top: 2px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.rc .board { background: #070707; border-radius: 7px; padding: 7px 10px; font: 800 13px/1 "Courier New", ui-monospace, monospace; letter-spacing: .08em; color: #FFB020; text-shadow: 0 0 6px rgba(255, 176, 32, .6); text-align: center; position: relative; z-index: 3; }
.rc .board .ta { display: block; font: 700 12px/1 "Noto Sans Kannada", "Noto Sans Tamil", "Nirmala UI", sans-serif; letter-spacing: 0; margin-top: 5px; color: #FFB020; }
.rc .top { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 12px; }
.rc .lbl { font: 800 11px var(--body); letter-spacing: .14em; color: var(--rmuted); }
.rc .st { font: 800 28px/1.03 var(--display); letter-spacing: -.7px; color: #FFF; margin-top: 3px; }
.rc .min { text-align: right; flex: none; margin-left: 10px; }
.rc .min .n { font: 800 40px/1 var(--display); color: #FFF; }
.rc .min .u { font: 800 11px var(--body); letter-spacing: .14em; color: var(--rmuted); white-space: nowrap; }
.rc .stat { font: 700 14px/1.3 var(--body); color: var(--rsoft); margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.rc .lpill { background: var(--line-c); color: #fff; border-radius: 999px; padding: 2px 9px; font: 800 12px var(--body); white-space: nowrap; }
.rc .src { font: 700 12px var(--body); color: var(--rmuted); margin-top: 8px; display: flex; align-items: center; gap: 6px; border: 0; padding: 0; }
.rc .src i { width: 7px; height: 7px; border-radius: 50%; background: var(--rlive); display: block; }
.rc .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.rc .rbtn { flex: 1; display: block; border: 2px solid var(--yellow); color: var(--yellow); border-radius: 14px; padding: 11px 0; text-align: center; font: 800 15px var(--body); }
.rc .chev { width: 44px; height: 44px; border-radius: 12px; background: #2A3346; display: grid; place-items: center; color: var(--rsoft); flex: none; }
.rc .earn { font: 700 12px var(--body); color: #B9B1A5; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.rc svg.i { width: 20px; height: 20px; }
.rc .earn svg.i { width: 14px; height: 14px; }
.rc .dtop { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 2; }
.rc .dtop::after { content: ""; position: absolute; left: 50%; top: 12px; width: 60px; height: 10px; border-radius: 6px 6px 0 0; background: #B5BBC4; transform: translateX(-50%); }
.rc .dbot { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; justify-content: space-between; padding: 4px 30px; }
.rc .dbot span { width: 26px; height: 14px; border-radius: 4px; background: #8A9099; }
/* App Home chrome around the card (redesign sheet 4). */
.app-home { padding: 4px 12px 12px; font-family: var(--body); color: var(--ink); }
.app-top { display: flex; align-items: center; gap: 10px; padding: 2px 2px 6px; }
.app-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; color: var(--ink); border: 2px solid var(--ink); flex: none; }
.app-top .av svg { width: 20px; height: 20px; }
.app-top .who small { display: block; font: 600 10.5px var(--body); color: #4A443C; }
.app-top .who b { font: 800 15px var(--display); display: block; line-height: 1.1; }
.app-top .coins { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 800 12px var(--body); border: 1.5px solid #E5DCCD; border-radius: 999px; padding: 3px 8px; background: #fff; }
.app-top .coins svg { width: 14px; height: 14px; }
.app-top .sos { font: 800 8.5px var(--body); color: var(--red); letter-spacing: .08em; text-align: center; line-height: 1; }
.app-top .sos svg { width: 16px; height: 16px; margin: 0 auto 1px; display: block; }
.card-fit { zoom: .72; margin: 0 -2px; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.app-tiles div { background: #fff; border: 1.5px solid #E5DCCD; border-radius: 13px; padding: 6px 8px; font: 800 11.5px var(--body); display: flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
.app-tiles span { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--butter); color: var(--ink); flex: none; }
.app-tiles div:first-child span { background: var(--teal); }
.app-tiles svg { width: 16px; height: 16px; }
/* "Play a round" on Home: one live-looking question for the next stop, then four real games
   with the app's own "Up to N coins" (5 questions x coins per answer + 20 combo, content.dart). */
.app-play { margin-top: 8px; }
.app-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 5px; }
.app-sec b { font: 800 10px var(--body); letter-spacing: .12em; }
.app-sec span { font: 700 10.5px var(--body); color: #4A443C; }
.app-q { background: #fff; border: 1.5px solid #E5DCCD; border-radius: 13px; padding: 6px 9px 7px; margin-bottom: 6px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.q-tag { font: 800 10px var(--body); color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.q-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1E9A4C; flex: none; }
.q-ring { position: relative; width: 24px; height: 24px; flex: none; }
.q-ring svg { width: 24px; height: 24px; transform: rotate(-90deg); display: block; }
.q-ring circle { fill: none; stroke-width: 2.6; }
.q-ring .trk { stroke: #E5DCCD; }
.q-ring .prog { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 59.7; stroke-dashoffset: 14.9; transition: stroke-dashoffset 1s linear; }
.q-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 9px var(--body); }
.q-text { margin: 2px 0 5px; font: 800 11.5px/1.25 var(--body); }
.q-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.q-opts button { font: 700 10px/1.1 var(--body); padding: 6px 2px; border-radius: 9px; border: 1.5px solid #E5DCCD; background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; min-width: 0; overflow: hidden; }
.q-opts button:hover { border-color: var(--ink); }
.q-opts button.right { background: #D7F0DF; border-color: #1E9A4C; color: #155E33; }
.q-opts button.wrong { background: #F9DCD2; border-color: var(--red); color: #8A2A10; }
.q-opts.done button { cursor: default; }
.q-fb { margin: 6px 0 0; font: 600 10px/1.3 var(--body); }
.q-fb a { color: inherit; font-weight: 800; }
.app-games { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-games .g { border-radius: 11px; padding: 5px 8px 6px; color: var(--ink); min-width: 0; }
.app-games b { display: block; font: 800 10.5px/1.15 var(--body); white-space: nowrap; overflow: hidden; }
.app-games small { display: inline-block; margin-top: 3px; font: 700 9px/1.35 var(--body); background: #fff; border-radius: 99px; padding: 1px 6px; }
.g-cricket { background: #FFC83D; }
.g-clues { background: #E6D3F5; }
.g-emoji { background: #FFE7A3; }
.g-dialogue { background: #F6C9B8; }
/* The app ships dark too (APPROVED item 9): the dark site shows the dark app. */
@media (prefers-color-scheme: dark) {
  .phone-screen.app { background: #13110F; color: #F4EFE7; }
  .app-home { color: #F4EFE7; }
  .app-top .who small { color: #B9B0A3; }
  .app-top .coins, .app-tiles div, .app-q { background: #221F1C; border-color: #3A352F; color: #F4EFE7; }
  .app-sec span { color: #B9B0A3; }
  .q-tag { color: #FF9878; }
  .q-ring .trk { stroke: #3A352F; }
  .q-opts button { background: #13110F; border-color: #3A352F; color: #F4EFE7; }
  .q-opts button:hover { border-color: #B9B0A3; }
  .q-opts button.right { background: #1E3B2A; border-color: #6FD39C; color: #8FE3B0; }
  .q-opts button.wrong { background: #3B1F17; border-color: #FF9878; color: #FFB8A0; }
}
/* One line-icon family (the app's): 24 grid, 1.75 stroke, round ends. */
svg.i { display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Robin chat mock */
.chat { display: flex; flex-direction: column; flex: 1; background: var(--paper); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; border-bottom: 1px solid #E5DCCD; }
.chat-head .av { width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 34px; }
.chat-head b { display: block; font-family: var(--display); font-size: 15px; }
.chat-head small { color: #4A443C; font-size: 11px; }
.chat-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.42; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1.5px solid #E5DCCD; border-bottom-left-radius: 5px; }
.src { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed #E5DCCD; font-size: 10.5px; font-weight: 700; color: #1F4FA0; }
.src svg { width: 13px; height: 13px; flex: none; }
.chat-input { margin: 0 12px 14px; border-radius: 99px; border: 1.5px solid #E5DCCD; background: #fff; padding: 9px 14px; color: #8a8278; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.chat-input i { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: block; }

/* ---------- Sections */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: var(--paper); --fg: var(--paper); --muted: #CFC6B8; --line: #3A352F; --surface: #221F1C; --surface-2: #2C2825; --accent-text: #FF9878; --robin-outline: var(--paper); }
.section.dark .eyebrow::before { background: var(--yellow); }
@media (prefers-color-scheme: dark) { .section.dark { background: #0B0A09; border-block: 1px solid #2C2825; } }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-head p.eyebrow { font-size: .8rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }

/* How it works: stations on a line */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: step; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 31px; height: 10px; border-radius: 5px; background: var(--blr-green); }
.journey li { position: relative; text-align: center; padding: 0 8px; }
.journey .stn {
  counter-increment: step; position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--bg); border: 6px solid var(--fg); display: grid; place-items: center;
  font-family: var(--display); font-size: 1.6rem;
}
.section.alt .journey .stn { background: var(--bg-alt); }
.journey .stn::before { content: counter(step); }
.journey h3 { margin-bottom: .35em; }
.journey p { color: var(--muted); max-width: 30ch; margin-inline: auto; }

/* Feature list */
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ticks .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--butter); color: var(--ink); }
.ticks .ic.live { background: var(--teal); }
.ticks .ic svg { width: 18px; height: 18px; }
.ticks b { display: block; font-size: 1.06rem; }
.ticks span { color: var(--muted); }

/* Robin section */
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; }
.lang-tabs button {
  font: 700 1rem/1 var(--body); padding: 12px 18px; min-height: 46px; border-radius: 999px; cursor: pointer;
  border: 2px solid #5C554C; background: transparent; color: var(--paper);
}
.lang-tabs button[aria-selected="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.robin-stage { position: relative; display: grid; place-items: center; }
.robin-stage .phone { transform: rotate(-2deg); }

/* Talk to Robin: a second row inside the Robin section (#voice), phone left, copy right. */
.soon-tag.new { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.eyebrow .soon-tag { margin-left: 4px; vertical-align: 0; }
.voice-row { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.voice-h { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: .45em; }
.voice-row .lede { max-width: 42ch; }
.voice-row .ticks { margin-top: 22px; }
.voice-row .fine { max-width: 58ch; }
.voice-stage { position: relative; display: grid; place-items: center; padding: 20px 0 56px; }
.voice-stage .phone { transform: rotate(-2deg); }
/* "Robin is speaking" beside the phone, in the hero's chip style; hidden on phones as the hero's are. */
.v-chip { position: absolute; right: -48px; top: 296px; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px 9px 10px; border-radius: 14px; background: var(--surface); color: var(--fg); border: 2px solid #5C554C; box-shadow: 4px 4px 0 #000; font: 700 .86rem/1.15 var(--body); white-space: nowrap; }
.v-chip .bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.v-chip .bars b { display: block; width: 3px; height: 6px; border-radius: 2px; background: var(--yellow); }
.v-chip .bars b:nth-child(2) { height: 12px; }
.v-chip .bars b:nth-child(3) { height: 16px; }
.v-chip .bars b:nth-child(4) { height: 10px; }
.v-chip .bars b:nth-child(5) { height: 7px; }
.v-chip .txt { display: flex; flex-direction: column; line-height: 1.15; }
.v-chip small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .v-chip { display: none; } }

/* The listening phone: the site's frame and chat classes plus the approved voice states (the app's light theme). */
.vp .status-bar { align-items: center; }
.vp .sb-icons i.mic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--beak); margin-right: 3px; opacity: 1; }
.vp .chat-head { padding: 6px 12px 10px; }
.vp .chat-head > span:nth-child(2) { min-width: 0; flex: 1; }
.vp .chat-head .spk { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); flex: none; }
.vp .chat-head .spk svg { width: 15px; height: 15px; }
.vp .ride { margin: 10px 12px 0; padding: 8px 8px 8px 10px; background: #fff; border: 1.5px solid #E5DCCD; border-radius: 12px; display: flex; align-items: center; gap: 6px; }
.vp .ride .grow { flex: 1; min-width: 0; }
.vp .ride .k { font: 800 8.5px/1.3 var(--body); color: #8A3A1E; letter-spacing: .3px; }
.vp .ride .t { font: 800 11.5px/1.3 var(--body); color: var(--ink); }
.vp .ride .s { font: 600 10px/1.3 var(--body); color: #4A443C; }
.vp .ride svg { width: 14px; height: 14px; color: #8a8278; }
.vp .chat-body { gap: 8px; justify-content: flex-start; }
.vp .bubble { font-size: 12px; }
.vp .listen { margin: 0 12px 6px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 9px 10px 10px; }
.vp .listen .head { display: flex; align-items: center; gap: 6px; }
.vp .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(217, 65, 30, .18); flex: none; }
.vp .listen .lbl { font: 800 8.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #4A443C; flex: 1; }
.vp .langchip { font: 700 9.5px/1 var(--body); color: #4A443C; border: 1.5px solid #E5DCCD; border-radius: 999px; padding: 4px 7px; white-space: nowrap; }
.vp .timer { font: 800 10px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.vp .meter { display: flex; align-items: center; gap: 2px; height: 24px; margin-top: 9px; overflow: hidden; }
.vp .meter b { display: block; width: 3px; border-radius: 1.5px; background: var(--ink); height: 3px; flex: none; }
.vp .meter .h4 { height: 4px; } .vp .meter .h5 { height: 5px; } .vp .meter .h6 { height: 6px; } .vp .meter .h7 { height: 7px; }
.vp .meter .h8 { height: 8px; } .vp .meter .h9 { height: 9px; } .vp .meter .h10 { height: 10px; } .vp .meter .h11 { height: 11px; }
.vp .meter .h12 { height: 12px; } .vp .meter .h13 { height: 13px; } .vp .meter .h14 { height: 14px; } .vp .meter .h15 { height: 15px; }
.vp .meter .h16 { height: 16px; } .vp .meter .h17 { height: 17px; } .vp .meter .h18 { height: 18px; } .vp .meter .h19 { height: 19px; }
.vp .meter .h20 { height: 20px; } .vp .meter .h21 { height: 21px; } .vp .meter .h22 { height: 22px; }
.vp .partial { margin-top: 8px; font: 600 13.5px/1.4 var(--body); color: var(--ink); min-height: 19px; }
.vp .partial .pend { color: #6A645C; font-weight: 500; }
.vp .ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 2px 14px 0; }
.vp .ctl .l { font: 700 11px/1.2 var(--body); color: #A33512; text-decoration: underline; text-underline-offset: .15em; margin-top: 13px; }
.vp .ctl .col { display: grid; justify-items: center; gap: 4px; }
.vp .ctl .r { justify-self: end; }
.vp .stop { width: 42px; height: 42px; border-radius: 50%; background: #C93A18; display: grid; place-items: center; }
.vp .stop i { display: block; width: 14px; height: 14px; border-radius: 2.5px; background: #fff; }
.vp .cap { font: 600 9.5px/1.3 var(--body); color: #4A443C; }
.vp .cbtn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); margin-top: 5px; }
.vp .cbtn svg { width: 16px; height: 16px; }
.vp .disc { margin: 8px 14px 10px; text-align: center; font: 600 8.5px/1.35 var(--body); color: #6A645C; }
.vp .homebar { width: 100px; height: 4px; border-radius: 2px; background: var(--ink); opacity: .3; margin: 0 auto 8px; }

.qa-panel[hidden] { display: none; }
.no-js-note { font-size: .9rem; color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* One card (sheet E): radius 22, 1 px line, the soft shadow, one butter tile with a line icon.
   Teal tiles mark something live. Hover lifts 2 px, nothing else. */
.soft { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--butter); color: var(--ink); margin-bottom: 12px; flex: none; }
.tile.live { background: var(--teal); }
.tile svg { width: 22px; height: 22px; }
.soft h3, .soft h4 { font-size: 1.1rem; margin: 0 0 4px; letter-spacing: -.01em; }
.soft p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Play & earn: four games and one line of numbers */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game { transition: transform .2s ease; }
.game:hover { transform: translateY(-2px); }
.coin-line { margin: 22px 0 0; font-weight: 700; color: var(--fg); }
.also { margin-top: clamp(40px, 6vw, 64px); }
.also > h3 { font-size: 1.25rem; margin-bottom: 16px; }
.also-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.also-row .soft { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.also-row .tile { margin: 0; grid-row: span 2; }
/* Coming soon: same cards, a muted tag so nothing reads as live. */
.also.soon { margin-top: clamp(28px, 4vw, 40px); }
.also-row.soon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soon-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 700 .7rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.soon-cta { margin: 14px 0 0; font-weight: 700; }
.soon-cta a { color: var(--fg); }
.coin { display: inline-block; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.story { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.story figcaption { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.story .kind { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); }
.story b { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.15; }
.story small { color: var(--muted); font-size: .78rem; margin-top: auto; padding-top: 8px; line-height: 1.4; }
.story small a { color: inherit; }

/* Accessibility */
.station-map { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; }
.station-map h3 { display: flex; align-items: center; gap: 10px; }
.station-map h3 .ln { width: 14px; height: 14px; border-radius: 50%; background: var(--blr-purple); }
.exits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.exits li { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.exits .ex { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; }
@media (prefers-color-scheme: dark) { .exits .ex { background: var(--paper); color: var(--ink); } }
.exits b { display: block; }
.exits small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.badge svg { width: 15px; height: 15px; }
.badge.ok { background: #D7F0DF; color: #155E33; }
.badge.no { background: var(--line); color: var(--fg); }
@media (prefers-color-scheme: dark) { .badge.ok { background: #1E3B2A; color: #8FE3B0; } }
.map-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Cities */
.cities { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.city { position: relative; border-radius: 28px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.city h3, .city h4 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .1em; }
.city .op { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.city .lang { position: absolute; right: clamp(20px, 3vw, 36px); top: clamp(20px, 3vw, 36px); font-weight: 700; font-size: 1.5rem; color: var(--muted); opacity: .55; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lines li { display: grid; grid-template-columns: 1fr; gap: 6px; }
.lines .bar { height: 12px; border-radius: 6px; position: relative; background: var(--c); }
.lines .bar::before, .lines .bar::after { content: ""; position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
@media (prefers-color-scheme: dark) { .lines .bar::before, .lines .bar::after { border-color: var(--paper); background: var(--surface); } }
.lines .bar::before { left: -2px; }
.lines .bar::after { right: -2px; }
.lines .lname { display: flex; justify-content: space-between; font-weight: 700; }
.lines .lname small { font-weight: 600; color: var(--muted); }
.c-blr-purple { --c: var(--blr-purple); }
.c-blr-green { --c: var(--blr-green); }
.c-blr-yellow { --c: var(--blr-yellow); }
.c-che-blue { --c: var(--che-blue); }
.c-che-green { --c: var(--che-green); }
.c-che-yellow { --c: var(--che-yellow); }
.next-city { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.cities-block { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: 96px; }
.cities-block > h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 22px; }

/* "Want RailRobin in your city?": the waitlist form, compact, under the city cards. */
.city-ask { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.city-ask .ask { margin: 0; font-size: 1.05rem; color: var(--muted); }
.city-ask .ask b { color: var(--fg); font-size: 1.1rem; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust .soft { padding: 26px; }

/* Glance */
.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.features-glance { margin-top: 18px; }
.glance div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance div:nth-child(2n) { border-right: 0; }
.glance div:nth-child(n+3) { border-bottom: 0; }
.glance b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.glance span { color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band { position: relative; border-radius: 36px; background: var(--yellow); color: var(--ink); padding: clamp(32px, 6vw, 72px); overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; isolation: isolate; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { font-size: 1.15rem; max-width: 46ch; color: #2A2622; }
.cta-band .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.cta-band .btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .35); }
.cta-band .robin { width: 100%; max-width: 260px; justify-self: center; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .28); z-index: -1; }

/* Waitlist form (sheet D): one field, a city, one button; the thank-you state replaces it in place. */
.wl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; margin-top: 18px; }
.wl[hidden] { display: none; }
.wl input, .wl select { font: 600 1rem/1.2 var(--body); min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--edge); background: var(--bg); color: var(--fg); min-width: 0; width: 100%; }
.wl select { padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.wl input::placeholder { color: var(--muted); opacity: .85; }
.wl input[aria-invalid="true"] { border-color: var(--red); }
.wl .btn { white-space: nowrap; }
.wl .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { margin: 10px 0 0; font-weight: 700; color: var(--accent-text); }
.wl-msg:empty { display: none; }
.wl-consent { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.wl-help { font-size: .92rem; margin: 12px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.wl-help a { font-weight: 700; }
.wl-help .wa { display: inline-flex; align-items: center; gap: 6px; }
.wl-help .wa svg { width: 18px; height: 18px; }
.wl-done { margin: 12px 0 0; font-weight: 700; color: var(--green-text); }
.wl-done:empty { display: none; }
.cta-band .wl { grid-template-columns: minmax(0, 1fr) auto; max-width: 560px; }
.cta-band .wl input { grid-column: 1 / -1; }
.cta-band .wl input, .cta-band .wl select { border-color: var(--ink); background-color: #FFFDF7; color: var(--ink); }
.cta-band .wl select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161412' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.cta-band .wl input::placeholder { color: #6A645C; opacity: 1; }
.cta-band .wl-msg { color: #8A2A10; }
.cta-band .wl-consent, .cta-band .wl-help { color: #2A2622; }
.cta-band .wl-help a, .cta-band .wl-consent a { color: var(--ink); }
.cta-band :focus-visible { outline-color: var(--ink); }
/* City picker (site.js enhances the <select>): a trigger that matches the fields beside it and
   a soft-card listbox. No OS highlight: rows go butter (light) or warm (dark) when active. */
.cs { position: relative; min-width: 0; }
.wl select.cs-native { position: absolute !important; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.wl .cs-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 1rem/1.2 var(--body); min-height: 52px; padding: 0 12px 0 16px; border-radius: 14px; border: 2px solid var(--edge); background: var(--bg); color: var(--fg); cursor: pointer; user-select: none; -webkit-user-select: none; }
.wl .cs-trigger:focus-visible { border-radius: 14px; }
.cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cs-chev { width: 18px; height: 18px; color: var(--muted); stroke-width: 2.4; transition: transform .14s ease-out; }
.cs-trigger[aria-expanded="true"] .cs-chev { transform: rotate(180deg); }
.cta-band .wl .cs-trigger { border-color: var(--ink); background: #FFFDF7; color: var(--ink); }
.cta-band .cs-chev { color: var(--ink); }
.cs-panel { position: fixed; z-index: 90; box-sizing: border-box; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  font: 600 1rem/1.2 var(--body); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center; transition: opacity .14s ease-out, transform .14s ease-out; }
.cs-panel[hidden] { display: none; }
.cs-panel.is-up { transform-origin: bottom center; transform: translateY(4px) scale(.98); }
.cs-panel.is-in { opacity: 1; transform: none; }
.cs-group { padding: 10px 12px 4px; font: 800 .72rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-opt { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; white-space: nowrap; border-radius: 11px; cursor: pointer; }
.cs-opt.is-active { background: var(--butter); color: var(--ink); }
.cs-opt[aria-selected="true"] { font-weight: 800; }
.cs-ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--muted); }
.cs-opt.is-active .cs-ic { color: var(--ink); }
.cs-ic svg { width: 19px; height: 19px; }
.cs-dot { width: 12px; height: 12px; border-radius: 50%; }
.cs-dot-blr { background: var(--blr-purple); }
.cs-dot-che { background: var(--che-blue); }
.cs-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cs-tick { width: 18px; height: 18px; stroke-width: 2.4; visibility: hidden; }
.cs-opt[aria-selected="true"] .cs-tick { visibility: visible; }
.cs-else { position: relative; margin-top: 9px; }
.cs-else::before { content: ""; position: absolute; left: 10px; right: 10px; top: -5px; border-top: 1px solid var(--line); }
.cs-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(22, 20, 18, .45); }
.cs-scrim[hidden] { display: none; }
/* Phones: a bottom sheet the width of the screen. */
.cs-panel.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: min(72vh, 540px); border-radius: 22px 22px 0 0; border-bottom: 0;
  padding: 8px 10px calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateY(24px); transform-origin: bottom center; }
.cs-panel.is-sheet.is-in { transform: none; }
.cs-panel.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 4px; }
.cs-panel.is-sheet .cs-opt { min-height: 50px; }
@media (prefers-color-scheme: dark) {
  .cs-panel { background: var(--surface); color: var(--fg); border-color: var(--line); }
  .cs-opt.is-active { background: rgba(255, 200, 61, .14); color: var(--fg); }
  .cs-opt.is-active .cs-ic { color: var(--fg); }
  .cs-scrim { background: rgba(0, 0, 0, .6); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-panel, .cs-panel.is-up, .cs-panel.is-sheet { transform: none; }
  .cs-chev { transition: none; }
}
/* Hero phone mini question, once answered: the answer replaces the question. */
.app-q.answered .q-text { display: none; }
@media (prefers-reduced-motion: reduce) { .q-ring .prog { transition: none; } }
.thanks { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; background: #FFFDF7; border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; margin-top: 18px; color: var(--ink); max-width: 620px; }
.thanks .ok { width: 44px; height: 44px; border-radius: 50%; background: var(--blr-green); display: grid; place-items: center; color: #fff; }
.thanks .ok svg { width: 24px; height: 24px; stroke-width: 2.5; }
.thanks b { font: 800 1.15rem var(--display); display: block; }
.thanks p { margin: 4px 0 0; font-size: .98rem; color: #2A2622; }
.thanks .next { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.thanks .next a { font: 700 .9rem var(--body); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; text-decoration: none; background: #fff; }
.thanks .next a:hover { background: var(--butter); }
.wl-thanks:focus { outline: none; }
.wl-thanks[hidden], .wl-idle[hidden] { display: none; }
/* The code step (phone) or "check your inbox" (email): replaces the form in place, same fields and buttons. */
.wl-code[hidden], .wl-code-form[hidden] { display: none; }
.wl-code:focus { outline: none; }
.wl-code-title { margin: 14px 0 0; font: 800 1.15rem/1.25 var(--display); }
.wl-code-lead { margin: 6px 0 0; }
.cta-band .wl-code-lead { margin-top: 0; }
.wl-code-lead b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-code-form { margin-top: 16px; max-width: 420px; }
.wl-code-label { display: block; font: 700 .95rem/1.3 var(--body); margin-bottom: 6px; }
.wl-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.wl-code-input { font: 800 1.6rem/1 var(--display); letter-spacing: .32em; text-indent: .32em; text-align: center; font-variant-numeric: tabular-nums;
  min-height: 58px; padding: 0 12px; border-radius: 14px; border: 2px solid var(--edge); background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
.wl-code-input::placeholder { color: var(--muted); opacity: .6; letter-spacing: .32em; }
.wl-code-input[aria-invalid="true"] { border-color: var(--red); }
.wl-code-row .btn { white-space: nowrap; }
.wl-code-row .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.wl-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; max-width: 52ch; }
.wl-note:empty { display: none; }
.wl-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 8px 0 0; }
.wl-link { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; min-height: 44px; font: 700 .95rem/1.2 var(--body); color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; font-variant-numeric: tabular-nums; }
.wl-link:hover { text-decoration-color: var(--red); }
.wl-link[disabled] { text-decoration: none; color: var(--muted); cursor: default; }
.cta-band .wl-code-input { border-color: var(--ink); background: #FFFDF7; color: var(--ink); }
.cta-band .wl-code-input::placeholder { color: #6A645C; }
.cta-band .wl-note { color: #2A2622; }
.cta-band .wl-link { color: var(--ink); }
.cta-band .wl-link[disabled] { color: #4A443C; }
.cta-band .wl-code-label { color: var(--ink); }

/* ---------- Page (inner pages) */
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-hero .lede { max-width: 56ch; }
.page-hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 8px; border-radius: 4px; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; background: var(--yellow); opacity: .9; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .95rem; margin-top: 8px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 110px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .95rem; }
.toc b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--line); display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 8px; color: var(--fg); text-decoration: none; border-radius: 8px; line-height: 1.35; }
.toc a:hover { background: var(--surface-2); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-text); }
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; }
.callout { border-radius: 18px; padding: 18px 20px; background: var(--surface-2); border-left: 6px solid var(--yellow); margin: 1.4em 0; }
.callout.info { border-left-color: var(--blue); }
.callout.red { border-left-color: var(--red); }
.callout p:last-child { margin-bottom: 0; }
/* Items still being confirmed read as plain text; the banner at the top of each page says so. */
.tbd { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); display: grid; place-items: center; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .steps li::before { background: var(--yellow); color: var(--ink); } }
.path { font-weight: 700; background: var(--surface-2); padding: .1em .45em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Legal hub & support cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--edge); }
.card h2, .card h3 { font-size: 1.25rem; margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent-text); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--butter); color: var(--ink); margin-bottom: 8px; }
.card .ic svg { width: 22px; height: 22px; }

.cards + .callout, .callout + .cta-band { margin-top: 32px; }

/* FAQ */
.faq-wrap { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-group { margin-bottom: 44px; scroll-margin-top: 96px; }
.faq-group > h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.faq-group > h2::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 5px solid var(--c, var(--blr-purple)); flex: none; }
.faq-group:nth-of-type(2) { --c: var(--blr-green); }
.faq-group:nth-of-type(3) { --c: var(--blr-yellow); }
.faq-group:nth-of-type(4) { --c: var(--che-blue); }
.faq-group:nth-of-type(5) { --c: var(--red); }
.faq { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq[open] { border-color: var(--edge); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.06rem; position: relative; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--surface-2); transition: background-color .25s ease; }
/* The plus is a mask in the text colour, so it shows on dark surfaces too. */
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--fg); transition: transform .25s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq[open] summary::before { background-color: var(--yellow); }
.faq[open] summary::after { transform: rotate(45deg); background: var(--ink); }
.faq-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.faq-photos .story b { font-size: 1rem; }
.faq .ans { padding: 0 20px 20px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Partners (/partners): the Founding Partner page and its form */
.page-hero .btn-row { margin-top: 26px; }
.page-hero .hero-note { margin-top: 16px; }
.offer-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.offer-cards .soft { padding: clamp(22px, 3vw, 32px); }
.offer-cards h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0 0 4px; }
.offer-cards .soft > p { color: var(--muted); font-size: 1rem; margin: 0; }
.offer-cards .ticks { margin-top: 20px; }
.offer-cards .ticks span { font-size: .97rem; }
.offer-cards .soft .fine { margin: 20px 0 0; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.offer-cards .soft .fine::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blr-green); flex: none; }
.free-tag { display: inline-block; background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 0 .35em; }

/* The form: the waitlist field idiom (52 px fields, 14 px radius), stacked, two columns from 700px. */
.apply-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pf { border-radius: var(--radius); background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--shadow-pop); padding: clamp(20px, 3vw, 32px); }
.pf h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .2em; }
.pf .lede { font-size: 1.02rem; margin-bottom: 22px; max-width: none; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pf-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.pf-field.wide { grid-column: 1 / -1; }
.pf-field label { font: 700 .95rem/1.3 var(--body); }
.pf-field label small { font-weight: 600; color: var(--muted); }
.pf-field input, .pf-field select { font: 600 1rem/1.2 var(--body); min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--edge); background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
.pf-field select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.pf-field input::placeholder { color: var(--muted); opacity: .75; }
.pf-field input[aria-invalid="true"], .pf-field select[aria-invalid="true"] { border-color: var(--red); }
.pf-hint { font-size: .88rem; color: var(--muted); margin: 0; }
.pf-err { font-size: .9rem; font-weight: 700; color: var(--accent-text); margin: 0; }
.pf-err:empty { display: none; }
.pf-count { font-variant-numeric: tabular-nums; }
.pf-check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.pf-check label { font-weight: 600; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.pf-check.founding { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.pf-check.founding label { font-weight: 700; }
.pf-check.founding label small { display: block; font-weight: 600; color: #4A443C; }
.pf-actions { margin-top: 6px; display: grid; gap: 12px; }
.pf-actions .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.pf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-note { font-size: .9rem; color: var(--muted); margin: 0; }
.pf-thanks[hidden], .pf-form[hidden] { display: none; }
.pf-thanks:focus { outline: none; }
.pf-thanks .thanks { margin-top: 0; max-width: none; }
.pf-thanks p.lede { margin-bottom: 18px; }
.aside h2 { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -.01em; }
.aside .soft { padding: 22px; }
.aside .soft + .soft { margin-top: 14px; }
.aside .soft h3 { font-size: 1.05rem; margin-bottom: 6px; }
.aside .soft p { font-size: .95rem; }
.aside .soft p + p { margin-top: 8px; }
.aside .sample { margin: 14px 0 0; display: grid; gap: 8px; }
.aside .sample span { display: block; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); font-weight: 700; font-size: .95rem; }
.aside .sample span small { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }
.aside .sample span.no { color: var(--muted); }
.aside .sample s { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.partners-faq .faq-group { margin-bottom: 0; }
.partners-faq .faq-group > h2 { margin-bottom: 20px; }
.partners-faq .faq-group:nth-of-type(1) { --c: var(--blr-green); }
.partners-faq .faq .ans ul { margin: 0 0 .6em; padding-left: 1.2em; }
.contact-band .cta-band h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
@media (min-width: 700px) { .pf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .offer-cards, .apply-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pf-actions .btn { width: 100%; } .page-hero .btn-row .btn { width: 100%; } }
@media (prefers-color-scheme: dark) {
  .pf-check input { accent-color: var(--yellow); }
  .pf-check.founding { background: #3B2F10; border-color: #5A4A1E; color: var(--fg); }
  .pf-check.founding label small { color: var(--muted); }
  .free-tag { color: var(--ink); }
}
.pf-sheets { margin: 14px 0 0; font-size: .95rem; }
.pf-sheets a { font-weight: 700; }

/* ---------- Skyline strip above the footer
   The city's line art (generated into index.html by backend/tools/gen_skyline.py) stands on the
   footer's yellow rule. Lines follow the page's light and dark themes; the city follows the
   hero's city toggle with a 400 ms cross-fade. The board on the train alternates English and the
   city's script (3 s each); Robin dips his tail, turns his head, settles and blinks. It moves only
   while the strip has .is-live (site.js: about 20 s after it comes into view, again each time it
   comes back), keeping the site's rule that no motion loops on; otherwise the English frame and
   Robin at rest. Nothing moves with reduced motion or without JS. Below 900 px the board is too
   small for words and shows a lit bar instead. */
.skyline-strip { position: relative; height: clamp(60px, 13.89vw, 200px); color: var(--fg); margin-top: clamp(8px, 2vw, 24px); }
.skyline-strip .skyline { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; transition: opacity .4s ease, visibility 0s 0s; }
.skyline-strip[data-city="blr"] .sky-che, .skyline-strip[data-city="che"] .sky-blr { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.skyline .board-text { animation: sky-frames 6s infinite; }
.skyline .board-text.local { opacity: 0; animation-delay: -3s; }
.skyline .board-bar { display: none; }
.skyline .robin .tail { transform-box: view-box; transform-origin: 0 0; animation: sky-tail 7.5s infinite; }
.skyline .robin .head { transform-box: view-box; transform-origin: 0 0; animation: sky-tilt 8.5s 4s infinite; }
.skyline .robin .wing { animation: sky-settle 9.5s 6s infinite; }
.skyline .robin .eye { transform-box: fill-box; transform-origin: center; animation: sky-blink 5s infinite; }
.skyline-strip:not(.is-live) * { animation: none !important; }
@keyframes sky-frames { 0%, 43.33% { opacity: 1; } 50%, 93.33% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sky-tail {
  0%, 4.93% { transform: none; animation-timing-function: ease-out; }
  1.2%, 6.13% { transform: rotate(-14deg); animation-timing-function: ease-in; }
  3.33%, 8.27%, 100% { transform: none; }
}
@keyframes sky-tilt {
  0% { transform: none; animation-timing-function: ease-in-out; }
  2.59% { transform: rotate(9deg); }
  13.18% { transform: rotate(9deg); animation-timing-function: ease-in-out; }
  16.24%, 100% { transform: none; }
}
@keyframes sky-settle { 0% { transform: none; animation-timing-function: ease-in-out; } 2% { transform: translateY(-2px); animation-timing-function: ease-in-out; } 4%, 100% { transform: none; } }
@keyframes sky-blink { 0%, 4.8%, 100% { transform: none; } 1.2%, 3.6% { transform: scaleY(.1); } }
@media (max-width: 900px) {
  .skyline .board-text { display: none; }
  .skyline .board-bar { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .skyline-strip *, .skyline-strip .skyline { animation: none !important; transition: none !important; }
}

/* ---------- Footer */
.site-footer { background: var(--ink); color: #E8E4DC; padding: clamp(48px, 7vw, 80px) 0 28px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--yellow); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--paper); display: inline-flex; padding: 0; }
.site-footer .brand:hover { text-decoration: none; color: var(--paper); }
.site-footer .brand-word span { color: #FF7A55; }
.site-footer p { color: #CFC6B8; max-width: 34ch; margin-top: 14px; }
.site-footer h2 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #CFC6B8; margin: 6px 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--paper); text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { text-decoration: underline; color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #3A352F; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: #B9B0A3; }
.foot-bottom p { margin: 0; max-width: none; color: inherit; }
.foot-greet span { margin-right: 10px; }

/* ---------- 404 */
.lost { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 100px); }
.lost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pis {
  border-radius: 22px; background: #0B0A09; border: 6px solid #2A2622; padding: 16px 18px; color: #FFB224;
  font: 700 clamp(.95rem, 2.4vw, 1.25rem)/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); text-shadow: 0 0 8px rgba(255, 178, 36, .75); position: relative;
}
.pis-row { display: flex; justify-content: space-between; gap: 12px; }
.pis-row + .pis-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #3A352F; }
.pis .muted { color: #8FD3C8; text-shadow: 0 0 8px rgba(143, 211, 200, .6); }
.pis-msg { min-height: 1.35em; display: block; transition: opacity .35s ease; }
.pis-msg.is-fading { opacity: 0; }
.lost h1 { margin-top: 26px; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.lost-code { display: inline-block; font-family: var(--display); font-size: .95rem; padding: 6px 12px; border-radius: 10px; background: var(--red); color: #fff; letter-spacing: .02em; }
.platform { position: relative; height: 330px; border-radius: 28px; overflow: hidden; background: var(--surface-2); border: 2px solid var(--ink); box-shadow: var(--shadow-pop); }
@media (prefers-color-scheme: dark) { .platform { border-color: var(--edge); } }
.platform .sign { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); background: var(--blue); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 10px; font-size: .95rem; white-space: nowrap; box-shadow: 0 3px 0 #0E2B5C; }
.platform .sign::before, .platform .sign::after { content: ""; position: absolute; top: -18px; width: 3px; height: 18px; background: var(--muted); }
.platform .sign::before { left: 22px; }
.platform .sign::after { right: 22px; }
.platform::before { content: ""; position: absolute; left: 0; right: 0; top: 62%; bottom: 0; background: var(--bg-alt); }
.platform .edge { position: absolute; left: 0; right: 0; top: 62%; height: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, var(--ink) 22px 30px); }
.platform .track { position: absolute; left: 0; right: 0; bottom: 30px; height: 6px; background: #8a8278; box-shadow: 0 22px 0 #8a8278; }
.platform .robin { position: absolute; width: 150px; left: 50%; margin-left: -75px; top: 62px; }
.platform .q { position: absolute; left: calc(50% + 50px); top: 44px; font-family: var(--display); font-size: 2.4rem; color: var(--red); animation: floaty 2.4s ease-in-out infinite; }
.train { position: absolute; bottom: 36px; left: 100%; display: flex; gap: 6px; transition: none; }
.train .car { width: 180px; height: 70px; border-radius: 16px 16px 8px 8px; background: var(--blr-purple); position: relative; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .18); }
.train .car:first-child { border-radius: 40px 16px 8px 8px; }
.train .car::before { content: ""; position: absolute; left: 16px; right: 16px; top: 12px; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, #CFE7F5 0 34px, transparent 34px 44px); }
.train .car::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 6px; background: var(--yellow); }
.platform.arriving .train { animation: train-in 1.6s cubic-bezier(.2, .7, .3, 1) forwards; }
.platform.departing .train { animation: train-out 1.3s cubic-bezier(.6, 0, .8, .4) forwards; }
.platform.departing .robin { animation: hop 1s ease-in forwards; }
@keyframes train-in { from { left: 100%; } to { left: 4%; } }
@keyframes train-out { from { left: 4%; } to { left: -140%; } }
@keyframes hop { 40% { transform: translateY(-30px); } 100% { transform: translate(-300px, 40px); opacity: 0; } }
.lost-actions { margin-top: 26px; }
.quiz { position: relative; margin-top: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.quiz-head h2 { font-size: 1.25rem; margin: 0; letter-spacing: -.01em; }
.quiz-coins { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--butter); color: var(--ink); position: relative; }
.quiz-coins .coin { width: 22px; height: 22px; }
.quiz-coins.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.quiz-q { font-weight: 700; margin: 6px 0 12px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz-opts button { font: 700 1rem/1.2 var(--body); min-height: 48px; padding: 10px; border-radius: 14px; border: 2px solid var(--edge); background: var(--bg); color: var(--fg); cursor: pointer; transition: transform .15s ease, background-color .2s ease; }
.quiz-opts button:hover:not(:disabled) { transform: translateY(-2px); }
.quiz-opts button.right { background: #D7F0DF; border-color: #1E9A4C; color: #155E33; }
.quiz-opts button.wrong { background: #FBDCD3; border-color: var(--red); color: #8A2A10; }
.quiz-opts button:disabled { cursor: default; }
.quiz-fb { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; color: var(--muted); }
.quiz-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.sparkle { position: absolute; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); animation: spark .8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive */
@media (max-width: 1080px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .chip-coins { left: -6px; top: -58px; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .cities, .cta-band, .lost-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .hero-visual { min-height: 0; padding-top: 84px; }
  .hero-robin { width: 112px; right: -18px; top: -84px; }
  .trust, .cards, .also-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual.v2 { min-height: 0; padding-top: 84px; }
  .doc-layout, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .lost-grid > .platform { order: -1; }
  .toc { position: static; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .cta-band .robin { max-width: 180px; order: -1; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .journey { grid-template-columns: 1fr; gap: 8px; }
  .journey::before { left: 35px; right: auto; top: 20px; bottom: 20px; width: 10px; height: auto; background: var(--blr-green); }
  .journey li { display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; text-align: left; padding: 0 0 20px; }
  .journey .stn { margin: 0; grid-row: span 2; }
  .journey p { margin-inline: 0; }
  .games, .trust, .cards, .also-row { grid-template-columns: minmax(0, 1fr); }
  .also-row.soon-row { grid-template-columns: minmax(0, 1fr); }
  .games { gap: 14px; }
  .faq-photos { grid-template-columns: minmax(0, 1fr); }
  /* Cards go compact on phones: the tile beside the title, as in "Also in the app". */
  .trust .soft, .games .soft { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 20px; }
  .trust .soft .tile, .games .soft .tile { margin: 0; grid-row: span 2; }
  /* Phone hero (sheet B): pill, headline, value line, one button, then the card, the note and the glance grid. */
  .hero { padding: 20px 0 40px; }
  .hero .hero-copy { display: contents; }
  .hero-grid { gap: 0; }
  .hero .pill { order: 1; margin-bottom: 14px; justify-self: start; }
  .hero h1 { order: 2; font-size: 2.35rem; margin-bottom: .45em; }
  .hero .lede { display: none; }
  .hero .value { order: 3; margin: 0 0 18px; font-size: 1rem; }
  .value .v-lg { display: none; }
  .value .v-sm { display: block; font-size: .92rem; }
  .hero .btn-row { order: 4; }
  .hero .btn-row .btn { width: 100%; }
  .hero .btn-row .btn-ghost { display: none; }
  .hero-visual.v2 { order: 5; padding: 34px 0 0; margin-top: 10px; display: flex; flex-direction: column; align-items: center; }
  .hero-visual.v2 .phone { width: 300px; transform: none; }
  .hero-visual.v2 .hero-robin { width: 92px; top: -42px; right: -10px; }
  .hero-visual .float-chip { display: none; }
  .city-toggle { position: static; margin: 22px 0 0; display: flex; width: max-content; order: 2; }
  .hero .hero-note { order: 6; margin-top: 14px; }
  .hero-glance { display: block; order: 7; }
  .hero-glance .glance b { font-size: 2.2rem; }
  .features-glance { display: none; }
  .wl, .cta-band .wl { grid-template-columns: minmax(0, 1fr); }
  .wl .btn { width: 100%; }
  .wl-code-row { grid-template-columns: minmax(0, 1fr); }
  .wl-code-row .btn { width: 100%; }
  .thanks { grid-template-columns: minmax(0, 1fr); }
  .quiz-opts { grid-template-columns: 1fr; }
  .platform { height: 250px; }
  .platform .sign { font-size: .85rem; }
  .platform .robin { top: 52px; }
  .platform .robin { width: 120px; margin-left: -60px; }
  .lang-tabs button { flex: 1 1 40%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .exits li { grid-template-columns: 40px 1fr; }
  .exits .badge { grid-column: 2; justify-self: start; }
  .exits .ex { width: 40px; height: 40px; }
}

/* Phones: tables become one card per row, each cell labelled, so nothing is cut off at the edge. */
@media (max-width: 640px) {
  .prose .table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 6px 0; margin-bottom: 12px; }
  .prose td { border: 0; padding: 6px 14px; }
  .prose td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  .prose td:first-child { font-family: var(--display); font-size: 1.05rem; }
  .prose td:first-child::before { display: none; }
  .lines .lname { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .robin .r-eye, .robin .r-wave, .float-chip, .platform .q { animation: none !important; }
  .hero-lines path { stroke-dashoffset: 0; animation: none !important; }
  .hero-lines circle { opacity: 1; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chip-arrive { animation: none !important; }
}

/* Pilot invite (/join/{code}): the code large, the install button and three steps. */
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.join-grid h2 { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -.01em; }
.join-card { border-radius: var(--radius); background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--shadow-pop); padding: clamp(20px, 3vw, 30px); min-width: 0; }
.join-label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.join-code { margin: 0 0 22px; font-family: var(--display); font-size: clamp(2rem, 9vw, 3.1rem); line-height: 1.05; letter-spacing: .04em; overflow-wrap: anywhere; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--butter); color: var(--ink); border: 2px dashed var(--ink); text-align: center; }
.join-card .fine a, .join .callout a { font-weight: 700; color: var(--accent-text); }
.join-card .fine:empty, .join [hidden] { display: none !important; }
@media (max-width: 820px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .join-card .btn-row .btn { width: 100%; } }

@media print {
  .site-header, .site-footer, .toc, .nav-toggle, .hero-lines, .skyline-strip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
}
