/* Motie brand standards — every value below is a declared token. */
:root {
  /* colour — BRIEF tokens (round 15: brand gradient sampled from refs/ref-gradient-tile.png; --accent is its red-orange hot spot, used as the solid accent) */
  --cream: #FBF7F0; --surface: #F7F3EC; --tint: #FDEEE2; --white: #FFFFFF;
  --navy: #1F2433; --ink-2: #3F4557; --ink-3: #5A6072; --muted: #8A90A0;
  --line: #D9D3C7; --line-soft: #E8E2D6; --line-warm: #E2DACB; --line-cool: #D5D8DF;
  --accent: #E96233; --success: #2F7D4F;
  /* colour — declared here */
  --success-tint: #E6F4EA; --accent-ink: #B4410F; --accent-halo: color-mix(in srgb, var(--accent) 22%, transparent); --error: #B42318; --fur: #DABF7A;
  /* brand + secondary colours (round 14b: orange only; apricot, coral, lavender, sun and sage dropped. Round 15: --amber, --accent-hover, --accent-press, --on-accent dropped; hover and press are brightness filters on the gradient) */
  --black: #111111; --grey: #66666B;
  /* widget surfaces and airy gradients; label contrast is measured at the worst stop */
  /* round 15: one orange gradient (refs/ref-gradient-tile.png) — warm amber left, red-orange hot spot top-right, slightly darker bottom edge.
     White content on it measures 2.30:1 at the lightest amber (#EE9739) and 3.72:1 at the darkest base (#D46426). */
  --brand-amber: #EE9739; --brand-mid: #EB7F35; --brand-hot: #E96233; --brand-deep: #D46426; --on-brand: #FFFFFF;
  --grad-brand: radial-gradient(60% 55% at 80% 25%, #E96233 0%, rgba(233, 98, 51, 0) 100%), radial-gradient(50% 45% at 25% 55%, #EE9739 0%, rgba(238, 151, 57, 0) 100%), linear-gradient(0deg, rgba(212, 100, 38, .6) 0%, rgba(212, 100, 38, 0) 40%), linear-gradient(95deg, #EE8A36 0%, #EB7F35 50%, #E76B31 100%);
  /* depth outline from the reference edge: 1px cream rim outside (#FEF7E1, soft second pixel), 1px darker orange line inside */
  --edge-brand: 0 0 0 1px #FEF7E1, 0 0 0 2px rgba(254, 247, 225, .45), inset 0 0 0 1px rgba(196, 112, 52, .5);
  --edge-brand-in: inset 0 0 0 1px rgba(196, 112, 52, .5);
  --tsh-brand: 0 1px 1px rgba(150, 60, 20, .25);
  /* light wash on the tall card: the same family at low strength, navy text sits on it */
  --grad-air: linear-gradient(200deg, rgba(233, 98, 51, .30) 0%, rgba(238, 151, 57, .22) 40%, rgba(255, 255, 255, 0) 88%);
  --sh-btn: 0 1px 2px rgba(31, 36, 51, .10), 0 8px 16px -10px rgba(31, 36, 51, .35);
  --hl-inner: inset 0 0 0 1.5px rgba(255, 255, 255, 1), inset 0 -3px 8px rgba(31, 36, 51, .035);
  --sh-tile: 0 1px 2px rgba(31, 36, 51, .03), 0 28px 56px -22px rgba(31, 36, 51, .16), 0 10px 24px -14px rgba(31, 36, 51, .06);
  --r-tile: 44px; --r-tile-s: 32px;
  /* shadow (prototype values) */
  --sh-1: 0 2px 12px rgba(31, 36, 51, 0.06);
  --sh-2: 0 6px 20px rgba(31, 36, 51, 0.08);
  --sh-3: 0 10px 30px rgba(31, 36, 51, 0.16);
  --sh-sheet: 0 -12px 40px rgba(31, 36, 51, 0.12);
  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;
  /* radius */
  --r-pill: 999px; --r-sheet: 28px; --r-18: 18px; --r-16: 16px; --r-14: 14px; --r-12: 12px;
  /* type */
  --serif: "Bricolage Grotesque", system-ui, sans-serif; --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --t-88: 88px; --t-44: 44px; --t-34: 34px; --t-28: 28px; --t-23: 23px; --t-22: 22px; --t-20: 20px;
  --t-18: 18px; --t-17: 17px; --t-16: 16px; --t-15: 15px; --t-14: 14px; --t-13: 13px;
  /* motion */
  --d-fast: 200ms; --d-base: 250ms; --d-fade: 380ms; --d-stage: 750ms;
  --e-standard: cubic-bezier(.45, 0, .2, 1); --e-out: cubic-bezier(.2, .8, .2, 1);
  /* focus */
  /* round 14b: one visible edge. Filled controls get a 2 px navy line flush on their edge (no gap); white controls use --focus-edge (inset). Both add only a blurred, low-opacity orange glow. */
  --focus: 0 0 0 2px var(--navy), 0 0 10px 0 color-mix(in srgb, var(--accent) 22%, transparent);
  --focus-edge: inset 0 0 0 2px var(--navy), 0 0 10px 0 color-mix(in srgb, var(--accent) 22%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font: 400 var(--t-16)/24px var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.serif, h1, h2, h3, h4 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; margin: 0; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--t-13); }

/* ---------- Motie photos: white source blends into cream ---------- */
.ph { position: relative; overflow: hidden; container-type: inline-size; }
.ph img { position: absolute; max-width: none; width: calc(var(--w) * 1cqw); left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw); mix-blend-mode: multiply; }

