/* ---------- shell tokens (theme-aware) ---------- */
:root {
  --ground: #E9EFE9;
  --ground-2: #DFE7E0;
  --panel: #FBFCFA;
  --ink: #0F2419;
  --ink-2: #3D5146;
  --muted: #66786E;
  --line: #D2DCD4;
  --accent: #17804A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DDEFE3;
  --amber: #B9730F;
  --s1: #1B8A52; --s2: #3F6FD6; --s3: #C98316; --s4: #C2417E;
  --loss: #B4463C;
  --grid: #E3E9E4;
  --bezel: #0B100E;
  --shadow: 0 30px 60px -30px rgba(15, 36, 25, .45), 0 10px 20px -12px rgba(15, 36, 25, .25);
  --f-display: "Unbounded", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09120F; --ground-2: #0D1814; --panel: #111D19; --ink: #E4EDE7; --ink-2: #BCCBC2; --muted: #8C9D93;
    --line: #22342D; --accent: #3CC47C; --accent-ink: #062014; --accent-soft: #163526; --amber: #E0A445;
    --s1: #2A9C5E; --s2: #5A86E6; --s3: #C0852A; --s4: #D45A92; --loss: #E07A6E; --grid: #1D2D27; --bezel: #000;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 10px 20px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --ground: #09120F; --ground-2: #0D1814; --panel: #111D19; --ink: #E4EDE7; --ink-2: #BCCBC2; --muted: #8C9D93;
  --line: #22342D; --accent: #3CC47C; --accent-ink: #062014; --accent-soft: #163526; --amber: #E0A445;
  --s1: #2A9C5E; --s2: #5A86E6; --s3: #C0852A; --s4: #D45A92; --loss: #E07A6E; --grid: #1D2D27; --bezel: #000;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 10px 20px -12px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; fill: #3CE08A; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); }
.top-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-family: var(--f-mono); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2FD27F; box-shadow: 0 0 0 0 rgba(47, 210, 127, .6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 127, .55); } 70% { box-shadow: 0 0 0 8px rgba(47, 210, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 210, 127, 0); } }

.stage { flex: 1; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 560px); gap: 28px; padding: 4px 28px 28px; align-items: start; max-width: 1280px; width: 100%; margin: 0 auto; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 12px; }
.phone { position: relative; width: 390px; height: min(844px, calc(100vh - 110px)); min-height: 640px; border-radius: 52px; background: var(--bezel); padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 41px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); z-index: 5; }
.phone-caption { color: var(--muted); font-size: 12.5px; margin: 0; text-align: center; }

