/* LittleLogic homepage mockup. Same family as the Little Scribs site: full-width colour sheets that overlap like paper, very large type, the real app doing the talking. */
:root {
  --cream: #FFF8F0; --warm: #FBEFE0; --peach: #F8E3CC; --line: #EDE6DB;
  --ink: #1D1F37; --ink-2: #2A2D4E; --ink-3: #3A3E66; --text-app: #2D3047; --text-app-2: #7A7D95;
  --teal: #2ABFBF; --teal-deep: #178A8A; --teal-soft: #E6F9F9;
  --orange: #FF8C5A; --orange-deep: #E5622F; --orange-soft: #FFF0E8;
  --purple: #9B72CF; --purple-deep: #6C4FA0; --purple-soft: #F3EEFA;
  --pink: #E8729A; --pink-deep: #B14066; --pink-soft: #FDF0F4;
  --gold: #FFB800; --gold-deep: #A87700; --gold-soft: #FFF9E6;
  --on-ink: #FFF8F0; --on-ink-2: rgba(255, 248, 240, .74); --muted: rgba(29, 31, 55, .68);
  --display: 'Baloo 2', 'Arial Rounded MT Bold', ui-rounded, system-ui, sans-serif;
  --text: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: max(20px, 4.4vw); --max: 1320px;
  --r-sheet: clamp(28px, 4.6vw, 68px);
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.45, .64, 1); --inout: cubic-bezier(.65, 0, .35, 1);
  --sh-card: 0 30px 60px -24px rgba(29, 31, 55, .36), 0 12px 22px -14px rgba(29, 31, 55, .24);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main, .hero { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 600 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
body.lock { overflow: hidden; }
img, video, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: normal; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--teal); color: #fff; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.i.fill { fill: currentColor; stroke: none; }

