/* RouteFellow landing page. Colours follow the apps: chalkboard teal, school-van yellow, notebook paper. */
:root {
  --ink: #162f38;
  --navy: #19354a;
  --muted: #51676d;
  --paper: #fbfaf5;
  --card: #ffffff;
  --line: #d8e3dc;
  --rule: #e3ece6;
  --teal: #086d60;
  --teal-hover: #065a4f;
  --deep: #123f3a;
  --mint: #dff3e8;
  --yellow: #f0c65c;
  --yellow-deep: #e0a92e;
  --amber: #b45309;
  --pen: #c8553d;
  --map: #e4ece2;
  --shadow: 0 18px 40px -18px rgba(22, 47, 56, 0.35);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; border-radius: 6px; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--teal); letter-spacing: 0; font-size: 1.12em; white-space: nowrap; }
.eyebrow { font: 700 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--navy); font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--navy); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn-xl { min-height: 58px; padding: 0 28px; font-size: 1.08rem; border-radius: 16px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-hover); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); }

/* Notebook paper and the other page backgrounds */
.paper { background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--paper); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px); }
.tint { background: var(--mint); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 880px; }

/* Things that rise into place when they scroll into view */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ───────── Top bar ───────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 245, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.brand b { color: var(--teal); font-weight: 800; }
.brand.light { color: #fff; }
.brand.light b { color: var(--yellow); }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 0.96rem; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.links a:not(.btn):hover { background: var(--mint); color: var(--teal); }
.links-cta { display: none; }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--navy); background: #fff; cursor: pointer; padding: 0; position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform 0.25s, opacity 0.2s, top 0.25s; }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21.5px; } .burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded='true'] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }
.progress { position: relative; height: 8px; background: var(--navy); }
.progress-road { position: absolute; inset: 3px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 12px, transparent 12px 24px); opacity: 0.55; }
.progress-van { position: absolute; bottom: 1px; left: 0; transform: translateX(calc(var(--p, 0) * (100vw - 34px))); will-change: transform; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.bell { display: inline-block; animation: ring 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
.mark { position: relative; white-space: nowrap; color: var(--teal); }
.mark svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.mark path { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s 0.7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); margin-top: 22px; max-width: 54ch; }
.lead b { color: var(--ink); background: linear-gradient(transparent 62%, rgba(240, 198, 92, 0.6) 62%); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.ticks li::before { content: '✓'; color: var(--pen); font: 700 1.3em var(--hand); margin-right: 6px; }
.doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; transition: transform 0.4s ease-out; opacity: 0.9; }
.d-plane { width: 92px; top: 7%; left: 46%; animation: float 7s ease-in-out infinite; }
.d-pencil { width: 130px; bottom: 9%; left: 39%; rotate: -24deg; animation: float 8s 1s ease-in-out infinite; }
.d-abc { width: 110px; top: 6%; right: 3%; rotate: 8deg; }
.d-star { width: 46px; top: 46%; right: 2.5%; animation: spin 14s linear infinite; }
.d-ruler { width: 170px; bottom: 15%; right: -44px; rotate: -58deg; opacity: 0.8; }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes spin { to { rotate: 360deg; } }

.hero-art { position: relative; justify-self: center; padding: 10px 40px 0; }
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 300 / 590; background: var(--navy); border-radius: 44px; padding: 10px; box-shadow: var(--shadow), 0 0 0 2px #0d2030; rotate: 3deg; overflow: hidden; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; border-radius: 12px; background: var(--navy); translate: -50% 0; z-index: 3; }
.phone::before { content: ''; position: absolute; inset: 10px; border-radius: 34px; background: var(--map); }
.phone-map { position: relative; width: 100%; height: 76%; border-radius: 34px 34px 0 0; }
.phone-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 26px 26px 34px 34px; padding: 18px 18px 20px; box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.3); }
.sheet-k { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.sheet-v { font: 800 1.25rem/1.3 var(--display); white-space: nowrap; }
.live { display: inline-block; margin-right: 6px; vertical-align: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(8, 109, 96, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(8, 109, 96, 0); } }
.sheet-btn { display: block; text-align: center; margin-top: 12px; padding: 13px; border-radius: 14px; background: var(--yellow); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.toast { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 5px 0 var(--navy); font-size: 0.88rem; line-height: 1.25; opacity: 0; animation: toast 11s infinite; }
.toast b { display: block; font-weight: 700; } .toast small { color: var(--muted); }
.ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.ico.ok { background: var(--mint); color: var(--teal); } .ico.sch { background: #fdf1e6; } .ico.home { background: #fbeceb; color: var(--pen); }
.t1 { top: 12%; left: -6px; animation-delay: 1s; } .t2 { top: 40%; right: -10px; animation-delay: 4.6s; } .t3 { top: 64%; left: -14px; animation-delay: 8.2s; }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px) scale(0.92); } 4%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-10px); } }
.hero-road { position: relative; height: 54px; margin-top: clamp(28px, 5vw, 56px); background: var(--navy); }
.hero-road i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 68px); animation: road 1.4s linear infinite; }
@keyframes road { to { background-position: -68px 0; } }

