/* ═════════ Tokens ═════════ */
:root {
  /* Calm "ledger" palette: warm paper, deep ink, one teal accent. Tones are quiet tints used only for icons and the step you're on. */
  --bg: #f4f3ee;
  --bg-2: #ecebe4;            /* inner wells inside white panels */
  --surface: #ffffff;
  --ink: #141b1a;
  --ink-2: #3c4745;
  --muted: #596462;
  --line: #e0ded5;
  --accent: #0c6b63;
  --accent-2: #095750;
  --accent-ink: #ffffff;
  --up: #1f7a4f;              /* price went up (charts, deltas) */
  --down: #b3302b;            /* price went down, wrong answers */
  /* the filled tile of the step you're on: deep, low-chroma fills, white text on top */
  --g-cyan: linear-gradient(160deg, #146058 0%, #0f4a44 100%);
  --g-blue: linear-gradient(160deg, #34507a 0%, #22374f 100%);
  --g-green: linear-gradient(160deg, #2b5e3a 0%, #1f4a2c 100%);
  --g-orange: linear-gradient(160deg, #784a1c 0%, #5e3812 100%);
  --g-purple: linear-gradient(160deg, #634370 0%, #452d50 100%);
  /* tint squares (bg / fg) — teal, slate, moss, ochre, plum */
  --t-cyan: #e1f0ed; --c-cyan: #0b6a62;
  --t-blue: #e8edf4; --c-blue: #33507a;
  --t-green: #e5efe4; --c-green: #2d6a3a;
  --t-orange: #f6ecdf; --c-orange: #8a4c12;
  --t-purple: #f0e9f2; --c-purple: #6a4477;
  --shadow: 0 1px 2px rgba(20, 27, 26, .05), 0 10px 28px -16px rgba(20, 40, 36, .22);
  --shadow-lg: 0 2px 4px rgba(20, 27, 26, .05), 0 26px 50px -26px rgba(20, 40, 36, .34);
  --r: 18px;
  --r-lg: 22px;
  --f-display: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);   /* smooth deceleration, used for entering and state changes */
  --ease-in: cubic-bezier(.55, 0, .75, .2); /* quick exits */
  --dur-fast: .16s; --dur: .24s; --dur-slow: .36s;
  /* texture on filled tiles: faint chart grid with a quiet price line */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='white' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M0 40h240M0 100h240M0 160h240M0 220h240' stroke-dasharray='2 6'/%3E%3Cpath d='M0 170l30-18 30 10 30-34 30 12 30-40 30 16 30-30 30 6' stroke-opacity='.2' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#0e1413; --bg-2:#141c1b; --surface:#19221f; --ink:#e8eeec; --ink-2:#b3bfbc; --muted:#93a29e; --line:#27312f; --accent:#5cc3b6; --accent-2:#4ab2a5; --accent-ink:#0b1312; --up:#74cf9a; --down:#f08b80; --t-cyan:#12302c; --c-cyan:#6dcfc2; --t-blue:#1c2636; --c-blue:#a3bce2; --t-green:#18291c; --c-green:#93d29f; --t-orange:#30231a; --c-orange:#e6ae74; --t-purple:#2a2030; --c-purple:#cfaadb; --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px -14px rgba(0,0,0,.6); --shadow-lg:0 30px 60px -24px rgba(0,0,0,.7); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#0e1413; --bg-2:#141c1b; --surface:#19221f; --ink:#e8eeec; --ink-2:#b3bfbc; --muted:#93a29e; --line:#27312f; --accent:#5cc3b6; --accent-2:#4ab2a5; --accent-ink:#0b1312; --up:#74cf9a; --down:#f08b80; --t-cyan:#12302c; --c-cyan:#6dcfc2; --t-blue:#1c2636; --c-blue:#a3bce2; --t-green:#18291c; --c-green:#93d29f; --t-orange:#30231a; --c-orange:#e6ae74; --t-purple:#2a2030; --c-purple:#cfaadb; --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px -14px rgba(0,0,0,.6); --shadow-lg:0 30px 60px -24px rgba(0,0,0,.7); color-scheme: dark; }

/* ═════════ Base ═════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.015em; line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ═════════ Shell ═════════ */
.shell { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 16px; max-width: 1160px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--f-display); letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: none; }
.brand-name { display: grid; gap: 3px; white-space: nowrap; }
.brand-name em { font: 600 12px/1 var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.tabs { display: flex; gap: 4px; margin-left: 28px; }
.tab { position: relative; padding: 10px 12px; font: 600 14px/1 var(--f-display); color: var(--muted); text-decoration: none; border-radius: 10px; }
.tab:hover { color: var(--ink-2); }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.icon-btn:hover { color: var(--accent); }
.icon-btn:active { transform: scale(.95); }
@media (max-width: 640px) {
  .tabs { margin-left: auto; }
  .tab { padding: 10px 8px; font-size: 13.5px; }
  .tab.home-tab { display: none; }
  .top-actions { margin-left: 4px; }
  .brand span:last-child { display: none; }
}

main { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.footer { max-width: 1160px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ═════════ Buttons ═════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; font: 600 15.5px/1 var(--f-display); transition: transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 20px -14px var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-up { background: var(--t-green); color: var(--c-green); }
.btn-down { background: color-mix(in srgb, var(--down) 13%, var(--surface)); color: var(--down); }
.btn-up:hover { box-shadow: inset 0 0 0 2px var(--c-green); }
.btn-down:hover { box-shadow: inset 0 0 0 2px var(--down); }

/* ═════════ Generic pieces ═════════ */
.panel { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.well { background: var(--bg-2); border-radius: 18px; padding: 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 4px 14px; }
.sec-head h2 { font: 600 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sec-head a, .sec-head span { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.sq { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.sq .ico { width: 20px; height: 20px; }
.tone-orange { --t: var(--t-orange); --c: var(--c-orange); --g: var(--g-orange); }
.tone-blue { --t: var(--t-blue); --c: var(--c-blue); --g: var(--g-blue); }
.tone-cyan { --t: var(--t-cyan); --c: var(--c-cyan); --g: var(--g-cyan); }
.tone-green { --t: var(--t-green); --c: var(--c-green); --g: var(--g-green); }
.tone-purple { --t: var(--t-purple); --c: var(--c-purple); --g: var(--g-purple); }
.sq { background: var(--t, var(--t-cyan)); color: var(--c, var(--c-cyan)); }
.sq.solid { background: var(--g, var(--g-cyan)); color: #fff; box-shadow: 0 10px 20px -10px var(--c, var(--c-cyan)); }
.chip { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--f-display); background: var(--bg-2); color: var(--ink-2); }
.chip.done { background: var(--t-green); color: var(--c-green); }
.chip.now { background: var(--t-cyan); color: var(--c-cyan); }
.eyebrow { font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ═════════ Home ═════════ */
.hero { position: relative; display: grid; gap: 8px; padding: 22px 22px 28px; margin-top: 6px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 24px; padding: 46px 52px; min-height: 430px; } }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--t-cyan); color: var(--c-cyan); }
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-cyan) 25%, transparent); }
.hero h1 { font-size: clamp(32px, 7.4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 14px; max-width: 13ch; text-wrap: balance; }
.hero h1 b { font-weight: 700; color: var(--accent); }
.hero-sub { color: var(--ink-2); font-size: 17px; max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta .btn { height: 54px; padding: 0 26px; }
.hero-cta .btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 270px; order: -1; margin: -6px -6px 6px; }
@media (min-width: 900px) { .hero-visual { order: 0; min-height: 360px; margin: 0; } }
.hero-art { position: relative; display: block; width: min(420px, 100%); height: auto; filter: drop-shadow(0 22px 26px rgba(20, 40, 36, .14)); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.float-card b { display: block; font: 600 13.5px/1.25 var(--f-display); white-space: nowrap; }
.float-card small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.float-card .sq { width: 36px; height: 36px; border-radius: 11px; }
.float-card .sq .ico { width: 18px; height: 18px; }
.fc-progress { left: 0; bottom: 4%; animation: bob 7s ease-in-out -2s infinite; }
@media (min-width: 900px) { .fc-progress { left: -4%; bottom: 10%; } }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font: 600 14px/1 var(--f-display); letter-spacing: -.02em; }
.ring .lbl b sup { font-size: 8px; color: var(--muted); margin-left: 1px; }

.dash { display: grid; gap: 0 28px; padding-top: 40px; }
.dash > div > :first-child { margin-top: 0; }
@media (min-width: 900px) { .dash { grid-template-columns: 1fr 300px; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; gap: 12px; } }
/* five steps: one row on wide screens, 2 + 3 on tablets, a column on phones */
.dash > div { container-type: inline-size; min-width: 0; }
@media (min-width: 641px) { .tiles.n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles.n5 > .tile { grid-column: span 2; } .tiles.n5 > .tile:nth-child(-n+2) { grid-column: span 3; } }
@container (min-width: 1040px) { .tiles.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } .tiles.n5 > .tile, .tiles.n5 > .tile:nth-child(-n+2) { grid-column: auto; padding: 18px; } .tiles.n5 .tile .t3 { font-size: 17.5px; } }
.tile { position: relative; min-height: 200px; border-radius: 18px; padding: 20px; color: #fff; text-decoration: none; background: var(--wave) 0 30px / 240px 240px repeat, var(--g); box-shadow: 0 22px 34px -18px var(--c); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); overflow: hidden; }
.tile:hover { transform: translateY(-4px); }
.tile .sq { width: 40px; height: 40px; background: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(4px); }
.tile .t3 { display: block; font: 600 19px/1.3 var(--f-display); margin-top: 14px; }
.tile .p { display: block; font-size: 13.5px; opacity: .9; margin-top: 4px; line-height: 1.45; }
.tile .foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile .foot b { font: 600 22px/1 var(--f-display); }
.tile .foot small { display: block; font-size: 12px; opacity: .85; margin-top: 4px; }
.tile .bar { height: 5px; border-radius: 9px; background: rgba(255,255,255,.3); overflow: hidden; margin-top: 10px; }
.tile .bar i { display: block; height: 100%; background: #fff; border-radius: inherit; }
.tile.soon:hover { transform: none; }
.tile .badge { position: absolute; top: 18px; right: 18px; display: inline-flex; gap: 5px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.13); font: 600 12px/1 var(--f-display); letter-spacing: .03em; }
.tile .badge .ico { width: 13px; height: 13px; }

.rows { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; text-decoration: none; transition: background .2s var(--ease); }
.row:hover { background: var(--bg-2); }
.row b { display: block; font: 600 15px/1.25 var(--f-display); }
.row small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.row .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.row .go { color: var(--muted); }
.row.current { background: var(--t-cyan); }

/* ═════════ Lesson ═════════ */
.lesson { max-width: 680px; margin: 0 auto; min-height: calc(100dvh - 80px); display: flex; flex-direction: column; }
.lesson-top { display: flex; align-items: center; gap: 14px; padding: 2px 0 16px; }
.lesson-top .sq { width: 40px; height: 40px; }
.lesson-top .t { min-width: 0; }
.lesson-top .t .lesson-h1 { margin: 0; letter-spacing: 0; display: block; font: 600 15px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-top .t small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.lesson-top .icon-btn { margin-left: auto; }
.progress { height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--surface) 60%, var(--line)); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--g, var(--g-cyan)); transition: width .5s var(--ease); }
.stage { flex: 1; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-lg); animation: cardIn .45s var(--ease) both; }
@media (min-width: 640px) { .card { padding: 34px 36px; } }
.card.back { animation-name: cardInBack; }
@keyframes cardIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes cardInBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.card-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--accent)); background: var(--t, var(--t-cyan)); padding: 7px 11px; border-radius: 999px; margin-bottom: 14px; }
.card h2 { font-size: clamp(25px, 5.6vw, 32px); margin-bottom: 12px; text-wrap: balance; }
.card .body { font-size: 17px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.card .body strong { color: var(--ink); font-weight: 700; }
.widget { margin-top: 22px; }
.more { margin-top: 18px; }
.more summary { cursor: pointer; font: 600 14px/1 var(--f-display); color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--t-cyan); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+'; font-size: 16px; }
.more[open] summary::before { content: '–'; }
.more div { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.lesson-nav { position: sticky; bottom: 0; padding: 16px 0 calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; background: linear-gradient(transparent, var(--bg) 35%); margin-top: 18px; }
.lesson-nav .btn-primary { flex: 1; height: 54px; }
.lesson-nav .btn-ghost { width: 54px; height: 54px; padding: 0; background: var(--surface); box-shadow: var(--shadow); }
.hint { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; min-height: 20px; }
.lesson-nav { flex-wrap: wrap; }
.lesson-nav .hint { flex-basis: 100%; min-height: 0; }
.lesson-nav .hint:empty { display: none; }
/* Phones: a slim, solid bar docked to the bottom edge. The lesson keeps room for it, so it never covers a card. */
@media (max-width: 640px) {
  .lesson { padding-bottom: calc(100px + env(safe-area-inset-bottom)); min-height: 0; }
  .lesson-nav .btn-primary { min-width: 0; flex: 1; }
  .lesson-nav .btn-primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 48px; padding: 0 16px; }
  .lesson-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .lesson-nav .btn-primary { height: 48px; box-shadow: none; }
  .lesson-nav .btn-ghost { width: 48px; height: 48px; box-shadow: none; background: var(--surface); border: 1px solid var(--line); }
  .lesson-nav .hint { font-size: 12.5px; padding-bottom: 2px; }
  /* One row on top: ✕, the lesson, then Întreabă and Buzunar (logo, tabs and theme wait outside the lesson). */
  body:has(#app > .lesson) .topbar { position: absolute; top: 0; right: 0; z-index: 20; padding: 12px 16px; gap: 8px; max-width: none; margin: 0; }
  body:has(#app > .lesson) .topbar :is(.brand, .tabs, #theme) { display: none; }
  body:has(#app > .lesson) .top-actions { margin: 0; }
  body:has(#app > .lesson) main { padding-top: 12px; }
  .lesson-top { gap: 10px; padding: 0 118px 12px 0; min-height: 40px; }
  .lesson-top .sq { display: none; }
  .lesson-top .t { flex: 1; overflow: hidden; }
  .lesson-top .icon-btn { order: -1; margin-left: 0; flex: none; box-shadow: none; border: 1px solid var(--line); }
  .lesson .lesson-top .t .lesson-h1 { white-space: nowrap; display: block; font-size: 14.5px; }
  .lesson-top .t small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .progress { margin-bottom: 14px; }
  /* typing in a lesson field: the bar steps aside for the keyboard */
  body:has(.stage :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select):focus) .lesson-nav { display: none; }
}

.term { font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 2px dotted color-mix(in srgb, var(--accent) 50%, transparent); cursor: help; }
.term:hover { border-bottom-style: solid; }

/* ═════════ Widget pieces ═════════ */
.widget .panel { background: var(--bg-2); box-shadow: none; border-radius: 20px; }
.range { width: 100%; accent-color: var(--accent); height: 30px; }
.nw { white-space: nowrap; }
.range-row span { white-space: nowrap; }
.range-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.range-row b { font: 600 22px/1 var(--f-display); color: var(--ink); }
.big-num { font: 600 clamp(40px, 11vw, 54px)/1 var(--f-display); letter-spacing: -.03em; }
.label-ill { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 10px; line-height: 1.5; }
.label-ill a { color: var(--accent); font-weight: 700; text-decoration: none; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 600 11px var(--f-body); fill: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat { border-radius: 14px; padding: 12px; background: var(--surface); }
.stat small { display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.stat b { font: 600 16px/1.3 var(--f-display); letter-spacing: -.01em; display: block; margin-top: 2px; }
.stat .dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
/* a range ("686–2.266 €") gets its own row on phones instead of squeezing into a third */
@media (max-width: 480px) { .stat-row:has(.stat.wide) { grid-template-columns: 1fr 1fr; } .stat.wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .stat.wide b { margin-top: 0; } }

.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 16px; border-radius: 16px; background: var(--bg-2); font-weight: 600; transition: box-shadow .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); }
.option::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: var(--surface); }
.option:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent); }
.option:active:not(:disabled) { transform: scale(.985); }
.option.right { background: var(--t-green); box-shadow: inset 0 0 0 2px var(--c-green); }
.option.right::before { background: var(--c-green); box-shadow: none; }
.option.wrong { background: color-mix(in srgb, var(--down) 10%, var(--surface)); box-shadow: inset 0 0 0 2px var(--down); }
.option.wrong::before { background: var(--down); box-shadow: none; }
.option:disabled { cursor: default; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-size: 15px; font-weight: 500; line-height: 1.55; animation: pop .35s var(--ease) both; }
.feedback.ok { background: var(--t-green); }
.feedback.no { background: color-mix(in srgb, var(--down) 10%, var(--surface)); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flip { perspective: 900px; display: block; width: 100%; text-align: left; }
.flip-inner { display: grid; position: relative; width: 100%; height: 100%; min-height: 180px; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flip.on .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); text-align: left; }
.flip-back { transform: rotateY(180deg); background: var(--wave) 0 40px / 240px repeat, var(--g, var(--g-cyan)); color: #fff; box-shadow: 0 18px 30px -18px var(--c, var(--c-cyan)); }
.flip-face h3 { font-size: 17px; }
.flip-face p { font-size: 13.5px; line-height: 1.45; }
.flip-face .tap { margin-top: auto; font: 600 12px/1 var(--f-display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.flip-back .tap { color: rgba(255,255,255,.75); }

/* recap */
.recap { text-align: center; }
.recap .card-kicker { margin-bottom: 10px; }
.recap h2 { margin-bottom: 6px; }
.recap .body { margin: 0 auto; }
.learned { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 8px; text-align: left; max-width: 460px; }
.learned li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-weight: 600; font-size: 15px; line-height: 1.4; animation: pop .4s var(--ease) both; }
.learned li .sq { width: 30px; height: 30px; border-radius: 9px; background: var(--t-green); color: var(--c-green); }
.learned li .sq .ico { width: 16px; height: 16px; stroke-width: 3; }

/* ═════════ Bottom sheet ═════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 16, 15, .45); backdrop-filter: blur(3px); animation: fade .25s both; }
.sheet { position: relative; width: min(560px, 100%); background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 22px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: up .35s var(--ease) both; max-height: 80dvh; overflow: auto; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; padding-top: 22px; } .sheet .grab { display: none; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.sheet .head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sheet h3 { font-size: 24px; overflow-wrap: anywhere; }
.sheet p { color: var(--ink-2); }
.sheet .long { margin-top: 10px; font-size: 15px; color: var(--muted); }
.sheet .row-btns { display: flex; gap: 10px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ═════════ Glossary + sources ═════════ */
.page { max-width: 820px; margin: 0 auto; }
.page-head { padding: 18px 4px 20px; }
.page-head h1 { font-size: clamp(30px, 6vw, 40px); }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search { width: 100%; height: 54px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--shadow); padding: 0 18px 0 50px; font: 500 16px var(--f-body); color: var(--ink); }
.search:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.gl-list { margin-top: 16px; display: grid; gap: 10px; }
@media (min-width: 720px) { .gl-list { grid-template-columns: 1fr 1fr; } }
.gl-item { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-content: start; }
.gl-item .sq { grid-row: span 3; width: 38px; height: 38px; font: 600 16px/1 var(--f-display); }
.gl-item b { font: 600 17px/1.25 var(--f-display); overflow-wrap: anywhere; }
.gl-item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.gl-item p + p { color: var(--muted); font-size: 13.5px; }
.gl-item.hit { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.src-list { display: grid; gap: 10px; }
@media (min-width: 720px) { .src-list { grid-template-columns: 1fr 1fr; } }
.src { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.src .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.src .val { font: 600 20px/1.3 var(--f-display); letter-spacing: -.01em; }
.src .note { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.src .meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.src .meta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-display); color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.back-link .ico { width: 16px; height: 16px; }

/* ═════════ Lesson widgets ═════════ */

/* Phones: two-up cards stack. */
@media (max-width: 520px) {
  .duo { grid-template-columns: 1fr; gap: 10px; }
  .duo .flip-inner { min-height: 0; }
}

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font: 600 14px var(--f-display); transition: transform .15s var(--ease); }
.pill .ico { width: 16px; height: 16px; color: var(--accent); }
.pill:hover { transform: translateY(-2px); }

.toggle { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); gap: 4px; box-shadow: var(--shadow); }
.toggle button { padding: 9px 14px; border-radius: 10px; font: 600 13px var(--f-display); color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 16px -8px var(--accent); }

.duo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.duo-btns .btn { height: 54px; padding: 0 12px; white-space: nowrap; font-size: 15px; }

.myth-card { min-height: 170px; display: grid; place-items: center; text-align: center; padding: 26px; border-radius: 20px; color: #fff; background: var(--wave) 0 10px / 240px repeat, var(--g-purple); box-shadow: 0 22px 36px -18px var(--c-purple); animation: cardIn .4s var(--ease) both; }
.myth-card b { font: 600 22px/1.3 var(--f-display); }
.myth-count { text-align: center; font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.score { text-align: center; }
.score .big-num { background: var(--g-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 380px) {
  .card { padding: 22px 16px; }
  .stat b { font-size: 14px; }
  .hero { padding: 20px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .06em; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) { .float-card { animation: none !important; } }
@media (max-width: 899px) {
  .hero-visual { min-height: 0; padding: 8px 0 0; }
  .hero-visual:has(.fc-progress) { padding-bottom: 44px; }
  .hero-art { width: min(380px, 84%); }
  .fc-progress { left: 50%; bottom: 0; transform: translateX(-50%); animation: none; }
}
/* phones: a smaller visual, and the progress card sits under the art instead of over it */
@media (max-width: 640px) {
  .hero-visual { padding: 0; margin: 0; }
  .hero-visual:has(.fc-progress) { padding-bottom: 78px; }
  .hero-art { width: min(300px, 100%); }
  .hero h1 { margin-top: 14px; }
}

/* ═════════ Pocket ═════════ */
.pocket-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font: 600 13.5px/1 var(--f-display); color: var(--ink); }
.pocket-btn .ico { color: var(--accent); }
.pocket-btn .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; }
.pocket-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
@media (max-width: 640px) { .pocket-btn .lbl { display: none; } .pocket-btn { padding: 0 10px; } }

.pocket { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); display: flex; flex-direction: column; background: var(--surface); box-shadow: -24px 0 60px -30px rgba(20, 27, 26, .35); transform: translateX(105%); transition: transform .35s var(--ease); outline: none; }
.pocket-open .pocket { transform: none; }
.pocket-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(10, 16, 15, .35); backdrop-filter: blur(2px); }
.pocket-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.pocket-head b { display: block; font: 600 17px/1.2 var(--f-display); }
.pocket-head small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.pocket-head .icon-btn { margin-left: auto; box-shadow: none; background: var(--bg-2); }
.pocket-tabs { margin: 0 18px 8px; align-self: flex-start; box-shadow: none; background: var(--bg-2); }
.pocket-body { flex: 1; overflow: auto; padding: 8px 18px 28px; display: grid; gap: 14px; align-content: start; }
.pocket-group h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 6px 0 8px; }
.pocket-group h3 .sq { width: 28px; height: 28px; border-radius: 9px; }
.pocket-group h3 .sq .ico { width: 15px; height: 15px; }
.pocket-group h3 small { margin-left: auto; color: var(--muted); font: 600 12px var(--f-body); }
.pocket-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pocket-group li { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--t) 55%, var(--bg-2)); }
.pocket-group li p { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.pocket-group li a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font: 600 12px var(--f-display); color: var(--c); text-decoration: none; }
.pocket-group li a .ico { width: 13px; height: 13px; }
.pocket-note { font-size: 13.5px; color: var(--ink-2); }
.pocket-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.pocket-terms .pill { box-shadow: none; background: var(--bg-2); }
.pocket-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 12px; color: var(--ink-2); font-size: 14px; }
.pocket-empty .sq { width: 54px; height: 54px; border-radius: 16px; }
@media (min-width: 1280px) {
  .pocket { top: 12px; right: 12px; bottom: 12px; width: 330px; border-radius: 24px; box-shadow: var(--shadow-lg); }
  body.pocket-docked { padding-right: 354px; }
  body.pocket-docked .topbar, body.pocket-docked main, body.pocket-docked .footer { max-width: 1160px; }
}
.keep-ghost { position: fixed; z-index: 60; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 20px -8px var(--accent); pointer-events: none; }
.keep-ghost .ico { width: 18px; height: 18px; }