/* the page's scrollbar: on computers the browser's own bar is hidden and an orange thumb floats over the page */
.sbar { display: none; position: fixed; z-index: 90; right: 0; top: 4px; bottom: 4px; width: 16px; }
.sbar i { position: absolute; right: 4px; top: 0; width: 6px; height: var(--h, 80px); border-radius: 99px; background: var(--orange); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); transform: translate3d(0, var(--y, 0px), 0); transition: width .25s var(--ease), opacity .3s; opacity: .94; cursor: grab; touch-action: none; }
.sbar:hover i, .sbar.drag i { width: 10px; opacity: 1; }
.sbar.drag i { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  .sbar { display: block; }
  .sbar[hidden] { display: none; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.022em; }
h2 { font-size: clamp(2.4rem, 5.1vw, 4.7rem); line-height: 1; letter-spacing: -.02em; }
h3 { font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.08; letter-spacing: -.01em; }
.lede { font-size: clamp(1.06rem, 1.3vw, 1.26rem); line-height: 1.5; font-weight: 600; color: var(--muted); max-width: 33em; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 900 .8rem/1 var(--text); letter-spacing: .15em; text-transform: uppercase; color: var(--orange-deep); }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--spk) center / contain no-repeat; mask: var(--spk) center / contain no-repeat; }
:root { --spk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 5.2 2.3 8.4 9 10.5-6.700 2.100-8.400 5.300-9 10.500-.600-5.200-2.300-8.400-9-10.500 6.700-2.100 8.400-5.300 9-10.500z'/%3E%3C/svg%3E"); }
.tiny { font-size: .9rem; color: var(--muted); font-weight: 700; }
.q { color: var(--qc, var(--teal-deep)); }

/* words rise out of a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .05em .2em; margin: -.1em -.05em -.2em; }
.split .w > span { display: inline-block; transform: translateY(118%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
[data-rise] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-rise].in { opacity: 1; transform: none; }

/* marker strokes under key words */
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk > svg { position: absolute; overflow: visible; pointer-events: none; fill: none; stroke: var(--mkc, var(--orange)); stroke-width: .1em; stroke-linecap: round; stroke-linejoin: round; z-index: -1; left: -3%; width: 106%; bottom: .02em; height: .3em; }
.mk > svg path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--inout) .55s; }
.mk.in > svg path { stroke-dashoffset: 0; }
h1, h2 { isolation: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 1.02rem/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform .5s var(--ease), background .25s, color .25s, box-shadow .3s; will-change: transform; }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn.sm { height: 44px; padding: 0 20px; font-size: .95rem; }
.btn.orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 22px -10px rgba(255, 140, 90, .9); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-b { display: block; border-radius: 11px; transition: transform .5s var(--ease); }
.store-b:hover { transform: translateY(-3px) scale(1.03); }
.store-b img { height: 56px; width: auto; border-radius: 11px; box-shadow: 0 14px 26px -12px rgba(29, 31, 55, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: .88rem; }
.chips svg.i { width: 18px; height: 18px; stroke-width: 2.8; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; font: 900 .7rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.badge svg.i { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 80; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); width: min(1200px, calc(100vw - 28px)); height: 66px; padding: 0 11px 0 14px; display: flex; align-items: center; gap: 14px; transform: translateX(-50%); background: rgba(255, 252, 247, .9); -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px); border-radius: 999px; box-shadow: 0 14px 34px -16px rgba(29, 31, 55, .38), 0 0 0 1px rgba(29, 31, 55, .06); transition: transform .6s var(--ease); }
.nav.away { transform: translate(-50%, calc(-100% - 40px)); }
.brand { display: flex; align-items: center; gap: 8px; font: 800 1.55rem/1 var(--display); letter-spacing: -.02em; color: var(--teal); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand img { width: 45px; height: 40px; object-fit: contain; transition: transform .6s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b { font-weight: 800; padding-top: .12em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-weight: 800; font-size: .95rem; text-decoration: none; padding: 10px 13px; border-radius: 99px; transition: background .2s; white-space: nowrap; }
.nav-links a:hover { background: rgba(29, 31, 55, .07); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--warm); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--ink); top: 17px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i + i { top: 25px; }
.burger[aria-expanded="true"] i { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i + i { transform: rotate(-45deg); }
.menu { position: fixed; z-index: 70; inset: 0; background: var(--ink); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 110px) 26px 40px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.menu a:not(.btn) { font: 800 2.2rem/1.25 var(--display); text-decoration: none; opacity: 0; transform: translateY(24px); animation: menu-in .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.menu .btn { margin-top: 22px; align-self: flex-start; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
@media (max-width: 1040px) { .nav-links { display: none; } .burger { display: block; } }
@media (max-width: 520px) { .nav { height: 60px; padding: 0 8px 0 10px; gap: 8px; } .brand { font-size: 1.32rem; } .brand img { width: 38px; height: 34px; } .nav .btn.sm { height: 42px; padding: 0 16px; font-size: .9rem; } }

/* ---------- hero: the family under the tree ---------- */
.hero { position: relative; min-height: max(100svh, 700px); background: #a6cbc5; --qc: var(--orange-deep); }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art picture { display: contents; }
.hero-art > picture > img { position: absolute; left: 0; top: 0; width: 137%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 24%; transform-origin: 68% 42%; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; }
.hero-in { position: relative; z-index: 2; padding-top: clamp(118px, 17vh, 200px); padding-bottom: 70px; pointer-events: none; }
.hero-copy { position: relative; max-width: min(47vw, 650px); display: grid; gap: 22px; justify-items: start; pointer-events: auto; }
.hero-copy::before { content: ""; position: absolute; left: -22%; top: -14%; width: 150%; height: 128%; background: radial-gradient(closest-side, rgba(255, 248, 240, .66), rgba(255, 248, 240, .34) 52%, rgba(255, 248, 240, 0)); z-index: -1; pointer-events: none; }
.hero h1 .mk { --mkc: var(--teal); }
.hero .lede { color: rgba(29, 31, 55, .82); max-width: 30em; }
.hero .tiny { color: rgba(29, 31, 55, .8); text-shadow: 0 0 10px rgba(255, 248, 240, .95), 0 0 22px rgba(255, 248, 240, .8); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 13px; border-radius: 99px; background: var(--ink); color: #fff; font: 800 .82rem/1 var(--text); letter-spacing: .02em; box-shadow: 0 12px 24px -14px rgba(29, 31, 55, .7); }
.hero-badge svg.i { width: 16px; height: 16px; margin-top: -2px; }
.hero-badge b { color: #FFE39A; font-weight: 900; white-space: nowrap; }
.hero-badge i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-in { order: 1; }
  .hero-art { order: 2; position: relative; inset: auto; height: 138vw; margin-top: -6vw; -webkit-mask: linear-gradient(to bottom, transparent, #000 17%); mask: linear-gradient(to bottom, transparent, #000 17%); }
  .hero-art > picture > img { left: 0; width: 100%; object-position: 50% 0; transform-origin: 50% 40%; }
  .hero-in { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); padding-bottom: 0; }
  .hero-copy { max-width: none; gap: 18px; }
  .hero-copy::before { left: -30%; width: 160%; top: -10%; height: 130%; }
  .hero-badge { font-size: .66rem; gap: 6px; height: 34px; padding: 0 11px 0 9px; white-space: nowrap; }
  .hero-badge svg.i { width: 14px; height: 14px; }
  .store-b img { height: 48px; }
}

/* ---------- the awards band ---------- */
.mq { position: relative; z-index: 1; background: var(--teal); color: #fff; overflow: hidden; padding: clamp(16px, 2vw, 26px) 0 calc(clamp(16px, 2vw, 26px) + var(--r-sheet)); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-track span { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px); font: 800 clamp(1.5rem, 3.1vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.mq-track svg { width: .56em; height: .56em; color: #FFE39A; }
.mq-track span:nth-child(even) { color: var(--ink); }

/* ---------- sheets ---------- */
.sheet { position: relative; border-radius: var(--r-sheet) var(--r-sheet) 0 0; margin-top: calc(-1 * var(--r-sheet)); padding-top: clamp(84px, 10vw, 160px); padding-bottom: calc(clamp(84px, 10vw, 160px) + var(--r-sheet)); z-index: 2; }
.s-cream { background: var(--cream); }
.s-warm { background: var(--warm); }
.s-ink { background: var(--ink); color: var(--on-ink); --qc: var(--teal); }
.s-ink .lede { color: var(--on-ink-2); }
.s-ink .eyebrow { color: #FFD36B; }
.s-teal { background: var(--teal-deep); color: #fff; }
.s-teal .eyebrow { color: #FFE39A; }
.s-teal .mk { --mkc: #FFD36B; }

/* ---------- how it works: the pinned story ---------- */
.story { padding-bottom: calc(var(--r-sheet) + clamp(56px, 9vh, 120px)); }
.story-head { display: grid; gap: 22px; padding-bottom: clamp(30px, 5vw, 80px); }
.story-head h2 { max-width: 12em; }
.st-track { position: relative; height: calc(6 * 92vh + 70vh); }
.st-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.st-pin::before, .st-pin::after { content: ""; position: absolute; left: 0; right: 0; height: 24%; pointer-events: none; z-index: 1; }
.st-pin::before { top: 0; background: linear-gradient(to bottom, #1D1F37, rgba(29, 31, 55, .8) 28%, rgba(29, 31, 55, .36) 62%, rgba(29, 31, 55, 0)); }
.st-pin::after { bottom: 0; background: linear-gradient(to top, #1D1F37, rgba(29, 31, 55, .8) 28%, rgba(29, 31, 55, .36) 62%, rgba(29, 31, 55, 0)); }
.st-amb { position: absolute; inset: 3px 0; pointer-events: none; overflow: hidden; }
.amb-l { position: absolute; inset: -10%; opacity: 0; transition: opacity 1.3s; animation: amb-drift 15s ease-in-out infinite alternate; background:
  radial-gradient(ellipse 44% 50% at 50% 52%, rgb(var(--a) / .42), rgb(var(--a) / .24) 30%, rgb(var(--a) / .1) 62%, rgb(var(--a) / 0) 100%),
  radial-gradient(ellipse 40% 48% at 12% 82%, rgb(var(--b) / .36), rgb(var(--b) / .15) 45%, rgb(var(--b) / 0) 100%),
  radial-gradient(ellipse 38% 46% at 90% 16%, rgb(var(--c) / .36), rgb(var(--c) / .14) 45%, rgb(var(--c) / 0) 100%); }
@keyframes amb-drift { from { transform: translate3d(-2%, 1.5%, 0) scale(1); } to { transform: translate3d(2%, -2%, 0) scale(1.07); } }
.amb-l[data-k="ask"] { --a: 42 191 191; --b: 255 140 90; --c: 155 114 207; }
.amb-l[data-k="answer"] { --a: 255 140 90; --b: 232 114 154; --c: 42 191 191; }
.amb-l[data-k="speak"] { --a: 155 114 207; --b: 42 191 191; --c: 255 184 0; }
.amb-l[data-k="history"] { --a: 232 114 154; --b: 155 114 207; --c: 42 191 191; }
.amb-l[data-k="quiz"] { --a: 255 184 0; --b: 255 140 90; --c: 155 114 207; }
.amb-l[data-k="quotes"] { --a: 42 191 191; --b: 255 184 0; --c: 232 114 154; }
.st-pin[data-k="ask"] .amb-l[data-k="ask"], .st-pin[data-k="answer"] .amb-l[data-k="answer"], .st-pin[data-k="speak"] .amb-l[data-k="speak"], .st-pin[data-k="history"] .amb-l[data-k="history"], .st-pin[data-k="quiz"] .amb-l[data-k="quiz"], .st-pin[data-k="quotes"] .amb-l[data-k="quotes"] { opacity: 1; }
.st-words { position: absolute; inset: 0; transform: translate3d(var(--wx, 0px), 0, 0); }
.st-words b { position: absolute; left: 50%; top: 50%; font: 800 min(27vw, 56vh)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; color: rgba(255, 255, 255, .05); transform: translate(-50%, -30%); opacity: 0; transition: opacity .7s, transform 1.3s var(--ease); -webkit-user-select: none; user-select: none; }
.st-words b.on { opacity: 1; transform: translate(-50%, -48%); }
.st-words b.past { transform: translate(-50%, -70%); }
.st-grid { position: relative; z-index: 2; height: 100%; max-width: calc(1500px + 2 * var(--gut)); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(22px, 3.6vw, 72px); padding-top: 40px; }
.st-copy { position: relative; height: min(48vh, 400px); }
.st-step { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(40px); transition: opacity .45s, transform .8s var(--ease); pointer-events: none; }
.st-step.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.st-step.past { transform: translateY(-40px); }
.st-tag { display: flex; align-items: center; gap: 12px; font: 900 .8rem/1 var(--text); letter-spacing: .15em; text-transform: uppercase; color: #FFD36B; }
.st-tag b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FFD36B; color: var(--ink); font: 800 1.2rem/1 var(--display); letter-spacing: 0; padding-top: 3px; }
.st-step h3 { font-size: clamp(1.9rem, 3.1vw, 3.2rem); line-height: 1; margin: 20px 0 16px; color: #fff; }
.st-step > p:last-child { color: var(--on-ink-2); font-size: clamp(1rem, 1.2vw, 1.16rem); max-width: 27em; }
.st-stage { position: relative; display: grid; place-items: center; min-width: min(34vw, 430px); }
.st-rail { position: relative; display: grid; gap: clamp(18px, 3.4vh, 34px); padding-left: 58px; justify-self: end; }
.st-rail svg { position: absolute; left: 0; top: 0; width: 44px; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.st-rail svg .bg { stroke: rgba(255, 255, 255, .13); stroke-width: 5; }
.st-rail svg .fg { stroke: var(--orange); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rp, 0)); }
.st-rail button { font: 800 1.02rem/1.2 var(--text); color: rgba(255, 248, 240, .42); text-align: left; transition: color .3s, transform .5s var(--ease); transform-origin: 0 50%; white-space: nowrap; }
.st-rail button:hover { color: #fff; }
.st-rail li.on button { color: #fff; transform: scale(1.14); }

/* the phone: the app's own screens, rebuilt so they stay sharp and can move */
.phone { --k: 1; position: relative; width: calc(372px * var(--k)); height: calc(792px * var(--k)); flex: none; z-index: 2; }
.ph-frame { position: absolute; left: 0; top: 0; width: 372px; height: 792px; padding: 10px; border-radius: 64px; transform: scale(var(--k)); transform-origin: 0 0; background: linear-gradient(145deg, #585d84 0%, #1a1c36 22%, #0c0d1e 62%, #3c4168 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), inset 0 0 0 4px #0a0b18, 0 70px 110px -40px rgba(0, 0, 0, .75), 0 30px 50px -30px rgba(0, 0, 0, .7); }
.ph-frame::before, .ph-frame::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2c3052; }
.ph-frame::before { left: -3px; top: 170px; height: 56px; box-shadow: 0 74px 0 #2c3052; }
.ph-frame::after { right: -3px; top: 210px; height: 92px; }
.ph-screen { position: relative; width: 352px; height: 772px; border-radius: 54px; overflow: hidden; background: var(--cream); color: var(--text-app); isolation: isolate; font: 600 13.5px/1.5 var(--text); transform: translateZ(0); }
.ph-island { position: absolute; left: 50%; top: 11px; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #07080f; z-index: 30; }
.ph-screen svg.i { width: 16px; height: 16px; }
.ap-head { position: absolute; left: 0; right: 0; top: 50px; height: 34px; padding: 0 16px; display: flex; align-items: center; gap: 7px; z-index: 5; }
.ap-head img { width: 31px; height: 28px; object-fit: contain; }
.ap-head > b { font: 800 21px/1 var(--display); letter-spacing: -.02em; color: var(--teal); padding-top: 3px; margin-right: auto; }
.ap-pro { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px; background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); color: #E5A400; font: 900 10.5px/1 var(--text); letter-spacing: .04em; }
.ap-pro svg.i { width: 12px; height: 12px; }
.ap-kid { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 5px 0 3px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-app-2); }
.ap-kid i { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 900 10px/1 var(--text); font-style: normal; }
.ap-kid svg.i { width: 11px; height: 11px; }
.ap-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; padding: 9px 8px 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; z-index: 6; }
.ap-tabs span { display: grid; justify-items: center; gap: 4px; font: 900 7.4px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; color: #A6E2E2; transition: color .3s; }
.ap-tabs svg.i { width: 19px; height: 19px; }
.ap-tabs span.on { color: var(--teal); }
.v { position: absolute; left: 0; right: 0; top: 96px; bottom: 68px; padding: 0 16px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .6s var(--ease), visibility 0s .35s; }
.phone[data-s="ask"] .v-ask, .phone[data-s="answer"] .v-answer, .phone[data-s="speak"] .v-speak, .phone[data-s="history"] .v-history, .phone[data-s="quiz"] .v-quiz, .phone[data-s="quotes"] .v-quotes { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .12s, transform .7s var(--ease) .12s; }
.ap-hi, .ap-title { display: flex; align-items: center; gap: 7px; font: 700 15px/1.2 var(--display); color: var(--text-app); margin: 2px 0 12px; }
.ap-hi svg.i, .ap-title svg.i { width: 17px; height: 17px; color: var(--teal); }
.ap-title svg.i { color: var(--text-app); }
.ap-seg { display: grid; grid-template-columns: 1fr 1fr; height: 38px; padding: 3px; border-radius: 19px; background: #F0E8DC; margin-bottom: 12px; }
.ap-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; font: 800 12.5px/1 var(--text); color: var(--text-app-2); transition: background .35s, color .35s, box-shadow .35s; }
.ap-seg span svg.i { width: 14px; height: 14px; }
.ap-seg span.on { background: #fff; color: var(--teal-deep); box-shadow: 0 2px 8px rgba(45, 48, 71, .08); }
.ap-card { background: #fff; border-radius: 18px; box-shadow: 0 2px 16px rgba(45, 48, 71, .06); }
.ap-btn { height: 40px; border-radius: 14px; background: linear-gradient(135deg, #7FD6D6, #76C7C4); color: #fff; font: 800 13.5px/1 var(--display); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 11px; box-shadow: 0 6px 14px -8px rgba(42, 191, 191, .9); transition: background .4s, transform .3s var(--spring); }
.ap-btn.ready, .ap-btn.solid { background: linear-gradient(135deg, #2ABFBF, #1FA5A5); }
.ap-btn.tap { animation: ap-tap .5s var(--ease); }
@keyframes ap-tap { 35% { transform: scale(.94); } }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--teal); margin-left: 1px; vertical-align: -.18em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ask */
.ask-card { padding: 14px 14px 12px; }
.ask-q { position: relative; min-height: 78px; font-size: 14px; font-weight: 700; color: var(--text-app); border-bottom: 1px solid var(--line); }
.ask-q em { position: absolute; left: 0; top: 0; color: var(--text-app-2); font-weight: 600; transition: opacity .2s; }
.ask-q.has em { opacity: 0; }
.ask-q:not(.type) .caret { display: none; }
.ask-ctx { display: flex; align-items: center; gap: 7px; padding: 11px 0; font-size: 12.5px; color: var(--text-app-2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.ask-ctx svg.i { width: 14px; height: 14px; }
.ask-ctx.has span { color: var(--text-app); font-weight: 700; }
.ask-tools { display: flex; align-items: center; gap: 7px; padding-top: 10px; }
.ask-tools span { width: 32px; height: 32px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; }
.ask-tools b { margin-left: auto; font: 800 9.5px/1 var(--text); color: var(--text-app); }
.ask-tools b i { font-style: normal; color: var(--text-app-2); }
.ap-how { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; margin-top: 11px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); font: 800 10.5px/1 var(--text); }
.ap-how svg.i { width: 12px; height: 12px; }
.ap-how svg.i:last-child { margin-left: auto; }

/* answer */
.v-answer { padding: 0; overflow: hidden; -webkit-mask: linear-gradient(to bottom, transparent, #000 16px); mask: linear-gradient(to bottom, transparent, #000 16px); }
.ans-scroll { padding-top: 6px; }
.ans-scroll { padding: 6px 16px 16px; display: grid; gap: 10px; transform: translate3d(0, var(--sy, 0px), 0); }
.qcard { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.qcard .qi, .qcard .qs { width: 30px; height: 30px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.qcard .qi svg.i, .qcard .qs svg.i { width: 14px; height: 14px; }
.qcard div { flex: 1; min-width: 0; }
.qcard b { display: block; font: 700 13px/1.25 var(--display); color: var(--text-app); }
.qcard em { font: 800 9.5px/1 var(--text); color: #6C5CE7; }
.ans { padding: 12px 14px 13px; border-left: 3.5px solid var(--bc); opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .8s var(--ease); transition-delay: calc(var(--i) * 170ms + .3s); }
.phone[data-s="answer"] .ans { opacity: 1; transform: none; }
.ans .badge { background: var(--bs); color: var(--bd); font-size: 8px; padding: 4px 8px 4px 6px; margin-bottom: 7px; }
.ans .badge svg.i { width: 10px; height: 10px; }
.ans p { font-size: 12.6px; line-height: 1.55; font-weight: 600; color: var(--text-app); }
.a-teal { --bc: var(--teal); --bs: var(--teal-soft); --bd: #1FA5A5; }
.a-orange { --bc: var(--orange); --bs: var(--orange-soft); --bd: var(--orange); }
.a-purple { --bc: var(--purple); --bs: var(--purple-soft); --bd: var(--purple); }
.a-pink { --bc: var(--pink); --bs: var(--pink-soft); --bd: var(--pink); }

/* speak */
.tk-msgs { display: grid; gap: 8px; justify-items: start; }
.tk { max-width: 86%; padding: 9px 12px; border-radius: 16px; background: #fff; font-size: 11.6px; line-height: 1.5; color: var(--text-app); box-shadow: 0 2px 12px rgba(45, 48, 71, .05); border-bottom-left-radius: 5px; }
.tk.me { justify-self: end; background: var(--teal); color: #fff; font-weight: 800; border-radius: 16px; border-bottom-right-radius: 5px; opacity: 0; transform: translateY(12px) scale(.9); transform-origin: 100% 100%; transition: opacity .35s, transform .6s var(--spring); }
.tk.b2 { opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .7s var(--ease); }
.phone[data-sub="think"] .tk.me, .phone[data-sub="speak"] .tk.me, .phone[data-sub="speak"] .tk.b2 { opacity: 1; transform: none; }
.tk-dock { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 146px; display: grid; place-items: center; }
.tk-dock u { position: absolute; right: 16px; top: 11px; font: 800 9.5px/1 var(--text); color: var(--text-app-2); }
.tk-orb { position: relative; width: 104px; height: 94px; animation: orb 2.4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.05); } }
.tk-orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s; }
.tk-lab { position: absolute; inset: 14% 10% 26% 10%; display: grid; place-items: center; align-content: center; gap: 3px; opacity: 0; transition: opacity .35s; }
.tk-lab svg.i { width: 20px; height: 20px; }
.tk-lab b { font: 800 9.5px/1 var(--display); }
.l-listen { color: var(--teal-deep); } .l-think { color: var(--purple-deep); } .l-speak { color: #D9541E; }
.phone[data-sub="listen"] .o-teal, .phone[data-sub="listen"] .l-listen, .phone[data-sub="think"] .o-purple, .phone[data-sub="think"] .l-think, .phone[data-sub="speak"] .o-orange, .phone[data-sub="speak"] .l-speak { opacity: 1; }
.tk-stop { position: absolute; right: 22px; top: 50%; width: 38px; height: 38px; margin-top: -12px; border-radius: 50%; box-shadow: inset 0 0 0 1px #F5B9A4; display: grid; place-items: center; }
.tk-stop i { width: 9px; height: 9px; border-radius: 2px; background: #E5622F; }

/* history */
.s-list, .s-topics { transition: background .35s, color .35s, box-shadow .35s; }
.phone:not([data-sub="topics"]) .s-list, .phone[data-sub="topics"] .s-topics { background: #fff; color: var(--teal-deep); box-shadow: 0 2px 8px rgba(45, 48, 71, .08); }
.hs-list { display: grid; gap: 9px; transition: opacity .35s, transform .6s var(--ease); }
.hs { display: flex; align-items: center; gap: 10px; padding: 11px 12px; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .7s var(--ease); transition-delay: calc(var(--i) * 90ms + .25s); }
.phone[data-s="history"] .hs { opacity: 1; transform: none; }
.hs > i { width: 30px; height: 30px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.hs > i svg.i { width: 14px; height: 14px; }
.hs div { flex: 1; min-width: 0; }
.hs b { display: block; font: 700 12px/1.25 var(--display); color: var(--text-app); }
.hs em { display: block; margin-top: 3px; font: 700 8.6px/1.2 var(--text); color: var(--text-app-2); }
.hs em u { text-decoration: none; font-weight: 900; color: var(--tc); }
.hs > svg.i { width: 13px; height: 13px; color: #C9C3BA; }
.hs-topics { position: absolute; left: 16px; right: 16px; top: 98px; padding: 14px 14px 12px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .4s, transform .7s var(--ease); pointer-events: none; }
.phone[data-sub="topics"] .hs-list { opacity: 0; transform: translateY(-16px); }
.phone[data-sub="topics"] .hs-topics { opacity: 1; transform: none; transition-delay: .15s; }
.hs-h { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); color: var(--text-app); }
.hs-h svg.i { width: 14px; height: 14px; color: var(--teal); }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .data { fill: rgba(42, 191, 191, .2); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 54%; transform: scale(.2); opacity: 0; transition: transform 1s var(--spring) .3s, opacity .4s .3s; }
.radar .dot { fill: var(--teal); opacity: 0; transition: opacity .4s .9s; }
.phone[data-sub="topics"] .radar .data { transform: none; opacity: 1; }
.phone[data-sub="topics"] .radar .dot { opacity: 1; }
.radar text { font: 800 10px/1 var(--text); fill: var(--text-app-2); }
.hs-leg { display: grid; gap: 6px; margin-top: 4px; }
.hs-leg p { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 800 10px/1 var(--text); color: var(--text-app); }
.hs-leg i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.hs-leg span { height: 5px; border-radius: 5px; background: #F3EDE4; overflow: hidden; }
.hs-leg span::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--tc); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease) .5s; }
.phone[data-sub="topics"] .hs-leg span::after { transform: none; }

/* quiz */
.qz-q { display: flex; gap: 10px; padding: 13px 13px 12px; margin-bottom: 10px; }
.qz-q > i { width: 26px; height: 26px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font: 800 12px/1 var(--display); font-style: normal; flex: none; }
.qz-q b { display: block; font: 700 13px/1.3 var(--display); color: var(--text-app); }
.qz-q em { display: block; margin-top: 5px; font: 800 9px/1 var(--text); color: #00B894; }
.qz-opts { display: grid; gap: 7px; }
.qz-opts p { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 13px; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(45, 48, 71, .05); font: 700 11.5px/1 var(--display); color: var(--text-app); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .6s var(--ease), background .35s, color .35s; transition-delay: calc(var(--i) * 80ms + .3s), calc(var(--i) * 80ms + .3s), 0s, 0s; }
.phone[data-s="quiz"] .qz-opts p { opacity: 1; transform: none; }
.qz-opts i { font: 800 10.5px/1 var(--display); font-style: normal; color: var(--text-app); width: 10px; }
.phone[data-sub="tap"] .qz-opts .right { transform: scale(.96); transition-delay: 0s; }
.phone[data-sub="done"] .qz-opts .right { background: #C9F2E3; color: #0B7A5A; }
.phone[data-sub="done"] .qz-opts p:not(.right) { opacity: .55; }
.qz-fact { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); font-size: 9.6px; line-height: 1.5; font-weight: 700; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .7s var(--ease); }
.qz-fact b { display: flex; align-items: center; gap: 5px; font: 900 9px/1 var(--text); margin-bottom: 4px; }
.qz-fact svg.i { width: 11px; height: 11px; }
.qz-next { opacity: 0; transform: translateY(12px); transition: opacity .45s .15s, transform .7s var(--ease) .15s; }
.qz-next svg.i { width: 14px; height: 14px; }
.phone[data-sub="done"] .qz-fact, .phone[data-sub="done"] .qz-next { opacity: 1; transform: none; }

/* quotes */
.qt-new { padding: 12px 14px; }
.qt-h { display: flex; align-items: center; gap: 9px; font: 700 12.5px/1 var(--display); color: var(--text-app); margin-bottom: 9px; }
.qt-h i { width: 24px; height: 24px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.qt-h i svg.i { width: 13px; height: 13px; }
.qt-h > svg.i { margin-left: auto; width: 13px; height: 13px; color: var(--text-app-2); }
.qt-in { position: relative; min-height: 44px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.qt-in em { position: absolute; left: 0; top: 0; color: var(--text-app-2); font-weight: 600; }
.qt-in.has em { opacity: 0; }
.qt-in:not(.type) .caret { display: none; }
.qt-ctx { display: flex; align-items: center; gap: 7px; padding-top: 9px; font-size: 11.5px; color: var(--text-app-2); }
.qt-ctx svg.i { width: 13px; height: 13px; }
.qt-ctx.has span { color: var(--text-app); font-weight: 700; }
.qt-list { display: grid; gap: 8px; margin-top: 12px; }
.qt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-left: 3.5px solid var(--orange); }
.qt div { flex: 1; min-width: 0; }
.qt b { display: block; font: 700 12px/1.25 var(--display); font-style: italic; color: var(--text-app); }
.qt em { display: block; margin-top: 3px; font: 700 8.6px/1.2 var(--text); color: var(--text-app-2); }
.qt > svg.i { width: 13px; height: 13px; color: #C9C3BA; }
.qt-fresh { max-height: 0; padding-block: 0; margin-bottom: -8px; opacity: 0; overflow: hidden; transform: scale(.9); transition: max-height .7s var(--ease), padding .7s var(--ease), margin .7s var(--ease), opacity .4s .15s, transform .7s var(--spring) .1s; }
.phone[data-sub="saved"] .qt-fresh { max-height: 70px; padding-block: 10px; margin-bottom: 0; opacity: 1; transform: none; }
.phone[data-sub="saved"] .qt-fresh > svg.i { color: var(--gold); fill: var(--gold); }

@media (max-width: 900px) {
  .st-track { height: calc(6 * 84vh + 60vh); }
  .st-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0; align-items: start; padding-top: calc(env(safe-area-inset-top, 0px) + 22px); padding-bottom: 14px; }
  .st-copy { height: 172px; }
  .st-tag b { width: 30px; height: 30px; font-size: 1rem; }
  .st-step h3 { font-size: clamp(1.5rem, 6.2vw, 2.1rem); margin: 10px 0 8px; }
  .st-step > p:last-child { font-size: .93rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .st-stage { align-self: stretch; min-width: 0; }
  .st-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w > span, [data-rise] { transition-duration: .01s; transition-delay: 0s; transform: none; }
  .mk > svg path { transition-duration: .01s; }
  .amb-l, .tk-orb { animation: none; }
}