/* ---------- wordmark + mark ---------- */
.wm { font-family: var(--serif); font-weight: 560; letter-spacing: -0.035em; line-height: 1; color: var(--navy); white-space: nowrap; display: inline-block; }
.wm .i { position: relative; display: inline-block; }
.wm .i::after { content: ""; position: absolute; left: 50%; top: 0.035em; width: 0.2em; height: 0.2em; margin-left: -0.085em; border-radius: 50%; background: currentColor; }
.mark { display: block; color: var(--navy); }

/* ---------- shared bits ---------- */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid var(--navy); font: 600 var(--t-13)/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { font: 600 var(--t-13)/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dd { font: 600 var(--t-13)/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: var(--s2); }
.dd::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.dd.no::before { background: none; border: 2px solid var(--error); border-radius: 0; width: 10px; height: 10px; transform: rotate(45deg); }
.dd.no { color: var(--error); }
.dd.yes { color: var(--success); }

/* ---------- components (shared with states.html) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 52px; padding: 0 var(--s6); border-radius: var(--r-14); font: 600 var(--t-16)/20px var(--sans); border: 0; cursor: pointer; transition: background var(--d-fast) var(--e-standard), box-shadow var(--d-fast) var(--e-standard), transform var(--d-fast) var(--e-standard); }
.btn { border-radius: var(--r-18); font-weight: 700; letter-spacing: -.01em; }
.btn-primary { background: var(--grad-brand); color: var(--on-brand); text-shadow: var(--tsh-brand); box-shadow: var(--edge-brand), var(--sh-btn); }
.btn-black { background: var(--black); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 22px -14px rgba(17,17,17,.6); }
.btn-black:hover, .btn-black.is-hover { background: #2A2A2F; }
.btn-black:active, .btn-black.is-pressed { background: #000; transform: scale(.98); }
/* round 14c: navy is 1.22:1 on black, so black fills show focus as a 2 px white line flush inside their own edge (one edge, no gap) */
.btn.btn-black.is-focus, .btn.btn-black:focus-visible { box-shadow: inset 0 0 0 2px var(--white), 0 0 10px 0 color-mix(in srgb, var(--accent) 22%, transparent), 0 12px 22px -14px rgba(17,17,17,.6); }
.btn-secondary { background: var(--white); color: var(--black); box-shadow: var(--hl-inner), 0 0 0 1px rgba(31,36,51,.07), 0 10px 22px -12px rgba(31,36,51,.22); }
.btn-quiet { background: transparent; color: var(--navy); height: 44px; padding: 0 var(--s3); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn-primary:hover, .btn-primary.is-hover { filter: brightness(.97); } /* round 15: hover darkens slightly so white never measures below the default */
.btn-primary:active, .btn-primary.is-pressed { transform: scale(.98); filter: brightness(.93); }
.btn-secondary:hover, .btn-secondary.is-hover { background: #F6F6F7; box-shadow: var(--hl-inner), 0 0 0 1px rgba(31,36,51,.14), 0 14px 26px -12px rgba(31,36,51,.28); }
.btn-secondary:active, .btn-secondary.is-pressed { background: var(--surface); transform: scale(.98); }
.btn-quiet:hover, .btn-quiet.is-hover { background: var(--surface); }
.btn-quiet.is-pressed { background: var(--line-soft); }
.btn.is-focus { box-shadow: var(--focus); }
.btn-secondary.is-focus, .btn-secondary:focus-visible { box-shadow: var(--focus-edge), 0 10px 22px -12px rgba(31,36,51,.22); }
.btn.is-disabled, .btn:disabled { background: var(--line-soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-quiet.is-disabled { background: transparent; }
.btn.is-success { background: var(--success); color: var(--white); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: var(--s2); }
.field label { font: 600 var(--t-15)/20px var(--sans); }
.input { border: 0; -webkit-appearance: none; appearance: none; height: 52px; border-radius: var(--r-14); background: var(--white); box-shadow: inset 0 0 0 1px var(--muted); padding: 0 var(--s4); display: flex; align-items: center; font: 400 var(--t-16)/20px var(--sans); color: var(--navy); }
.input.ph-text { color: var(--muted); }
.input.is-hover { box-shadow: inset 0 0 0 1px var(--navy); }
.input.is-focus, .input:focus-visible { box-shadow: var(--focus-edge); }
.input.is-error { box-shadow: inset 0 0 0 2px var(--error); }
.input.is-success { box-shadow: inset 0 0 0 1px var(--success); justify-content: space-between; }
.input.is-disabled { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.hint { font: 400 var(--t-14)/20px var(--sans); color: var(--ink-3); }
.err { font: 500 var(--t-14)/20px var(--sans); color: var(--error); display: flex; gap: 6px; align-items: flex-start; }
.err svg { flex: none; margin-top: 1px; }

.chip { display: inline-flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font: 500 var(--t-15)/20px var(--sans); color: var(--navy); }
.chip.is-on { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--navy); font-weight: 600; }
.chip.is-hover { box-shadow: inset 0 0 0 1px var(--navy); }
.chip.is-focus { box-shadow: var(--focus-edge); }
.chip.is-disabled { background: var(--surface); color: var(--muted); }

.card { display: flex; gap: var(--s4); align-items: center; padding: var(--s3); border-radius: var(--r-16); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-soft); min-height: 87px; }
.card .thumb { width: 112px; height: 63px; border-radius: var(--r-12); overflow: hidden; flex: none; background: var(--line-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .ct { font: 600 var(--t-16)/22px var(--sans); }
.card .cm { font: 400 var(--t-14)/18px var(--sans); color: var(--ink-3); display: flex; gap: var(--s2); margin-top: 2px; }
.card .done { color: var(--success); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.card.is-hover { box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
.card.is-pressed { background: var(--surface); transform: scale(.99); }
.card.is-focus { box-shadow: var(--focus-edge); }
.card.is-loading .thumb, .sk { background: linear-gradient(90deg, var(--line-soft), var(--surface), var(--line-soft)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.consent { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--r-14); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.box { width: 24px; height: 24px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--white); display: grid; place-items: center; margin-top: 0; }
.consent.is-on .box { background: var(--navy); box-shadow: none; }
.consent .ctext { font: 400 var(--t-15)/22px var(--sans); }
.consent .ctext a { font-weight: 500; }
.consent .opt { display: inline-block; font: 600 var(--t-13)/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.consent.is-focus { box-shadow: var(--focus-edge); }
.consent.is-error { box-shadow: inset 0 0 0 2px var(--error); }
.consent.is-error .box { box-shadow: inset 0 0 0 2px var(--error); }
.consent.is-disabled { background: var(--surface); color: var(--muted); }
.consent.is-disabled .box { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.consent.is-hover { box-shadow: inset 0 0 0 1px var(--navy); }

/* kid voice pill — 88px tall, the only accent on a kid screen */
.pill { position: relative; width: 168px; height: 88px; border-radius: var(--r-pill); background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--edge-brand), var(--sh-3); color: var(--on-brand); }
.pill .bars { display: flex; gap: 6px; align-items: center; height: 36px; }
.pill .bars i { width: 6px; height: 12px; border-radius: var(--r-pill); background: var(--on-brand); box-shadow: var(--tsh-brand); }
.pill.listening .bars i { animation: eq .9s ease-in-out infinite; }
.pill.listening .bars i:nth-child(1) { height: 18px; } .pill.listening .bars i:nth-child(2) { height: 32px; animation-delay: .15s; } .pill.listening .bars i:nth-child(3) { height: 24px; animation-delay: .3s; } .pill.listening .bars i:nth-child(4) { height: 34px; animation-delay: .45s; } .pill.listening .bars i:nth-child(5) { height: 16px; animation-delay: .6s; }
.pill.listening { box-shadow: var(--edge-brand), 0 0 0 10px var(--accent-halo), var(--sh-2); }
.pill.thinking .bars i { width: 10px; height: 10px; animation: dot 1.2s var(--e-standard) infinite; }
.pill.thinking .bars i:nth-child(2) { animation-delay: .2s; } .pill.thinking .bars i:nth-child(3) { animation-delay: .4s; }
.pill.speaking { background: var(--white); box-shadow: inset 0 0 0 3px var(--navy), var(--sh-2); }
.pill.speaking .bars i { background: var(--accent); box-shadow: none; }
.pill.speaking .bars i:nth-child(2) { height: 22px; } .pill.speaking .bars i:nth-child(3) { height: 30px; } .pill.speaking .bars i:nth-child(4) { height: 22px; }
.pill.is-disabled { background: var(--line-soft); box-shadow: none; color: var(--muted); }
.pill.is-focus { box-shadow: var(--sh-3), var(--focus); }
@keyframes eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
/* ---------- interactive hooks (real controls behind the specimens) ---------- */
button.card, button.chip, button.pill { border: 0; cursor: pointer; font-family: var(--sans); text-align: left; transition: box-shadow var(--d-fast) var(--e-standard), background var(--d-fast) var(--e-standard), transform var(--d-fast) var(--e-standard); }
button.card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
button.card:active { background: var(--surface); transform: scale(.99); }
button.chip:not(.is-on):hover { box-shadow: inset 0 0 0 1px var(--navy); }
.card .cb { display: grid; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consent { position: relative; cursor: pointer; }
.consent .box svg { opacity: 0; transition: opacity var(--d-fast) var(--e-standard); }
.consent.is-on .box svg { opacity: 1; }
.chip svg { display: none; }
.chip.is-on svg { display: block; }
.consent:has(.sr:focus-visible) { box-shadow: var(--focus-edge); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; } }

/* ---------- round 2: pressed states, wordless kid states, card error, grown-up check ---------- */
.chip.is-pressed, button.chip:active { background: var(--surface); transform: scale(.97); }
.consent.is-pressed, .consent:active { background: var(--surface); transform: scale(.99); }
.pill.is-pressed, button.pill:active { transform: scale(.94); box-shadow: var(--sh-1); }
/* offline: grey pill, cloud glyph, taps do nothing */
.pill.offline { background: var(--line-soft); box-shadow: none; color: var(--ink-3); }
.pill.offline .bars i { background: var(--ink-3); box-shadow: none; }
.pill .glyph { display: none; width: 40px; height: 40px; }
.pill.offline .glyph, .pill.cant-hear .glyph { display: block; }
/* could not hear: one wiggle, then waits */

.pill.cant-hear { animation: wiggle .6s var(--e-standard) 1; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-3deg); } }
/* card error */
.card.is-error { box-shadow: inset 0 0 0 2px var(--error); }
.card.is-error .cm { color: var(--error); display: inline-flex; gap: var(--s1); align-items: center; }
.card .retry { font: 600 var(--t-14)/20px var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
/* grown-up check: press and hold 3 s, ring fills, release resets */
.gate { width: 100%; max-width: 360px; padding: var(--s6); border-radius: var(--r-sheet); background: var(--white); box-shadow: var(--sh-sheet); display: grid; gap: var(--s3); }
.gate h4 { font: 500 var(--t-22)/28px var(--serif); margin: 0; }
.gate p { font: 400 var(--t-15)/22px var(--sans); color: var(--ink-3); }
.hold { position: relative; margin-top: var(--s2); width: 100%; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold .ring { width: 28px; height: 28px; flex: none; transform: rotate(-90deg); }
.hold .ring circle { fill: none; stroke-width: 3; }
.hold .ring .track { stroke: var(--line); }
.hold .ring .fill { stroke: var(--navy); stroke-dasharray: 62.83; stroke-dashoffset: 62.83; transition: stroke-dashoffset 200ms var(--e-standard); }
.hold.is-holding .ring .fill { stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.hold.is-mid .ring .fill { stroke-dashoffset: 25; transition: none; }
@media (prefers-reduced-motion: reduce) { .pill.cant-hear { animation: none; } }

/* contact shadow under every cut-out Motie: a CSS oval, never baked into the photo */
.ph.full { --w: 160; --x: -31.6; --y: 4; }
.ph::before { content: ""; position: absolute; left: calc((var(--x, 0) + var(--w, 100) * 0.315) * 1cqw); top: calc((var(--y, 0) + var(--w, 100) * 0.5625 * 0.925) * 1cqw); width: calc(var(--w, 100) * 0.37 * 1cqw); height: calc(var(--w, 100) * 0.05 * 1cqw); border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 36, 51, 0.20), rgba(31, 36, 51, 0.07) 60%, rgba(31, 36, 51, 0)); pointer-events: none; }
.ph.no-cs::before { display: none; }

/* round 3: grown-up check is a typed number, not a hold */
.gate-num { font: 500 var(--t-34)/42px var(--serif) !important; color: var(--navy) !important; margin: var(--s1) 0 var(--s2); }
.gate .field label { font: 600 var(--t-15)/20px var(--sans); color: var(--navy); }
.gate .btn { width: 100%; margin-top: var(--s2); }
.gate .err { display: flex; gap: var(--s1); align-items: center; color: var(--error); font: 500 var(--t-14)/20px var(--sans); }
.gate .err[hidden] { display: none; }
.input.is-error { box-shadow: inset 0 0 0 2px var(--error); }
/* email confirmation */
.verify { display: grid; gap: var(--s3); justify-items: start; }
.verify .env { width: 56px; height: 56px; border-radius: var(--r-16); background: var(--tint); display: grid; place-items: center; color: var(--navy); }
.verify .addr-m { font: 600 var(--t-15)/20px var(--sans); color: var(--navy); padding: var(--s2) var(--s3); border-radius: var(--r-12); background: var(--surface); }
.verify .links { display: flex; flex-direction: column; gap: var(--s1); align-items: flex-start; }

/* ---------- logo (assets/logo, traced SVG) ---------- */
.lg { display: inline-block; height: 0.62em; width: auto; aspect-ratio: 1544.8 / 331.8; fill: currentColor; color: var(--navy); vertical-align: baseline; overflow: visible; }
.lg use { fill: currentColor; }
svg.mark { fill: currentColor; color: var(--navy); }
.clear2 { position: relative; display: inline-block; font-size: 120px; padding: 0.31em; box-shadow: inset 0 0 0 1px var(--navy); background: repeating-linear-gradient(45deg, rgba(31,36,51,.07) 0 4px, transparent 4px 8px); }
.clear2 .lg { display: block; height: 0.62em; background: var(--cream); }
.clear2 .x { position: absolute; width: 0.31em; height: 0.31em; display: grid; place-items: center; font: 600 12px/1 var(--sans); color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px rgba(31,36,51,.45); }
.clear2 .x.tl { left: 0; top: 0; } .clear2 .x.tr { right: 0; bottom: 0; }
.appicon { width: 88px; height: 88px; border-radius: 22.5%; background: var(--navy); display: grid; place-items: center; }
.gapdemo { display: flex; align-items: flex-end; gap: 1.6em; font-size: 56px; }
.gapdemo .mark { width: 0.86em; height: 0.62em; } .gapdemo .wmk { height: 0.62em; aspect-ratio: 1044.8 / 331.8; fill: var(--navy); }
.lg.fx { color: var(--cream); stroke: var(--navy); stroke-width: 40; filter: drop-shadow(4px 6px 0 rgba(31,36,51,.35)); }
.stage.busy { position: relative; overflow: hidden; }
.stage.busy .busy-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.busy .lg { position: relative; }
.logo-cols .stage { aspect-ratio: 16 / 9; font-size: 64px; }

/* ---------- widget sheet (BAR G + H: follows refs/ref-widgets-light.png) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 92px; grid-auto-flow: dense; gap: var(--s5); }
.wt { position: relative; grid-column: span var(--c, 1); grid-row: span var(--r, 1); border-radius: var(--r-tile); padding: var(--s6) var(--s8); display: flex; gap: var(--s4); align-items: center; color: var(--black); font: 500 var(--t-15)/20px var(--sans); text-align: left; border: 0; background: radial-gradient(120% 90% at 30% 0%, #FFFFFF 0%, #FFFFFF 55%, #F9F9FA 100%); box-shadow: var(--hl-inner), var(--sh-tile); }
.wt.static { box-shadow: var(--hl-inner), 0 1px 2px rgba(31, 36, 51, .03); }
.wt.col { flex-direction: column; align-items: stretch; justify-content: space-between; }
.wt.ctr { justify-content: center; }
.wt .lbl { display: flex; align-items: center; gap: 6px; font: 700 var(--t-13)/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.wt .lbl .sunic { flex: none; }
.wt .sp { flex: 1; }
.wt .num { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1; color: var(--black); }
.wt .unit { font: 600 var(--t-28)/1 var(--sans); letter-spacing: -.02em; color: var(--grey); }
.wt .msg { font: 600 var(--t-20)/28px var(--sans); letter-spacing: -.01em; color: var(--grey); }
.wt .msg b { color: var(--black); font-weight: 700; }
.wt .meta { display: flex; gap: var(--s5); color: var(--grey); font: 700 var(--t-18)/22px var(--sans); }
.wt .meta span { display: inline-flex; align-items: center; gap: 6px; }
.wt .cr { position: absolute; bottom: -9px; right: 22px; z-index: 2; box-shadow: 0 0 0 1px var(--line); font: 500 11px/16px ui-monospace, "SF Mono", Menlo, monospace; padding: 0 6px; border-radius: var(--r-pill); background: var(--cream); color: var(--navy); }
.hero-ic { display: block; flex: none; max-width: none; margin: -14px; }
.wt .hero-ic.fold { width: 360px; height: 360px; margin: -76px -56px -66px -72px; }
.wt .msg.big { font-size: 28px; line-height: 36px; letter-spacing: -.02em; }
/* tall card: airy gradient top, white card overlapping the lower half (ref "9:41" card) */
.wt.tall { padding: 0; overflow: visible; background: var(--white); align-items: stretch; }
.wt.tall .gtop { position: absolute; inset: 6px 6px 6px 6px; border-radius: calc(var(--r-tile) - 6px); background: var(--grad-air); }
.wt.tall .big { position: relative; padding: var(--s8) var(--s8) 0; display: flex; align-items: baseline; gap: var(--s2); }
.wt.tall .big .num { font-size: 96px; }
.wt.tall .big .unit { color: var(--black); font-size: var(--t-28); }
.wt.tall .over { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 34px; background: var(--white); padding: var(--s5) var(--s6); display: grid; gap: var(--s3); box-shadow: 0 -10px 30px -14px rgba(31, 36, 51, .14), inset 0 0 0 1.5px #fff; }
.wt.tall .over::before { content: ""; position: absolute; left: 22px; right: 22px; top: -10px; height: 20px; border-radius: 20px 20px 0 0; background: rgba(255, 255, 255, .55); }
.wt.tall .stars { display: flex; gap: 4px; color: var(--accent); }
/* gradient action button (round or pill) */
.gbtn { position: relative; display: inline-grid; place-items: center; border: 0; cursor: pointer; color: var(--on-brand); background: var(--grad-brand); text-shadow: var(--tsh-brand); box-shadow: var(--edge-brand), var(--sh-btn); transition: transform var(--d-fast) var(--e-standard), box-shadow var(--d-fast) var(--e-standard), filter var(--d-fast) var(--e-standard); font: 700 var(--t-22)/26px var(--sans); letter-spacing: -.015em; }
.gbtn.round { width: 56px; height: 56px; border-radius: 50%; } /* round 15: glyphs are white like every label on the gradient */
.gbtn svg, .orb svg { filter: drop-shadow(0 1px 1px rgba(150, 60, 20, .25)); }
.gbtn.pill { height: 100%; min-height: 64px; min-width: 240px; padding: 0 var(--s10); border-radius: 32px; white-space: nowrap; }
.gbtn:hover, .gbtn.is-hover { filter: brightness(.97); box-shadow: var(--edge-brand), 0 1px 2px rgba(31, 36, 51, .10), 0 12px 20px -10px rgba(31, 36, 51, .38); }
.gbtn:active, .gbtn.is-pressed { transform: scale(.97); filter: brightness(.93); box-shadow: var(--edge-brand), inset 0 2px 6px rgba(31,36,51,.18); }
.gbtn:focus-visible, .gbtn.is-focus { box-shadow: var(--focus), var(--sh-btn); }
.gbtn:disabled, .gbtn.is-disabled { background: var(--line-soft); color: var(--ink-3); text-shadow: none; box-shadow: none; cursor: default; filter: none; transform: none; }
/* black and white round buttons */
.kbtn, .fbtn { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; transition: transform var(--d-fast) var(--e-standard), background var(--d-fast) var(--e-standard); flex: none; }
.kbtn { color: var(--white); background: radial-gradient(circle at 50% 25%, #3A3A40 0%, var(--black) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 24px -12px rgba(17,17,17,.55); }
.kbtn:hover, .kbtn.is-hover { background: #2A2A2F; }
.kbtn:active, .kbtn.is-pressed { transform: scale(.96); background: #000; }
.kbtn:focus-visible, .kbtn.is-focus { box-shadow: inset 0 0 0 2px var(--white), 0 0 10px 0 color-mix(in srgb, var(--accent) 22%, transparent), 0 14px 24px -12px rgba(17,17,17,.55); }
.kbtn:disabled, .kbtn.is-disabled { background: var(--line-soft); color: var(--muted); box-shadow: none; cursor: default; }
.fbtn { color: var(--black); background: var(--white); box-shadow: var(--hl-inner), 0 0 0 1px rgba(31,36,51,.06), 0 10px 20px -10px rgba(31,36,51,.25); }
.fbtn:hover, .fbtn.is-hover { background: #F6F6F7; }
.fbtn:active, .fbtn.is-pressed { transform: scale(.96); background: #EDEDEF; }
.fbtn:focus-visible, .fbtn.is-focus { box-shadow: var(--focus-edge), 0 10px 20px -10px rgba(31,36,51,.25); }
.fbtn:disabled, .fbtn.is-disabled { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); cursor: default; }
.fbtn.ghost { background: transparent; box-shadow: none; color: var(--grey); width: 44px; height: 44px; }
.fbtn.ghost:hover, .fbtn.ghost.is-hover { background: #F2F2F4; }
/* voice */
.wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave i { width: 4px; border-radius: 2px; background: var(--accent); height: calc(var(--h) * 1px); animation: wv 1.1s var(--e-standard) infinite alternate; animation-delay: calc(var(--h) * -37ms); }
@keyframes wv { to { transform: scaleY(.45); } }
.timer { font: 700 var(--t-20)/24px var(--sans); color: var(--grey); font-variant-numeric: tabular-nums; }
/* tap orb */
.orb { width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--on-brand); background: var(--grad-brand); box-shadow: var(--edge-brand), 0 2px 4px rgba(31, 36, 51, .10), 0 16px 28px -14px rgba(31, 36, 51, .40); transition: transform var(--d-fast) var(--e-standard), box-shadow var(--d-fast) var(--e-standard); }
.orb:hover, .orb.is-hover { filter: brightness(.97); box-shadow: var(--edge-brand), 0 2px 4px rgba(31, 36, 51, .10), 0 20px 32px -14px rgba(31, 36, 51, .44); }
.orb:active, .orb.is-pressed { transform: scale(.94); filter: brightness(.9); }
.orb:focus-visible, .orb.is-focus { box-shadow: var(--focus), 0 16px 28px -14px rgba(31, 36, 51, .40); }
.orb:disabled, .orb.is-disabled { background: var(--line-soft); color: var(--muted); box-shadow: none; cursor: default; filter: none; }
.orb:disabled svg, .orb.is-disabled svg, .gbtn:disabled svg, .gbtn.is-disabled svg { filter: none; }
/* toggle */
.tgl { position: relative; width: 56px; height: 34px; border-radius: var(--r-pill); border: 0; padding: 0; cursor: pointer; background: #E4E4E8; box-shadow: inset 0 1px 3px rgba(31,36,51,.12); transition: background var(--d-fast) var(--e-standard); flex: none; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(31,36,51,.25); transition: transform var(--d-base) var(--e-out); }
.tgl[aria-checked="true"] { background: var(--grad-brand); box-shadow: var(--edge-brand-in); }
.tgl[aria-checked="true"]::after { transform: translateX(22px); }
.tgl:hover, .tgl.is-hover { filter: brightness(.95); }
.tgl:active::after, .tgl.is-pressed::after { width: 34px; }
.tgl[aria-checked="true"]:active::after, .tgl[aria-checked="true"].is-pressed::after { transform: translateX(16px); }
.tgl:focus-visible, .tgl.is-focus { box-shadow: var(--focus); }
.tgl:disabled, .tgl.is-disabled { background: var(--line-soft); box-shadow: none; cursor: default; }
.tgl:disabled::after, .tgl.is-disabled::after { background: var(--surface); box-shadow: none; }
/* slider */
.sld { position: relative; height: 34px; flex: 1; min-width: 120px; --v: 60%; }
.sld .tr { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: #ECECEF; box-shadow: inset 0 1px 2px rgba(31,36,51,.10); }
.sld .fl { position: absolute; left: 0; top: 13px; width: var(--v); height: 8px; border-radius: 4px; background: var(--accent); }
.sld .th { position: absolute; top: 3px; left: calc(var(--v) - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 0; padding: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(31,36,51,.25), 0 0 0 1px rgba(31,36,51,.06); }
.sld .th:hover, .sld .th.is-hover { box-shadow: 0 0 0 8px var(--accent-halo), 0 2px 8px rgba(31,36,51,.25); }
.sld .th:active, .sld .th.is-pressed { transform: scale(1.12); }
.sld .th:focus-visible, .sld .th.is-focus { box-shadow: var(--focus-edge), 0 2px 8px rgba(31,36,51,.25); }
.sld.is-disabled .fl { background: var(--line); } .sld.is-disabled .th { box-shadow: 0 0 0 1px var(--line); cursor: default; }
/* stepper */
.stp { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; }
/* wheel */
.wheel { display: grid; justify-items: center; gap: 2px; width: 100%; min-width: max-content; position: relative; }
.wheel span { font: 600 var(--t-22)/28px var(--sans); color: var(--grey); font-variant-numeric: tabular-nums; }
.wheel span.far { font-size: var(--t-17); color: #8A8A90; }
.wheel .on { font-size: 48px; line-height: 60px; color: var(--black); font-weight: 700; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; padding: 0 var(--s4); border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px rgba(31,36,51,.06), 0 10px 20px -10px rgba(31,36,51,.25); }
.wheel .on small { font: 600 var(--t-17)/20px var(--sans); color: var(--grey); letter-spacing: 0; }
.wheel:focus-visible, .wheel.is-focus { border-radius: var(--r-16); outline: none; }
.wheel:focus-visible::after, .wheel.is-focus::after { content: ""; position: absolute; inset: -4px -6px; border-radius: inherit; box-shadow: var(--focus-edge); pointer-events: none; z-index: 2; }
.wheel:hover .on, .wheel.is-hover .on { box-shadow: 0 0 0 1px rgba(31,36,51,.12), 0 14px 24px -10px rgba(31,36,51,.32); }
.wheel:active .on, .wheel.is-pressed .on { transform: scale(.97); background: #F4F4F6; box-shadow: inset 0 1px 3px rgba(31,36,51,.16); }
.wheel.is-disabled, .wheel[aria-disabled="true"] { cursor: default; } .wheel.is-disabled span, .wheel.is-disabled .on, .wheel.is-disabled .on small { color: var(--muted); } .wheel.is-disabled .on { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
/* segmented */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: #F0F0F2; box-shadow: inset 0 1px 3px rgba(31,36,51,.08); width: 100%; }
.seg button { flex: 1; height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 700 var(--t-15)/20px var(--sans); color: var(--grey); }
.seg button:hover, .seg button.is-hover { background: rgba(255,255,255,.7); }
.seg button:active, .seg button.is-pressed { background: #E2E2E6; }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); box-shadow: 0 4px 10px -4px rgba(17,17,17,.4); }
.seg button:focus-visible, .seg button.is-focus { box-shadow: var(--focus-edge); position: relative; z-index: 1; }
.seg button:disabled, .seg button.is-disabled { color: var(--muted); cursor: default; }
/* ticks */
.ticks { display: flex; gap: 4px; height: 28px; align-items: stretch; flex: 1; }
.ticks i { flex: 1; border-radius: 3px; background: #ECECEF; }
.ticks i.on { background: var(--accent); }
/* slide to act */
.slide { position: relative; width: 100%; height: 64px; border-radius: var(--r-pill); background: #F0F0F2; box-shadow: inset 0 2px 5px rgba(31,36,51,.08); display: flex; align-items: center; padding: 4px; }
.slide .gbtn.round { width: 56px; height: 56px; }
.slide .chev { display: flex; gap: 2px; margin-left: var(--s5); color: var(--grey); }
.slide .chev svg:nth-child(2) { opacity: .7; } .slide .chev svg:nth-child(3) { opacity: .45; }
.slide.is-disabled .gbtn { background: var(--line); box-shadow: none; }
/* stickers */
.stk { display: flex; } .stk img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--cream); box-shadow: 0 0 0 3px var(--white), 0 6px 12px -6px rgba(31,36,51,.3); }
.stk img + img { margin-left: -14px; }
/* folder card */
.kebab { position: absolute; top: var(--s5); right: var(--s5); width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--black); display: grid; place-items: center; }
.kebab:hover { background: #F2F2F4; } .kebab:focus-visible { box-shadow: var(--focus-edge); }
.wt .title { font: 700 44px/1.05 var(--sans); letter-spacing: -.035em; color: var(--black); }
/* avatar */
.ava { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--white), 0 0 0 6px rgba(31,36,51,.08), 0 12px 24px -10px rgba(31,36,51,.35); background: var(--tint); }
/* tappable tile states */
button.wt, a.wt { cursor: pointer; transition: transform var(--d-fast) var(--e-standard), box-shadow var(--d-fast) var(--e-standard); }
button.wt:hover, .wt.is-hover { box-shadow: var(--hl-inner), 0 1px 2px rgba(31,36,51,.04), 0 34px 60px -22px rgba(31,36,51,.24), 0 10px 24px -14px rgba(31,36,51,.08); }
button.wt:active, .wt.is-pressed { transform: scale(.98); box-shadow: var(--hl-inner), 0 1px 4px rgba(31,36,51,.10); }
button.wt:focus-visible, .wt.is-focus { box-shadow: var(--focus-edge), var(--sh-tile); }
.wt.is-disabled { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); cursor: default; }
.wt.is-disabled .hero-ic { filter: grayscale(1) opacity(.45); }
.wt.is-disabled .num, .wt.is-disabled .lbl, .wt.is-disabled span, .wt.is-disabled .title { color: var(--muted); }
/* icon catalogue */
.icset { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s4); }
.icset figure { margin: 0; display: grid; justify-items: center; gap: var(--s2); }
.icset .ic { width: 112px; height: 112px; border-radius: 32px; display: grid; place-items: center; background: var(--white); box-shadow: var(--hl-inner), var(--sh-tile); }
.icset .gl { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--white); color: var(--grey); box-shadow: var(--hl-inner), 0 1px 2px rgba(31,36,51,.04); }
.icset figcaption { font: 500 12px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-3); }
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(84px, auto); gap: var(--s3); }
  .wt.nt[data-pr] { grid-row: span 1; padding: var(--s4) var(--s5); gap: var(--s2); }
  .wt { grid-column: span min(var(--c, 1), 2); padding: var(--s4) var(--s5); --r-tile: 32px; }
  .wt[data-pc="1"] { grid-column: span 1; } .wt[data-pc="2"] { grid-column: span 2; }
  .wt[data-pr="1"] { grid-row: span 1; } .wt[data-pr="2"] { grid-row: span 2; } .wt[data-pr="3"] { grid-row: span 3; }
  .wt .msg, .wt .msg.big { font-size: var(--t-17); line-height: 24px; }
  .wt .hero-ic.fold { width: 224px; height: 224px; margin: -50px -36px -42px -46px; } .hero-ic[width="150"] { width: 120px; height: 120px; margin: -10px; }
  .wt .title { font-size: 34px; }
  .wt.tall .big .num { font-size: 72px; }
  .wt.tall .big { padding: var(--s6) var(--s6) 0; }
  .gbtn.pill { padding: 0 var(--s6); font-size: var(--t-20); }
  .icset .ic { width: 84px; height: 84px; border-radius: 26px; } .icset .ic img { width: 72px; height: 72px; }
}
.wsheet { padding: var(--s10) 0; border-top: 1px solid var(--line-soft); }
.wsheet .bento { margin-top: var(--s8); padding: var(--s10); border-radius: 48px; background: var(--cream); }
.wtbl tr.wgrp th { padding-top: var(--s8); color: var(--navy); }
.wtbl td:first-child { width: 22%; } .wtbl td:last-child { width: 30%; } .wtbl code { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .wsheet .bento { padding: var(--s3) var(--s2); border-radius: 28px; margin-left: calc(var(--s2) * -1); margin-right: calc(var(--s2) * -1); } }
.cell > .wt { max-width: calc(100vw - 48px); } .cell > .seg { max-width: calc(100vw - 48px); }
.wt .stretch { font: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; color: inherit; }
.wt .stretch.title { font: 700 44px/1.05 var(--sans); letter-spacing: -.035em; color: var(--black); }
.wt .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wt .stretch:focus-visible { outline: none; } .wt:has(.stretch:focus-visible) { box-shadow: var(--focus-edge), var(--sh-tile); }
.wt .kebab { z-index: 2; }
.ctaw .val { display: flex; align-items: baseline; gap: var(--s2); padding-left: var(--s2); }
.ctaw .val .fbtn { align-self: center; margin-left: var(--s2); }
.ctaw .gbtn.pill { height: 100%; width: 54%; }
@media (max-width: 760px) {
  .ctaw { flex-wrap: wrap; align-content: space-between; row-gap: var(--s3); }
  .ctaw .sp { display: none; }
  .ctaw .val .num { font-size: 52px !important; }
  .ctaw .gbtn.pill { width: 100%; height: 72px; min-height: 0; }
  .wt .stretch.title { font-size: 34px; }
}
.tier { background: var(--white); border-radius: var(--r-18); box-shadow: inset 0 0 0 1px var(--line-soft); padding: var(--s6); }
.tier h4 { font: 600 var(--t-18)/24px var(--sans); color: var(--navy); }
.tier p { margin-top: var(--s2); color: var(--ink-2); }
.tier a { color: var(--accent-ink); font-weight: 600; }