/* takeaway line on a card */
.keep { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: var(--t, var(--t-cyan)); animation: pop .4s var(--ease) both; }
.keep .sq { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); color: var(--c, var(--accent)); }
.keep .sq .ico { width: 17px; height: 17px; }
.keep > span:nth-child(2) { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.keep small { display: block; font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--accent)); margin-bottom: 6px; }
.keep .kept { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font: 600 12.5px/1 var(--f-display); color: var(--c, var(--accent)); padding-top: 2px; }
.keep .kept .ico { width: 13px; height: 13px; stroke-width: 3; }
.keep .kept-see { margin-left: 8px; padding: 6px 10px; margin-block: -6px; border-radius: 999px; background: var(--surface); color: var(--c, var(--accent)); font: inherit; }
.keep .kept-see:hover { box-shadow: 0 0 0 2px currentColor; }
@media (max-width: 480px) { .keep { flex-wrap: wrap; } .keep .kept { width: 100%; padding-left: 46px; } }

/* recap: pocket CTA + bridge */
.pocket-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.pocket-cta > .ico:first-child { width: 22px; height: 22px; color: var(--accent); }
.pocket-cta b { display: block; font: 600 14.5px/1.3 var(--f-display); }
.pocket-cta small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pocket-cta > .ico:last-child { margin-left: auto; color: var(--muted); }
.recap .pocket-cta { max-width: 460px; margin: 16px auto 0; background: var(--t-cyan); box-shadow: none; }
.bridge { display: flex; gap: 10px; align-items: flex-start; max-width: 460px; margin: 18px auto 0; text-align: left; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.bridge .ico { color: var(--c, var(--accent)); margin-top: 3px; }
.learned li > span:last-child { flex: 1; }
.footer[hidden], [hidden] { display: none !important; }
.muted { color: var(--muted); }
.soon-note { padding: 8px 4px; }

/* ═════════ Options, checks ═════════ */
.option { gap: 12px; }
.option > .sq { width: 36px; height: 36px; border-radius: 11px; }
.option > .sq .ico { width: 18px; height: 18px; }
.option:has(> .sq)::before { display: none; }
.option b { display: block; font-weight: 700; }
.option small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-row.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.feedback .ico { width: 16px; height: 16px; vertical-align: -3px; }

/* home: lesson list per step */
.tile[aria-pressed="true"] { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); outline-offset: 3px; }