.statusbar { position: absolute; top: 12px; left: 12px; right: 12px; height: 44px; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; color: #F2F6F3; font-size: 14.5px; font-weight: 600; pointer-events: none; border-radius: 41px 41px 0 0; }
.phone[data-light="1"] .statusbar { color: #10231A; }
.phone[data-light="1"] .sb-batt { border-color: rgba(16, 35, 26, .5); }
.sb-notch { width: 118px; height: 32px; background: #000; border-radius: 20px; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { width: 17px; height: 11px; fill: currentColor; }
.sb-icons b { font-size: 11.5px; font-weight: 700; }
.sb-batt { width: 24px; height: 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 4px; padding: 1.5px; display: block; }
.sb-batt i { display: block; height: 100%; width: 82%; background: currentColor; border-radius: 1.5px; }
.mobile-strip { display: none; }

/* ---------- investor panel ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; min-height: min(844px, calc(100vh - 110px)); position: relative; }
.panel-close { display: none; }
.panel-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); }
.panel-tabs button { border: 0; background: none; padding: 10px 14px 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.panel-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.panel-body { padding: 22px 24px 8px; flex: 1; }
.panel-foot { padding: 14px 24px 18px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.5; }

.p-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.p-title { font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 8px; text-wrap: balance; }
.p-lede { color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.p-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

.ledger { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.ledger div { padding: 11px 14px; border-right: 1px solid var(--line); }
.ledger div:last-child { border-right: 0; }
.ledger dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.ledger dd { margin: 0; font-family: var(--f-mono); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger dd.pos { color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 0 14px; position: relative; padding-bottom: 14px; }
.step::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); position: relative; z-index: 1; }
.step.done .step-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.done::before { background: var(--accent); }
.step.active .step-n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 30px; padding-top: 4px; }
.step-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.step-head button { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 12.5px; padding: 2px 0; white-space: nowrap; }
.step-head button:hover { text-decoration: underline; }
.step-body { grid-column: 2; }
.step-body p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.step:not(.active) .step-detail { display: none; }
.lever { margin-top: 10px; border-radius: 12px; background: var(--ground-2); padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); }
.lever b { display: block; font-size: 11px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; font-weight: 600; }
.lever .num { font-family: var(--f-mono); color: var(--ink); font-weight: 600; }

/* charts & plan */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.kpi { background: var(--panel); padding: 13px 15px; }
.kpi dt { font-size: 11.5px; color: var(--muted); }
.kpi dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi dd small { font-family: var(--f-body); font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.kpi dd.neg { color: var(--loss); }
.chart-block { margin-bottom: 24px; }
.chart-block h4 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.chart-block .sub { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; border-radius: 1px; width: 14px; }
.chart { position: relative; overflow-x: auto; }
.chart svg { display: block; width: 100%; height: auto; min-width: 440px; }
.chart text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--ink-2); stroke-width: 1; opacity: .5; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--panel); border-radius: 10px; padding: 8px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; z-index: 5; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.tip b { font-family: var(--f-mono); font-weight: 600; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }

.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.stream { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.stream-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.stream-top i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stream p { margin: 0; color: var(--ink-2); font-size: 12.5px; }
.stream .price { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.stream .yr { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px dashed var(--line); }
.stream .yr b { font-family: var(--f-mono); color: var(--ink); }

.costs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.cost-row { display: grid; grid-template-columns: 128px 1fr 74px; align-items: center; gap: 10px; font-size: 12.5px; }
.cost-row .bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--ink-2); opacity: .75; }
.cost-row .v { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.phase { padding: 11px 12px; border-right: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.phase:last-child { border-right: 0; }
.phase b { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--accent); margin-bottom: 3px; font-weight: 600; }
.phase strong { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 2px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.team li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.team li span:last-child { font-family: var(--f-mono); color: var(--ink); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
table.pl { border-collapse: collapse; width: 100%; font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 760px; }
table.pl th, table.pl td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--f-mono); }
table.pl th:first-child, table.pl td:first-child { text-align: left; font-family: var(--f-body); position: sticky; left: 0; background: var(--panel); }
table.pl thead th { color: var(--muted); font-weight: 500; }
table.pl tr.tot td { font-weight: 700; }
table.pl td.neg { color: var(--loss); }
details.tbl summary { cursor: pointer; font-size: 12.5px; color: var(--accent); font-weight: 600; margin: -12px 0 12px; }

.site-foot { max-width: 1280px; width: 100%; margin: 0 auto; padding: 8px 28px 28px; font-size: 12.5px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; }
.site-foot a { color: var(--ink-2); }
.site-foot p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .phone-wrap { position: static; }
  .panel { min-height: 0; }
}
@media (max-width: 560px) {
  .topbar, .phone-caption, .statusbar { display: none; }
  .site-foot { padding: 16px; }
  .stage { padding: 0; display: block; }
  .phone { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .phone::before { display: none; }
  .mobile-strip { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 14px; background: #0B1411; color: #C9D6CE; font-size: 12px; font-family: var(--f-mono); flex: none; }
  .mobile-strip button { background: none; border: 0; color: #3CE08A; font-weight: 600; font-size: 12px; font-family: var(--f-body); }
  .panel { position: fixed; inset: 0; z-index: 100; border-radius: 0; border: 0; overflow-y: auto; transform: translateY(100%); transition: transform .3s ease; }
  .panel.open { transform: none; }
  .panel-close { display: block; position: absolute; top: 8px; right: 10px; z-index: 2; border: 0; background: var(--ground-2); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; }
  .panel-tabs { padding-right: 52px; }
  .panel-body { padding: 18px 16px 8px; }
  .streams { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase:nth-child(2) { border-right: 0; }
  .phase:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
