/* ============ Roastly — kitchen crew design (light + dark) ============
   Loaded after style.css and course.css: retunes the shared tokens and restyles the shared components. */
:root {
  --bg: #F2EDFF; --bg-2: #E8E0FF; --surface: #FFFFFF; --surface-2: #F6F2FF;
  --line: #E2DAFB; --line-2: #CFC3F6;
  --text: #1D1340; --muted: #6E6694; --dim: #9A92BE;
  --ember: #6C3BFF; --ember-2: #FF5FA2; --amber: #FFE14D;
  --pri: #6C3BFF; --pri-d: #4A1FD0; --lem: #FFE14D; --lem-d: #E2BE12; --teal: #13C8B4; --teal-d: #0B9888; --pink: #FF5FA2; --pink-d: #D23A7C;
  --ok: #0FB5A2; --bad: #F2457F; --on-ac: #FFFFFF;
  --r-sm: 14px; --r: 22px; --r-lg: 30px;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --serif: 'Unbounded', 'Onest', system-ui, sans-serif;
  --mono: 'Onest', system-ui, sans-serif;
  --sh: 0 2px 0 rgba(29,19,64,.04), 0 18px 40px -24px rgba(60,30,160,.45);
  --sh-press: 0 5px 0 var(--line-2);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #110B24; --bg-2: #170F31; --surface: #211845; --surface-2: #2A1F55;
  --line: #31275F; --line-2: #463A85;
  --text: #F4F0FF; --muted: #A69CCB; --dim: #776DA3;
  --ok: #2FE0C9; --bad: #FF6FA4;
  --sh: 0 2px 0 rgba(255,255,255,.03), 0 22px 44px -24px rgba(0,0,0,.9);
  color-scheme: dark;
}

body { background: var(--bg); color: var(--text); transition: background .3s, color .3s; }
body::before { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.serif { font-family: var(--display); font-style: normal; font-weight: 800; letter-spacing: -0.035em; color: var(--ac); }
.mono { font-family: var(--body); font-weight: 700; letter-spacing: .08em; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--ac); }
.eyebrow .live { background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); }
::selection { background: var(--pri); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pri) 55%, transparent); outline-offset: 3px; }