/* custom sliders: light track, coloured thumb (Chrome's default track turns dark with light accents) */
input[type="range"].range { -webkit-appearance: none; appearance: none; background: transparent; height: 30px; }
input[type="range"].range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--accent)) 18%, var(--line)); }
input[type="range"].range::-moz-range-track { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--accent)) 18%, var(--line)); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: var(--c, var(--accent)); border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(20, 27, 26, .25); }
input[type="range"].range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--accent)); border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(20, 27, 26, .25); }
input[type="range"].range:focus-visible { outline: none; }
input[type="range"].range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }
.stat b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═════════ Card feedback, celebration, onboarding ═════════ */
.cardfb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cardfb button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font: 600 12.5px var(--f-display); }
.cardfb button .ico { width: 14px; height: 14px; }
.cardfb > button { justify-content: center; min-width: 48px; }
.fb-why { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--bg-2); display: grid; gap: 10px; animation: riseIn var(--dur) var(--ease) both; }
.fb-why > p:first-child { font: 600 14px/1.3 var(--f-display); color: var(--ink); }
.fb-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-reasons .pill { box-shadow: none; background: var(--surface); font-size: 13px; text-align: left; }
.fb-reasons .pill[aria-pressed="true"] { background: var(--t-cyan); color: var(--c-cyan); box-shadow: inset 0 0 0 1.5px var(--c-cyan); }
.fb-note { display: flex; gap: 8px; }
.fb-note input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 15px var(--f-body); }
.fb-note input:focus { outline: none; border-color: var(--accent); }
.fb-note .btn { height: 44px; padding: 0 14px; font-size: 14px; }
.fb-done { font-size: 13px; font-weight: 600; color: var(--muted); }
.fb-done:empty { display: none; }
.fb-ask { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--t-cyan); color: var(--c-cyan); font: 600 13px var(--f-display); }
.fb-ask .ico { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .fb-why { animation: none; } }
.cardfb button[aria-pressed="true"] { background: var(--t-cyan); color: var(--c-cyan); box-shadow: inset 0 0 0 1.5px var(--c-cyan); }
.cardfb .fb-msg { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.cardfb .fb-msg button { background: var(--t-cyan); color: var(--c-cyan); }

.recap { position: relative; }
.celebrate { max-width: 460px; margin: 18px auto 0; padding: 16px 18px; border-radius: 20px; display: grid; gap: 6px; justify-items: center; color: #fff; background: var(--wave) 0 0 / 240px repeat, var(--g); box-shadow: 0 18px 30px -18px var(--c); }
.celebrate b { font: 600 17px/1.3 var(--f-display); }
.celebrate > span { font-size: 13.5px; font-weight: 600; opacity: .95; }
.celebrate .btn { height: 42px; margin-top: 6px; font-size: 14px; background: rgba(10, 16, 15, .28); color: #fff; }
.celebrate .btn:hover { background: rgba(10, 16, 15, .38); }

.onboard { margin-bottom: 0; padding: 20px 22px 22px; overflow: hidden; }
.ob-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ob-k { white-space: nowrap; font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c-cyan); }
.ob-dots { display: flex; gap: 5px; }
.ob-dots i { width: 22px; height: 5px; border-radius: 9px; background: var(--bg-2); transition: background .3s var(--ease); }
.ob-dots i.on { background: var(--c-cyan); }
.ob-skip { white-space: nowrap; margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: 10px; font: 600 13px var(--f-display); color: var(--muted); }
.ob-skip:hover { color: var(--ink); background: var(--bg-2); }
.ob-step { display: grid; gap: 6px; animation: obIn .35s var(--ease) both; }
@keyframes obIn { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .ob-step { animation: none; } }
.ob-n { font-size: 13px; font-weight: 600; color: var(--muted); }
.ob-q { font: 600 22px/1.25 var(--f-display); outline: none; }
.ob-hint { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.ob-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.ob-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font: 600 15px/1.3 var(--f-display); color: var(--ink); text-align: left; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.ob-opt .sq { width: 36px; height: 36px; flex: none; background: var(--surface); color: var(--c-cyan); }
.ob-opt:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-cyan) 45%, transparent); }
.ob-opt:active { transform: scale(.98); }
.ob-opt[aria-pressed="true"] { background: var(--t-cyan); box-shadow: inset 0 0 0 2px var(--c-cyan); }
.ob-opt[aria-pressed="true"] .sq { background: var(--c-cyan); color: var(--surface); }
.ob-foot { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ob-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 0 4px; font: 600 13px var(--f-display); color: var(--muted); }
.ob-back .ico { width: 15px; height: 15px; }
.ob-back:hover { color: var(--ink); }
.ob-result { grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
.ob-result > .sq { width: 56px; height: 56px; border-radius: 18px; }
.ob-result > .sq .ico { width: 26px; height: 26px; }
.ob-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ob-result .ob-back { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .onboard { padding: 18px 16px; }
  .ob-q { font-size: 20px; }
  .ob-top { gap: 10px; } .ob-dots i { width: 14px; } .ob-skip { padding: 0 6px; }
  .ob-opts { grid-template-columns: 1fr; }
  .ob-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ob-result > .sq { width: 48px; height: 48px; }
}

/* ═════════ Întreabă ═════════ */
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font: 600 13.5px/1 var(--f-display); color: var(--ink); }
.ask-btn .ico { color: var(--c-cyan); }
@media (max-width: 640px) { .ask-btn .lbl { display: none; } .ask-btn { padding: 0 10px; } }
.ask-wrap { position: fixed; inset: 0; z-index: 55; display: grid; align-items: end; justify-items: center; }
.ask { position: relative; width: min(620px, 100%); max-height: 86dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg); animation: up .35s var(--ease) both; }
@media (min-width: 640px) { .ask-wrap { align-items: center; } .ask { border-radius: 28px; max-height: 80dvh; } }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.ask-head h2 { font-size: 18px; }
.ask-head small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ask-head .icon-btn { margin-left: auto; box-shadow: none; background: var(--bg-2); flex: none; }
.ask-log { flex: 1; overflow: auto; padding: 6px 18px 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.ask-empty { display: grid; gap: 8px; justify-items: start; color: var(--ink-2); font-size: 14.5px; }
.ask-empty .pill { text-align: left; font-size: 13.5px; box-shadow: none; background: var(--bg-2); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; font-weight: 600; }
.msg.bot { justify-self: start; background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.bot p + p, .msg.bot ul { margin-top: 8px; }
.msg.bot ul { padding-left: 18px; margin-bottom: 0; }
.msg.err { background: color-mix(in srgb, var(--down) 10%, var(--surface)); }
.msg .dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg .dots i:nth-child(2) { animation-delay: .15s; } .msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.ask-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ask-form textarea { resize: none; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--ink); font: 500 15px var(--f-body); }
.ask-form textarea:focus { outline: none; border-color: var(--accent); }
.ask-form .btn { height: 50px; padding: 0 16px; }
@media (max-width: 420px) { .ask-form .btn span { display: none; } }
.ask-ctx { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--t-cyan); color: var(--c-cyan); font-size: 13px; font-weight: 600; }
.ask-ctx button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: inherit; }
.ask-ctx .ico { width: 14px; height: 14px; }
.ask-ctx span { min-width: 0; }
/* keyboard open (some in-app browsers don't shrink the page for it): the sheet sits on top of the keyboard and gets compact */
.ask-wrap { bottom: var(--kb, 0px); }
.ask-wrap.kb .ask { max-height: calc(var(--vvh, 100dvh) - 8px); }
.ask-wrap.kb .ask-head { padding: 10px 14px 6px; }
.ask-wrap.kb .ask-head small, .ask-wrap.kb .ask-head .sq { display: none; }
.ask-wrap.kb .ask-log { min-height: 0; padding-top: 0; }
.ask-wrap.kb .ask-form { padding: 8px 14px 10px; }
.ask-wrap.kb .ask-form textarea { min-height: 44px; padding: 10px 12px; }
.ask-wrap.kb .ask-form .btn { height: 44px; }
.ask-wrap.kb .ask-ctx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* chart legends (what-if, replay) */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; }
.hero h1 { max-width: 17ch; }
.hero h1 b { display: block; }

