/* Cobito · light learning pages · v3 "calm skeleton + wow layer"
   Skeleton (v2): answer first, one reading column, H2 sections, everything readable without JS.
   Wow layer: a living paper diorama on top, the phrase card as the homepage's price tag on a string,
   Say it with the scene reacting, syllables lit by the audio, a scroll-scrubbed memory picture,
   a 3-turn stall dialogue, variant tags, a signpost and a night-town panel. One living element per section.
   One accent (blue). Dale terracotta on tiny details. Fonts: Unbounded + Atkinson Hyperlegible. */

@font-face {
  font-family: 'Unbounded'; src: url('fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 200 900; font-display: optional; /* preloaded: almost always ready before first paint; never swaps late (no CLS) */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Atkinson Hyperlegible (latin, Google Fonts files, preloaded in each page). font-display: optional — it is used when it is
   ready by first paint and never swaps in late, so body text cannot re-wrap (CLS). Self-host the same two files before launch. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: optional; src: url(fonts/atkinson-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: optional; src: url(fonts/atkinson-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallback so the late Atkinson swap does not shift the page (CLS) */
@font-face { font-family: 'Unbounded Fallback'; font-weight: 100 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); size-adjust: 128%; ascent-override: 77.3%; descent-override: 18.8%; line-gap-override: 0%; }
@font-face { font-family: 'Atkinson Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 99.5%; ascent-override: 95.5%; descent-override: 29.2%; line-gap-override: 0%; }
@font-face { font-family: 'Atkinson Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); size-adjust: 100.5%; ascent-override: 94.5%; descent-override: 28.9%; line-gap-override: 0%; }

:root {
  --paper: #FBF6EC; --card: #FFFCF5; --line: #E6DCCB; --edge: #D9CDBB;
  --ink: #0F1A2B; --ink-2: #4A566A; --accent: #2F45FF; --accent-d: #1B2AB8; --dale: #E8653A; --navy: #172440;
  --manila: #F2D8A2; --manila-d: #C9A66B; --wood: #B27A48; --wood-d: #7A4D2A;
  --display: 'Unbounded', 'Unbounded Fallback', system-ui, sans-serif;
  --text: 'Atkinson Hyperlegible', 'Atkinson Fallback', Arial, sans-serif;
  --h1: 40px; --h2: 22px; --body: 18px; --small: 14px;
  --gut: 24px; --dock: 0px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.1 0 0 0 0 0.17 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) var(--noise); color: var(--ink); font: 400 var(--body)/1.65 var(--text); overflow-x: hidden; padding-bottom: var(--dock); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; color: var(--ink); }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.js .no-js-audio { display: none; }
html:not(.js) .js-only { display: none !important; }
.no-js-audio { width: 100%; max-width: 300px; height: 40px; margin-top: 8px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 var(--gut); max-width: 1200px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 0; font: 800 19px/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #F1E3CC; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.brand-mark::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -3px; height: 10px; border-radius: 10px 10px 3px 3px; background: var(--dale); }
.top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-nav a { display: flex; align-items: center; height: 44px; padding: 0 12px; font: 600 var(--small)/1 var(--display); color: var(--ink); text-decoration: none; border-radius: 3px; }
.top-nav a:hover { background: rgba(15, 26, 43, .07); }
.menu-btn { display: none; }

/* the one action: the homepage's ultramarine paper ticket */
.tix { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 30px 0 20px; font: 700 15px/1 var(--display); text-decoration: none; color: #fff; white-space: nowrap; background: var(--accent) var(--noise-w); border-radius: 3px; box-shadow: 0 3px 0 var(--accent-d); transition: transform .14s ease, box-shadow .14s ease; }
.tix::after { content: ""; position: absolute; right: 12px; top: 9px; bottom: 9px; border-left: 2px dotted rgba(255, 255, 255, .55); }
.tix:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--accent-d); }
.tix:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-d); }
.tix svg { width: 20px; height: 20px; }
.tix-sm { min-height: 44px; font-size: var(--small); padding: 0 26px 0 14px; }
.tix-sm::after { right: 10px; top: 8px; bottom: 8px; }
.lnk { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1 var(--display); color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ======================================================================
   1 · LIVING DIORAMA: the flat frame is the LCP; layers fade in over it
   ====================================================================== */
.dio { position: relative; height: clamp(260px, 44vh, 420px); overflow: hidden; background: #BFE2F2; }
.dio picture, .dio-flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dio::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(rgba(251, 246, 236, 0), var(--paper)); z-index: 3; pointer-events: none; }
.dio-layers { position: absolute; inset: -3% -3% 0; opacity: 0; transition: opacity .6s ease; }
.dio.is-live .dio-layers { opacity: 1; }
.ly { position: absolute; will-change: transform; }
.ly-back { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.ly-stall { left: var(--st-x, 50%); bottom: -1%; height: var(--st-h, 80%); width: auto; max-width: none; transform-origin: 50% 100%; }
.ly-mtn { left: var(--mt-x, 6%); bottom: -3%; height: 102%; width: auto; max-width: none; }
.ly-ig { left: var(--ig-x, 75%); bottom: var(--ig-b, -4%); height: var(--ig-h, 72%); aspect-ratio: 1; }
.ly-ig img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s ease, transform .5s cubic-bezier(.3,1.5,.5,1); transform-origin: 50% 92%; object-fit: contain; }
.ig-faint { opacity: 0; }
.dio.is-faint .ig-stand { opacity: 0; transform: rotate(-20deg); }
.dio.is-faint .ig-faint { opacity: 1; }
.ly-dale { left: var(--dl-x, 1%); bottom: var(--dl-b, -12%); height: var(--dl-h, 62%); aspect-ratio: 1; }
.ly-dale img { width: 100%; height: 100%; object-fit: contain; }
.dio.is-live .ly-stall { animation: sway 7s ease-in-out infinite; }
.dio.is-live .ly-ig { animation: bob 5s ease-in-out infinite; }
@keyframes sway { 50% { rotate: .5deg; } }
@keyframes bob { 50% { translate: 0 -1.5%; } }

/* ---------- page: one reading column + the phrase tag in a sticky rail ---------- */
.page { overflow-x: clip; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut) 24px; display: grid; grid-template-columns: minmax(0, 680px) 340px; column-gap: 72px; align-items: start; }
.intro { grid-column: 1; grid-row: 1; padding-top: 10px; }
.rail { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 64px; margin-top: 36px; z-index: 4; }
.body { grid-column: 1; grid-row: 2; }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: var(--small); color: var(--ink-2); }
.crumbs li + li::before { content: "›"; padding: 0 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
h1 { margin-top: 4px; font-size: var(--h1); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.answer { margin-top: 18px; font-size: 20px; line-height: 1.6; }
.answer b[lang] { white-space: nowrap; }
@media (max-width: 759px) { .answer b[lang] { white-space: normal; } }

/* ======================================================================
   2 · THE PHRASE TAG: the homepage's manila price tag, hanging on a string
   ====================================================================== */
.card { position: relative; padding: 44px 24px 22px; text-align: center; isolation: isolate; filter: drop-shadow(0 4px 0 rgba(122, 77, 42, .28)); transform-origin: 50% -60px; rotate: var(--swing, 0deg); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise), var(--manila); clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); }
.card-string { position: absolute; left: 50%; bottom: calc(100% - 22px); width: 2px; height: 80px; margin-left: -1px; background: #E9DFCC; z-index: -2; }
.card-hole { position: absolute; left: 50%; top: 14px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(15,26,43,.4), 0 0 0 4px rgba(255,255,255,.7); }
.card-k { font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #6B4B22; }
.card-es { position: relative; margin-top: 10px; font: 900 36px/1.06 var(--display); letter-spacing: -.035em; }
.card-es-mask { position: absolute; inset: -4px -6px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #E9CF98 0 8px, #DFC287 8px 16px); opacity: 0; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.3,1.2,.5,1), opacity .2s; }
.card[data-mode="say"] .card-es-mask { opacity: 1; transform: none; }
.card[data-mode="say"] .card-es-t { visibility: hidden; }
.card[data-mode="say"] .card-en, .card[data-mode="say"] .card-say, .card[data-mode="say"] .card-audio { display: none; }
.card[data-mode="done"] .card-es-t { display: inline-block; animation: pop .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: none; } }
.card-en { margin-top: 6px; font-size: 19px; font-weight: 700; }
.card-say { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(107, 75, 34, .35); }
.card-say-k { display: block; font-size: var(--small); color: #6B4B22; }
.syl { font: 700 16px/1.4 var(--display); letter-spacing: .02em; }
.syl span { display: inline-block; padding: 0 1px; border-radius: 3px; transition: color .08s, background-color .08s, transform .12s; }
.syl span.on { color: #fff; background: var(--accent); transform: translateY(-2px); }
.card-audio { display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; margin-top: 8px; }
.play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 15px/1 var(--display); color: var(--accent); }
.play svg { width: 30px; height: 30px; flex: none; }
.play span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.play.is-on { color: var(--dale); }
.play-i { min-width: 44px; justify-content: center; vertical-align: middle; margin: -10px 0 -10px 2px; }
.play-i svg { width: 26px; height: 26px; }

/* Say it (signature) */
.say { margin-top: 14px; padding-top: 16px; border-top: 1px dashed rgba(107, 75, 34, .35); text-align: left; }
.say-start { width: 100%; }
.demo-lead { font-size: var(--small); color: #6B4B22; text-align: center; }
.demo-mic-row { margin-top: 10px; text-align: center; }
.mic { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 14px; border-radius: 40px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px var(--ink); font: 700 15px/1 var(--display); }
.mic-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--dale); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.mic.is-on .mic-dot { animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { transform: scale(.75); box-shadow: 0 0 0 8px rgba(232, 101, 58, .25); } }
.mic-note { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #6B4B22; text-align: left; }
.demo-form { margin-top: 12px; }
.demo-label { font: 600 var(--small)/1.2 var(--display); color: #6B4B22; }
.demo-line { display: flex; gap: 10px; align-items: flex-end; margin-top: 4px; }
.demo-line input { flex: 1; min-width: 0; height: 46px; padding: 0 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font-size: 18px; outline: none; }
.demo-line input:focus-visible { border-bottom-color: var(--accent); background: rgba(47, 69, 255, .06); }
.demo-tools { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.demo.shake .demo-line { animation: shake .4s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.hint { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.hint:empty { display: none; }
.hint b { font-family: var(--display); letter-spacing: .04em; color: var(--accent); }
.hint img { width: 100%; height: auto; margin-top: 8px; border-radius: 3px; }
.demo-result { text-align: center; }
.demo-ok { font: 700 16px/1.3 var(--display); }
.demo-tomorrow { margin-top: 4px; font-size: 16px; color: #6B4B22; }
.stamp { position: absolute; right: 16px; bottom: 22px; padding: 6px 10px 5px; font: 900 20px/1 var(--display); color: #C2185B; border: 3px solid #C2185B; border-radius: 5px; transform: rotate(-14deg) scale(2.2); opacity: 0; pointer-events: none; }
.card[data-mode="done"] .stamp { animation: stampin .45s .05s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes stampin { to { transform: rotate(-14deg) scale(1); opacity: .92; } }

/* phone dock */
.dock { display: none; }

/* ======================================================================
   editorial body · one living element per section
   ====================================================================== */
.body section { margin-top: 60px; }
.body h2 { font-size: var(--h2); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.body h2 + * { margin-top: 14px; }
.body p + * { margin-top: 14px; }

.ex li { padding: 14px 0; border-top: 1px solid var(--line); }
.ex li:last-child { border-bottom: 1px solid var(--line); }
.ex-es { font-weight: 700; font-size: 19px; }
.body .ex-en { margin-top: 2px; color: var(--ink-2); }
.ex-where { font-style: italic; }

/* 7 · variants: price tags on a string */
.vtags { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 34px; }
.vtags::before { content: ""; position: absolute; left: -2%; right: -2%; top: 6px; height: 22px; border-top: 2px solid #D8CBB4; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleY(-1); }
.vtag { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 10px 14px; text-align: center; isolation: isolate; filter: drop-shadow(0 3px 0 rgba(122, 77, 42, .22)); transform-origin: 50% -26px; rotate: var(--r, 0deg); transition: rotate .4s cubic-bezier(.3,1.6,.5,1); }
.vtag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise), var(--tc, var(--manila)); clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px); }
.vtag::after { content: ""; position: absolute; left: 50%; top: 9px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(15,26,43,.4); }
.vtag:nth-child(1) { --r: -2deg; }
.vtag:nth-child(2) { --r: 1.5deg; --tc: #F6E7C2; }
.vtag:nth-child(3) { --r: -1deg; --tc: #EBD9B2; }
.vtag:hover { --r: 0deg; }
.vtag-es { font: 800 18px/1.2 var(--display); letter-spacing: -.02em; }
.vtag-es b { color: var(--accent); }
.vtag-en { margin-top: 4px; font-size: 15px; color: #6B4B22; }
.vtag .play-i { margin: 2px 0 -8px; }
.notes { margin-top: 22px !important; }
.notes li { position: relative; padding-left: 20px; }
.notes li + li { margin-top: 10px; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--dale); }
.notes s { text-decoration-color: var(--dale); text-decoration-thickness: 2px; }

/* 6 · the stall dialogue (plain transcript without JS) */
.talk li { display: grid; grid-template-columns: 92px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.talk li:first-child { border-top: 1px solid var(--line); }
.who { grid-row: span 2; font: 700 13px/1.9 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.t-you .who { color: var(--accent); }
.t-es { font-weight: 700; font-size: 19px; }
.t-en { color: var(--ink-2); font-size: 16px; }
.t-act { font-style: italic; color: var(--ink-2); }
.js .stall .talk li { display: none; }
.js .stall .talk li.shown { display: grid; animation: rise .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.opts { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0 4px 104px; }
.opt { min-height: 44px; padding: 0 16px; font: 700 16px/1 var(--text); background: var(--card); border-radius: 3px; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 0 1.5px var(--ink); }
.opt:hover { background: #fff; }
.opt.nope { animation: shake .4s ease; box-shadow: 0 0 0 1.5px var(--dale), 0 3px 0 1.5px var(--dale); color: var(--dale); }
.opt-mic { box-shadow: none; background: none; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; font-family: var(--display); font-size: 14px; }
.stall-again { margin-top: 8px; }

/* 5 · memory picture scrubbed by scroll */
.quest { position: relative; margin-top: 14px; }
.js .quest { height: 125vh; }
.js .quest-sticky { position: sticky; top: calc(50vh - 260px); }
.quest-stage { margin-top: 14px; }
.quest-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #BFE2F2; box-shadow: 0 0 0 1px var(--line); }
.q-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; opacity: .85; }
.q-mtn { position: absolute; left: 8%; bottom: -2%; height: 92%; width: auto; max-width: none; }
.q-dale { position: absolute; width: 30%; aspect-ratio: 1; left: var(--qx, 30%); bottom: var(--qy, 58%); transition: left .5s cubic-bezier(.3,1.2,.5,1), bottom .5s cubic-bezier(.3,1.2,.5,1); }
.q-dale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .15s; }
.q-dale[data-step="1"] img:nth-child(1), .q-dale[data-step="2"] img:nth-child(2), .q-dale[data-step="3"] img:nth-child(3) { opacity: 1; }
.q-dale[data-step="1"] { --qx: 0%; --qy: -4%; }
.q-dale[data-step="2"] { --qx: 13%; --qy: 34%; }
.q-dale[data-step="3"] { --qx: 23%; --qy: 56%; }
.q-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.q-steps li + li::before { content: "→"; margin-right: 8px; color: var(--ink-2); font-weight: 400; }
.q-steps li { font: 800 16px/1 var(--display); opacity: .25; transition: opacity .2s; }
.q-steps li.on { opacity: 1; }
html:not(.js) .q-steps li { opacity: 1; }

/* swap */
.pairs div { display: grid; grid-template-columns: minmax(0, 15em) 1fr; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pairs div:first-child { border-top: 1px solid var(--line); }
.pairs dt { font-weight: 700; font-size: 19px; }
.pairs dd { color: var(--ink-2); }
.frame { font-weight: 700; white-space: nowrap; }

/* 8 · signpost (the homepage's painted planks) */
.post { position: relative; padding: 4px 0 22px; }
.post::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 8px; background: var(--wood) var(--noise); border-radius: 2px 2px 0 0; box-shadow: inset -2px 0 0 var(--wood-d); }
.post ul { position: relative; display: grid; gap: 10px; }
.pl { position: relative; filter: drop-shadow(0 2px 0 rgba(122, 77, 42, .35)); rotate: var(--r, 0deg); }
.pl a { position: relative; display: block; max-width: 440px; min-height: 44px; padding: 11px 40px 10px 34px; font: 700 16px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; background: var(--manila) var(--noise); clip-path: polygon(0 2%, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 98%); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.pl a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.pl a:hover, .pl a:focus-visible { transform: translateX(4px); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pl-a { --c: #E8B21F; --r: -.6deg; }
.pl-b { --c: #E8659A; --r: .4deg; margin-left: 14px; }
.pl-c { --c: #2EA9AD; --r: -.3deg; margin-left: 6px; }
.pl-d { --c: var(--dale); --r: .5deg; margin-left: 18px; }

/* 9 · Cobito panel: the town at night */
.cobito { position: relative; overflow: hidden; padding: 30px 28px 28px; padding-right: 150px; color: #fff; border-radius: 4px;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 34% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 58% 28%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 76% 14%, #fff 99%, transparent),
    radial-gradient(1px 1px at 90% 30%, #fff 99%, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='70' viewBox='0 0 360 70'%3E%3Cpath d='M0 70V40h30V24l18-14 18 14v16h22V30h40V18l16-12 16 12v22h30V28h34v12h20V20l20-14 20 14v20h26V32h30v38z' fill='%230B1530'/%3E%3Cg fill='%23FFD27A'%3E%3Crect x='40' y='30' width='6' height='8'/%3E%3Crect x='138' y='22' width='6' height='8'/%3E%3Crect x='232' y='26' width='6' height='8'/%3E%3Crect x='330' y='40' width='6' height='8'/%3E%3Crect x='96' y='44' width='6' height='8'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 360px 70px repeat-x,
    var(--noise-w), var(--navy); }
.cobito h2 { color: #fff; max-width: 420px; }
.body .cobito-sub { margin-top: 8px; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #FFD27A; }
.cobito .tix { margin-top: 18px; margin-bottom: 40px; }
.cobito-dale { position: absolute; right: 12px; bottom: 6px; width: 140px; height: auto; transform-origin: 50% 100%; }
.cobito.in .cobito-dale { animation: wave 1.6s ease-in-out 2; }
@keyframes wave { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

.qa h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.qa h3:not(:first-child) { margin-top: 24px; }
.qa p { margin-top: 6px; color: var(--ink-2); }

.checked { margin-top: 40px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--small); color: var(--ink-2); }
.checked a { display: inline-flex; align-items: center; min-height: 44px; }

/* footer */
.foot { background: var(--navy); color: #fff; margin-top: 64px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 44px var(--gut) 52px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.foot-brand { font: 800 22px/1 var(--display); }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: #fff; text-decoration: none; opacity: .88; }
.foot nav a:hover { opacity: 1; text-decoration: underline; }
.foot-h { font: 700 var(--small)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.foot-note { grid-column: 1 / -1; font-size: var(--small); opacity: .75; max-width: 640px; }

@media (max-width: 1023px) and (min-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; }
}

/* ======================================================================
   phone: tag after the answer, a dock in the thumb zone
   ====================================================================== */
@media (max-width: 759px) {
  :root { --h1: 26px; --h2: 21px; --body: 17px; --gut: 16px; }
  .top { height: 56px; gap: 8px; }
  .top-cta { display: none; }
  .js .top-nav { display: none; position: absolute; right: var(--gut); top: 54px; z-index: 40; flex-direction: column; align-items: stretch; padding: 6px; min-width: 210px; background: var(--card) var(--noise); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--edge); }
  .js .top-nav.is-open { display: flex; }
  .top-nav a { height: 46px; font-size: 15px; }
  html:not(.js) .top { flex-wrap: wrap; height: auto; padding-top: 8px; }
  html:not(.js) .top-nav { margin-left: 0; flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; height: 44px; padding: 0 4px 0 12px; font: 700 15px/1 var(--display); }
  .menu-btn i { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .dio { height: 30vh; min-height: 190px; max-height: 280px; }
  .dio { --st-x: 44%; --st-h: 64%; --ig-x: 70%; --ig-h: 56%; --dl-h: 50%; --mt-x: 2%; }
  .page { display: block; }
  .intro { padding-top: 0; }
  .crumbs ol { font-size: 14px; }
  .answer { font-size: 17px; line-height: 1.55; margin-top: 10px; }
  .rail { position: static; margin: 64px 6px 0; }
  .card { padding: 40px 16px 18px; }
  .card-es { font-size: 32px; }
  .body section { margin-top: 52px; }
  .vtags { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .vtags::before { display: none; }
  .vtag { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 12px 14px 12px 34px; transform-origin: 0 50%; }
  .vtag::after { left: 16px; top: 50%; margin-top: -5.5px; margin-left: 0; }
  .vtag::before { clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
  .vtag-en { margin: 0; }
  .vtag:nth-child(1) { --r: -.6deg; } .vtag:nth-child(2) { --r: .5deg; } .vtag:nth-child(3) { --r: -.3deg; }
  .vtag .play-i { margin: -8px -6px -8px 0; }
  .talk li { grid-template-columns: 1fr; }
  .who { grid-row: auto; line-height: 1.5; }
  .who { font-size: 12px; }
  .opts { padding-left: 0; }
  .js .quest { height: 120vh; }
  .js .quest-sticky { top: calc(50vh - 190px); }
  .q-steps li { font-size: 14px; }
  .pairs div { grid-template-columns: 1fr; gap: 2px; }
  .post::before { left: 20px; }
  .pl a { font-size: 15px; padding: 11px 34px 10px 30px; }
  .pl a::before { left: 12px; }
  .pl-b, .pl-d { margin-left: 10px; } .pl-c { margin-left: 4px; }
  .cobito { padding: 22px 18px 110px; }
  .cobito .tix { margin-bottom: 0; }
  .cobito-dale { width: 96px; right: 4px; }
  .cobito h2 { max-width: none; padding-right: 70px; }
  .foot-in { grid-template-columns: 1fr 1fr; padding: 34px var(--gut) 40px; gap: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .who, .mic-note, .card-k, .body .cobito-sub { font-size: 14px; }

  .js .dock { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; background: var(--manila) var(--noise); border-radius: 6px; box-shadow: 0 0 0 1px rgba(122,77,42,.25), 0 4px 0 rgba(122,77,42,.35); transform: translateY(140%); transition: transform .3s cubic-bezier(.3,1.2,.5,1); }
  .js .dock.on { transform: none; }
  .dock-es { flex: 1; min-width: 0; font: 800 14px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-b { min-height: 44px; padding: 0 10px; font: 700 14px/1 var(--display); color: var(--accent); border-radius: 4px; }
  .dock-say { color: #fff; background: var(--accent); box-shadow: 0 2px 0 var(--accent-d); padding: 0 14px; }
  .js body { --dock: 76px; }
}

@media (max-width: 419px) {
  .dock-es { display: none; }
  .js .dock { justify-content: space-between; padding-left: 8px; }
}

/* reduced motion: static frames, no parallax, no swing, no scrub */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .quest { height: auto; }
  .js .quest-sticky { position: relative; top: 0; }
  .card { rotate: 0deg !important; }
  .q-steps li { opacity: 1; }
}

/* shared subpage waitlist form (Brevo) */
.cobito:has(.waitlist-form) { padding-bottom: 76px; }
.waitlist-form { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .28); max-width: 440px; }
.waitlist-form label { display: block; font: 700 14px/1.3 var(--display); color: #fff; }
.waitlist-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.waitlist-row input[type="email"] { flex: 1; min-width: 180px; height: 44px; padding: 0 12px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 3px; background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 16px; }
.waitlist-form .tix { margin-top: 0; margin-bottom: 0; min-height: 44px; }
.waitlist-check { display: flex !important; align-items: center; gap: 8px; margin-top: 10px; font: 400 13.5px/1.35 var(--text) !important; color: rgba(255, 255, 255, .88); cursor: pointer; }
.waitlist-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.waitlist-msg { margin-top: 8px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
@media (max-width: 759px) { .cobito:has(.waitlist-form) { padding-bottom: 124px; } }
