:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #fcfcfb;
  --line: #e4e2dc;
  --grid: #ecebe6;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #7a7974;
  --s1: #2a78d6;   /* M6F+ */
  --s2: #e34948;   /* Halten */
  --s3: #7a52d1;   /* MV6F+ */
  --s4: #d9822b;   /* M6F+ v2 */
  --s5: #0e9f8e;   /* MV6F+ v2 */
  --good: #008300;
  --bad: #c43c3b;
  --accent-bg: #e9f1fb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --line: #2e2e2c;
    --grid: #262624;
    --text: #ffffff;
    --text-2: #c3c2b7;
    --text-3: #8f8e86;
    --s1: #3987e5;
    --s2: #e66767;
    --s3: #9b7af0;
    --s4: #f0a04b;
    --s5: #2cc1ad;
    --good: #3fb950;
    --bad: #e66767;
    --accent-bg: #1c2a3d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --line: #2e2e2c; --grid: #262624;
  --text: #ffffff; --text-2: #c3c2b7; --text-3: #8f8e86;
  --s1: #3987e5; --s2: #e66767; --s3: #9b7af0; --s4: #f0a04b; --s5: #2cc1ad; --good: #3fb950; --bad: #e66767; --accent-bg: #1c2a3d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 48px; padding-bottom: 8px; }
.eyebrow { color: var(--text-3); font-size: 13px; letter-spacing: .02em; margin: 0 0 6px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.lede { color: var(--text-2); max-width: 640px; margin: 0; }
h2 { font-size: 16px; margin: 0; }

.controls {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end;
  margin: 28px 0 20px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 10px 0;
}
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px;
  padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-checked="true"] { background: var(--accent-bg); color: var(--text); font-weight: 600; }
