:root {
  --bg: #f9faf4;
  --surface: #ffffff;
  --ink: #141416;
  --muted: #64645e;
  --faint: #a3a39a;
  --line: #e4e4da;
  --accent: #e8b931;
  --accent-soft: rgba(232, 185, 49, .22);
  --up: #2f7d4f;
  --down: #b4442f;
  --max: 1120px;
  --heading: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font: 600 .76rem/1 var(--heading); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
mark { background: linear-gradient(transparent 62%, var(--accent) 62%); color: inherit; padding: 0 .04em; }

/* ── header ─────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(249, 250, 244, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1rem var(--heading); letter-spacing: .14em; white-space: nowrap; }
.brand img { width: 32px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .93rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent);
                          transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; font: 600 .9rem var(--body); cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0;
         padding: 8px 20px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
}

/* ── buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff !important; text-decoration: none; border: 0;
       border-radius: 999px; padding: 13px 24px; font: 600 .95rem var(--body); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: #2a2a2e; }
.btn.small { padding: 8px 16px; font-size: .86rem; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── hero + parallax ────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero.page { min-height: 62vh; padding: 140px 0 64px; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.layer { position: absolute; pointer-events: none; will-change: transform; }
.layer.grid { inset: -20% 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
              background-size: 64px 64px; opacity: .55; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
              -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.layer.mark { right: -4%; top: 12%; width: min(52vw, 620px); opacity: .09; }
.layer.line { left: 0; right: 0; bottom: 4%; height: 40%; opacity: .28; }
.layer.line path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 3.2s var(--ease) .3s forwards; }
.layer.line circle { fill: var(--bg); stroke: var(--ink); stroke-width: 2; opacity: 0; animation: pop .4s var(--ease) forwards; }
.layer.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); }
.layer.dot.y { background: var(--accent); border-color: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(40px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .fade { opacity: 0; animation: rise .9s var(--ease) forwards; transform: translateY(20px); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; background: var(--surface); border: 1px solid var(--line);
          border-radius: 999px; padding: 6px 14px; margin-bottom: 28px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 49, .6); } 50% { box-shadow: 0 0 0 7px rgba(232, 185, 49, 0); } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--muted);
                     border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ── scroll reveal ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ── sections ───────────────────────────────────────── */
section { padding: 110px 0; position: relative; }
section.tight { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 44em; margin-bottom: 48px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; transition: transform .35s var(--ease), box-shadow .35s; }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -24px rgba(20, 20, 22, .35); }
.card p:last-child { margin-bottom: 0; }
.num { font: 700 .76rem var(--heading); letter-spacing: .1em; background: var(--accent-soft); display: inline-block; border-radius: 6px; padding: 4px 8px; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } section { padding: 80px 0; } }

