/* ═════════ Tokens ═════════ */
:root {
  --bg: #eef2f8;
  --bg-2: #f5f7fc;            /* inner wells inside white panels */
  --surface: #ffffff;
  --ink: #1b2440;
  --ink-2: #4a5470;
  --muted: #929bb3;
  --line: #e7ecf4;
  --accent: #4c6fff;
  --accent-2: #3a56e8;
  --accent-ink: #ffffff;
  --cyan: #45c4f0;
  --up: #1fbf82;
  --down: #ff5d5d;
  --warm: #ffa53b;
  --glow: #4c6fff;
  /* gradient tiles */
  --g-orange: linear-gradient(155deg, #ffc84d 0%, #ff8a3d 55%, #ff6a3d 100%);
  --g-blue: linear-gradient(155deg, #5f93ff 0%, #4c6fff 50%, #3b4ff0 100%);
  --g-cyan: linear-gradient(155deg, #7aeaff 0%, #45c4f0 55%, #2ea4f0 100%);
  --g-green: linear-gradient(155deg, #78ec9c 0%, #3dd17c 55%, #23b56f 100%);
  --g-purple: linear-gradient(155deg, #b897ff 0%, #8b63ff 55%, #6d45f2 100%);
  /* tint squares (bg / fg) */
  --t-orange: #fff1e3; --c-orange: #ff8a3d;
  --t-blue: #e9eeff; --c-blue: #4c6fff;
  --t-cyan: #e3f7fd; --c-cyan: #1fa9e3;
  --t-green: #e2f8ec; --c-green: #1fbf82;
  --t-purple: #f0eaff; --c-purple: #7c56f5;
  /* chart series */
  --s-drawer: #ff7a59;
  --s-deposit: #ffb020;
  --s-invest: #4c6fff;
  --shadow: 0 1px 2px rgba(27, 36, 64, .04), 0 12px 32px -14px rgba(40, 60, 130, .18);
  --shadow-lg: 0 2px 4px rgba(27, 36, 64, .04), 0 30px 60px -24px rgba(40, 60, 130, .32);
  --r: 22px;
  --r-lg: 28px;
  --f-display: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='white' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M-20 40c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 60c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 80c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 100c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 120c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 140c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 160c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 180c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3Cpath d='M-20 200c40-30 80 30 120 0s80-30 120 0 80 30 120 0'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#0d1222; --bg-2:#141a2e; --surface:#182037; --ink:#eef1fa; --ink-2:#b9c1d9; --muted:#7a84a3; --line:#252e4b; --accent:#6f8cff; --accent-2:#5a78ff; --t-orange:#3a2a1f; --t-blue:#1f2a52; --t-cyan:#163447; --t-green:#173a2f; --t-purple:#2c2350; --c-orange:#ffa36b; --c-blue:#8aa3ff; --c-cyan:#6fd3f7; --c-green:#4fd99f; --c-purple:#ab8dff; --s-invest:#7c97ff; --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:#0d1222; --bg-2:#141a2e; --surface:#182037; --ink:#eef1fa; --ink-2:#b9c1d9; --muted:#7a84a3; --line:#252e4b; --accent:#6f8cff; --accent-2:#5a78ff; --t-orange:#3a2a1f; --t-blue:#1f2a52; --t-cyan:#163447; --t-green:#173a2f; --t-purple:#2c2350; --c-orange:#ffa36b; --c-blue:#8aa3ff; --c-cyan:#6fd3f7; --c-green:#4fd99f; --c-purple:#ab8dff; --s-invest:#7c97ff; --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: 500 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.02em; 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 16px/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--g-blue); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px #4c6fff; }
.brand-mark svg { width: 19px; height: 19px; }
.brand small { display: none; }
.tabs { display: flex; gap: 4px; margin-left: 28px; }
.tab { position: relative; padding: 10px 12px; font: 600 13px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; 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: 12px; letter-spacing: .03em; }
  .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: 14px; font: 600 15px/1 var(--f-display); letter-spacing: .01em; transition: transform .15s var(--ease), box-shadow .2s, opacity .2s, background .2s; 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 12px 24px -12px var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-soft { background: color-mix(in srgb, var(--cyan) 85%, white); color: #fff; box-shadow: 0 12px 24px -12px var(--cyan); }
.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: 34px 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: 13px; 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-blue)); color: var(--c, var(--c-blue)); }
.sq.solid { background: var(--g, var(--g-blue)); color: #fff; box-shadow: 0 10px 20px -10px var(--c, var(--c-blue)); }
.chip { display: inline-flex; 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-blue); color: var(--c-blue); }
.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(60% 80% at 100% 0%, color-mix(in srgb, var(--c-purple) 12%, transparent), transparent 70%),
    radial-gradient(50% 70% at 75% 100%, color-mix(in srgb, var(--c-cyan) 12%, 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-blue); color: var(--c-blue); }
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-green) 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; background: var(--g-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.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-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ico { width: 16px; height: 16px; color: var(--c-blue); }

.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-blob { position: absolute; width: min(300px, 78%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c-blue) 20%, var(--surface)), color-mix(in srgb, var(--c-blue) 7%, var(--surface)) 62%, transparent 72%); }
.hero-orbit { position: absolute; width: min(380px, 98%); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--c-blue) 22%, transparent); }
.hero-art { position: relative; width: min(230px, 64%); filter: drop-shadow(0 24px 26px rgba(40, 60, 130, .2)); animation: bob 6s ease-in-out infinite; }
@media (min-width: 900px) { .hero-art { width: min(300px, 78%); } }
@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; }
.fc-badge { right: 0; top: 8%; animation: bob 8s ease-in-out -4s infinite; }
@media (min-width: 900px) { .fc-progress { left: -4%; bottom: 10%; } .fc-badge { right: 0; top: 12%; } }
.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; }
@media (min-width: 900px) { .dash { grid-template-columns: 1fr 300px; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; min-height: 200px; border-radius: 24px; 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; 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 h3 { font-size: 19px; font-weight: 600; margin-top: 14px; }
.tile p { 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 { filter: saturate(.55); opacity: .82; }
.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,.25); font: 600 11px/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.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; }
.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-blue); }