/* ---------- topbar ---------- */
.topbar { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 2px solid var(--line); gap: 22px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.04em; color: var(--pri); }
:root[data-theme="dark"] .logo { color: #fff; }
.logo .logo-cat { width: 40px; height: 40px; display: block; }
.logo .logo-cat svg { width: 100%; height: 100%; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 14px; border-radius: 12px; padding: 9px 14px; color: var(--muted); }
.nav a:hover { background: var(--bg-2); color: var(--text); }
.nav a.active { background: color-mix(in srgb, var(--pri) 12%, transparent); color: var(--pri); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pri) 35%, transparent); }
:root[data-theme="dark"] .nav a.active { color: #fff; background: color-mix(in srgb, var(--pri) 35%, transparent); }
.trainer-chip { border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); font-family: var(--display); font-weight: 600; font-size: 13px; padding: 3px 14px 3px 3px; }
.trainer-chip .mini { background: var(--bg-2); width: 38px; height: 38px; }
.trainer-chip .mini svg { width: 40px; margin-top: 4px; }
.theme-btn { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: 0 3px 0 var(--line); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- buttons: chunky, pressable ---------- */
.btn { min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0; font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 var(--line-2); transition: transform .12s, box-shadow .12s, filter .2s; }
.btn:hover { background: var(--surface-2); transform: translateY(-1px); border-color: transparent; }
.btn:active { transform: translateY(5px); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 var(--line-2); }
.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 5px 0 var(--pri-d), inset 0 2px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: color-mix(in srgb, var(--pri) 90%, #fff); }
.btn-primary:active { box-shadow: 0 0 0 var(--pri-d); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 13px; border-radius: 13px; }
.btn.lemon { background: var(--lem); color: #2A2100; box-shadow: 0 5px 0 var(--lem-d); }
.btn.teal { background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-d); }

/* ---------- cards ---------- */
.panel, .plan, .tcard, .level, .qcard, .evo-item, .cta-final, .modal-box, .steps, .step { border: 0; box-shadow: var(--sh); }
.panel, .plan, .level, .qcard { background: var(--surface); border-radius: var(--r-lg); }
.modal { background: color-mix(in srgb, #1D1340 45%, transparent); }
.modal-box { background: var(--bg); border-radius: 34px; }

/* ---------- home ---------- */
.hero { min-height: 0; padding: 56px 0 30px; grid-template-columns: 1.05fr .95fr; gap: 30px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 20px 0 0; }
.hero h1 .burn { font-family: var(--display); font-style: normal; font-weight: 800; letter-spacing: -0.04em; background: none; color: var(--pri); position: relative; white-space: nowrap; -webkit-background-clip: initial; background-clip: initial; }
:root[data-theme="dark"] .hero h1 .burn { color: var(--lem); }
.hero h1 .burn svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 16px; }
.hero .lead { font-size: 19px; margin-top: 22px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--sh); font-weight: 700; font-size: 14px; }
.hero-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); animation: pulse 1.6s infinite; }
.hero-meta { border-top: 2px solid var(--line); }
.hero-meta b { font-weight: 800; color: var(--pri); }
:root[data-theme="dark"] .hero-meta b { color: var(--lem); }
.stage { aspect-ratio: 1; }
.stage::before { inset: 9% 6% 4%; border-radius: 50%; filter: none; background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg-2)); box-shadow: inset 0 -14px 0 color-mix(in srgb, var(--text) 5%, transparent), var(--sh); }
.stage .ring { display: none; }
.stage .av { width: 78%; transform: none; }
.demo-card { background: var(--surface); backdrop-filter: none; border: 0; border-radius: 20px; box-shadow: 0 18px 40px -16px rgba(40,20,120,.45); font-size: 14.5px; }
.demo-card.you { left: -8%; top: 6%; }
.demo-card.ai { right: -8%; bottom: 4%; }
.demo-card .who { font-family: var(--display); font-weight: 700; font-size: 11px; color: var(--muted); }
.demo-card .fixline { font-family: var(--body); font-weight: 600; border-top: 2px dashed var(--line); }
.ticker { background: var(--pri); border: 0; transform: rotate(-1.4deg); margin: 30px -20px; box-shadow: 0 6px 0 var(--pri-d); padding: 16px 0; }
.ticker span { font-family: var(--display); font-style: normal; font-weight: 800; font-size: 19px; color: #fff; }
.ticker span b { color: var(--lem); }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.04em; }
.trainers { gap: 20px; }
.tcard { border-radius: 30px; background: var(--surface); }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(60,30,160,.55); }
.tcard.selected { box-shadow: 0 0 0 3px var(--ac), var(--sh); }
.tcard .art { background: color-mix(in srgb, var(--ac) 14%, var(--surface)); margin: 12px 12px 0; border-radius: 22px; aspect-ratio: 1 / .9; place-items: end center; overflow: hidden; }
.tcard .art .av { width: 70%; }
.tcard .sel { background: var(--ac); color: #fff; border: 0; font-family: var(--display); }
.tcard .tag { font-family: var(--display); font-weight: 700; font-size: 11px; color: var(--ac); }
.tcard h3 { font-size: 22px; }
.tcard q { border-top: 2px solid var(--line); }
.plan-lock { background: var(--lem); color: #2A2100; border: 0; font-family: var(--display); font-weight: 700; }
.steps { background: transparent; box-shadow: none; gap: 20px; border-radius: 0; overflow: visible; }
.step { background: var(--surface); border: 0 !important; border-radius: 28px; box-shadow: var(--sh); transition: transform .25s; }
.step:hover { transform: translateY(-6px) rotate(-.6deg); }
.step .ic-box { width: 64px; height: 64px; border-radius: 20px; border: 0; background: color-mix(in srgb, var(--pri) 14%, var(--surface)); color: var(--pri); box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.step:nth-child(2) .ic-box { background: color-mix(in srgb, var(--pink) 18%, var(--surface)); color: var(--pink-d); }
.step:nth-child(3) .ic-box { background: color-mix(in srgb, var(--teal) 18%, var(--surface)); color: var(--teal-d); }
.step .ic-box .ic { width: 30px; height: 30px; }
.step h3 { font-size: 22px; }
.evo-item { background: var(--surface); border-radius: 28px; }
.evo-item.locked .av { filter: grayscale(1) opacity(.45); }
.pricing { gap: 20px; }
.plan { border-radius: 30px; padding: 30px; }
.plan.hot { background: var(--surface); box-shadow: 0 0 0 3px var(--pri), var(--sh); }
.plan .badge { background: var(--pri); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 3px 0 var(--pri-d); }
.plan .price { font-weight: 900; letter-spacing: -0.05em; }
.plan li .ic { color: var(--teal); }
.cta-final { background: var(--pri); color: #fff; border-radius: 40px; position: relative; overflow: hidden; }
.cta-final .lead { color: rgba(255,255,255,.8); }
.cta-final .serif { color: var(--lem); }
.cta-final .btn-primary { background: var(--lem); color: #2A2100; box-shadow: 0 5px 0 var(--lem-d); }
footer { border-top: 2px solid var(--line); }

/* ---------- call ---------- */
.call-stage { border: 0; border-radius: 36px; background: radial-gradient(70% 60% at 50% 32%, #3A23A0, #0D0820 72%); color: #F4F0FF; }
:root:not([data-theme="dark"]) .call-stage { background: radial-gradient(70% 60% at 50% 32%, #8B62FF, #4A1FD0 82%); }
.call-stage.angry { background: radial-gradient(70% 60% at 50% 40%, #FF5FA2, #6A1240 80%); }
.call-stage.happy { background: radial-gradient(70% 60% at 50% 40%, #2FE0C9, #0B5E57 85%); }
.call-stage .pill { background: rgba(255,255,255,.14); border: 0; color: #fff; font-family: var(--display); font-weight: 600; }
.call-stage .call-name { color: #fff; font-weight: 800; }
.call-stage .call-status, .call-stage .call-hint { color: rgba(255,255,255,.75); }
.call-stage .call-say { color: #fff; }
.call-stage .call-interim { color: rgba(255,255,255,.7); }
.call-stage .wave i { background: var(--lem); opacity: .9; }
.call-stage .round { background: rgba(255,255,255,.14); border: 0; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.call-stage .round.go { background: var(--lem); color: #2A2100; box-shadow: 0 5px 0 var(--lem-d); }
.call-stage .round.end { background: var(--pink); color: #fff; box-shadow: 0 5px 0 var(--pink-d); }
.call-stage .talk { background: rgba(255,255,255,.16); border: 0; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); font-family: var(--display); }
.call-stage .talk .ic { color: var(--lem); }
.call-stage .talk.on { background: var(--lem); color: #2A2100; box-shadow: 0 0 0 10px rgba(255,225,77,.25); }
.call-stage .talk.on .ic { color: #2A2100; }
.call-task { border-color: rgba(255,255,255,.5); color: #fff; }
.msg.ai { background: color-mix(in srgb, var(--pri) 10%, var(--surface)); border: 0; }
.msg.me { background: var(--surface-2); border: 0; }
.fix { border: 2px dashed var(--line-2); }
.seg { background: var(--bg-2); border: 0; border-radius: 14px; }
.seg button { font-family: var(--display); font-weight: 600; font-size: 12.5px; border-radius: 11px; }
.seg button.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.08); color: var(--pri); }
:root[data-theme="dark"] .seg button.on { color: #fff; background: var(--pri); }
.typebox input { border: 2px solid var(--line); background: var(--surface); }
.typebox button { background: var(--pri); color: #fff; }

/* ---------- tests / quiz ---------- */
.level { transition: transform .25s; }
.level:hover { transform: translateY(-5px); }
.level .lv { background: none; color: var(--pri); -webkit-background-clip: initial; background-clip: initial; font-weight: 900; }
:root[data-theme="dark"] .level .lv { color: var(--lem); }
.level .heat i { background: var(--line); }
.level .heat i.on { background: var(--pink); box-shadow: none; }
.progress { height: 14px; border-radius: 99px; background: var(--bg-2); }
.progress i { background: var(--teal); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); border-radius: 99px; }
.qcard .qtext { font-weight: 800; }
.opt { border: 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); border-radius: 18px; font-weight: 600; }
.opt:hover:not([disabled]) { background: var(--surface-2); }
.opt .k { border: 2px solid var(--line); border-radius: 10px; font-family: var(--display); font-weight: 700; }
.opt.right { background: color-mix(in srgb, var(--teal) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--teal), 0 4px 0 var(--teal); }
.opt.right .k { background: var(--teal); color: #fff; }
.opt.wrong { background: color-mix(in srgb, var(--pink) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--pink), 0 4px 0 var(--pink); }
.opt.wrong .k { background: var(--pink); color: #fff; }
.explain { border: 0; background: var(--surface-2); }
.result .score { font-weight: 900; color: var(--pri); }

/* ---------- the cats ---------- */
.av.cat { overflow: visible; }
.av.cat .e-body { animation: catBob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes catBob { 50% { transform: translateY(-4px); } }
.av.cat .c-blink { animation: catBlink 4.6s infinite; transform-origin: center; }
@keyframes catBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.av.cat .c-tail { animation: catTail 2.4s ease-in-out infinite; transform-origin: 0% 100%; }
@keyframes catTail { 50% { transform: rotate(14deg); } }
.av.cat .c-hat { animation: catHat 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes catHat { 50% { transform: rotate(-4deg) translateY(-2px); } }
.av.cat .c-brows-angry { display: none; }
.av.cat.mood-angry .c-brows { display: none; }
.av.cat.mood-angry .c-brows-angry { display: inline; }
.av.cat.mood-angry .e-body { animation: rage .16s linear infinite; }
.av.cat.mood-happy .e-body { animation: hop .5s ease-in-out infinite alternate; }
.av.cat.mood-happy .c-brows { transform: translateY(-6px); }
.av.cat .c-brow-r { transition: transform .25s; }
.av.cat:hover .c-brow-r { transform: translateY(-5px) rotate(-8deg); }
.av.cat .pupils { transition: transform .15s ease-out; }
.av.cat.mood-angry { filter: none; }
.av.cat .mouth { transform-origin: center top; }
.av.cat.talking .m-talk { animation: catTalk .2s ease-in-out infinite alternate; }
@keyframes catTalk { from { transform: scaleY(.4); } to { transform: scaleY(1.4); } }
.call-avatar { width: min(320px, 64%); }

/* ---------- buddy ---------- */
.buddy .legs { display: none; }
.buddy-bubble, .buddy2 .b-bubble { background: var(--surface); border: 0; box-shadow: var(--sh); color: var(--text); }
.buddy-bubble.angry, .buddy2 .b-bubble.angry { background: var(--pink); color: #fff; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .demo-card.you { left: 0; } .demo-card.ai { right: 0; }
}
@media (max-width: 560px) {
  .theme-btn { width: 40px; height: 40px; }
  .hero h1 { font-size: 34px; }
  .ticker { margin: 20px -10px; }
}

/* ---------- 3D cats (pictures) ---------- */
.av.cat3d { display: block; position: relative; aspect-ratio: 4 / 5; user-select: none; -webkit-user-select: none; }
.av.cat3d .c3-body { position: absolute; inset: 0; transform-origin: 50% 100%; animation: c3breath 3.6s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(40, 16, 110, .22)); }
.av.cat3d .c3 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .12s; pointer-events: none; }
.av.cat3d .c3-neutral { opacity: 1; }
.av.cat3d.has-happy.mood-happy .c3-neutral, .av.cat3d.has-angry.mood-angry .c3-neutral, .av.cat3d.has-talk.talking:not(.mood-angry):not(.mood-happy) .c3-neutral { opacity: 0; }
.av.cat3d.has-happy.mood-happy .c3-happy, .av.cat3d.has-angry.mood-angry .c3-angry, .av.cat3d.has-talk.talking:not(.mood-angry):not(.mood-happy) .c3-talk { opacity: 1; }
.av.cat3d.mood-happy .c3-body { animation: c3hop .5s ease-in-out infinite alternate; }
.av.cat3d.mood-angry .c3-body { animation: c3rage .16s linear infinite; filter: drop-shadow(0 0 22px rgba(255, 70, 120, .55)) drop-shadow(0 14px 18px rgba(40, 16, 110, .22)); }
.av.cat3d.talking .c3-body { animation: c3talk .22s ease-in-out infinite alternate; }
.av.cat3d:hover .c3-body { animation-duration: 1.6s; }
.av.cat3d.head { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.av.cat3d.head img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer-chip .mini .av.head, .logo .logo-cat .av.head { width: 100%; height: 100%; margin: 0; }
.logo .logo-cat .av.head { background: #FFE6CC; }
@keyframes c3breath { 50% { transform: scale(1.012, .99); } }
@keyframes c3hop { from { transform: translateY(0) scale(1.01, .99); } to { transform: translateY(-14px) scale(.99, 1.015); } }
@keyframes c3rage { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-1.2deg); } 75% { transform: translate(3px, -1px) rotate(1.2deg); } }
@keyframes c3talk { from { transform: scale(1, 1); } to { transform: scale(1.012, .985) translateY(1px); } }
.av.cat3d .c3-vid { object-fit: contain; object-position: 50% 100%; opacity: 1; transition: none; transform: scale(1.22); transform-origin: 50% 100%; }
.av.cat3d.has-video .c3-body { animation: none; }
.av.cat3d .c3-over { opacity: 0; }
.av.cat3d .c3-over.on { opacity: 1; }
.av.cat3d .c3-over.on ~ .c3-idle, .av.cat3d:has(.c3-over.on) .c3-idle { opacity: 0; }
/* listening: leans in and tilts the head side; nods while the student speaks (until a real "listen" clip exists) */
.av.cat3d.listening:not(.has-listen):not(.talking):not(.mood-angry):not(.mood-happy) .c3-body { animation: c3listen .6s cubic-bezier(.3,.7,.3,1) forwards; }
.av.cat3d.listening.hearing:not(.has-listen):not(.talking):not(.mood-angry):not(.mood-happy) .c3-body { animation: c3nod 1.1s ease-in-out infinite; }
@keyframes c3listen { to { transform: rotate(-3.5deg) scale(1.03) translateX(-6px); } }
@keyframes c3nod { 0%, 100% { transform: rotate(-3.5deg) scale(1.03) translateX(-6px); } 50% { transform: rotate(-1.5deg) scale(1.03) translate(-6px, 5px); } }
.call-stage .call-avatar { position: relative; }
.call-stage.on-call .call-avatar:has(.av.listening:not(.talking))::after {
  content: ''; position: absolute; left: 50%; top: 48%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 225, 77, .55); animation: c3ring 1.6s ease-out infinite; pointer-events: none;
}
@keyframes c3ring { from { transform: translate(-50%, -50%) scale(.85); opacity: .9; } to { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }

/* ---------- first-run setup (Duolingo style) ---------- */
body.in-onboard .topbar .nav, body.in-onboard #accountSlot, body.in-onboard .trainer-chip, body.in-onboard #topCall { display: none !important; }
body.in-onboard #buddy-layer { display: none; }
.ob { max-width: 980px; margin: 0 auto; padding: 18px 20px 120px; min-height: calc(100vh - 74px); display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; gap: 16px; }
.ob-x { width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
button.ob-x:hover { background: var(--bg-2); }
.ob-x .ic { width: 22px; height: 22px; }
.ob-bar { flex: 1; height: 16px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ob-bar i { display: block; height: 100%; border-radius: 99px; background: var(--teal); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.3); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.ob-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 26px; }
.ob-say { display: flex; align-items: flex-end; gap: 16px; }
.ob-cat { width: 190px; flex: none; }
.ob-cat .av { width: 100%; }
.ob-bubble { position: relative; background: var(--surface); border-radius: 22px; padding: 18px 22px; font: 700 clamp(17px, 2vw, 21px)/1.35 var(--display); letter-spacing: -.02em; box-shadow: var(--sh); margin-bottom: 40px; animation: obPop .35s cubic-bezier(.2,.8,.2,1); }
.ob-bubble::before { content: ''; position: absolute; left: -9px; bottom: 22px; width: 18px; height: 18px; background: var(--surface); transform: rotate(45deg); border-radius: 3px; }
@keyframes obPop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ob-body { animation: obPop .35s .05s cubic-bezier(.2,.8,.2,1) both; }
.ob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ob-grid.two { grid-template-columns: 1fr 1fr; }
.ob-list { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ob-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); transition: transform .1s, box-shadow .15s, background .15s; font: inherit; }
.ob-opt:hover { background: var(--surface-2); }
.ob-opt:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--line); }
.ob-opt b { display: block; font: 700 17px var(--display); letter-spacing: -.02em; }
.ob-opt small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.ob-opt.on { background: color-mix(in srgb, var(--pri) 10%, var(--surface)); box-shadow: inset 0 0 0 2.5px var(--pri), 0 4px 0 var(--pri-d); }
.ob-lv { flex: none; width: 46px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 14px var(--display); font-style: normal; background: var(--bg-2); color: var(--pri); }
:root[data-theme="dark"] .ob-lv { color: var(--lem); }
.ob-opt.on .ob-lv { background: var(--pri); color: #fff; }
.ob-input { width: 100%; max-width: 520px; min-height: 60px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: 700 22px var(--display); padding: 0 20px; }
.ob-input:focus { outline: none; border-color: var(--pri); }
.ob-trainers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ob-tr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 16px; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); font: inherit; }
.ob-tr.on { box-shadow: inset 0 0 0 2.5px var(--pri), 0 4px 0 var(--pri-d); background: color-mix(in srgb, var(--pri) 8%, var(--surface)); }
.ob-tr.locked .ob-tr-av { filter: grayscale(.6); opacity: .7; }
.ob-tr-av { width: 92px; height: 92px; }
.ob-tr-av .av { width: 100%; height: 100%; }
.ob-tr b { font: 800 16px var(--display); letter-spacing: -.02em; }
.ob-tr small { color: var(--muted); font-size: 12.5px; text-align: center; }
.ob-rec { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--teal); color: #fff; font: 800 11px var(--display); padding: 4px 10px; border-radius: 99px; }
.ob-lock { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 4px; align-items: center; font: 700 11px var(--display); color: #2A2100; background: var(--lem); border-radius: 99px; padding: 3px 8px; }
.ob-lock .ic { width: 12px; height: 12px; }
.ob-note { color: var(--muted); min-height: 1.4em; margin: 12px 0 0; }
.ob-hello { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.ob-big { min-height: 58px; font-size: 16px; }
.ob-foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 2px solid var(--line); padding: 16px 20px; z-index: 20; }
.ob-foot .btn { display: flex; width: min(420px, 100%); margin: 0 0 0 auto; }
@media (min-width: 1020px) { .ob-foot .btn { margin-right: calc((100vw - 980px) / 2 + 20px); } }
.ob-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; max-width: 720px; }
.ob-plan div { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh); }
.ob-plan span { display: block; font-size: 12.5px; color: var(--muted); }
.ob-plan b { font: 800 17px var(--display); letter-spacing: -.02em; }
#obG { max-width: 420px; }
.ob-back-link { margin-top: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; padding: 6px 0; }
@media (max-width: 720px) {
  .ob { padding: 10px 14px 110px; }
  .ob-cat { width: 96px; }
  .ob-bubble { margin-bottom: 24px; padding: 14px 16px; }
  .ob-grid { grid-template-columns: 1fr 1fr; }
  .ob-trainers { grid-template-columns: 1fr 1fr; }
  .ob-plan { grid-template-columns: 1fr 1fr; }
  .ob-foot .btn { width: 100%; }
}

/* ---------- phones: show a bit more of the page at once ---------- */
@media (max-width: 600px) {
  html { zoom: .9; }
}

/* footer with legal links */
.site-foot { text-align: center; padding: 28px 16px 40px; font-size: 13px; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
body.in-onboard .site-foot { display: none; }

/* free trial button on the «Пламя» card */
.plan .trial-btn { width: 100%; margin-bottom: 6px; }
.plan .trial-note { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.period-toggle button { white-space: nowrap; }

/* call: situation picker */
.scene-sel { width: 100%; min-height: 42px; border-radius: 12px; border: 0; background: var(--bg-2); color: var(--text); font: 600 14px var(--body, inherit); padding: 0 12px; }
/* profile: parental PIN */
.pf-parental { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 10px; }
.pf-parental b { display: flex; align-items: center; gap: 6px; } .pf-parental small { display: block; color: var(--muted); margin-top: 2px; }
.pin-in { width: 100%; font: 800 32px var(--display); letter-spacing: .5em; text-align: center; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); }

/* ---- clarity pass ---- */
/* phone: bottom tab bar instead of the hidden top menu */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font: 600 11px var(--display); padding: 4px 0; border-radius: 12px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--pri); }
  :root[data-theme="dark"] .tabbar a.active { color: var(--lem); }
  .tabbar a.tab-call svg { background: var(--pri); color: #fff; border-radius: 50%; padding: 7px; width: 36px; height: 36px; margin-top: -14px; box-shadow: 0 6px 16px -6px var(--pri); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.in-onboard .tabbar { display: none; }
  #topCall { display: none; }
}
/* call: what to talk about, right on the stage */
.stage-scene { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; max-width: 360px; width: 100%; }
.stage-scene span { font: 600 12px var(--display); color: var(--muted); white-space: nowrap; }
.stage-scene .scene-sel { flex: 1; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.heat-help { display: block; color: var(--muted); font-size: 12.5px; margin: -2px 0 6px; min-height: 1.2em; }
/* home: free trial right under the main buttons */
.hero-trial { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; border: 2px dashed color-mix(in srgb, var(--pri) 45%, transparent); background: color-mix(in srgb, var(--pri) 8%, transparent); color: var(--text); border-radius: 16px; padding: 10px 14px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.hero-trial .ic { color: var(--pri); flex: none; }
:root[data-theme="dark"] .hero-trial .ic { color: var(--lem); }
/* profile: sections that are also panels keep their inner padding */
.profile > section.panel { padding: clamp(18px, 3vw, 26px); }
.pf-settings .pf-parental { gap: 16px; }