/* ═════════ Phones: tap targets ≥ 40px, readable chart labels, more room for widgets ═════════ */
@media (max-width: 640px) {
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .tab { display: inline-flex; align-items: center; min-height: 40px; }
  .back-link { min-height: 40px; margin-bottom: 4px; }
  .sec-head a { display: inline-flex; align-items: center; min-height: 40px; }
  .cardfb button { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .cardfb > button { min-width: 52px; }
  .chart text { font-size: 15px; }
  .card { padding: 24px 18px; }
  .card .panel { padding: 16px 14px; }
}
/* currency mix never truncates: it wraps, and on phones takes its own row */
.stat b.cur { white-space: normal; overflow: visible; }
@media (max-width: 480px) { .stat-row .stat:has(.cur) { grid-column: 1 / -1; } .stat-row:has(.cur) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .stat b { white-space: normal; overflow: visible; }
  .lesson-top .t .lesson-h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ═════════ Home: tiles open their lessons; leaner side column ═════════ */
button.tile { font: inherit; text-align: left; border: 0; width: 100%; cursor: pointer; }
.tile .foot > span:first-child { display: block; }
.tile .foot b, .tile .foot small { display: block; }
.tile .chev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); flex: none; }
.tile .chev .ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.tile[aria-pressed="true"] .chev .ico { transform: rotate(-90deg); }
.tile .bar { display: block; }
.tiles > .tile { order: 0; }
.step-lessons { grid-column: 1 / -1; order: 10; padding: 16px; margin: 0; }
.sl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 6px 12px; }
.sl-head b { font: 600 16px/1.3 var(--f-display); }
.sl-head span { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .tiles > .tile { order: calc(var(--i) * 2); }
  .step-lessons { order: calc(var(--sel, 0) * 2 + 1); padding: 12px; }
}
@media (min-width: 900px) { .dash.solo { grid-template-columns: 1fr; } }
a.fc-progress { color: var(--ink); text-decoration: none; transition: box-shadow .2s var(--ease); }
a.fc-progress:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }

