/* Tyrotopia landing page (KAN-285). Plain CSS, no build step.
   Look: city wayfinding. Street-sign plates mark each stop, and one school-bus
   yellow route runs down the page from the hero to the end of the line. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17202E;        /* asphalt */
  --ink-2: #46505F;      /* body text on light */
  --ink-3: #5F6873;      /* captions (KAN-377: 5:1 on the page background) */
  --paper: #F7F8F5;      /* sidewalk */
  --park: #E8EFE9;       /* alternate band */
  --sign: #0F6B48;       /* street-sign green */
  --sign-dark: #0B5539;
  --bus: #F5B014;        /* route / school bus */
  --brick: #E8664F;
  --sky: #2E63A8;
  --line: #D6DCD6;
  --on-dark: #E9EDF3;
  --on-dark-2: #A9B4C4;
  --max: 1180px;
  --pad: 24px;
  --route-x: 24px;       /* left edge of the route inside .wrap */
  --route-w: 10px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
[id] { scroll-margin-top: 88px; }

/* ---------- Street-sign plate (logo + stop names) ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px 5px;
  border-radius: 9px;
  background: var(--sign);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff;
  text-decoration: none;
  white-space: nowrap;
}
/* the official logo (green highway sign, Nov 2) */
.logo { display: inline-flex; flex-shrink: 0; border-radius: 12px; }
.logo img { display: block; height: 48px; width: auto; }
.foot-logo { display: block; height: 40px; width: auto; }
.plate-small { font-size: 0.95rem; font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: var(--sign); color: #fff;
  font: 700 1.02rem/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--sign-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-yellow { background: var(--bus); color: var(--ink); }
.btn-yellow:hover { background: #E0A00C; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #F1F4F1; }
.btn-ghost { background: transparent; color: var(--sign); box-shadow: inset 0 0 0 2px var(--sign); }
.btn-ghost:hover { background: rgba(15, 107, 72, .08); color: var(--sign-dark); }
/* KAN-674: live since Nov 15, so the waitlist forms became buttons into the app */
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta + .form-note { max-width: 620px; }
.end-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.end-cta .btn { min-height: 60px; padding: 0 30px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 248, 245, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2); padding: 10px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--bus); }
.top nav { margin-left: auto; }
@media (max-width: 900px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero-facts { margin-top: 18px; color: var(--ink-3); font-size: .98rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { margin-top: 6px; text-align: center; color: var(--ink-3); font-size: .85rem; }
.hero-route { display: block; width: 100%; max-width: var(--max); height: clamp(90px, 12vw, 140px); margin: -40px auto 0; padding: 0 var(--pad); overflow: visible; }
.hero-route { clip-path: inset(0 0 0 0); animation: draw 1.3s cubic-bezier(.6, .1, .2, 1) .3s both; }
.hero-route path { fill: none; stroke: var(--bus); stroke-width: var(--route-w); stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes draw { from { clip-path: inset(0 0 0 76%); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 8px auto 0; }
  .hero-route { display: none; }
}

/* ---------- Waitlist form ---------- */
.waitlist { margin-top: 32px; max-width: 620px; }
.form-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.field { display: grid; gap: 4px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 2px solid #C7CEC8; border-radius: 10px; background: #fff;
  font: 500 1rem/1.2 var(--font); color: var(--ink);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(46, 99, 168, .25); }
.field input[aria-invalid="true"] { border-color: #C2412D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
/* KAN-316: "I'm 13 or older", shown only when "Student, 13 or older" is picked */
.age-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; cursor: pointer; }
.age-check[hidden] { display: none; }
.age-check input { width: 18px; height: 18px; accent-color: currentColor; }
.form-status { margin-top: 8px; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--sign); }
.form-status.err { color: #B23A27; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .fields .btn { width: 100%; } }

/* ---------- Route: the yellow line that runs down the page ---------- */
.route .stop { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.route .stop > .wrap { position: relative; }
@media (min-width: 1024px) {
  .route .stop > .wrap:first-child { padding-left: calc(var(--pad) + 76px); }
  .route .stop > .wrap:first-child::before {
    content: ""; position: absolute; left: var(--route-x); width: var(--route-w);
    top: calc(-1 * clamp(64px, 9vw, 112px)); bottom: calc(-1 * clamp(64px, 9vw, 112px));
    background: var(--bus);
  }
  .route .stop:first-child > .wrap:first-child::before { top: calc(-1 * clamp(64px, 9vw, 112px) - 2px); }
  .stop-head { position: relative; }
  .stop-head::before {
    content: ""; position: absolute; left: calc(-76px + (var(--route-w) / 2) - 15px); top: 2px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; border: 7px solid var(--ink);
  }
  .end .end-grid { position: relative; }
  .end .end-grid::before {
    content: ""; position: absolute; left: calc(-76px + (var(--route-w) / 2) - 22px); top: 4px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bus); border: 8px solid #fff; box-shadow: 0 0 0 4px var(--bus);
  }
  .end > .wrap:first-child::before { bottom: auto !important; height: calc(clamp(64px, 9vw, 112px) + 20px); }
}

/* ---------- Live route: the line paints itself in as you scroll (site.js adds .is-live) ----------
   Without JS, or with reduced motion, the solid line above stays as it was. With .is-live each
   stop's segment becomes a faint dashed lane (::before) and a yellow fill (::after) grows over it;
   site.js sets --fill (0..1) per segment, marks stops .is-reached, and moves the .route-bus dot. */
@media (min-width: 1024px) {
  .route.is-live .stop > .wrap:first-child::before {
    background: repeating-linear-gradient(to bottom, var(--lane) 0 16px, transparent 16px 30px);
  }
  .route.is-live .stop { --lane: rgba(23, 32, 46, .16); }
  .route.is-live .proof, .route.is-live .end { --lane: rgba(233, 237, 243, .22); }
  .route.is-live .stop > .wrap:first-child::after {
    content: ""; position: absolute; left: var(--route-x); width: var(--route-w);
    top: calc(-1 * clamp(64px, 9vw, 112px)); bottom: calc(-1 * clamp(64px, 9vw, 112px));
    background: var(--bus); transform-origin: 50% 0; transform: scaleY(var(--fill, 0));
    will-change: transform; pointer-events: none;
  }
  .route.is-live .stop:first-child > .wrap:first-child::after { top: calc(-1 * clamp(64px, 9vw, 112px) - 2px); }
  .route.is-live .end > .wrap:first-child::after { bottom: auto; height: calc(clamp(64px, 9vw, 112px) + 20px); }
  .route.is-live .proof > .wrap:first-child::before,
  .route.is-live .proof > .wrap:first-child::after { top: calc(-1 * clamp(48px, 6vw, 72px)); bottom: calc(-1 * clamp(48px, 6vw, 72px)); }

  /* stop markers: grey ring until the line arrives, then the ink ring pops in */
  .route.is-live .stop-head::before { z-index: 1; border-color: #C7CEC8; transform: scale(.82); transition: border-color .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .route.is-live .stop.is-reached .stop-head::before { border-color: var(--ink); transform: scale(1); }
  .route.is-live .end .end-grid::before { z-index: 1; background: var(--ink); box-shadow: 0 0 0 4px rgba(233, 237, 243, .3); transition: background-color .3s ease, box-shadow .3s ease; }
  .route.is-live .end.is-reached .end-grid::before { background: var(--bus); box-shadow: 0 0 0 4px var(--bus), 0 0 0 14px rgba(245, 176, 20, .25); }

  /* the "bus": a dot that rides at the tip of the line */
  .route-bus {
    position: fixed; z-index: 15; top: 0; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
    border-radius: 50%; background: var(--bus); border: 4px solid var(--ink);
    box-shadow: 0 0 0 4px rgba(245, 176, 20, .35), 0 6px 14px rgba(23, 32, 46, .25);
    opacity: 0; transition: opacity .2s ease; pointer-events: none;
  }
  .route-bus.is-on { opacity: 1; }
}
@media (max-width: 1023.98px) { .route-bus { display: none; } }

.stop-head { max-width: 760px; }
.stop-head .plate { margin-bottom: 18px; }
.stop h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.04; font-weight: 850; letter-spacing: -0.03em; }
.stop .sub { margin-top: 14px; color: var(--ink-2); font-size: 1.12rem; max-width: 40em; }
.stop h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Proof band ---------- */
.proof { background: var(--ink); color: var(--on-dark); }
.route .proof { padding: clamp(48px, 6vw, 72px) 0; }
.proof-intro { max-width: 46em; color: var(--on-dark-2); font-size: 1.05rem; }
.proof-list { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: clamp(20px, 3vw, 48px); }
.proof-list li { display: grid; gap: 6px; border-top: 2px solid #2E3A4D; padding-top: 18px; }
.proof-list strong { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; font-weight: 900; letter-spacing: -0.03em; color: #fff; }
.proof-list li:last-child strong { color: var(--bus); }
.proof-source { margin-top: 20px; font-size: 0.85rem; color: var(--on-dark-2); }
.proof-list span { color: var(--on-dark-2); max-width: 26em; }
.proof-list strong a { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.proof-list strong a:hover { text-decoration-color: #fff; }
@media (max-width: 800px) { .proof-list { grid-template-columns: 1fr; } }

/* ---------- Tour video ---------- */
.tour-video { margin-top: 32px; }
.tour-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 16px; background: var(--ink); border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(23, 32, 46, .55); }
.tour-video figcaption { margin-top: 12px; color: var(--ink-3); font-size: .95rem; }

/* ---------- How it works ---------- */
.steps { margin-top: 40px; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bus); color: var(--ink); font-weight: 900; font-size: 1.15rem;
}
.steps p { color: var(--ink-2); margin-top: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Try it (compound interest) ---------- */
.try { background: var(--park); }
.sim { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.sim-controls { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 30px; align-content: start; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.slider label { font-weight: 700; }
.slider output { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim input[type=range] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 30%; }
.sim input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--sign) var(--fill), #DCE3DD var(--fill)); }
.sim input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: #DCE3DD; }
.sim input[type=range]::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--sign); }
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 6px solid var(--sign); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sim input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid var(--sign); }
.sim input[type=range]:focus-visible { outline: none; }
.sim input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(46, 99, 168, .45); }
.sim input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(46, 99, 168, .45); }
.sim-note { font-size: .88rem; color: var(--ink-3); }
.sim-result { background: var(--ink); color: var(--on-dark); padding: clamp(24px, 3.5vw, 40px); display: grid; align-content: start; gap: 6px; }
.sim-label { color: var(--on-dark-2); font-weight: 600; }
.sim-total { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.sim-bar { display: flex; height: 16px; margin-top: 22px; border-radius: 99px; overflow: hidden; background: #2E3A4D; }
.sim-bar span { display: block; height: 100%; transition: width .35s ease; }
.bar-in { background: #8FA3BF; }
.bar-growth { background: var(--bus); }
.sim-split { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-split dt { color: var(--on-dark-2); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.sim-split dd { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; color: #fff; }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-in { background: #8FA3BF; }
.key-growth { background: var(--bus); }
.sim-moral { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2E3A4D; color: var(--on-dark); }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }

/* ---------- Around the city: the real Miami map (Rye, Nov 6; drawn like the app's CityMap, see site.js setupCity) ---------- */
.citymap { position: relative; margin-top: 36px; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #DCD5C5; }
.citymap-frame { position: relative; height: clamp(440px, 52vw, 600px); overflow: hidden; background: #DCD5C5; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.citymap-frame.dragging { cursor: grabbing; }
.citymap-frame:focus-visible { outline: 4px solid var(--sky); outline-offset: -4px; border-radius: 16px; }
.city-world { position: absolute; left: 0; top: 0; width: 2900px; height: 1800px; transform-origin: 0 0; will-change: transform; }
.city-art { position: absolute; left: 0; top: 0; width: 2900px; height: 1800px; max-width: none; user-select: none; -webkit-user-drag: none; }
.cm-glow-layer { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.city-life, .city-spots { position: absolute; inset: 0; pointer-events: none; }
.city-spots { z-index: 2; }
.cm-thing { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cm-label { position: absolute; transform: translateX(-50%); height: 24px; line-height: 24px; padding: 0 10px; border-radius: 6px; white-space: nowrap; font: 600 12px/24px var(--font); color: #fff; box-shadow: rgba(6, 41, 31, .2) 0 3px 8px; pointer-events: none; }
.cm-label-street { background: rgb(46, 110, 88); }
.cm-label-water { background: rgb(47, 127, 191); }
.cm-label-place { background: rgba(26, 31, 28, .78); }

.cm-stop { position: absolute; z-index: 3; width: 60px; height: 60px; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 22px/1 var(--font); cursor: pointer; transition: transform .15s ease; }
.cm-stop:hover { transform: scale(1.08); }
.cm-stop:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.cm-stop[aria-pressed="true"] { transform: scale(1.12); }
.cm-stop-next { background: #fff; border: 4px solid #F2D98A; color: #1F5A46; box-shadow: #C9AE5E 0 6px 0, rgba(6, 41, 31, .25) 0 10px 18px, 0 0 0 10px rgba(242, 201, 76, .35); }
.cm-stop-locked { background: #fff; border: 4px solid #fff; color: #9AA59C; box-shadow: #C9CFC9 0 6px 0, rgba(6, 41, 31, .18) 0 10px 18px; }
.cm-stop-final.cm-stop-locked { background: #EFEAFB; box-shadow: #C9BDEB 0 6px 0, rgba(6, 41, 31, .18) 0 10px 18px; }
.cm-stop-final.cm-stop-next { background: #8B6FD6; border-color: #fff; box-shadow: #6B4FC0 0 6px 0, rgba(6, 41, 31, .25) 0 10px 18px, 0 0 0 10px rgba(139, 111, 214, .35); }

.cm-spot { position: absolute; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; pointer-events: auto; }
.cm-spot:hover, .cm-spot:focus-visible, .cm-spot[aria-pressed="true"] { outline: none; }
.cm-spot-label { position: absolute; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--ink); font: 800 15px/1 var(--font); padding: 8px 12px 6px; border-radius: 999px; box-shadow: 0 6px 14px rgba(6, 41, 31, .25); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.cm-spot-kind { font-weight: 600; color: #5B6660; }
.cm-spot:hover .cm-spot-label, .cm-spot:focus-visible .cm-spot-label, .cm-spot[aria-pressed="true"] .cm-spot-label { opacity: 1; }
.cm-marker { position: absolute; width: 44px; height: 56px; margin-left: -22px; pointer-events: none; animation: cm-marker-bob 1.8s ease-in-out infinite alternate; transition: transform .15s ease; }
.cm-marker-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1F5A46; border: 3px solid #F2C94C; box-shadow: 0 0 0 5px rgba(242, 201, 76, .38), 0 0 18px 6px rgba(242, 201, 76, .55), 0 6px 12px rgba(6, 41, 31, .3); }
.cm-marker::after { content: ""; position: absolute; left: 50%; top: 41px; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid #F2C94C; }
.cm-marker-locked .cm-marker-dot { background: #F2F4F2; color: #6B7480; border-color: #C9CFC9; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 6px 12px rgba(6, 41, 31, .25); }
.cm-marker-locked::after { border-top-color: #C9CFC9; }
.cm-spot:hover .cm-marker, .cm-spot:focus-visible .cm-marker, .cm-spot[aria-pressed="true"] .cm-marker { animation: none; transform: translateY(-6px) scale(1.12); }
@keyframes cm-marker-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.cm-glow { animation: cm-glow-in .18s ease-out both; }
.cm-glow-line { fill: none; stroke: #FFE9A3; stroke-width: 2.5; stroke-linejoin: round; opacity: .9; }
.cm-glow-dim .cm-glow-line { stroke: rgba(255, 255, 255, .9); }
@keyframes cm-glow-in { from { opacity: 0; } to { opacity: 1; } }

.cm-walker { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
/* the car's driver, chest up (the avatar art is 120x140: the cut at 112 is mid-chest), seated; mirrored when driving left */
.cm-walker .pc-driver { position: absolute; left: -22px; top: -52px; width: 44px; height: 42px; clip-path: inset(-24px -12px 0 -12px round 0 0 10px 10px); }
.cm-walker .pc-avatar { position: absolute; left: 0; top: 0; width: 44px; height: 52px; }
.cm-walker.pc-left .pc-avatar { transform: scaleX(-1); }
.cm-walker.pc-moving .pc-car { animation: walker-bump .32s ease-in-out infinite alternate; }
@keyframes walker-bump { from { transform: translateY(0); } to { transform: translateY(-2px); } }

.citymap-bar { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: #fff; border-radius: 12px; box-shadow: 0 8px 18px rgba(6, 41, 31, .2); pointer-events: none; }
.citymap-meta { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.citymap-pad { position: absolute; left: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 8px 18px rgba(6, 41, 31, .2); }
.citymap-pad button { display: grid; place-items: center; border: 0; border-radius: 10px; background: #F0F4F1; color: var(--sign); cursor: pointer; }
.citymap-pad button:hover { background: #E1EBE4; }
.citymap-pad svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.citymap-pad [data-pan="up"] { grid-column: 2; grid-row: 1; }
.citymap-pad [data-pan="left"] { grid-column: 1; grid-row: 2; }
.citymap-pad [data-pan="down"] { grid-column: 2; grid-row: 2; }
.citymap-pad [data-pan="right"] { grid-column: 3; grid-row: 2; }
.citymap-hint { position: absolute; left: 188px; bottom: 22px; padding: 8px 12px 6px; background: rgba(255, 255, 255, .92); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.citymap-card { position: absolute; right: 14px; bottom: 14px; width: min(370px, calc(100% - 28px)); padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px rgba(6, 41, 31, .28); }
.card-kicker { font-size: .85rem; font-weight: 700; color: var(--sign); }
.card-title { margin-top: 2px; font-size: 1.3rem; line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }
.card-line { margin-top: 6px; color: var(--ink-2); line-height: 1.45; }
.card-note { margin-top: 8px; font-size: .85rem; color: var(--ink-3); }
.card-note:empty { display: none; }
@media (max-width: 760px) {
  .citymap { background: #fff; }
  .citymap-frame { height: 420px; }
  .citymap-card { position: static; width: auto; border-radius: 0; box-shadow: none; border-top: 2px solid var(--ink); }
  .citymap-hint { display: none; }
  .citymap-pad { bottom: auto; top: calc(420px - 112px); grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(2, 40px); }
}
@media (prefers-reduced-motion: reduce) { .cm-walker .pc-car, .cm-marker { animation: none; } .cm-stop, .cm-spot-label, .cm-marker { transition: none; } .cm-glow { animation: none; } }

.city-legend { margin-top: 18px; }
.legend-title { font-weight: 800; margin-bottom: 10px; }
.city-legend ul { display: flex; flex-wrap: wrap; gap: 8px; }
.city-legend button { min-height: 44px; padding: 0 16px; border: 2px solid #C7CEC8; border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem/1 var(--font); cursor: pointer; }
.city-legend button:hover, .city-legend button[aria-pressed="true"] { border-color: var(--sign); background: #EAF3EE; }

/* ---------- Sneak Peek: real app screens ---------- */
.peek-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.peek-card figure { height: 100%; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.peek-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #DCD5C5; border-bottom: 2px solid var(--ink); }
.peek-card figcaption { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; }
.peek-card figcaption strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.peek-card figcaption span { color: var(--ink-2); line-height: 1.45; }
.peek-note { margin-top: 16px; color: var(--ink-3); font-size: .9rem; }
.peek-clip { margin-top: 28px; }
.peek-clip video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 16px; background: var(--ink); border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(23, 32, 46, .55); }
.peek-clip figcaption { margin-top: 12px; color: var(--ink-3); font-size: .95rem; }
@media (max-width: 1000px) { .peek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .peek-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .peek-card { scroll-snap-align: start; }
}

/* ---------- How a lesson works: a typical finance class vs Tyrotopia ---------- */
.lessons { background: var(--park); }
.lessons-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lesson-route { margin-top: 0; }
.lesson-route-title { font-weight: 800; font-size: 1.1rem; }
.lesson-route ol { margin-top: 18px; position: relative; display: grid; gap: 14px; }
.lesson-route ol::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: var(--bus); }
.lesson-route li { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; }
.lr-n { grid-row: span 3; position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 5px solid var(--ink); font-weight: 900; font-size: .95rem; font-variant-numeric: tabular-nums; }
  .lr-n.lr-wide { font-size: .74rem; letter-spacing: -0.02em; }
.lesson-route li[data-kind="sim"] .lr-n { border-color: var(--sign); }
.lesson-route li[data-kind="case"] .lr-n { border-color: var(--brick); }
.lesson-route li[data-kind="show"] .lr-n { border-color: var(--sky); }
.lesson-route li[data-kind="idea"] .lr-n { border-color: #D99A06; }
.lr-kind { font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.lesson-route strong { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.lr-what { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); line-height: 1.45; }
.compare thead th { border-top: 0; padding-top: 18px; padding-bottom: 14px; }
.compare tbody th { font-weight: 800; width: 24%; }
.compare td { color: var(--ink-2); }
.compare .col-old, .compare .col-new { font-size: 1.05rem; font-weight: 800; }
.compare .col-old::before, .compare .col-new::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: 0; }
.compare .col-old { color: var(--ink-3); }
.compare .col-old::before { background: #B8C0BA; }
.compare .col-new { color: var(--sign); }
.compare .col-new::before { background: var(--sign); }
.compare td:last-child, .compare thead th:last-child { background: #F1F8F3; color: var(--ink); }
@media (max-width: 1023px) { .lessons-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { border-top: 1px solid var(--line); padding: 14px 16px; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare td { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #F4F6F4; }
  .compare td:last-child { background: #EAF4EE; }
  .compare td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 800; color: var(--ink-3); margin-bottom: 2px; }
  .compare td:last-child::before { color: var(--sign); }
}

/* ---------- For schools ---------- */
.schools-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--sign); box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; }
.checks p { color: var(--ink-2); margin-top: 4px; }
.promise { background: var(--sign); color: #fff; border-radius: 16px; padding: 28px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px #fff; }
.promise h3 { font-size: 1.35rem; }
.promise ul { margin: 14px 0 22px; display: grid; gap: 8px; }
.promise li { padding-left: 22px; position: relative; }
.promise li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--bus); }
.promise .btn { width: 100%; }
.promise-note { margin-top: 10px; font-size: .9rem; color: #CFE6DA; text-align: center; }
@media (max-width: 900px) { .schools-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { background: var(--park); }
.people { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); }
.people img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #D3DCD5; }
.people h3 { margin-top: 14px; }
.people p { color: var(--ink-2); }
.people a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--sky); text-underline-offset: 4px; padding: 6px 0; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .people { grid-template-columns: 1fr; max-width: 340px; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 820px; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 800; font-size: 1.15rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* ---------- End of the line ---------- */
.end { background: var(--ink); color: var(--on-dark); }
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.end h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.end .sub { color: var(--on-dark-2); }
.end .sub a { color: #fff; font-weight: 700; }
.waitlist-dark { margin-top: 0; }
.waitlist-dark .form-title { color: #fff; }
.waitlist-dark .field > span { color: var(--on-dark-2); }
.waitlist-dark .field input, .waitlist-dark .field select { border-color: #3A475C; }
.waitlist-dark .fields { grid-template-columns: 1fr 1fr; }
.waitlist-dark .fields .btn { grid-column: 1 / -1; }
.waitlist-dark .form-note { color: var(--on-dark-2); }
.waitlist-dark .form-status.ok { color: var(--bus); }
.waitlist-dark .form-status.err { color: #FF9C8A; }
@media (max-width: 900px) { .end-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .waitlist-dark .fields { grid-template-columns: 1fr; } }

/* ---------- Joined: the check animation (site.js makeDone) ---------- */
.wl-done[hidden] { display: none; }
.waitlist.is-done > :not(.wl-done):not(.form-status) { display: none; }
.waitlist.is-done .form-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wl-done { padding: 6px 0 4px; }
.wl-done-row { display: flex; align-items: center; gap: 22px; }
.wl-check { position: relative; width: 84px; height: 84px; flex: none; }
.wl-check svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.wl-check-bg { fill: var(--sign); transform-origin: 46px 46px; transform: scale(0); }
.wl-check-mark { fill: none; stroke: #fff; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 64; stroke-dashoffset: 64; }
.wl-ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #3FA35F; opacity: 0; }
.wl-bit { position: absolute; left: 50%; top: 50%; margin: -4px 0 0 -4px; width: 8px; height: 8px; opacity: 0; pointer-events: none; }
.wl-done-text { display: grid; gap: 6px; min-width: 0; }
.wl-done-title { margin: 0; font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); outline: none; }
.wl-okline { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.35; color: var(--sign); }
.wl-roleline { margin: 16px 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.wl-roleline:empty { display: none; }
.wl-again { appearance: none; border: 0; background: none; margin-top: 12px; padding: 6px 0; font: inherit; font-weight: 700; color: var(--sign); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wl-rise { opacity: 0; }
.wl-done.play .wl-check-bg { animation: wl-pop .55s cubic-bezier(.2, 1.6, .4, 1) .05s forwards; }
.wl-done.play .wl-check-mark { animation: wl-draw .42s cubic-bezier(.5, 0, .2, 1) .42s forwards; }
.wl-done.play .wl-check svg { animation: wl-settle .5s ease-out .85s; }
.wl-done.play .wl-ripple { animation: wl-ripple .95s ease-out .4s forwards; }
.wl-done.play .wl-ripple.r2 { animation-delay: .62s; }
.wl-done.play .wl-bit { animation: wl-burst 1s cubic-bezier(.1, .75, .25, 1) .45s forwards; }
.wl-done.play .wl-rise { animation: wl-rise .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.62s + var(--i) * .09s); }
@keyframes wl-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
@keyframes wl-settle { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.07); } }
@keyframes wl-ripple { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.5); } }
@keyframes wl-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.55); }
}
@keyframes wl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.waitlist-dark .wl-check-bg { fill: var(--bus); }
.waitlist-dark .wl-check-mark { stroke: var(--ink); }
.waitlist-dark .wl-ripple { border-color: var(--bus); }
.waitlist-dark .wl-done-title { color: #fff; }
.waitlist-dark .wl-okline, .waitlist-dark .wl-again { color: var(--bus); }
.waitlist-dark .wl-roleline { color: var(--on-dark-2); }
@media (max-width: 480px) { .wl-done-row { gap: 16px; } .wl-check { width: 72px; height: 72px; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid #2E3A4D; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 28px; padding-bottom: 40px; font-size: .92rem; }
.foot-row p:last-child { margin-left: auto; display: flex; gap: 18px; }
.foot a { color: var(--on-dark); text-underline-offset: 3px; }
/* Nov 10: the release this page is from (the build fills in %TYROTOPIA_VERSION%, vite.config.ts landingVersion) */
.foot-version { font: 500 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-route { animation: none; }
  .sim-bar span, .btn, .faq-list summary::after { transition: none; }
  .wl-check-bg { transform: none; animation: none !important; }
  .wl-check-mark { stroke-dashoffset: 0; animation: none !important; }
  .wl-check svg { animation: none !important; }
  .wl-ripple, .wl-bit { display: none; }
  .wl-rise { opacity: 1; animation: none !important; }
}

/* ---------- KAN-453: the official launch (bar on top + badge over the headline) ---------- */
.launch-bar { background: var(--sign); color: #fff; font-size: 0.95rem; }
.launch-row { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.launch-row p { margin: 0; }
.launch-row strong { color: #FFE08A; font-weight: 800; } /* KAN-377: 5:1 on the green bar (the bus yellow was 3.5:1) */
.launch-days { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; white-space: nowrap; }
.launch-row a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.launch-row a:focus-visible { outline: 3px solid var(--bus); outline-offset: 2px; border-radius: 4px; }
.launch-badge { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--bus); color: var(--ink); font-weight: 800; font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; }
