/* Whale Ledger Learn: the learning demo. Builds on style.css. */
body.learn { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.learn header.top { padding-bottom: 8px; }
.learn h1 { font-size: 22px; margin: 0; letter-spacing: -0.02em; }
.icon-pill { padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; }
.risk-strip { display: block; width: 100%; text-align: left; font-size: 12.5px; line-height: 1.4; color: var(--muted); background: var(--card); border-radius: 12px; padding: 9px 12px; margin: 0 0 10px; }
.risk-strip b { color: var(--ink); }
.risk-strip u { color: var(--accent); text-decoration: none; font-weight: 600; }
.level { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.level > div:first-child { flex: 1; min-width: 0; }
.lv-k { font-weight: 700; font-size: 14px; }
.lv-v { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lv-bar { flex: none; width: 64px; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: var(--up); border-radius: 3px; }
.pane { min-height: 50vh; }
.av-PBL { background: #4f6bd8; } .av-GUL { background: #2a9d8f; } .av-DWD { background: #8d6e4f; } .av-LNT { background: #d99a2b; } .av-MKP { background: #8e44ad; }
.chip { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--chip); color: var(--muted); }
.chip.st-high { background: var(--action-bg); color: var(--action); }
.chip.st-dip { background: var(--watch-bg); color: var(--watch); }
.chip.st-deep { background: var(--up-bg); color: var(--up); }
.market { font-size: 13.5px; padding: 10px 14px; border-radius: 14px; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.market.up b { color: var(--up); } .market.down b { color: var(--down); } .market.flat b { color: var(--watch); }
.why { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent); padding: 2px 4px; }
.alert .top .why { margin-left: auto; }
.coin-wrap + .coin-wrap { border-top: 1px solid var(--line); }
.coin-wrap > .item { width: 100%; text-align: left; }
.add-btn { flex: none; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--chip); color: var(--accent); }
.item .sub { white-space: normal; }
.panel { padding: 4px 14px 14px; }
.lchart { width: 100%; height: auto; display: block; margin: 4px 0 6px; }
.c-high { stroke: var(--action); stroke-width: 1; stroke-dasharray: 3 3; }
.lchart .c-ev { stroke: none; } .lchart .c-ev.unlock { fill: var(--urgent-bg); } .lchart .c-ev.event { fill: var(--watch-bg); }
.c-evt { font-size: 7px; font-weight: 800; fill: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.fact { background: var(--card-2); border-radius: 12px; padding: 8px 10px; }
.fk { font-size: 11px; color: var(--muted); }
.fv { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.ft { font-size: 10.5px; color: var(--faint); margin-top: 2px; line-height: 1.3; }
.about { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.evs { margin-top: 10px; }
.ev { display: flex; gap: 10px; font-size: 13px; padding: 5px 0; line-height: 1.4; }
.ev-d { flex: none; width: 48px; font-weight: 700; color: var(--muted); }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn-row .primary-pill, .btn-row .ghost-pill { margin-top: 0; }
.ghost-pill { padding: 10px 16px; border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 600; font-size: 14px; }
.link { font-size: 13px; color: var(--muted); text-decoration: underline; margin-left: auto; }
.row-head { display: flex; align-items: center; }
.item .x { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--chip); padding: 6px 10px; border-radius: 999px; }
.item.dim { opacity: .65; }
.note { font-size: 12.5px; color: var(--faint); line-height: 1.45; margin: 12px 4px; }
.tag.fyi, .alert.fyi .do { background: var(--up-bg); color: var(--up); }
.wwyd { padding: 16px; }
.wwyd .q, .quiz .q { font-weight: 700; font-size: 16px; line-height: 1.35; margin-bottom: 12px; }
.opt { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); margin-top: 8px; font-size: 14.5px; }
.opt.best { border-color: var(--up); background: var(--up-bg); }
.opt.mine { border-color: var(--down); }
.opt:disabled { opacity: 1; }
.wwyd .res { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 12px; }
.wwyd .res b { color: var(--ink); }
.lvcard { padding: 16px; }
.lv-goal { font-size: 13.5px; color: var(--muted); margin: 6px 0 4px; }
.ck { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 5px 0; }
.ckb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 800; }
.ck.ok .ckb, .ckb.on { background: var(--up); border-color: var(--up); color: var(--bg); }
.lv-next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.4; }
.lesson { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 8px; }
.lesson .lt { flex: 1; font-weight: 600; font-size: 15px; }
.lesson .lm { font-size: 12.5px; color: var(--muted); }
.primary-pill.wide { display: block; width: 100%; margin: 8px 0 0; }
.gloss { padding: 6px 16px; }
.gloss .g { padding: 10px 0; font-size: 14px; line-height: 1.4; }
.gloss .g + .g { border-top: 1px solid var(--line); }
.gloss .g b { display: block; }
.gloss .g span { color: var(--muted); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.sheet p { font-size: 15px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
.sheet p.muted { color: var(--muted); font-size: 13.5px; }
.sheet > .primary-pill:last-child { display: block; width: 100%; margin-top: 16px; }
.sheet .wwyd { padding: 0; background: none; }
.lcheck { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pod-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.seg { display: flex; background: var(--card-2); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }
.fl { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.oform input, .gate .code, .fb-ta { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); }
.oinfo { font-size: 13.5px; line-height: 1.45; margin-top: 10px; }
.oinfo .muted { margin-top: 4px; }
.err { color: var(--down); font-size: 13.5px; min-height: 1.2em; margin-top: 8px; }
.qn { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.qscore { font-size: 34px; font-weight: 800; margin: 4px 0 8px; }
.gate { padding: 18vh 4px 0; text-align: center; }
.gate h1 { font-size: 26px; margin-bottom: 8px; }
.gate .code { text-align: center; letter-spacing: .15em; text-transform: uppercase; margin-top: 16px; }
.gate .primary-pill { min-width: 160px; }
.gate .warn { margin-top: 28px; font-size: 12.5px; color: var(--muted); line-height: 1.45; border-top: 1px solid var(--line); padding-top: 14px; }
.gate .small { font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; padding: 11px 16px; border-radius: 14px; z-index: 60; max-width: calc(100% - 32px); }
.lfoot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--faint); }

/* ---- v2 layout: bigger text, two paths, stories ---- */
body.learn { font-size: 17px; }
.learn .sub { font-size: 14.5px; }
.learn .sym { font-size: 17px; }
.learn .section-label { font-size: 13.5px; }
.learn .note { font-size: 14px; }
.risk-bar { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: flex-start; width: calc(100% + 32px); margin: 0 -16px; text-align: left; font-size: 13px; line-height: 1.35; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: #2a1517; color: #ffc9cb; border-bottom: 1px solid rgba(255, 90, 95, .35); }
.rb-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--urgent); margin-top: 5px; }
body.learn { padding-top: 0; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.mode { text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 2px solid transparent; }
.mode.on { border-color: var(--ink); background: var(--card-2); }
.m-k { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.m-v { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.learn .tabs { margin-bottom: 12px; }
.lv-bar.big { width: 100%; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; margin: 4px 0 10px; }
.lv-bar.big i { display: block; height: 100%; background: var(--up); border-radius: 4px; }
.cta { display: block; width: 100%; text-align: left; padding: 18px; margin-top: 12px; background: linear-gradient(135deg, #2c3270, #1d2047); border: 1px solid #3d44a0; }
.cta-k { font-size: 13px; color: #b9c0ff; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cta-h { font-size: 21px; font-weight: 800; margin-top: 4px; line-height: 1.25; }
.cta-go { margin-top: 12px; font-weight: 700; color: #c9ceff; }
.lesson { font-size: 16px; }
.lesson .ckb { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.path { padding: 6px 16px; }
.pl { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.pl + .pl { border-top: 1px solid var(--line); }
.pl-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--chip); color: var(--muted); }
.pl.here .pl-n { background: var(--up); color: var(--bg); }
.pl.start:not(.here) .pl-n { box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
.pl-m { flex: 1; min-width: 0; }
.pl-h { font-weight: 700; font-size: 15.5px; }
.pl-w { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pl-s { font-size: 12px; font-weight: 700; color: var(--faint); }
.pl.open .pl-s { color: var(--up); }
.pl.soon, .pl.planned { opacity: .8; }
.chev-r { font-size: 24px; color: var(--faint); }
/* Onboarding */
.onb { padding: 8vh 4px 24px; }
.onb h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 10px; }
.onb p { font-size: 17px; line-height: 1.5; }
.onb-k { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.onb-k.warn { color: var(--urgent); }
.choice { display: block; width: 100%; text-align: left; padding: 18px; border-radius: 18px; background: var(--card); margin-top: 12px; border: 1px solid var(--line); }
.choice:active { border-color: var(--ink); }
.c-h { font-weight: 800; font-size: 19px; }
.c-s { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.onb.risk h1 { color: #ffd0d2; }
.accept { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 16px; margin: 18px 0 14px; font-size: 16px; line-height: 1.45; }
.accept input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--up); }
.primary-pill:disabled { opacity: .35; }
/* Stories: one card at a time */
.story { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.st-bar { display: flex; gap: 4px; }
.st-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--chip); }
.st-bar i.done { background: var(--ink); }
.st-bar i.now { background: var(--accent); }
.st-top { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.st-kick { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-audio { flex: none; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--card); color: var(--muted); }
.st-audio.on { background: var(--accent); color: #fff; }
.st-x { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 15px; color: var(--muted); }
.st-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 12px; }
.st-card { animation: stIn .22s ease-out; }
@keyframes stIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.st-n { font-size: 13px; color: var(--faint); font-weight: 700; margin-top: 8px; }
.st-h { font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 14px; }
.st-h.q { font-size: 22px; }
.st-p { font-size: 19px; line-height: 1.5; margin: 0 0 14px; }
.st-card.center { text-align: center; padding-top: 12vh; }
.st-big { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; }
.st-opts .opt { font-size: 17px; padding: 15px 16px; border-radius: 14px; }
.st-res { font-size: 17px; line-height: 1.45; color: var(--muted); margin-top: 14px; }
.st-res b { color: var(--ink); }
.st-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.st-nav button { margin: 0; padding: 14px; font-size: 16px; }
.vis { width: 100%; height: auto; display: block; margin: 6px 0 4px; background: var(--card); border-radius: 16px; padding: 8px; }
.v-price { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.v-price.down { stroke: var(--down); }
.v-limit { stroke: var(--up); stroke-width: 2; stroke-dasharray: 6 5; }
.v-high { stroke: var(--action); stroke-width: 2; stroke-dasharray: 5 4; }
.v-arrow { stroke: var(--watch); stroke-width: 2.5; }
.v-mid { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.v-band { fill: rgba(110, 123, 255, .22); }
.v-dot { fill: var(--up); }
.v-bar { fill: var(--chip); stroke: var(--line); }
.v-bar2 { fill: rgba(47, 208, 122, .25); stroke: var(--up); }
.v-link { stroke: var(--muted); stroke-width: 3; }
.v-t { font-size: 14px; fill: var(--ink); font-weight: 600; }
.v-t.up { fill: var(--up); } .v-t.warn { fill: var(--action); } .v-t.muted { fill: var(--muted); font-weight: 500; }
.v-big { font-size: 34px; fill: var(--muted); }
/* Tour screenshots with a pointer ring */
.shot { position: relative; margin: 0 auto 14px; width: 78%; max-width: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.shot img { display: block; width: 100%; height: auto; }
.ring { position: absolute; border: 3px solid #ffd54a; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { border-color: #ffd54a; } 50% { border-color: #fff3b0; } }
.story .st-card .st-p:first-of-type { margin-top: 2px; }
.st-p.sm { font-size: 17px; margin-bottom: 10px; }
.shot { width: 64%; margin-top: 6px; }

/* ---- v3: launch, auto tours, amount ---- */
.st-bar i { position: relative; overflow: hidden; }
.st-bar i b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 2px; }
.st-bar i.done b { width: 100% !important; background: var(--ink); }
.st-bar i.now { background: var(--chip); }
.story:not(.auto) .st-bar i.now b { width: 100% !important; }
.st-tools { display: flex; gap: 6px; flex: none; }
.st-skip { flex: none; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); }
.st-nav.three { grid-template-columns: 1fr 1fr 1.3fr; }
.st-play { font-weight: 700; }
.hero-card { padding-top: 2vh; }
.hc-k { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(90deg, #8f9bff, #2fd07a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-h { font-size: 36px; line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 14px; background: linear-gradient(120deg, #ffffff 30%, #b8c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-p { font-size: 19px; line-height: 1.5; color: #d9dbe4; margin: 0 0 18px; }
.hc-items { display: flex; flex-direction: column; gap: 10px; }
.hc-it { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(110, 123, 255, .16), rgba(47, 208, 122, .08)); border: 1px solid rgba(143, 155, 255, .25); opacity: 0; animation: hcIn .5s ease-out forwards; }
@keyframes hcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hc-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; background: rgba(255, 255, 255, .07); }
.hc-ih { font-weight: 800; font-size: 18px; }
.hc-is { font-size: 15px; color: var(--muted); margin-top: 1px; }
.story.auto { background: radial-gradient(120% 60% at 50% 0%, #1a1d45 0%, var(--bg) 60%); }
.amt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.amt { padding: 16px 6px; border-radius: 14px; background: var(--card-2); border: 2px solid var(--line); font-weight: 800; font-size: 19px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.amt.on { border-color: var(--up); background: var(--up-bg); }
.amt-s { font-size: 11px; font-weight: 700; color: var(--up); }
.amounts input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); }

/* ---- v4: three avenues, hexagon hubs, welcome, feature cards ---- */
body.learn { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.av-kick { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.avnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 11, 15, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.avb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 14px; color: var(--muted); }
.avb-i { font-size: 22px; line-height: 1; }
.avb-t { font-size: 12px; font-weight: 700; }
.avb.on { background: var(--card-2); color: var(--ink); }
.avb.on .avb-t { color: var(--ink); }
.avb .badge { position: absolute; top: 2px; right: 18%; }
/* Hexagon hub */
.hexhub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; padding: 6px 2px 18px; }
.hexhub .hex:nth-child(6n+4), .hexhub .hex:nth-child(6n+5), .hexhub .hex:nth-child(6n+6) { transform: translateX(0); }
.hex { position: relative; aspect-ratio: 1 / 1.1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #2d3370, #1b1d3c); display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; animation: hexIn .4s ease-out forwards; }
.hex::before { content: ''; position: absolute; inset: 2px; clip-path: inherit; background: linear-gradient(160deg, #20244f, #15172d); }
@keyframes hexIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hex-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 12%; }
.hex-i { font-size: 26px; line-height: 1; }
.hex-n { font-weight: 800; font-size: 14px; color: var(--ink); line-height: 1.15; }
.hex-s { font-size: 10.5px; color: #aab0e8; line-height: 1.2; }
.hex-ok { font-size: 12px; font-weight: 800; color: var(--up); }
.hex.done { background: linear-gradient(160deg, #2fd07a, #1d6f48); }
.hex.here { background: linear-gradient(160deg, #ffd54a, #c08a12); }
.hex.dim { opacity: .55 !important; }
.hex:active::before { background: #2a2f63; }
.go-desk { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; font-weight: 700; font-size: 15.5px; }
.go-desk .gd-t { flex: 1; }
.desk-levels .hexhub { grid-template-columns: repeat(5, 1fr); gap: 4px; padding-bottom: 6px; }
.desk-levels .hex-i { font-size: 20px; }
.desk-levels .hex-n { font-size: 11px; }
.desk-levels .hex-s { display: none; }
/* Feature cards */
.st-benefit { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(47, 208, 122, .16), rgba(110, 123, 255, .1)); border: 1px solid rgba(47, 208, 122, .35); }
.sb-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--up); }
.sb-t { font-size: 18px; font-weight: 700; line-height: 1.4; margin-top: 4px; }
.st-exit { flex: none; font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: var(--up-bg); color: var(--up); }
.arrow { position: absolute; width: 0; height: 0; transform: translateX(-50%); z-index: 2; }
.arrow::before { content: '\2193'; position: absolute; left: -14px; font-size: 30px; font-weight: 900; color: #ffd54a; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); animation: arrowBob 1s ease-in-out infinite; }
.arrow.down::before { top: -38px; }
.arrow.up::before { content: '\2191'; top: 2px; }
@keyframes arrowBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.arrow.up::before { animation-name: arrowBobUp; }
@keyframes arrowBobUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Welcome: a page of its own */
.onb.welcome { position: fixed; inset: 0; overflow-y: auto; padding: calc(7vh + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(120% 70% at 50% 0%, #2b2f78 0%, #121433 45%, var(--bg) 85%); display: flex; flex-direction: column; }
.w-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(110, 123, 255, .45); animation: hcIn .6s ease-out; }
.w-kick { margin-top: 16px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a9b1ff; }
.w-h { font-size: 38px !important; line-height: 1.06 !important; letter-spacing: -0.03em; margin: 8px 0 12px !important; background: linear-gradient(120deg, #fff 30%, #b8c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-p { font-size: 18px !important; line-height: 1.5; color: #d6d9ea; margin: 0 0 18px; }
.w-hello { margin-top: auto; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.w-hello.in { opacity: 1; transform: none; }
.w-hi { font-size: 20px; font-weight: 800; }
.w-hs { font-size: 15.5px; color: #c9cce0; margin-top: 4px; line-height: 1.45; }
.w-next { margin-top: 16px !important; }
.onb.welcome .hc-items { margin-bottom: 18px; }
/* How it works */
.how-shot { width: 52%; margin: 4px auto 6px; }
.how-cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.av-choice { display: flex; align-items: center; gap: 14px; transition: background .2s, color .2s; }
.av-choice .c-i { font-size: 28px; flex: none; }
.av-choice.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.av-choice.on .c-s { color: #444; }
.onb.how .primary-pill.wide { margin-top: 16px; }
.shot.feat { width: 56%; }
.how-shot { width: 36%; }
.onb.how { padding-top: 5vh; }
.onb.how h1 { margin-bottom: 4px; }
.onb.how .choice { padding: 13px 16px; margin-top: 9px; }
.st-top .st-kick { min-width: 40px; }

/* ---- v5: one look everywhere (tiles on top, bottom bar always there) ---- */
.desk-levels .hexhub.scroll { display: flex; overflow-x: auto; gap: 4px; padding: 6px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.desk-levels .hexhub.scroll::-webkit-scrollbar { display: none; }
.desk-levels .hexhub.scroll .hex { flex: 0 0 19%; min-width: 64px; }
.desk-levels .hex-ok { position: absolute; top: 14%; right: 22%; font-size: 11px; }
.desk-levels .hex.done:not(.here) { background: linear-gradient(160deg, #2fd07a, #1d6f48); }
.feat-card { padding: 16px; margin-bottom: 12px; }
.fc-h { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.fc-t { font-size: 16px; line-height: 1.45; color: var(--ink); margin: 10px 0 0; }
.feat-card .shot.feat { width: 62%; }
.gi { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.learn-list { padding: 14px 16px; margin-top: 10px; }
.ll { font-size: 15.5px; padding: 4px 0; color: var(--ink); }
.lvcard.slim { padding: 12px 16px; }
.lvcard.slim .ck { font-size: 14px; padding: 3px 0; }
.rule-card { padding: 14px 16px; margin-bottom: 10px; }
.rule-card .fc-h { margin-bottom: 4px; font-size: 17px; }
.rule-card .fc-t { margin: 0; color: var(--muted); font-size: 15px; }
body.has-nav .story { bottom: calc(74px + env(safe-area-inset-bottom)); }
body.has-nav .avnav { z-index: 80; }
.voices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.vo { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 16px; }
.vo.on { border-color: var(--up); background: var(--up-bg); }
.vo-l { font-size: 12px; color: var(--muted); }
body.has-nav .story { padding-bottom: 10px; }
button.item { text-align: left; width: 100%; }

/* ---- Home ---- */
.avnav { grid-template-columns: repeat(4, 1fr); }
.avnav .avb-t { font-size: 11px; }
.home-hero { margin: 0 -16px; padding: 26px 20px 8px; background: radial-gradient(120% 90% at 50% 0%, #2b2f78 0%, #151838 50%, transparent 85%); }
.home-hero .w-logo { width: 56px; height: 56px; border-radius: 16px; }
.home-hero .w-kick { margin-top: 12px; }
.home-hero .w-h { font-size: 34px !important; margin: 6px 0 8px !important; }
.home-hi { font-size: 20px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; }
.home-hi.in { opacity: 1; transform: none; }
.home-p { font-size: 16.5px; line-height: 1.5; color: #d6d9ea; margin: 8px 0 4px; }
.home-ask { font-size: 21px; font-weight: 800; margin: 18px 2px 2px; letter-spacing: -0.01em; }
.home-sub { font-size: 14.5px; color: var(--muted); margin: 0 2px 4px; line-height: 1.4; }
.learn .pane .av-choice { width: 100%; text-align: left; }
.home-next { margin-top: 16px !important; }
.home-next:disabled { opacity: .35; }

/* ---- Home v2: deep sea, triangle of circles, all on one screen ---- */
.learn .pane .sea { position: relative; margin: 0 -16px; padding: 18px 18px 6px; min-height: calc(100vh - 170px); min-height: calc(100dvh - 170px); display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 55% at 50% 0%, #2b3a8a 0%, #172156 38%, #0c1230 70%, #07091a 100%); }
.bub { position: absolute; bottom: -12px; border-radius: 50%; background: rgba(170, 200, 255, .22); border: 1px solid rgba(200, 220, 255, .35); animation: rise 9s linear infinite; pointer-events: none; }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-82vh); opacity: 0; } }
.home-top { position: relative; z-index: 1; }
.home-kick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9b8ff; }
.home-logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 4px 14px rgba(110, 123, 255, .5); }
.home-h { font-size: 33px; line-height: 1.06; letter-spacing: -0.03em; margin: 10px 0 6px; background: linear-gradient(120deg, #ffffff 35%, #9fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hi { font-size: 18px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s ease; }
.home-hi.in { opacity: 1; transform: none; }
.home-p { font-size: 15px; line-height: 1.45; color: #cdd6f2; margin: 6px 0 0; }
.tri { position: relative; z-index: 1; width: 100%; max-width: 330px; aspect-ratio: 300 / 250; margin: 10px auto 0; }
.tri-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tri-lines polygon { fill: none; stroke: rgba(159, 216, 255, .28); stroke-width: 1.5; stroke-dasharray: 4 6; }
.orb { position: absolute; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: radial-gradient(circle at 35% 30%, #3e57c9, #1c2a72 70%); border: 1.5px solid rgba(159, 216, 255, .45); box-shadow: 0 8px 26px rgba(0, 0, 0, .45), inset 0 0 18px rgba(159, 216, 255, .18);
  opacity: 0; animation: orbIn .5s ease-out forwards, float 5s ease-in-out infinite; transition: background .25s, color .25s, box-shadow .25s; }
.orb-0 { left: 50%; top: 25%; }
.orb-1 { left: 20.5%; top: 75%; animation-delay: .3s, 1.2s; }
.orb-2 { left: 79.5%; top: 75%; animation-delay: .45s, 2.4s; }
@keyframes orbIn { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
.orb-i { font-size: 30px; line-height: 1; }
.orb-n { font-size: 13px; font-weight: 800; line-height: 1.15; padding: 0 8px; color: #fff; }
.orb.on { background: radial-gradient(circle at 35% 30%, #ffffff, #dfe8ff 75%); box-shadow: 0 0 0 4px rgba(159, 216, 255, .35), 0 10px 30px rgba(159, 216, 255, .35); }
.orb.on .orb-n { color: #0b1030; }
.tri-desc { position: relative; z-index: 1; text-align: center; font-size: 14.5px; line-height: 1.4; color: #cdd6f2; min-height: 42px; margin: 6px 6px 0; }
.tri-desc b { color: #fff; }
.sea .home-next { position: relative; z-index: 1; margin-top: 10px !important; }
/* Bottom bar: four equal tiles; tour buttons smaller than the bar */
.avnav { gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.avb { height: 58px; justify-content: center; padding: 4px 2px; }
.avb-i { font-size: 22px; height: 24px; }
.avnav .avb-t { font-size: 11.5px; white-space: nowrap; }
.st-nav button { padding: 9px 10px !important; font-size: 14px !important; min-height: 0; }
.st-nav.three { grid-template-columns: 1fr 1fr 1.2fr; }
body.has-nav .story { bottom: calc(70px + env(safe-area-inset-bottom)); }
.learn .home-h { font-size: 34px; }
.learn .pane .sea { justify-content: flex-start; }
.tri { max-width: 340px; margin-top: 14px; }
/* Sheets sit above the bottom bar and always have a close button at the top */
.sheet-bg { z-index: 95; }
.sheet { max-height: 84vh; max-height: 84dvh; padding-top: 0; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 10px; background: var(--card); }
.sheet-head h2 { margin: 0 !important; }
.sheet-x { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--card-2); color: var(--ink); font-size: 15px; }

/* ---- Home v3: centred, a wave in the headline, the page fills the screen ---- */
.learn .pane .sea { min-height: calc(100vh - 122px); min-height: calc(100dvh - 122px); justify-content: space-between; padding: 14px 18px 16px; }
body.learn:has(.sea) .lfoot { display: none; }
.home-top { text-align: center; }
.home-kick { justify-content: center; font-size: 11.5px; }
.home-logo { width: 26px; height: 26px; border-radius: 8px; }
.learn .home-h { margin: 10px 0 0; background: none; -webkit-text-fill-color: initial; color: #fff; line-height: 1; }
.hh-small { display: block; font-size: 17px; font-weight: 700; letter-spacing: .02em; color: #b9c8ff; margin-bottom: 6px; }
.hh-big { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.hl { display: inline-block; background: linear-gradient(180deg, #ffffff 0%, #9fe0ff 60%, #5fb3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: hlWave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.09s); }
.hl.sp { width: .28em; }
@keyframes hlWave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hh-wave { display: block; width: 62%; height: 12px; margin: 8px auto 0; overflow: visible; }
.hh-wave path { fill: none; stroke: rgba(159, 224, 255, .7); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 0; animation: waveSlide 3s linear infinite; }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.hh-wave { clip-path: inset(0 0 0 0); }
.home-hi { margin-top: 12px; font-size: 18px; }
.learn .home-p { font-size: 15px; margin: 4px 0 0; color: #b9c8ff; }
.tri { margin: 8px auto 0; max-width: 350px; }
.tri-desc { margin-top: 4px; }
.sea .home-next { margin-top: 12px !important; }
@media (prefers-reduced-motion: reduce) { .hl, .hh-wave path, .orb, .bub { animation: none !important; opacity: 1; } }

/* ---- 7 Oct: everything in view; one size for Back, Pause and Next ---- */
.learn .pane .sea { justify-content: flex-start; padding-bottom: 12px; }
.tri-box { flex: 1 1 0; min-height: 150px; display: flex; align-items: center; justify-content: center; container-type: size; position: relative; z-index: 1; }
.tri-box .tri { margin: 0; width: min(350px, 100cqw, 120cqh); max-width: none; }
.sea .home-next { margin-top: 8px !important; }
.st-top { justify-content: flex-end; margin: 10px 0 4px; }
.st-top .st-tools { margin-right: auto; }
.st-nav, .st-nav.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-nav:not(.three) { grid-template-columns: 1fr 1fr; }
.st-nav button, .st-nav .primary-pill, .st-nav .ghost-pill { height: 44px; padding: 0 8px !important; font-size: 15px !important; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 0 !important; min-height: 0; line-height: 1; white-space: nowrap; }
.onb-foot { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(10,10,16,0) 0%, var(--bg) 18%); padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); margin: 0 -4px; }
.onb-foot .accept { margin: 0 0 10px; }
.onb.risk p { font-size: 16px; margin: 8px 0; }