/* ───────── The scroll story ───────── */
.journey { height: 760vh; position: relative; background: var(--deep); color: #fff; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: calc(var(--nav-h) + 8px); overflow: hidden; background: radial-gradient(1200px 500px at 20% 10%, rgba(255, 255, 255, 0.06), transparent 60%), var(--deep); }
.stage-in { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.journey .eyebrow { color: var(--yellow); }
.rail { display: flex; align-items: center; margin: 4px 0 26px; }
.rail li { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.18); position: relative; border-radius: 2px; }
.rail li:last-child { flex: 0; }
.rail li::before { content: ''; position: absolute; left: -2px; top: 50%; width: 14px; height: 14px; border-radius: 50%; translate: -50% -50%; background: var(--deep); border: 3px solid rgba(255, 255, 255, 0.35); transition: 0.3s; z-index: 1; }
.rail li::after { content: ''; position: absolute; inset: 0; background: var(--yellow); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.rail li.done::before, .rail li.now::before { background: var(--yellow); border-color: var(--yellow); }
.rail li.now::before { box-shadow: 0 0 0 6px rgba(240, 198, 92, 0.25); scale: 1.2; }
.steps { position: relative; min-height: 250px; }
.step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(18px); transition: opacity 0.15s, transform 0.15s; pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.4s 0.14s, transform 0.4s 0.14s; }
.step-n { font: 700 1.5rem/1 var(--hand); color: var(--yellow); display: block; margin-bottom: 8px; }
.step h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.step p { margin-top: 14px; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; max-width: 40ch; }
.notice { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 18px 10px 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); max-width: 100%; }
.notice.pop { animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: translateY(16px) scale(0.9); opacity: 0; } }
.notice-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; font-style: normal; font-size: 1.25rem; flex: none; }
.notice small { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.notice b { font-weight: 700; line-height: 1.25; display: block; }
.mapcard { position: relative; background: var(--map); border: 6px solid #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); max-height: calc(100svh - var(--nav-h) - 56px); aspect-ratio: 800 / 520; justify-self: center; width: 100%; }
#jmap { width: 100%; height: 100%; }
#jmap text { font-family: var(--body); }
.clock { color: var(--ink); position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 0.95rem; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4); }
.kid-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 0.9s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-18deg); } to { transform: rotate(24deg); } }
.skip-tag { transition: opacity 0.35s, transform 0.35s; transform-box: fill-box; transform-origin: 50% 100%; }
.skip-tag.off { opacity: 0; transform: scale(0.6); }