/* feature band (dark) */
.band { background: var(--ink); color: #f3f3ec; overflow: hidden; }
.band .muted, .band .eyebrow { color: #a9a9a0; }
.band .card { background: #1d1d20; border-color: #2c2c30; }
.band .btn { background: var(--accent); color: var(--ink) !important; }
.big-stat { font: 700 clamp(3rem, 8vw, 6rem)/1 var(--heading); letter-spacing: -.03em; }
.big-stat.up { color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; margin-top: 36px; }
.stat-row .v { font: 700 2rem/1.1 var(--heading); }
.stat-row .k { font-size: .85rem; color: var(--muted); }
.band .stat-row .k { color: #a9a9a0; }

/* ── charts + controls ──────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.chart { position: relative; height: 380px; }
.chart.short { height: 220px; }
@media (max-width: 600px) { .chart { height: 300px; } .panel { padding: 18px; } }
.controls { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; margin-bottom: 24px; }
.control label, .control .lbl { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; background: #f0f0e8; border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font: 600 .86rem var(--body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; cursor: pointer; user-select: none; background: var(--surface); }
.chip input { display: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip:has(input:not(:checked)) { opacity: .45; }
.money { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--body); width: 150px; background: var(--surface); }
table.stats { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
table.stats th, table.stats td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.stats th:first-child, table.stats td:first-child { text-align: left; }
table.stats th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.stats tr.main td { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.pos { color: var(--up); } .neg { color: var(--down); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.kpi .v { font: 700 1.6rem/1.1 var(--heading); margin-top: 4px; transition: color .3s; }
.kpi .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hypo { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); border: 1px dashed var(--faint); border-radius: 8px; padding: 5px 10px; margin-bottom: 16px; }

/* model blocks */
.model { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .model { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 20px 0 0; font-size: .93rem; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; }

/* steps / checks */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 36px 64px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 700 .8rem var(--heading);
                    background: var(--accent-soft); padding: 6px 9px; border-radius: 8px; }
.steps li::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: 6px; width: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-family: var(--heading); font-size: 1.1rem; margin-bottom: 4px; }

/* plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 700 2.6rem var(--heading); margin: 10px 0 0; }
.plan .price small { font: 400 .95rem var(--body); color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 18px 0 26px; color: var(--muted); }
.plan li { margin-bottom: .45em; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.featured { border: 1.5px solid var(--ink); }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); max-width: 48em; }
.join { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; }
.join p { color: #c4c4bc; max-width: 34em; margin: 0 auto 28px; }
.join form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto; flex-wrap: wrap; }
.join input[type=email] { flex: 1 1 220px; border: 0; border-radius: 999px; padding: 14px 20px; font: 1rem var(--body); }
.join .btn { background: var(--accent); color: var(--ink) !important; }
.join .msg { margin-top: 16px; font-weight: 600; color: var(--accent); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { padding: 56px 0 64px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer .links a { margin-left: 18px; text-decoration: none; }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .disclaimer { max-width: 64em; margin: 0; font-size: .7rem; line-height: 1.5; color: #8b8b84; }

/* legal */
.legal { padding: 140px 20px 90px; max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal, .hero h1 .word, .hero .fade { opacity: 1; transform: none; }
  .layer.line path { stroke-dashoffset: 0; }
  .layer.line circle { opacity: 1; }
}
.steps.plain li::before { content: "!"; padding: 6px 12px; }

/* ── extras: progress bar, spotlight, highlighter, story ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 60; }
.card, .panel { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(232, 185, 49, .13), transparent 60%); }
a.card { transition: transform .25s var(--ease), box-shadow .35s; }
.hero h1 mark { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 0% 36%; animation: hl .9s var(--ease) 1.1s forwards; }
@keyframes hl { to { background-size: 100% 36%; } }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story-visual { position: sticky; top: 14vh; height: 72vh; display: flex; align-items: center; }
.stage { position: relative; width: 100%; height: min(460px, 100%); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
         opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene > * { opacity: 0; transform: translateX(-18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scene.on > * { opacity: 1; transform: none; }
.scene.on > :nth-child(2) { transition-delay: .1s; } .scene.on > :nth-child(3) { transition-delay: .2s; }
.scene.on > :nth-child(4) { transition-delay: .3s; } .scene.on > :nth-child(5) { transition-delay: .4s; }
.scene.on > :nth-child(6) { transition-delay: .5s; } .scene.on > :nth-child(7) { transition-delay: .6s; } .scene.on > :nth-child(8) { transition-delay: .7s; }
.news { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .9rem; background: var(--bg); }
.news b { font-family: var(--heading); font-size: .78rem; letter-spacing: .06em; }
.news .s { margin-left: auto; font: 700 .82rem var(--heading); padding: 3px 8px; border-radius: 6px; }
.news .s.p { background: rgba(47, 125, 79, .12); color: var(--up); } .news .s.n { background: rgba(180, 68, 47, .12); color: var(--down); }
.scene svg path.px { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.scene svg path.ma { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.scene.on svg path.px { stroke-dashoffset: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--bg); }
.rank { display: grid; grid-template-columns: 54px 1fr 56px; align-items: center; gap: 10px; font-size: .8rem; }
.rank i { height: 14px; border-radius: 4px; background: #dcdcd2; transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .3s; }
.scene.on .rank i { transform: none; }
.rank.l i { background: var(--up); } .rank.s i { background: var(--down); }
.rank em { font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .06em; }
.rank.l em { color: var(--up); } .rank.s em { color: var(--down); }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-visual { top: 76px; height: 46vh; z-index: 1; background: var(--bg); }
  .stage { height: 100%; }
  .scene { padding: 20px; gap: 8px; }
  .step { min-height: 60vh; }
}

.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.heat th { font-weight: 600; color: var(--muted); padding: 4px; }
.heat td { text-align: center; padding: 9px 2px; border-radius: 6px; cursor: pointer; transition: transform .15s; }
.heat td:hover { transform: scale(1.08); }
.heat td.empty { cursor: default; }
.heat tr.sel th { color: var(--ink); }
.heat td.yr { font-weight: 700; }
.play { display: inline-flex; align-items: center; gap: 8px; }

/* dual date-range slider */
.range2 { position: relative; height: 28px; width: 100%; }
.range2::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line); border-radius: 2px; }
.range2 .fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--accent); border-radius: 2px; }
.range2 input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range2 input::-webkit-slider-runnable-track { background: none; }
.range2 input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
  border: 4px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ink); cursor: grab; transition: transform .15s; }
.range2 input::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range2 input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--ink); cursor: grab; }
.range2 input::-moz-range-track { background: none; }
.ticks { position: relative; height: 18px; width: 100%; margin-top: 2px; font-size: .74rem; color: var(--muted); }
.ticks span { position: absolute; transform: translateX(-50%); top: 2px; }
.range-ctl { flex: 1 1 380px; padding: 0 11px; }   /* padding keeps the end thumbs and tick labels inside the panel */
.range-ctl .lbl { margin-left: -11px; }
.mix-ctl { flex: 0 1 220px; }
.mix-ctl input { width: 100%; height: 28px; margin: 0; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) 0 50% / var(--p, 0%) 4px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 4px no-repeat; }
.mix-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
  border: 4px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ink); cursor: grab; }
.mix-ctl input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ink); }
@media (max-width: 600px) { .mix-ctl { flex-basis: 100%; } }