/* the note under the path */
.home-note { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.home-note .sq { width: 36px; height: 36px; flex: none; }
.home-note p { flex: 1; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.home-note p b { color: var(--ink); }
.home-note .btn { flex: none; }
@media (max-width: 640px) { .home-note { flex-wrap: wrap; } .home-note p { flex-basis: calc(100% - 50px); } .home-note .btn { width: 100%; justify-content: center; } }
.row.current small { color: var(--ink-2); }

/* the path: the step you're in is in colour; steps still ahead are quiet until you get there */
.tile:is(.later, .soon) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tile:is(.later, .soon) .sq { background: var(--t); color: var(--c); backdrop-filter: none; }
.tile:is(.later, .soon) .p { color: var(--ink-2); opacity: 1; }
.tile:is(.later, .soon) .foot small { color: var(--muted); opacity: 1; }
.tile:is(.later, .soon) .badge { background: var(--bg-2); color: var(--ink-2); }
.tile:is(.later, .soon) .chev { background: var(--bg-2); color: var(--ink-2); }
.tile:is(.later, .soon) .bar { background: var(--bg-2); }
.tile:is(.later, .soon) .bar i { background: var(--c); }
.tile.later:hover { transform: translateY(-2px); }
/* steps still being written: quiet, and short on phones so the path doesn't turn into a long scroll */
.tile.soon { box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) {
  .tile.soon { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .tile.soon .sq { grid-area: 1 / 1 / 4 / 2; align-self: start; width: 38px; height: 38px; }
  .tile.soon .t3 { grid-area: 1 / 2; margin-top: 0; font-size: 16.5px; }
  .tile.soon .p { grid-area: 2 / 2; margin-top: 2px; font-size: 13px; }
  .tile.soon .badge { grid-area: 3 / 2; position: static; justify-self: start; margin-top: 8px; padding: 5px 9px; font-size: 11.5px; }
  .tile.soon :is(.foot, .bar) { display: none; }
}
.onboard + .home-note { margin-top: 40px; }

/* "Spune-ne ce crezi" */
.parere .page-head p { max-width: 60ch; }
.fb-form { display: grid; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld > span { font: 600 15px var(--f-display); }
.fld small { font: 600 12px var(--f-body); color: var(--muted); margin-left: 6px; }
.fld textarea, .fld input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--ink); font: 500 15.5px/1.5 var(--f-body); }
.fld textarea { resize: vertical; min-height: 140px; }
.fld input { height: 48px; }
.fld textarea:focus, .fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .fld-row { grid-template-columns: 1fr; } }
.fb-note { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.fb-err { color: var(--down); font-weight: 600; font-size: 14px; min-height: 0; }
.fb-err:empty { display: none; }
.fb-form .btn { justify-self: start; }
@media (max-width: 640px) { .fb-form .btn { justify-self: stretch; justify-content: center; } }
.fb-thanks { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; outline: none; }
.fb-thanks > div { flex: 1 1 220px; }
.fb-thanks b { display: block; font: 600 17px var(--f-display); }
.fb-thanks small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.celebrate-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* first visit: the questions are the one thing to do */
.onboard { border: 2px solid color-mix(in srgb, var(--c-cyan) 30%, transparent); box-shadow: var(--shadow-lg); }
.ob-q { font-size: 26px; }
.ob-opt { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.ob-opt .sq { background: var(--t-cyan); }
.ob-opt:hover { background: var(--t-cyan); box-shadow: inset 0 0 0 2px var(--c-cyan); }
@media (max-width: 640px) { .ob-q { font-size: 21px; } }

/* a quiet, always-there invitation to send feedback */
.say-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 18px auto 0; padding: 8px 14px; min-height: 40px; border-radius: 999px; color: var(--ink-2); font: 600 14px var(--f-body); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.say-line .ico { width: 17px; height: 17px; color: var(--c-cyan); flex: none; }
.say-line b { color: var(--accent); font-weight: 700; }
.say-line:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dash .say-line { margin-top: 24px; }

/* "Spune-ne ce crezi" in place: bottom sheet on phones, a side panel beside the lesson on wide screens */
.fb-wrap { position: fixed; inset: 0; z-index: 56; display: grid; align-items: end; }
.fb-panel { position: relative; width: 100%; max-height: 90dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg); animation: up .35s var(--ease) both; }
.fb-body { overflow: auto; padding: 6px 18px calc(18px + env(safe-area-inset-bottom)); }
.fb-body .fb-form .btn { justify-self: stretch; justify-content: center; }
.fb-body .fld-row { grid-template-columns: 1fr; }
.fb-body .fld textarea { min-height: 120px; }
@keyframes fbIn { from { transform: translateX(40px); opacity: 0; } }
@media (min-width: 760px) {
  .fb-wrap { justify-items: end; align-items: stretch; }
  .fb-panel { width: min(420px, 100%); max-height: none; height: 100dvh; border-radius: 28px 0 0 28px; animation: fbIn .3s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } }
.fb-ctx { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--t-cyan); color: var(--c-cyan); font-size: 13px; font-weight: 600; }
.fb-ctx button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: inherit; flex: none; }
.fb-ctx .ico { width: 14px; height: 14px; }
.fb-body .fb-thanks { padding: 12px 0; }
.adm-msg header .wh { color: var(--muted); }
.fb-wrap .sheet-scrim { background: rgba(10, 16, 15, .16); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ═════════ Motion: exits, page changes, list reveals ═════════ */
@keyframes fadeOut { to { opacity: 0; } }
@keyframes dropOut { to { opacity: 0; transform: translateY(14px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(28px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } }
/* closing overlays: quicker and smaller than their entrance */
.is-closing .sheet-scrim { animation: fadeOut var(--dur) var(--ease-in) both; }
.is-closing .sheet, .is-closing .ask, .is-closing .fb-panel { animation: dropOut .2s var(--ease-in) both; }
@media (min-width: 760px) { .is-closing .fb-panel { animation-name: slideOut; } }
.pocket-scrim:not([hidden]) { animation: fade var(--dur) var(--ease) both; }
/* page changes: the old page fades away, the new one settles in; the top bar and docked pocket stay put */
.topbar { view-transition-name: topbar; }
.pocket { view-transition-name: pocket; }
::view-transition-old(root) { animation: fadeOut .16s var(--ease-in) both; }
::view-transition-new(root) { animation: riseIn .3s var(--ease) both; }
/* a step's lessons, and the path after "Unde ești acum?": rows arrive one after another */
.rows-in .row, .reveal .tiles > *, .reveal .home-note, .reveal .sec-head { animation: riseIn var(--dur-slow) var(--ease) both; }
.rows-in .row:nth-child(2), .reveal .tiles > :nth-child(2) { animation-delay: 30ms; }
.rows-in .row:nth-child(3), .reveal .tiles > :nth-child(3) { animation-delay: 60ms; }
.rows-in .row:nth-child(4), .reveal .tiles > :nth-child(4) { animation-delay: 90ms; }
.rows-in .row:nth-child(5) { animation-delay: 120ms; }
.rows-in .row:nth-child(n+6) { animation-delay: 150ms; }
.reveal .step-lessons { animation: riseIn var(--dur-slow) var(--ease) 120ms both; }
/* press feedback on things you tap */
.tile:active { transform: scale(.985); transition-duration: var(--dur-fast); }
.row { transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.row:active { transform: scale(.99); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .rows-in .row, .reveal .tiles > *, .reveal .home-note, .reveal .sec-head, .reveal .step-lessons { animation: none; }
  .tile:active, .row:active { transform: none; }
}

/* Întreabă: answers found in the course */
.msg.bot { animation: riseIn var(--dur) var(--ease) both; }
.msg.bot .ask-t { display: block; font: 600 15px/1.3 var(--f-display); margin-bottom: 4px; }
.ask-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface); color: var(--accent); font: 600 13.5px var(--f-display); text-decoration: none; box-shadow: var(--shadow); }
.ask-src .ico { width: 15px; height: 15px; flex: none; }
.ask-src:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.ask-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ask-more small { flex-basis: 100%; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ask-more .pill { box-shadow: none; background: var(--surface); font-size: 13px; text-align: left; }
.ask-note { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .msg.bot { animation: none; } }

/* Întreabă: searching → found → writing */
.ask-think { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ask-think [data-step].swap { animation: riseIn var(--dur) var(--ease) both; }
.ask-later { visibility: hidden; }
.ask-reveal { animation: riseIn var(--dur) var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .ask-think [data-step].swap, .ask-reveal { animation: none; } }

/* ═════════ Pasul 1 widgets ═════════ */
/* Oglinda (replay): a past chart revealed day by day, buy/sell marks, then the result */
.rp-fig { margin: 0; padding: 12px 10px 6px; border-radius: 20px; background: var(--bg-2); }
.rp-chart { touch-action: pan-y; cursor: crosshair; }
.replay.done .rp-chart { cursor: default; }
.rp-mark circle { stroke: var(--surface); stroke-width: 2; }
.rp-mark.buy circle { fill: var(--up); }
.rp-mark.sell circle { fill: var(--down); }
.chart .rp-mark text { fill: #fff; font: 700 10px var(--f-body); }
.rp-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 14px 2px 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rp-read b { font: 600 22px/1.1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.rp-read [data-date] { flex-basis: 100%; }
.rp-move.up { color: var(--up); }
.rp-move.down { color: var(--down); }
.replay .range:disabled { opacity: .4; }
.replay .duo-btns .btn:disabled, .rp-actions .btn:disabled { opacity: .4; cursor: not-allowed; }
.rp-marks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rp-marks:empty { display: none; }
.rp-marks li { display: flex; align-items: center; gap: 8px; }
.rp-marks li::before { content: 'C'; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f-body); color: #fff; background: var(--up); }
.rp-marks li.sell::before { content: 'V'; background: var(--down); }
.rp-msg { min-height: 0; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rp-msg:empty { display: none; }
.rp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rp-actions .btn { height: 50px; padding: 0 10px; font-size: 14.5px; }
.feedback .rp-after { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.rp-again { width: 100%; margin-top: 10px; }

/* Order types toy: a small order book, three order types, the next 24 hours */
.ob-book { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.ob-book caption { text-align: left; font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 2px 8px; }
.ob-book th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 12px 2px; }
.ob-book th:last-child, .ob-book td:last-child { text-align: right; }
.ob-book td { padding: 5px 12px; font-weight: 600; }
.ob-book tr.ob-ask td { background: color-mix(in srgb, var(--down) 9%, var(--surface)); color: var(--down); }
.ob-book tr.ob-bid td { background: var(--t-green); color: var(--c-green); }
.ob-book tr td:first-child { border-radius: 10px 0 0 10px; }
.ob-book tr td:last-child { border-radius: 0 10px 10px 0; }
.ob-book .ob-spread td { text-align: center; background: none; color: var(--ink-2); font-size: 13px; padding: 4px 0; border-radius: 0; }
.ob-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; font-size: 12.5px; font-weight: 600; }
.ob-legend .ob-ask { color: var(--down); }
.ob-legend .ob-bid { color: var(--c-green); }
.ob-tabs { margin-top: 18px; }
.ob-panel { margin-top: 14px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ob-panel b { color: var(--ink); }
.ob-q { font: 600 14px var(--f-display); color: var(--ink); margin-top: 4px; }
.ob-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-choices .pill { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); font-variant-numeric: tabular-nums; }
.ob-choices .pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ob-go { width: 100%; margin-top: 4px; }
.ob-result { display: grid; gap: 8px; }
.ob-fig { margin: 0 0 4px; padding: 8px 6px 2px; border-radius: 14px; background: var(--surface); }
.ob-next { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Exchange vs wallet: questions that open both answers side by side */
.cust-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font: 600 13px var(--f-display); color: var(--ink-2); }
.cust-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cust-legend .sq { width: 28px; height: 28px; border-radius: 9px; }
.cust-legend .sq .ico { width: 15px; height: 15px; }
.cust-list, .mica-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cust-item, .mica-step { border-radius: 16px; background: var(--bg-2); }
.cust-item h3, .mica-step h3 { font: inherit; margin: 0; }
.cust-q, .mica-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; font: 600 15.5px/1.35 var(--f-display); color: var(--ink); border-radius: 16px; }
.cust-q:hover, .mica-q:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.cust-q > span:first-child { flex: 1; }
.cust-plus { position: relative; flex: none; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: var(--surface); }
.cust-plus::before, .cust-plus::after { content: ''; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform var(--dur) var(--ease); }
.cust-plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .cust-plus::after { transform: rotate(0deg); }
.cust-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; animation: riseIn var(--dur) var(--ease) both; }
.cust-col { border-radius: 12px; padding: 10px 12px; background: var(--surface); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cust-col small { display: block; margin-bottom: 4px; font: 600 11.5px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.cust-col.ex small { color: var(--c-blue); }
.cust-col.wa small { color: var(--c-green); }
.cust-count { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
@media (max-width: 420px) { .cust-a { grid-template-columns: 1fr; } }

/* Starter kit: one flip card per tool, the official link under it */
.starter { display: grid; gap: 14px; }
.st-item { display: grid; gap: 6px; }
.st-flip .flip-inner { min-height: 150px; }
.st-top { display: flex; align-items: center; gap: 12px; }
.st-top .sq { width: 38px; height: 38px; border-radius: 10px; }
.st-role { display: block; font: 600 11.5px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--accent)); }
.st-name { display: block; font: 600 17px/1.25 var(--f-display); }
.st-flip .flip-face p { font-size: 14.5px; }
.st-flip .flip-back p b { font-weight: 700; }
.st-link { justify-self: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font: 600 13.5px var(--f-display); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.st-link:hover { text-decoration: underline; }

/* MiCA check: numbered steps, each with its official link */
.mica-n { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); font: 700 14px/1 var(--f-display); }
.mica-n .ico { display: none; width: 16px; height: 16px; }
.mica-step.seen .mica-n { background: var(--accent); color: var(--accent-ink); }
.mica-step.seen .mica-n .n { display: none; }
.mica-step.seen .mica-n .ico { display: block; }
.mica-t { flex: 1; }
.mica-a { padding: 0 16px 14px 58px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); animation: riseIn var(--dur) var(--ease) both; }
@media (max-width: 420px) { .mica-a { padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { .cust-a, .mica-a { animation: none; } .cust-plus::before, .cust-plus::after { transition: none; } }