.seg.small button { font-size: 13px; padding: 4px 10px; }
.field { display: flex; flex-direction: column; font-size: 12px; color: var(--text-3); gap: 3px; }
.field input {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; height: 36px;
}
.money { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.money input { width: 110px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile .label { color: var(--text-3); font-size: 12px; }
.tile .big { font-size: 22px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .sub { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.tile .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.legend { color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dist-legend { margin-top: 6px; }
.key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 8px; }
.key.k1 { background: var(--s1); } .key.k2 { background: var(--s2); } .key.k3 { background: var(--s3); }
.legend .k3-item { display: contents; } .legend.no-mv .k3-item { display: none; }
.chart { position: relative; height: 340px; }
.chart.short { height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.axis text { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.zero { stroke: var(--text-3); stroke-width: 1; }
.crosshair { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }

.tip {
  position: fixed; pointer-events: none; z-index: 20; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); font-variant-numeric: tabular-nums; min-width: 160px;
}
.tip .t-date { color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.note { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.starts .tile { background: var(--bg); }

table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--text-3); font-weight: 500; font-size: 12px; }
.table-view summary { cursor: pointer; color: var(--text-2); font-size: 13px; margin-top: 8px; }
.pos { color: var(--good); } .neg { color: var(--bad); }

.fineprint { color: var(--text-2); font-size: 13px; margin: 24px 0 48px; }
.fineprint h2 { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.fineprint ul { padding-left: 18px; margin: 0; }
.fineprint li { margin-bottom: 4px; }

@media (max-width: 600px) {
  body { font-size: 14px; }
  header { padding-top: 24px; }
  .topbar { flex-wrap: wrap; }
  h2.section { font-size: 19px; margin-top: 28px; }
  .chart { height: 250px; }
  .chart.short { height: 210px; }
  .controls { position: static; gap: 10px; margin: 14px 0 14px; }
  .controls .seg { width: 100%; }
  .controls .seg button { flex: 1; }
  .field { flex: 1 1 140px; }
  .field input { width: 100%; }
  .money { width: 100%; }
  .money input { width: auto; flex: 1; min-width: 0; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { padding: 6px 9px; }
  .card { padding: 12px; border-radius: 14px; }
  .card-head { align-items: flex-start; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 10px 12px; }
  .tile .big { font-size: 20px; }
  .tile .sub { font-size: 12px; }
  .starts { grid-template-columns: 1fr; }
  .intro-grid { gap: 0; }
  .tip { min-width: 0; max-width: calc(100vw - 16px); }
  .card-head .seg { width: 100%; }
  .card-head .seg button { flex: 1; padding: 5px 2px; font-size: 12px; }
}

h2.section { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 6px; }
.section-lede { color: var(--text-2); max-width: 720px; margin: 0; }
.card-text { color: var(--text-2); font-size: 14px; margin: 0 0 12px; max-width: 760px; }
.intro { margin-top: 8px; }
.intro p { color: var(--text-2); max-width: 560px; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 40px; }
.facts { list-style: none; padding: 0; margin: 12px 0 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums; }
.facts li b { color: var(--text); font-weight: 600; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--text-2); margin: 8px 0 0; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.topbar .eyebrow { margin: 0; }
/* brand: signal bars + name */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark rect { fill: #3987e5; }
.brand-mark rect:nth-child(3) { fill: #2a9aa6; }
.brand-mark rect:nth-child(4) { fill: #1baf7a; }
.brand b { font-weight: 800; }
.hero > .wrap > .eyebrow { margin: 30px 0 0; }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; }
.reason h3 { font-size: 16px; margin: 0 0 6px; }
.reason p { color: var(--text-2); font-size: 14px; margin: 0; }
.reason .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-bg); color: var(--s1); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.math { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.math p { color: var(--text-2); max-width: 760px; margin: 0 0 12px; }
.math p:last-child { margin: 12px 0 0; }
table.mini td:nth-child(2) { font-weight: 600; color: var(--text); }
table.mini td:last-child, table.mini th:last-child { text-align: left; color: var(--text-2); }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.fit ul { list-style: none; padding: 0; margin: 10px 0 0; }
.fit li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); color: var(--text-2); position: relative; }
.fit .good li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 700; }
.fit .bad li::before { content: "–"; position: absolute; left: 4px; color: var(--text-3); font-weight: 700; }
.risks ul { padding-left: 18px; color: var(--text-2); margin: 8px 0 0; }
.risks li { margin-bottom: 6px; }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } table.mini { font-size: 13px; } }

.lede + .lede { margin-top: 6px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

.lede { max-width: 720px; }

.hero { padding: 28px 0 40px; background:
  radial-gradient(900px 420px at 15% -10%, rgba(57,135,229,.28), transparent 60%),
  radial-gradient(700px 380px at 95% 10%, rgba(27,175,122,.18), transparent 60%); }
.hero-title { font-size: clamp(40px, 7.5vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 10px 0 16px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #3987e5, #1baf7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.big-stats .big { border-top: 2px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.big-stats .v { font-size: clamp(44px, 6.5vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-stats .l { font-size: 15px; font-weight: 600; margin-top: 10px; }
.big-stats .c { margin-top: auto; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #1baf7a; background: rgba(27,175,122,.14); }
.big-stats .l { margin-bottom: 12px; }
.cta { display: inline-block; margin-top: 32px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none;
  color: #fff; background: linear-gradient(90deg, #2a78d6, #1baf7a); }
.cta:hover { filter: brightness(1.08); }
@media (max-width: 700px) { .big-stats { grid-template-columns: 1fr; gap: 18px; } .hero-title { margin-top: 8px; } .hero > .wrap > .eyebrow { margin-top: 22px; } }

/* ---- duel: M6F+ against holding, big ---- */
.duel { margin-top: 8px; }
.duel-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; letter-spacing: -.03em; margin: 8px 0 18px; }
.duel-title span:first-child { background: linear-gradient(90deg, #3987e5, #1baf7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duel-title em { font-style: normal; color: var(--text-3); font-weight: 500; font-size: .6em; padding: 0 .2em; }
.duel-title .muted { color: var(--s2); }
.duel-rows { display: grid; gap: 10px; }
.duel-row { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.duel-label { font-weight: 700; font-size: 16px; }
.duel-label .adv { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--good); }
.duel-bars { display: grid; gap: 8px; }
.bar { position: relative; height: 34px; border-radius: 10px; background: var(--grid); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 10px;
  transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.bar::before { background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--s1)) 70%, #000 12%), var(--c, var(--s1))); }
.bar.s0::before { background: linear-gradient(90deg, #2a78d6, #1baf7a); }
.bar.b::before { background: linear-gradient(90deg, #b8302f, var(--s2)); }
.bar.loss { background: repeating-linear-gradient(135deg, rgba(227,73,72,.28) 0 6px, rgba(227,73,72,.12) 6px 12px); }
.bar span, .bar b { position: relative; z-index: 1; line-height: 34px; padding: 0 12px; font-size: 13px; color: #fff; }
.bar b { position: absolute; right: 0; top: 0; color: var(--text); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar.a b { color: var(--text); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* bars already on screen: no grow from 0, they glide from the old width to the new one */
.bar.keep::before { animation: none; transition: width .45s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .bar::before { animation: none; } .bar.keep::before { transition: none; } }
@media (max-width: 700px) {
  .duel-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .bar { height: 30px; } .bar span, .bar b { line-height: 30px; } .bar b { font-size: 16px; }
}

.duel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.duel-head .duel-title { margin: 8px 0 18px; }
.duel-label .since { color: var(--text-3); font-weight: 500; font-size: 13px; }
.duel-label .adv.lag { color: var(--text-3); }
.cselect { position: relative; }
.cselect-btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.cselect-btn:hover, .cselect-btn[aria-expanded="true"] { border-color: var(--s1); }
.cselect-btn svg { color: var(--text-3); transition: transform .15s; }
.cselect-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cselect-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 4px; min-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.cselect-list li { padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: var(--text-2); font-weight: 600; outline: none; }
.cselect-list li:hover, .cselect-list li:focus { background: var(--accent-bg); color: var(--text); }
.cselect-list li[aria-selected="true"] { color: var(--s1); }
@media (max-width: 700px) { .duel-head .duel-title { margin-bottom: 4px; } .duel-head { margin-bottom: 12px; } }

/* ---- MV6F+ as an option: a switch, used in the duel head and in the controls ---- */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 6px 8px; }
.switch { position: relative; }
.switch input { position: absolute; left: 0; top: 0; opacity: 0; width: 0; height: 0; }
.switch .track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--grid); border: 1px solid var(--line); transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--s3); border-color: var(--s3); }
.switch input:checked + .track::after { transform: translateX(14px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--s1); outline-offset: 2px; }
.switch .name { font-weight: 700; color: var(--s3); }
.switch b { font-weight: 600; color: var(--text); }
.mv-note, .tax-note { background: var(--accent-bg); border-left: 3px solid var(--s3); border-radius: 10px; padding: 10px 14px; color: var(--text-2); font-size: 14px; margin: 0 0 16px; }
.tax-note { border-left-color: var(--s4); }
.mv-note[hidden], .tax-note[hidden] { display: none; }
.duel-head { gap: 10px 16px; }
.duel-head .right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 600px) { .controls .switch { width: 100%; } .duel-head .right { width: 100%; } .duel-head .right .cselect { flex: 1; } }
/* tax: switch + slider (25–45 %) in one pill */
.tax-ctl { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px 0 0; }
.tax-ctl .switch { border: none; background: none; }
.tax-switch input:checked + .track { background: var(--s4); border-color: var(--s4); }
.tax-switch .name { color: var(--s4); }
.tax-range { width: 120px; accent-color: var(--s4); cursor: pointer; }
.tax-val { font-size: 14px; font-weight: 700; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.tax-ctl.off .tax-range, .tax-ctl.off .tax-val { opacity: .4; }
.tax-range:disabled { cursor: default; }
@media (max-width: 600px) { .tax-ctl { width: 100%; } .tax-range { flex: 1; width: auto; } }

/* hint next to the year selection: a fat arrow rooted at the selection, turning a quarter upwards and tapering to its
   tip at the text above */
.since-box { display: flex; align-items: center; gap: 2px; }
.duel-head .right { row-gap: 74px; }  /* room for arrow and text when the selection wraps under the tax control */
.since-hint { position: relative; flex: none; width: 90px; height: 44px; margin-right: 60px; color: var(--s4); text-decoration: none; }
.since-hint .arr { position: absolute; left: 0; top: -30px; }
.since-hint .txt { position: absolute; left: 72px; bottom: 77px; white-space: nowrap; text-align: center; font-size: 15px; font-weight: 800;
  line-height: 1.15; transform: translateX(-50%) rotate(-4deg); }
.since-hint:hover .txt { text-decoration: underline; }
@media (max-width: 600px) {
  .duel-head .right { row-gap: 60px; }
  .duel-head .right .cselect { flex: none; }
  .since-hint { width: 70px; margin-right: 0; }
  .since-hint .arr { width: 66px; height: 48px; top: -17px; }
  .since-hint .txt { left: 54px; bottom: 64px; font-size: 14px; }
}

/* iPhone: no text inflation, notch-safe gutters, thumb-sized controls, market buttons wrap instead of scrolling */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, label, .cselect-list li { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .seg button { min-height: 40px; }
  .seg.small button { min-height: 36px; padding: 6px 12px; }
  #market { flex-wrap: wrap; overflow: visible; }
  #market button { flex: 1 1 30%; }
  #market button[data-v="mix"] { flex-basis: 100%; }
  .card-head .seg button { min-height: 36px; }
  .cselect-btn { min-height: 44px; }
  .cselect-list li { padding: 12px 14px; }
  .switch { min-height: 44px; }
  .tax-range { height: 32px; }
  input, select, textarea { font-size: 16px; }
}

/* mobile: the hint sits in the same row as the date – a straight arrow from the selection pointing at the text, text next to it */
@media (max-width: 600px) {
  .duel-head .right { row-gap: 12px; }
  .since-box { gap: 8px; }
  .since-hint { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; margin: 0; flex: 1 1 auto; min-width: 0; }
  .since-hint .arr { display: none; }
  .since-hint::before { content: ""; flex: none; width: 34px; height: 18px; background: currentColor;
    clip-path: polygon(100% 50%, 60% 0, 60% 32%, 0 32%, 0 68%, 60% 68%, 60% 100%); }
  .since-hint .txt { position: static; transform: none; white-space: normal; text-align: left; font-size: 14px; }
}

/* mobile: market as four equal buttons (mix shown short), start and amount as one aligned pair */
@media (max-width: 600px) {
  #market { display: grid; grid-template-columns: repeat(4, 1fr); flex-wrap: nowrap; }
  #market button, #market button[data-v="mix"] { flex: none; min-width: 0; padding: 6px 2px; }
  #market button[data-v="mix"] { font-size: 0; line-height: 1.1; }
  #market button[data-v="mix"]::after { content: "Mix\A 50/30/20"; white-space: pre; font-size: 12px; }
  .field { justify-content: flex-start; align-self: flex-start; }
  .field input, .field input[type="date"] { -webkit-appearance: none; appearance: none; box-sizing: border-box;
    display: block; width: 100%; height: 44px; min-height: 44px; padding: 0 10px; line-height: 44px; text-align: left; font-size: 16px; }
  .field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
}

/* top menu */
.topbar { flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); }
.nav a.nav-cta { color: #fff; background: linear-gradient(90deg, #3987e5, #1baf7a); padding: 8px 14px; }
@media (max-width: 600px) {
  .nav { order: 3; width: 100%; margin: 4px 0 0; }
  .nav a:not(.nav-cta) { display: none; }
  .nav a.nav-cta { flex: 1; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* sign-up */
.signup { margin-top: 32px; scroll-margin-top: 16px; }
.signup h2 { margin: 0 0 6px; font-size: 22px; }
.su-row { display: flex; gap: 12px; flex-wrap: wrap; }
.su-email { flex: 2 1 240px; }
.su-cap { flex: 1 1 160px; }
.signup .field input { width: 100%; box-sizing: border-box; height: 44px; font-size: 16px; }
.su-coins { display: flex; gap: 18px; margin: 14px 0 8px; color: var(--text-2); font-size: 14px; }
.su-coins label, .su-consent { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.su-coins input, .su-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--s1); flex: none; }
.su-consent { color: var(--text-2); font-size: 13px; margin: 6px 0 4px; }
.su-consent a { color: var(--text); }
.su-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.su-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; margin-top: 14px; }
.su-btn:disabled { opacity: .6; cursor: default; }
.su-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.su-msg.good { color: var(--good); }
.su-msg.bad { color: var(--bad); }
@media (max-width: 600px) { .su-btn { width: 100%; min-height: 48px; } }

/* footer and legal pages */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 13px; }
.site-footer .disclaimer { color: var(--text-2); max-width: 760px; margin: 0 0 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a, .legal-back a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-links a { padding: 6px 0; }
.site-footer .copy { margin: 0; }
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 48px; }
.legal h1 { font-size: 30px; margin: 28px 0 4px; letter-spacing: -.02em; }
.legal h2 { font-size: 17px; margin: 26px 0 6px; }
.legal p { color: var(--text-2); line-height: 1.6; }
.legal a { color: var(--text); }
.legal .muted { color: var(--text-3); font-size: 13px; }
.legal-back { margin-top: 36px; font-size: 14px; }

/* eye-catching sign-up button in the top menu */
.nav a.nav-cta { position: relative; padding: 10px 18px; border-radius: 999px; font-weight: 800; box-shadow: 0 6px 22px -6px rgba(27,175,122,.6);
  animation: ctaGlow 2.6s ease-in-out infinite; }
.nav a.nav-cta::after { content: "\00a0→"; }
@keyframes ctaGlow { 0%,100% { box-shadow: 0 6px 22px -8px rgba(27,175,122,.55); } 50% { box-shadow: 0 6px 30px -4px rgba(57,135,229,.75); } }
@media (prefers-reduced-motion: reduce) { .nav a.nav-cta { animation: none; } }

/* teaser band on the start page */
.signup-band { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; justify-content: space-between; margin: 32px 0 8px; padding: 24px;
  border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(57,135,229,.16), rgba(27,175,122,.14)); }
.signup-band h2 { margin: 0 0 6px; font-size: 22px; }
.signup-band p { margin: 0; color: var(--text-2); max-width: 620px; }
.signup-band .cta { margin: 0; }
@media (max-width: 600px) { .signup-band { padding: 18px; } .signup-band .cta { width: 100%; text-align: center; } }

/* pricing page */
.pr-feats { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14px; }
.pr-feats li::before { content: "✓"; color: #1baf7a; font-weight: 800; margin-right: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.plan { --c: var(--s3); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 18px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.plan.btc { --c: var(--s4); } .plan.link { --c: var(--s5); }
.plan:hover { transform: translateY(-2px); }
.plan.on { border-color: var(--c); box-shadow: 0 10px 34px -16px var(--c); }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-head h3 { margin: 0; font-size: 18px; }
.plan-sub { color: var(--text-3); font-size: 13px; font-weight: 600; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; font-weight: 800; color: #fff; flex: none; }
.dot.eth { background: linear-gradient(135deg, #8a6cf0, #5b3fc4); } .dot.btc { background: linear-gradient(135deg, #f7b04b, #e07b16); } .dot.link { background: linear-gradient(135deg, #3fd3be, #0e8f80); }
.spark { width: 100%; height: 110px; margin: 14px 0 4px; color: var(--c); display: block; }
.spark .hold { stroke: var(--s2); opacity: .75; stroke-dasharray: 3 3; }
.plan-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.plan-legend .k { width: 14px; height: 3px; border-radius: 2px; display: inline-block; } .plan-legend .k.s { background: var(--c); } .plan-legend .k.h { background: var(--s2); margin-left: 8px; }
.plan-legend .muted { color: var(--text-3); }
.plan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plan-stats div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.plan-stats dt { font-size: 12px; color: var(--text-3); }
.plan-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.plan-stats dd.vs { font-size: 12px; font-weight: 600; color: var(--s2); letter-spacing: 0; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.plan-price b { font-size: 34px; font-weight: 900; letter-spacing: -.03em; }
.plan-price span { color: var(--text-2); font-size: 14px; }
.plan-price2 { color: #1baf7a; font-weight: 700; font-size: 14px; margin: 2px 0 14px; }
.plan-btn { font: inherit; font-weight: 700; font-size: 15px; min-height: 46px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--c); background: transparent; color: var(--text); }
.plan.on .plan-btn { background: var(--c); color: #fff; }
.pr-all { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px 24px; margin: 18px 0; padding: 22px 24px; border-radius: 20px;
  border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #8a6cf0, #f0a04b, #2cc1ad) border-box; }
.pr-all-art { display: flex; } .pr-all-art .dot { margin-left: -8px; border: 3px solid var(--surface); width: 46px; height: 46px; border-radius: 50%; } .pr-all-art .dot:first-child { margin-left: 0; }
.pr-all h2 { margin: 4px 0 2px; font-size: 20px; } .pr-all p { margin: 0; color: var(--text-2); font-size: 14px; }
.pr-badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: linear-gradient(90deg, #3987e5, #1baf7a); padding: 3px 8px; border-radius: 999px; }
.pr-all-price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pr-all-price s { color: var(--text-3); font-size: 18px; } .pr-all-price b { font-size: 36px; font-weight: 900; letter-spacing: -.03em; } .pr-all-price span { color: var(--text-2); font-size: 14px; }
.pr-all-btn, .pr-go { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.pr-sum { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 14px 18px; margin: 18px 0 8px;
  border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 12px 40px -18px rgba(0,0,0,.5); }
.pr-sum-l { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.pr-sum-h { font-size: 12px; color: var(--text-3); } .pr-sum-coins { font-weight: 800; font-size: 17px; } .pr-sum-save { color: #1baf7a; font-size: 13px; font-weight: 600; }
.pr-sum-r { display: flex; align-items: baseline; gap: 6px; } .pr-sum-r b { font-size: 30px; font-weight: 900; letter-spacing: -.03em; } .pr-sum-r span { color: var(--text-2); font-size: 13px; }
.pr-sum.empty .pr-go { opacity: .5; pointer-events: none; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--text-2); font-size: 14px; }
.steps b { color: var(--text); }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3987e5, #1baf7a); }
.su-total { margin-left: auto; color: var(--text); }
.pr-note { color: var(--text-3); font-size: 12px; margin: 16px 0 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .pr-all { grid-template-columns: auto 1fr; } .steps { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .plans { margin-top: 24px; gap: 12px; }
  .plan { padding: 16px; } .plan:hover { transform: none; }
  .pr-all { padding: 18px; } .pr-all-price, .pr-all-btn { grid-column: 1 / -1; } .pr-all-btn { width: 100%; min-height: 48px; }
  .pr-sum { bottom: calc(8px + env(safe-area-inset-bottom)); padding: 12px 14px; gap: 8px 12px; }
  .pr-sum-r b { font-size: 26px; } .pr-go { width: 100%; text-align: center; min-height: 46px; padding: 12px; }
  .pr-feats { gap: 6px 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .pr-sum { flex-wrap: nowrap; gap: 10px; }
  .pr-sum-h { display: none; }
  .pr-sum-l { flex: 1 1 auto; }
  .pr-sum-coins { font-size: 15px; }
  .pr-sum-r { flex-direction: column; align-items: flex-end; gap: 0; } .pr-sum-r b { font-size: 24px; line-height: 1; } .pr-sum-r span { font-size: 11px; }
  .pr-go { width: auto; flex: none; padding: 12px 14px; font-size: 14px; }
}
@media (max-width: 600px) {
  .pr-sum-r { white-space: nowrap; } .pr-sum-save { font-size: 12px; line-height: 1.3; }
  .pr-go { padding: 12px; font-size: 13px; max-width: 46%; white-space: normal; line-height: 1.2; }
}

/* "continue" button on the pricing page: solid white pill with an arrow, leads to the sign-up page */
.pr-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 13px 22px; border-radius: 999px;
  background: #fff; color: #0b0b0b; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; box-shadow: 0 8px 24px -10px rgba(255,255,255,.5); }
.pr-go:hover { transform: translateX(2px); box-shadow: 0 10px 30px -8px rgba(255,255,255,.6); }
.pr-go svg { flex: none; transition: transform .15s; } .pr-go:hover svg { transform: translateX(3px); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pr-go { background: #0b0b0b; color: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); } }
@media (max-width: 600px) { .pr-go { max-width: none; padding: 12px 16px; font-size: 14px; white-space: nowrap; } }

/* sign-up page */
.su-hero .hero-title { font-size: clamp(34px, 6vw, 56px); }
.su-back { margin: 18px 0 0; }
.su-picked { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 24px 0 12px; padding: 14px 18px; border-radius: 16px;
  border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #8a6cf0, #f0a04b, #2cc1ad) border-box; }
.su-picked:empty { display: none; }
.su-picked span { color: var(--text-3); font-size: 13px; } .su-picked b { font-size: 17px; } .su-picked b.p { margin-left: auto; }
.su-picked a { color: var(--text-2); font-size: 13px; }
.signup-page .signup { margin-top: 0; }

/* sign-up bar at the very top of the start page, stays visible while scrolling */
.topcta { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: calc(11px + env(safe-area-inset-top)) 16px 11px; background: linear-gradient(90deg, #3987e5, #2a9aa6, #1baf7a); color: #fff;
  text-decoration: none; font-size: 15px; box-shadow: 0 4px 18px -6px rgba(0,0,0,.45); }
.topcta b { font-weight: 800; }
.topcta-sub { opacity: .9; }
.topcta svg { flex: none; transition: transform .15s; }
.topcta:hover svg { transform: translateX(3px); }
.topcta-dot { width: 9px; height: 9px; border-radius: 50%; background: #39ff8f; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 10px #39ff8f; flex: none; animation: topctaPulse 1.8s ease-in-out infinite; }
@keyframes topctaPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .topcta-dot { animation: none; } }
@media (max-width: 600px) { .topcta { font-size: 14px; min-height: 48px; box-sizing: border-box; } .topcta-sub { display: none; } }
/* mobile: summary bar flush with the bottom edge, home indicator space inside the bar instead of a gap below it */
@media (max-width: 600px) {
  .pr-sum { bottom: 0; margin: 18px -16px 0; border-radius: 18px 18px 0 0; border-width: 1px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); }
}
.pr-go .go-s { display: none; }
@media (max-width: 600px) { .pr-go .go-l { display: none; } .pr-go .go-s { display: inline; } .pr-sum-coins { white-space: nowrap; } }
/* HODL is always drawn dashed, the legend key too */
.key.dash { width: 18px; background: repeating-linear-gradient(90deg, var(--kc) 0 5px, transparent 5px 8px) !important; border-radius: 0; }

/* the number inside each chip: counts up after the big number and glows briefly; the chip itself stays green */
.big-stats .c .cn { font-weight: 800; font-variant-numeric: tabular-nums; display: inline-block; }
.big-stats.anim .c .cn.pop { animation: cnPop 1.6s ease-out; }
@keyframes cnPop { 0% { transform: scale(1); text-shadow: none; } 20% { transform: scale(1.18); text-shadow: 0 0 12px rgba(27,175,122,.9); } 100% { transform: scale(1); text-shadow: none; } }