/* ───────── Feature cards (index cards pinned to the page) ───────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: var(--card); border: 2px solid var(--navy); border-radius: 18px; padding: 30px 24px 24px; box-shadow: 0 6px 0 var(--navy); rotate: var(--tilt, 0deg); transition: rotate 0.25s, translate 0.25s, box-shadow 0.25s, opacity 0.7s var(--d, 0s), transform 0.7s var(--d, 0s); background-image: linear-gradient(var(--pen), var(--pen)); background-size: 100% 2px; background-position: 0 76px; background-repeat: no-repeat; }
.card:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 12px 0 var(--navy); }
.pin { position: absolute; top: -11px; left: 50%; width: 20px; height: 20px; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 30%, #f6a08e, var(--pen) 60%); border: 2px solid var(--navy); }
.card-ico { font-size: 1.8rem; display: block; height: 44px; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Chalkboards */
.board { position: relative; background: radial-gradient(900px 300px at 30% 0, rgba(255, 255, 255, 0.07), transparent 70%), var(--deep); color: #fff; border: 12px solid #b98b55; border-radius: 22px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), inset 0 0 60px rgba(0, 0, 0, 0.25), var(--shadow); padding: clamp(24px, 4vw, 48px); }
.chalk-k { font: 700 1.5rem/1 var(--hand); color: var(--yellow); margin-bottom: 8px; }
.chalk-p { color: rgba(255, 255, 255, 0.8); margin-top: 10px; }
.demo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.demo h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.kids { display: grid; gap: 10px; margin-top: 22px; }
.kid-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 2px dashed rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: 0.2s; min-height: 60px; }
.kid-btn:hover { background: rgba(255, 255, 255, 0.12); }
.face { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: var(--navy); display: grid; place-items: center; font: 800 1.05rem var(--display); flex: none; transition: filter 0.2s; }
.kid-n { font-weight: 700; line-height: 1.2; flex: 1; } .kid-n small { display: block; font-weight: 500; opacity: 0.7; font-size: 0.8rem; }
.kid-btn em { font-style: normal; font-weight: 700; font-size: 0.82rem; padding: 7px 12px; border-radius: 999px; background: var(--mint); color: var(--teal); white-space: nowrap; }
.kid-btn:not(.on) { border-style: solid; border-color: rgba(255, 255, 255, 0.15); }
.kid-btn:not(.on) .face { filter: grayscale(1) opacity(0.5); }
.kid-btn:not(.on) .kid-n { text-decoration: line-through; opacity: 0.6; }
.kid-btn:not(.on) em { background: #fdf1e6; color: var(--amber); }
.demo-map svg { width: 100%; }
.demo-map text { font-family: var(--hand); }
.demo-sum { text-align: center; font: 700 1.7rem/1 var(--hand); color: var(--yellow); margin-top: 6px; }

/* ───────── Three apps ───────── */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.app { background: #fff; border-radius: 24px; padding: 26px; border: 2px solid var(--navy); box-shadow: 0 6px 0 var(--navy); }
.app h3 { margin: 22px 0 8px; } .app p { color: var(--muted); font-size: 0.98rem; }
.mock { height: 210px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); overflow: hidden; position: relative; }
.browser .bar { height: 26px; background: #eef0ee; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9d6ce; }
.b-body { display: flex; height: calc(100% - 26px); }
.b-side { width: 28%; padding: 12px 10px; display: grid; gap: 8px; align-content: start; border-right: 2px solid var(--line); background: #fff; }
.b-side b { height: 10px; border-radius: 5px; background: var(--line); } .b-side b:first-child { background: var(--teal); width: 70%; }
.b-map, .mp-map { flex: 1; background: linear-gradient(90deg, transparent 48%, #fff 48% 56%, transparent 56%), linear-gradient(transparent 40%, #fff 40% 50%, transparent 50%), var(--map); position: relative; }
.dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); }
.v1 { top: 36%; animation: drive-x 6s ease-in-out infinite alternate; } .v2 { left: 48%; animation: drive-y 5s ease-in-out infinite alternate; } .v3 { top: 36%; left: 70%; animation: drive-x2 7s ease-in-out infinite alternate; }
@keyframes drive-x { from { left: 6%; } to { left: 40%; } } @keyframes drive-x2 { from { left: 60%; } to { left: 88%; } } @keyframes drive-y { from { top: 8%; } to { top: 78%; } }
.mini-phone { width: 150px; margin-inline: auto; border: 5px solid var(--navy); border-radius: 22px; background: #fff; display: flex; flex-direction: column; padding: 0 0 8px; }
.mp-map { flex: 1; min-height: 70px; }
.mp-row { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.mp-row i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); flex: none; }
.mp-row em { margin-left: auto; font-style: normal; color: var(--teal); background: var(--mint); padding: 2px 6px; border-radius: 8px; font-size: 0.6rem; }
.mp-row.big { font-size: 0.74rem; padding: 8px; white-space: nowrap; } .mp-row.big i { background: var(--pen); }
.mp-btn { margin: 8px 8px 0; text-align: center; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.7rem; padding: 9px; border-radius: 10px; }
.mp-btn.ghost { background: var(--yellow); color: var(--navy); }
.mp-van { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); left: 48%; animation: drive-y 5s ease-in-out infinite alternate; }

/* ───────── Who it's for ───────── */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { font: 700 1rem var(--body); padding: 12px 18px; min-height: 50px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; transition: 0.2s; }
.tab:hover { background: var(--mint); }
.tab.on { background: var(--navy); color: #fff; box-shadow: 0 4px 0 var(--yellow-deep); }
.panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(20px, 4vw, 56px); align-items: center; background: #fff; border: 2px solid var(--navy); border-radius: 26px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 6px 0 var(--navy); }
.panel[hidden] { display: none; }
.panel.on { animation: panel 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes panel { from { opacity: 0; transform: translateY(14px); } }
.panel.on svg { animation: build 0.7s cubic-bezier(0.2, 1.3, 0.4, 1); transform-origin: 50% 100%; }
@keyframes build { from { transform: scale(0.8) translateY(20px); opacity: 0; } }
.panel h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.list { margin-top: 18px; display: grid; gap: 12px; }
.list li { padding-left: 34px; position: relative; color: var(--muted); }
.list li::before { content: '✓'; position: absolute; left: 4px; top: -6px; color: var(--pen); font: 700 1.7rem var(--hand); }
.list b { color: var(--ink); }

/* ───────── Safety ───────── */
.chalkwall { background: #efe9dc; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 14px 14px; }
.board.big { padding-bottom: clamp(48px, 6vw, 72px); }
.chalk-h { font: 700 clamp(2.6rem, 6vw, 4.4rem) / 1 var(--hand); letter-spacing: 0; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 34px; }
.rule { display: flex; gap: 16px; }
.num { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px dashed var(--yellow); color: var(--yellow); display: grid; place-items: center; font: 700 1.6rem var(--hand); }
.rule h3 { font: 700 1.75rem/1.1 var(--hand); letter-spacing: 0; }
.rule p { color: rgba(255, 255, 255, 0.8); margin-top: 6px; font-size: 0.98rem; }
.tray { position: absolute; left: 6%; right: 6%; bottom: -12px; height: 14px; background: #a37845; border-radius: 4px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.ch { position: absolute; bottom: 14px; height: 9px; width: 46px; border-radius: 4px; } .ch.w { left: 12%; background: #fff; rotate: -3deg; } .ch.y { left: calc(12% + 58px); background: var(--yellow); width: 30px; }
.duster { position: absolute; right: 10%; bottom: 14px; width: 76px; height: 22px; border-radius: 5px; background: linear-gradient(#8a5a3a 55%, #e9e2d0 55%); }

/* ───────── Pricing (pages from a school notebook) ───────── */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.note { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 2px solid var(--navy); border-radius: 6px 6px 20px 20px; padding: 46px 26px 26px 44px; box-shadow: 0 6px 0 var(--navy); background-image: linear-gradient(90deg, transparent 31px, rgba(200, 85, 61, 0.45) 31px 33px, transparent 33px), repeating-linear-gradient(to bottom, transparent 0 31px, #dde9f1 31px 32px); background-position: 0 0, 0 14px; transition: translate 0.25s, box-shadow 0.25s, opacity 0.7s var(--d, 0s), transform 0.7s var(--d, 0s); }
.note:hover { translate: 0 -8px; box-shadow: 0 14px 0 var(--navy); }
.spiral { position: absolute; top: -12px; left: 18px; right: 18px; height: 30px; background: radial-gradient(circle at 50% 76%, var(--paper) 0 5px, transparent 5.5px), linear-gradient(90deg, transparent calc(50% - 2.5px), #7b8a90 calc(50% - 2.5px) calc(50% + 2.5px), transparent calc(50% + 2.5px)); background-size: 26px 30px, 26px 20px; background-repeat: repeat-x; }
.note-tag { font: 700 2rem/1 var(--hand); color: var(--teal); }
.amount { font: 800 clamp(2.3rem, 4vw, 3.1rem) / 1 var(--display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.amount small { font-size: 0.42em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.amount span { font: 600 0.95rem var(--body); color: var(--muted); letter-spacing: 0; }
.amount mark { background: linear-gradient(transparent 55%, var(--yellow) 55% 92%, transparent 92%); color: inherit; padding: 0 4px; }
.note-p { color: var(--muted); font-size: 0.98rem; } .note-p b { color: var(--ink); }
.red-ticks { display: grid; gap: 7px; margin: 6px 0 14px; flex: 1; align-content: start; }
.red-ticks li { padding-left: 30px; position: relative; font-weight: 600; font-size: 0.98rem; }
.red-ticks li::before { content: '✓'; position: absolute; left: 0; top: -8px; color: var(--pen); font: 700 1.8rem var(--hand); }
.note.best { background-color: #fffdf2; scale: 1.03; z-index: 1; }
.sticker { position: absolute; top: -26px; right: -18px; width: 104px; height: 104px; display: grid; place-items: center; rotate: 12deg; animation: wobble 4s ease-in-out infinite; }
.sticker svg { position: absolute; inset: 0; animation: spin 30s linear infinite; }
.sticker b { position: relative; font: 700 2.1rem/0.8 var(--hand); color: var(--pen); margin-top: -8px; }
.sticker small { position: absolute; bottom: 24px; font: 700 0.62rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
@keyframes wobble { 50% { rotate: 6deg; } }
.includes { margin-top: 34px; background: #fff; border: 2px dashed var(--navy); border-radius: 20px; padding: 24px 28px; }
.includes ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; margin-top: 14px; }
.includes li { font-weight: 600; padding-left: 30px; position: relative; }
.includes li::before { content: '✓'; position: absolute; left: 0; top: -8px; color: var(--teal); font: 700 1.8rem var(--hand); }
.pass { margin-top: 22px; display: flex; align-items: center; gap: 22px; background: var(--deep); color: #fff; border-radius: 20px; padding: 0 26px 0 0; overflow: hidden; }
.pass-stub { align-self: stretch; display: grid; place-items: center; padding: 22px 14px; background: var(--yellow); color: var(--navy); border-right: 3px dashed var(--deep); }
.pass-stub span { writing-mode: vertical-rl; rotate: 180deg; font: 800 0.95rem var(--display); letter-spacing: 0.18em; }
.pass-body { flex: 1; padding: 22px 0; } .pass-body p { color: rgba(255, 255, 255, 0.82); margin-top: 4px; } .pass-body b { color: var(--yellow); }
.pass .btn { border-color: #0b2622; box-shadow: 0 4px 0 #0b2622; }
.fine { margin-top: 16px; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ───────── Questions ───────── */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 2px solid var(--navy); border-radius: 16px; box-shadow: 0 4px 0 var(--navy); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 700 1.08rem/1.35 var(--body); position: relative; min-height: 60px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '✋'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.3rem; transition: rotate 0.3s, translate 0.3s; transform-origin: 50% 90%; }
.faq details[open] summary::after { rotate: -20deg; translate: 0 -70%; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details[open] p { animation: panel 0.35s ease-out; }

/* ───────── Contact ───────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.reach { margin-top: 30px; display: grid; gap: 16px; }
.reach li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.reach li > span { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font-size: 1.3rem; flex: none; box-shadow: 0 3px 0 var(--navy); }
.reach small { display: block; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.reach a { color: var(--teal); }
.form { position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 6px 6px 22px 22px; box-shadow: 0 6px 0 var(--navy); padding: 44px clamp(20px, 3vw, 32px) 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { font: 500 1.05rem var(--body); color: var(--ink); padding: 14px; min-height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(8, 109, 96, 0.2); background: #fff; }
.form .bad { border-color: var(--pen); }
.form-note { min-height: 1.4em; font-weight: 600; color: var(--teal); }
.form-note.err { color: var(--pen); }

/* ───────── Footer ───────── */
.foot { background: var(--deep); color: rgba(255, 255, 255, 0.82); position: relative; }
.foot-road { position: relative; height: 60px; background: var(--navy); overflow: hidden; }
.foot-road::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 68px); }
.foot-road svg { display: none; }
.foot-van { position: absolute; bottom: 8px; left: 0; z-index: 1; animation: cross 16s linear infinite; }
@keyframes cross { from { transform: translateX(-80px); } to { transform: translateX(100vw); } }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.foot-in p { margin-top: 14px; max-width: 32ch; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav b { color: var(--yellow); font: 700 1.5rem/1 var(--hand); margin-bottom: 4px; }
.foot nav a { text-decoration: none; padding: 4px 0; } .foot nav a:hover { color: #fff; text-decoration: underline; }
.copy { text-align: center; padding: 18px 20px 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; }

/* ───────── Tablets ───────── */
@media (max-width: 1080px) {
  .links { position: fixed; inset: calc(var(--nav-h) + 8px) 0 auto; flex-direction: column; gap: 4px; margin: 0; padding: 14px 20px 24px; background: var(--paper); border-bottom: 3px solid var(--navy); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.35); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: 0.25s; max-height: calc(100svh - var(--nav-h)); overflow: auto; }
  .links.open { transform: none; opacity: 1; visibility: visible; }
  .links a:not(.btn) { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .links-cta { display: inline-flex; margin-top: 14px; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .cards, .trio { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .note.best { scale: 1; order: -1; }
  .stage-in { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .stage { align-items: start; }
  .mapcard { order: -1; max-height: 46svh; width: auto; max-width: 100%; border-width: 4px; border-radius: 22px; }
  .story { display: grid; }
  .story > .eyebrow { display: none; }
  .rail { margin: 4px 8px 14px; }
  .steps { min-height: 190px; }
  .step-n { font-size: 1.25rem; margin-bottom: 4px; }
  .step p { margin-top: 8px; font-size: 1rem; max-width: none; }
  .notice { justify-self: start; }
}

/* ───────── Phones ───────── */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .brand { font-size: 1.2rem; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { padding: 0 18px; margin-top: 8px; }
  .phone { width: min(250px, 66vw); }
  .toast { font-size: 0.78rem; padding: 8px 10px 8px 8px; border-radius: 13px; }
  .ico { width: 28px; height: 28px; }
  .t1 { left: -18px; } .t2 { right: -18px; } .t3 { left: -18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .d-abc, .d-ruler, .d-star { display: none; }
  .d-plane { width: 44px; left: auto; right: 3%; top: 57%; }
  .sheet-v { font-size: 1.05rem; }
  .phone-sheet { padding: 14px 14px 16px; }
  .d-pencil { display: none; }
  .journey { height: 700vh; }
  .stage { padding-top: calc(var(--nav-h) + 16px); }
  .mapcard { width: 100%; max-height: none; aspect-ratio: auto; height: min(44svh, 86vw); }
  .clock { top: 8px; left: 8px; padding: 4px 10px 4px 6px; font-size: 0.8rem; }
  .steps { min-height: 215px; }
  .step h2 { font-size: 1.6rem; }
  .step p { font-size: 0.98rem; }
  .notice { padding: 8px 14px 8px 8px; border-radius: 14px; font-size: 0.92rem; }
  .notice-ico { width: 36px; height: 36px; }
  .cards, .trio, .rules, .includes ul, .contact, .foot-in { grid-template-columns: 1fr; }
  .card { rotate: 0deg; }
  .demo, .panel { grid-template-columns: 1fr; }
  .board { border-width: 8px; border-radius: 16px; }
  .panel svg { max-width: 240px; margin-inline: auto; order: -1; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .sticker { right: -6px; width: 88px; height: 88px; }
  .pass { flex-direction: column; align-items: stretch; padding: 0 0 22px; gap: 0; text-align: center; }
  .pass-stub { padding: 10px; border-right: 0; border-bottom: 3px dashed var(--deep); }
  .pass-stub span { writing-mode: horizontal-tb; rotate: 0deg; }
  .pass-body { padding: 18px 20px; }
  .pass .btn { margin-inline: 20px; }
  .foot-in { padding: 40px 0 28px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .mapcard { height: 36svh; }
  .steps { min-height: 200px; }
}

/* People who ask their phone for less movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .toast { opacity: 1; }
  .mark path { stroke-dashoffset: 0; }
}