.side { display: grid; gap: 14px; align-content: start; }
.fact { background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.fact b { font: 600 22px/1 var(--f-display); letter-spacing: -.02em; }
.fact p { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.fact .meter { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: var(--bg-2); overflow: hidden; }
.fact .meter i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.notice { background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.notice h3 { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.notice p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.notice .btn { height: 40px; padding: 0 16px; font-size: 13px; justify-self: start; }

/* ═════════ 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 b { 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-blue)); 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-blue)); 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-blue); }
.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; }

.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; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.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, background .2s, 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%; 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-blue)); color: #fff; box-shadow: 0 18px 30px -18px var(--c, var(--c-blue)); }
.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 11px/1 var(--f-display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.flip-back .tap { color: rgba(255,255,255,.75); }

.risk { display: inline-flex; gap: 3px; align-items: center; }
.risk i { width: 14px; height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); }
.risk i.on { background: var(--c, var(--accent)); }

/* recap */
.recap { text-align: center; }
.recap .burst { width: 92px; height: 92px; margin: 4px auto 18px; border-radius: 28px; display: grid; place-items: center; color: #fff; background: var(--wave) 0 20px / 240px repeat, var(--g, var(--g-blue)); box-shadow: 0 22px 34px -16px var(--c, var(--c-blue)); animation: burst .7s var(--ease) both; }
.recap .burst .ico { width: 42px; height: 42px; stroke-width: 2.6; }
@keyframes burst { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.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(13, 18, 34, .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; }

/* ═════════ Specific widgets ═════════ */
.coin-stage { display: grid; place-items: center; height: 160px; }
.coin { width: 146px; height: 146px; border-radius: 50%; background: var(--g-orange); display: grid; place-items: center; color: #fff; box-shadow: 0 24px 40px -18px #ff7a3d, inset 0 -8px 0 rgba(0,0,0,.08); transition: transform .35s var(--ease); position: relative; }
.coin::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); }
.coin span { font: 600 30px/1 var(--f-display); letter-spacing: -.02em; }
.coin small { display: block; font-size: 11px; font-weight: 700; text-align: center; opacity: .85; margin-top: 4px; }

.book { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book h4 { margin: 0 0 8px; font: 600 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.order { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--bg-2); font: 600 15px var(--f-display); margin-bottom: 8px; transition: box-shadow .2s, transform .15s var(--ease), opacity .3s; }
.order .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-display); color: #fff; flex: none; }
.order.sell .av { background: var(--g-orange); }
.order.buy .av { background: var(--g-blue); }
.order.sel { box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.02); }
.order.gone, .order:disabled { opacity: .3; pointer-events: none; }
.order.buy .px { color: var(--c-green); }
.order.sell .px { color: var(--down); }
.ticker { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 18px; color: #fff; background: var(--wave) 0 0 / 240px repeat, var(--g-blue); box-shadow: 0 18px 30px -18px #4c6fff; }
.ticker b { font: 600 26px var(--f-display); }
.ticker small { font-weight: 600; opacity: .85; font-size: 12.5px; }

.map { display: grid; gap: 8px; }
.region { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--bg-2); transition: box-shadow .2s; }
.region .sq { font: 700 13px/1 var(--f-display); letter-spacing: .02em; }
.region b { display: block; font: 600 15px/1.3 var(--f-display); }
.region small { color: var(--muted); font-weight: 600; font-size: 13px; }
.region .reveal { display: none; margin-top: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; line-height: 1.5; }
.region.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.region.on .reveal { display: block; animation: pop .3s var(--ease) both; }

.deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.deck-grid .flip, .deck-grid .flip-inner { height: 100%; }
.deck-grid .flip-inner { min-height: 0; }
.deck-grid .flip-face { padding: 18px; gap: 6px; }
.deck-front h3 { font-size: 18px; margin-top: 6px; }
.risk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.risk-row small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.deck-back { justify-content: flex-start; }
.deck-back .lbl { font: 600 11px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.deck-back .txt { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.deck-back .note { margin-top: auto; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
@media (max-width: 400px) { .deck-grid .flip-face { padding: 14px; } .deck-back .txt { font-size: 14px; } .deck-back .note { font-size: 12.5px; } }

.sorter { display: grid; gap: 8px; }
.sort-slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 2px dashed var(--line); min-height: 54px; font: 600 15px var(--f-display); color: var(--muted); }
.sort-slot.filled { border: 0; background: var(--t-green); color: var(--ink); }
.sort-slot .n { width: 28px; height: 28px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; font-size: 13px; color: var(--ink-2); flex: none; }
.pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.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); }
.pill.shake { animation: shake .4s both; box-shadow: inset 0 0 0 2px var(--down); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.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: #fff; box-shadow: 0 8px 16px -8px var(--accent); }
.dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin: 16px 0; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--c-blue); opacity: .8; transition: background .3s, transform .3s; }
.dots i.hit { background: var(--down); opacity: 1; transform: scale(.7); }
.dots.single { grid-template-columns: 1fr; justify-items: center; }
.dots.single i { width: 110px; }
.impact { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.impact b { font: 600 30px var(--f-display); letter-spacing: -.02em; }
.impact b.neg { color: var(--down); }

.price-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price-box .eyebrow { margin-bottom: 6px; display: block; }
.delta { font: 600 14px var(--f-display); padding: 6px 10px; border-radius: 999px; }
.delta.up { color: var(--c-green); background: var(--t-green); }
.delta.down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, var(--surface)); }
.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; }

.news { min-height: 130px; display: grid; place-items: center; text-align: center; padding: 22px; border-radius: 20px; color: #fff; background: var(--wave) 0 10px / 240px repeat, var(--g-purple); box-shadow: 0 20px 34px -18px #7c56f5; }
.news small { display: inline-flex; gap: 6px; align-items: center; font: 600 11px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.news b { font: 600 20px/1.3 var(--f-display); }

.myth-card { min-height: 170px; display: grid; place-items: center; text-align: center; padding: 26px; border-radius: 24px; color: #fff; background: var(--wave) 0 10px / 240px repeat, var(--g-purple); box-shadow: 0 22px 36px -18px #7c56f5; 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; }
}

/* ═════════ Illustrations ═════════ */
.cover { display: block; width: auto; height: auto; max-width: 100%; max-height: 190px; margin: -8px auto 10px; filter: drop-shadow(0 18px 22px rgba(40, 60, 130, .16)); }
.recap .cover { max-height: 130px; margin-top: -6px; }
.recap .cover + .burst { display: none; }
.tile-art { position: absolute; right: -14px; bottom: -10px; width: 120px; opacity: .95; pointer-events: none; }

/* ═════════ Order flow (GSAP) ═════════ */
.flow { display: grid; gap: 14px; }
.flow-track { position: relative; display: grid; gap: 14px; padding: 6px 0 6px 0; }
.flow-line { position: absolute; left: 32px; top: 30px; bottom: 30px; width: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.flow-line i { position: absolute; inset: 0; background: linear-gradient(var(--c-orange), var(--c-purple), var(--c-blue), var(--c-green)); transform-origin: top; transform: scaleY(0); }
.flow-node { position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--surface); transition: box-shadow .3s, background .3s; }
.flow-node b { display: block; font: 600 15px/1.25 var(--f-display); }
.flow-node small { color: var(--muted); font-size: 13px; font-weight: 600; }
.flow-node.on { box-shadow: 0 0 0 2px var(--c), 0 14px 24px -14px var(--c); }
.flow-node.on .sq { background: var(--g); color: #fff; }
.flow-packet { position: absolute; z-index: 2; left: 20px; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 8px 18px -6px var(--accent); visibility: hidden; }
.flow-packet .ico { width: 15px; height: 15px; }
.flow-packet.back { background: var(--c-green); box-shadow: 0 8px 18px -6px var(--c-green); }
.flow-cap { min-height: 48px; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }

/* ═════════ Globe (three.js) ═════════ */
.globe { display: grid; place-items: center; margin: -6px 0 6px; }
.globe canvas { width: 100%; max-width: 420px; height: auto; display: block; }

/* ═════════ Inflation basket (GSAP) ═════════ */
.basket { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 8px; }
.basket span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); font-size: 19px; box-shadow: var(--shadow); }
.basket span.gone { filter: grayscale(1); opacity: .2; }
.basket-cap { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .hero-art, .float-card { animation: none !important; } }
@media (max-width: 899px) {
  .hero-visual { min-height: 0; padding: 8px 0 44px; }
  .hero-art { width: min(200px, 56%); }
  .hero-blob { width: min(230px, 66%); }
  .hero-orbit { width: min(290px, 86%); }
  .fc-progress { left: 50%; bottom: 0; transform: translateX(-50%); animation: none; }
}
@media (max-width: 520px) { .fc-badge { display: none; } }

/* ═════════ 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: #fff; 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(27, 36, 64, .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(13, 18, 34, .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: var(--bg-2); border-left: 3px solid var(--c); }
.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: #fff; 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-blue)); 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 11px/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 11.5px/1 var(--f-display); color: var(--c, var(--accent)); padding-top: 2px; }
.keep .kept .ico { width: 13px; height: 13px; stroke-width: 3; }
@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-blue); 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; }
body.pocket-docked .side .pocket-cta { display: none; }
