/* Curvetap · "Curve Lab": warm graph paper, ink, one signal orange.
   Raw colours live only in :root. */
:root {
  --paper: #F2EFE7;
  --paper-2: #E8E3D6;
  --card: #FBFAF6;
  --ink: #141412;
  --ink-2: #4B4840;
  --ink-3: #6F6A60;
  --line: #D8D1C2;
  --line-2: #C2BAA8;
  --grid: rgba(20, 20, 18, .05);

  --signal: #FF4F1A;
  --signal-ink: #B83A10;
  --signal-soft: #FFE0D2;
  --good: #1D7A4B;
  --good-soft: #D8EDDF;
  --warn: #8A5E0E;
  --warn-soft: #F6E6C2;

  --night: #131311;
  --night-2: #1D1C19;
  --night-line: #302E29;
  --night-text: #EDEAE2;
  --night-mute: #A29D91;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
  --nav-gap: 14px; /* space above the floating nav */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--nav-gap) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mono { font-family: var(--mono); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
h1 { font-size: clamp(46px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.04em; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FF6A3B; }
.ico { width: 16px; height: 16px; }

/* Links left empty in config.js */
.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; }
.btn-ink.is-soon:hover { background: var(--ink); }
.btn-line.is-soon:hover { background: transparent; color: var(--ink); }
.btn-signal.is-soon:hover { background: var(--signal); }
.soon {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--signal-soft); color: var(--signal-ink);
}
.btn-ink .soon { background: var(--signal); color: var(--ink); }
.btn-signal .soon { background: var(--ink); color: var(--paper); }
a.is-soon:not(.btn) { color: var(--ink-3); }
a.is-soon:not(.btn) .soon { margin-left: 8px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 32px; height: 32px; flex: none; }
.mark-bg { fill: var(--ink); }
.mark-line { fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; }
.mark-dot { fill: var(--signal); }
.mark-inv .mark-bg { fill: var(--night-text); }
.mark-inv .mark-line { stroke: var(--night); }
.wordmark { font-size: 22px; font-weight: 750; letter-spacing: -.04em; }

/* ---------- nav ---------- */
/* A floating capsule, centred at the top (glass, ring and glow: src/shared/nav-glow.css). */
.nav { position: sticky; top: 0; z-index: 50; padding-top: var(--nav-gap); }
.nav-row {
  width: min(1140px, calc(100% - 24px)); height: var(--nav-h); padding: 0 8px 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
}
.nav-row .brand { grid-column: 1; justify-self: start; }
.nav-row .nav-cta, .nav-row .doc-cta, .nav-row .menu-btn { grid-column: 3; justify-self: end; }
.nav-links { grid-column: 2; display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.nav-links-cta { display: none; }
.menu-btn {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 79, 26, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 79, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 26, 0); } }
.hl { position: relative; color: var(--signal); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 11C60 3 140 2 198 8' fill='none' stroke='%23141412' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.lede { margin: 28px 0 36px; max-width: 33em; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-demo { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.hero-demo a { color: var(--signal-ink); font-weight: 650; text-underline-offset: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.facts li::before { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }

/* Curve card */
.curve-card {
  margin: 0; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 40px 70px -48px rgba(60, 40, 10, .45);
}
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-title { margin-top: 4px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.state-pill {
  flex: none; padding: 6px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--signal-soft); color: var(--signal-ink);
  transition: background-color .25s, color .25s;
}
[data-state="near"] .state-pill { background: var(--warn-soft); color: var(--warn); }
[data-state="grad"] .state-pill { background: var(--good-soft); color: var(--good); }
.cc-chart { width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }

.c-gridline { stroke: var(--line); stroke-width: 1; }
.c-tick { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.c-base { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 5; }
.c-area { fill: var(--signal); opacity: .1; transition: fill .25s; }
.c-trail { fill: none; stroke: var(--signal); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.c-guide { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; }
.c-dot { fill: var(--signal); stroke: var(--card); stroke-width: 3; transition: fill .25s; }
.c-grad { stroke: var(--good); stroke-width: 1.4; stroke-dasharray: 5 5; }
.c-grad-t { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--good); }
[data-state="grad"] .c-trail { stroke: var(--good); }
[data-state="grad"] .c-dot, [data-state="grad"] .c-area { fill: var(--good); }

.cc-slider { display: grid; gap: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--signal) var(--p, 0%), var(--paper-2) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; border: 4px solid var(--card); background: var(--ink); box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--signal); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--card); background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
[data-state="grad"] input[type="range"]::-webkit-slider-runnable-track { background: var(--good); }
[data-state="grad"] input[type="range"]::-moz-range-progress { background: var(--good); }

.cc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.chip {
  min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cc-read { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cc-read > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; min-width: 0; }
.cc-read > div:nth-child(even) { border-left: 1px solid var(--line); }
.cc-read > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.cc-read dt { font-size: 10.5px; white-space: nowrap; }
.cc-read dd { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-read sub, .ov sub { font-size: .7em; vertical-align: -.25em; }
.curve-card .fine { margin-top: 12px; }

/* ---------- section heads ---------- */
section { position: relative; }
.compare, .how, .states-sec, .toolkit, .roadmap, .cta, .faq { padding: clamp(72px, 10vw, 136px) 0; }
.compare { padding-top: 0; }
.sec-head { max-width: 860px; }
.sec-head .label { margin-bottom: 18px; }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; align-items: end; }
.sec-sub { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.sec-sub a { color: var(--signal-ink); text-underline-offset: 3px; }

/* ---------- compare ---------- */
.cmp { display: grid; gap: 12px; margin-top: 48px; }
.cmp-row {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px;
  padding: 20px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
}
.cmp-tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cmp ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.cmp li {
  counter-increment: s; display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2);
}
.cmp li::before {
  content: counter(s); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper-2); font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-2);
}
.cmp-new { background: var(--ink); border-color: var(--ink); }
.cmp-new .cmp-tag { color: var(--signal); }
.cmp-new li { background: var(--night-2); border-color: var(--night-line); color: var(--night-text); font-size: 16px; font-weight: 500; }
.cmp-new li::before { background: var(--signal); color: var(--ink); }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); margin-top: 56px; }
.how-stage { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.stage {
  position: relative; height: 580px; padding: 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(20, 20, 18, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 18, .06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.demo-tag { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 4px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 10.5px; }

.post {
  position: relative; width: min(430px, 100%);
  padding: 18px 18px 12px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 24px 40px -32px rgba(0, 0, 0, .35);
}
.post-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; }
.post-head strong { font-size: 15px; }
.handle { color: var(--ink-3); font-size: 14px; }
.post-text { margin: 12px 0 14px; font-size: 16px; line-height: 1.6; }
.ca {
  padding: 1px 6px; border: 0; border-radius: 6px; background: transparent;
  font-family: var(--mono); font-size: 14px; cursor: pointer;
  background: var(--signal-soft); color: var(--signal-ink); box-shadow: inset 0 -2px 0 var(--signal);
  transition: background-color .2s;
}
.ca:hover { background: #FFD0BB; }
.stage[data-step="1"] .ca { animation: ca-ping 1.8s var(--ease) infinite; }
@keyframes ca-ping { 0%, 100% { box-shadow: inset 0 -2px 0 var(--signal), 0 0 0 0 rgba(255, 79, 26, .35); } 50% { box-shadow: inset 0 -2px 0 var(--signal), 0 0 0 5px rgba(255, 79, 26, 0); } }
.ca-chip { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; vertical-align: 1px; }
.post-ghost { margin-top: 14px; opacity: .55; box-shadow: none; }
.post-ghost .avatar { background: var(--paper-2); }
.sk { display: block; height: 10px; margin-top: 12px; border-radius: 999px; background: var(--paper-2); }
.post-head .sk { margin: 0; }
.sk-name { width: 140px; }
.sk-short { width: 62%; }
.post-foot { display: flex; gap: 28px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.post-foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Overlay panels (the extension UI) */
.ov {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  width: min(352px, calc(100% - 48px));
  padding: 16px; border-radius: 18px;
  background: var(--night); color: var(--night-text); border: 1px solid var(--night-line);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .6);
  font-size: 14px;
  opacity: 0; transform: translateY(14px) scale(.985); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.stage[data-step="1"] [data-panel="1"],
.stage[data-step="2"] [data-panel="2"],
.stage[data-step="3"] [data-panel="3"],
.stage[data-step="4"] [data-panel="4"] { opacity: 1; transform: none; pointer-events: auto; }
.ov .mark { width: 26px; height: 26px; }
.ov-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ov-strong { font-weight: 650; font-size: 15px; }
.ov-mute { color: var(--night-mute); font-weight: 400; }
.ov-head .ov-strong { flex: 1; min-width: 0; }
.ov-badge { padding: 3px 9px; border-radius: 999px; background: rgba(255, 79, 26, .16); color: #FF8A63; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.ov-badge-up { background: rgba(79, 214, 144, .14); color: #6FE3A6; }
.ov-big { font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.ov .mono { font-size: 12.5px; }
.bar { height: 6px; margin: 10px 0 8px; border-radius: 999px; background: var(--night-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--signal); transition: width .6s var(--ease); }
.ov-prog { padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 12px 0; }
.ov-grid dt, .ov-quote dt { color: var(--night-mute); font-size: 11.5px; }
.ov-grid dd, .ov-quote dd { margin: 2px 0 0; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ov-checks { display: grid; gap: 7px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--night-line); }
.ov-checks li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.ov-checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: center / 10px no-repeat; }
.ov-checks .ok::before { background-color: rgba(79, 214, 144, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='%236FE3A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ov-checks .warn::before { background-color: rgba(245, 197, 74, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2.2v3.4M5 7.6v.1' fill='none' stroke='%23F5C54A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.ov-toast { display: flex; align-items: center; gap: 12px; width: auto; max-width: calc(100% - 48px); padding: 12px 12px 12px 14px; border-radius: 999px; }
.ov-toast .ov-strong { font-size: 14px; }
.ov-toast .ov-mute { font-size: 12.5px; }
.ov-open { margin-left: 6px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 650; cursor: pointer; }

.ov-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amt { min-height: 38px; border-radius: 10px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-text); font-family: var(--mono); font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.amt:hover { border-color: var(--night-mute); }
.amt[aria-pressed="true"] { border-color: var(--signal); background: rgba(255, 79, 26, .12); }
.ov-quote { display: grid; gap: 8px; margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--night-2); }
.ov-quote > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ov-quote dd { margin: 0; }
.ov-buy { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--signal); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.ov-buy:hover { background: #FF6A3B; }
.ov-done { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border-radius: 12px; background: rgba(79, 214, 144, .12); color: #6FE3A6; font-weight: 600; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: #6FE3A6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='%23131311' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.stage.is-confirmed .ov-buy { display: none; }
.stage.is-confirmed .ov-done { display: flex; }

.ov-sells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 12px; }
.ov-sells button { min-height: 38px; border-radius: 10px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ov-sells button:hover { border-color: var(--night-mute); }
.ov-toggles { display: grid; gap: 10px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--night-line); }
.ov-toggles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.tag { margin-left: 6px; padding: 2px 6px; border-radius: 6px; border: 1px dashed var(--night-mute); font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--night-mute); }
.tg { width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--night-line); position: relative; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--night-mute); }
.tg.is-on { background: var(--signal); }
.tg.is-on::after { left: 17px; background: var(--ink); }

.how-steps { margin: 0; padding: 0; list-style: none; }
.how-step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .32; transition: opacity .35s var(--ease);
}
.how-step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 40px; }
.how-step.is-active { opacity: 1; }
.step-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--signal-ink); }
.step-title { font-size: clamp(32px, 3.4vw, 46px); font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.how-step p { margin-top: 14px; max-width: 26em; font-size: 18px; color: var(--ink-2); }

/* ---------- the curve: three states ---------- */
.states { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0 0; padding: 0; list-style: none; }
.states::before {
  content: ""; position: absolute; top: 22px; left: 23px; right: 23px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 13px);
}
.st { position: relative; padding-top: 66px; }
.st-node {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 2px solid var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.st-grad .st-node { background: var(--good); border-color: var(--good); color: #fff; }
.st-card { height: 100%; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.st-card h3 { margin: 20px 0 10px; }
.st-card p { color: var(--ink-2); font-size: 16px; }
.st-fig { width: 100%; height: auto; padding: 12px 8px 6px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.f-base { stroke: var(--line-2); stroke-width: 1.5; }
.f-bar { fill: var(--ink); opacity: .82; }
.f-hot { fill: var(--signal); opacity: 1; }
.f-text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.f-text-hot { fill: var(--signal-ink); font-weight: 600; }
.f-dash { stroke: var(--good); stroke-width: 1.4; stroke-dasharray: 4 4; }
.f-ghost { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 5; }
.f-trail { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; }
.f-trail-good { stroke: var(--good); }
.f-dot { fill: var(--signal); stroke: var(--paper); stroke-width: 3; }
.f-dot-good { fill: var(--good); }
.f-arrow { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-pool { fill: var(--good-soft); stroke: var(--good); stroke-width: 1.5; }
.f-pool-t { font-size: 15px; font-weight: 700; fill: var(--good); font-family: var(--font); }

/* ---------- toolkit spec sheet ---------- */
.spec-wrap { margin-top: 48px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.spec { width: 100%; border-collapse: collapse; }
.spec thead th {
  padding: 14px 24px; text-align: left; background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.spec tbody th, .spec td { padding: 22px 24px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; transition: background-color .2s; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody tr:hover > * { background: #FFFEFA; }
.spec tbody th { width: 32%; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.spec td { color: var(--ink-2); font-size: 16px; }
.spec td:last-child { width: 1%; white-space: nowrap; }
.idx { display: inline-block; width: 36px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.ship { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.p1 { background: var(--signal-soft); color: var(--signal-ink); }
.p2 { background: var(--paper-2); color: var(--ink-2); }
.p3 { border: 1px dashed var(--line-2); color: var(--ink-2); }

/* ---------- roadmap ---------- */
.road { position: relative; margin-top: 64px; }
.road-track { position: absolute; top: 9px; left: 0; right: 0; height: 4px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.road-track i { display: block; width: 14%; height: 100%; background: var(--signal); }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.stop { position: relative; padding-top: 48px; }
.stop::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.stop.is-now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px var(--signal-soft); }
.stop-grad::before { border-color: var(--good); border-style: dashed; }
.stop h3 { margin: 12px 0 14px; font-size: 26px; }
.stop ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stop li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.stop li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1.5px; background: var(--ink-3); }
.now { color: var(--signal-ink); }

/* ---------- partners band (dark) ---------- */
.band { margin: 0 16px; padding: clamp(56px, 8vw, 112px) 0; border-radius: 28px; background: var(--night); color: var(--night-text); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.label-night { color: var(--signal); margin-bottom: 18px; }
.band h2 { color: #fff; }
.band-sub { margin: 22px 0 32px; font-size: 18px; color: var(--night-mute); max-width: 26em; }
.pcards { display: grid; gap: 12px; }
.pcard { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px; border-radius: var(--r); border: 1px solid var(--night-line); background: var(--night-2); }
.pnum { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--night-line); font-family: var(--mono); font-weight: 600; color: var(--signal); }
.pcard h3 { font-size: 20px; color: #fff; }
.pcard p { color: var(--night-mute); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px 56px; align-items: end;
  padding: clamp(36px, 6vw, 72px); border-radius: 28px;
  background: var(--card); border: 1px solid var(--line);
}
.cta-curve { position: absolute; right: -10px; bottom: -10px; width: min(640px, 80%); height: auto; pointer-events: none; }
.cta-curve path { fill: none; stroke: var(--signal); stroke-width: 3; opacity: .35; stroke-dasharray: 6 8; }
.cta-curve circle { fill: var(--signal); opacity: .5; }
.cta-box h2 { position: relative; font-size: clamp(38px, 5.6vw, 76px); }
.cta-side { position: relative; }
.cta-side p { margin-bottom: 22px; color: var(--ink-2); font-size: 18px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-side .sec-sub { margin-top: 20px; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: 19px; font-weight: 650; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--signal-ink); }
.plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .25s var(--ease), background-color .25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); }
.plus::after { transform: rotate(90deg); }
details[open] .plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); }
details[open] .plus::before, details[open] .plus::after { background: var(--paper); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 17px; }

/* ---------- footer ---------- */
.foot { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-tag { margin-top: 14px; max-width: 22em; color: var(--ink-2); }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav .label { margin-bottom: 4px; }
.foot nav a { width: fit-content; text-decoration: none; color: var(--ink-2); }
.foot nav a:not(.is-soon):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-word { margin: 56px 0 0; font-size: clamp(84px, 19vw, 280px); font-weight: 800; letter-spacing: -.065em; line-height: .78; }
.foot-word span { color: var(--signal); }
.foot-base { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.disc { max-width: 56em; text-align: right; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .curve-card { max-width: 640px; }
  .stops { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .road-track { display: none; }
}

@media (max-width: 960px) {
  :root { --nav-h: 58px; --nav-gap: 10px; }
  .nav-row { padding: 0 7px 0 16px; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  /* The menu panel opens under the capsule. (The capsule itself has no backdrop-filter or
     transform, so this fixed panel is positioned against the page, not trapped in it.) */
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + var(--nav-gap) + 10px); left: 12px; right: 12px; height: calc(100dvh - var(--nav-h) - var(--nav-gap) - 22px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 18px 28px; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 30px 70px -30px rgba(60, 40, 10, .45), 0 30px 80px -40px rgba(255, 79, 26, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-links a:not(.btn) { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 650; color: var(--ink); }
  .nav-links a:not(.btn):hover { background: transparent; }
  .nav-links-cta { display: inline-flex; margin-top: 24px; }
  .menu-open { overflow: hidden; }

  .sec-head-split { grid-template-columns: 1fr; }

  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .how-stage { position: static; }
  .stage { height: 620px; padding: 48px 16px 16px; }
  .ov { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .ov-toast { max-width: calc(100% - 24px); }
  .how-steps {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-bottom: 8px; margin: 0 -16px; padding-inline: 16px;
    scrollbar-width: none;
  }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-step, .how-step:first-child {
    min-height: 0; padding: 18px; justify-content: flex-start; opacity: 1;
    scroll-snap-align: start; border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
    transition: border-color .25s, background-color .25s;
  }
  .how-step.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .step-title { font-size: 26px; }
  .how-step p { font-size: 15.5px; margin-top: 8px; }

  .states { grid-template-columns: 1fr; gap: 28px; }
  .states::before { top: 23px; bottom: 23px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 7px, transparent 7px 13px); }
  .st { padding: 0 0 0 66px; }

  .band-grid, .cta-box, .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cc-read { grid-template-columns: 1fr; }
  .cc-read > div:nth-child(even) { border-left: 0; }
  .cc-read > div:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .cmp-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .stops { grid-template-columns: 1fr; }

  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec tbody th, .spec td { display: block; width: auto; }
  .spec tr { position: relative; padding: 18px 18px 18px; border-bottom: 1px solid var(--line); }
  .spec tbody tr:last-child { border-bottom: 0; }
  .spec tbody th, .spec td { padding: 0; border: 0; }
  .spec tbody th { display: flex; width: auto; padding-right: 96px; font-size: 18px; }
  .idx { flex: none; padding-top: 4px; }
  .spec td { margin-top: 6px; padding-left: 36px; font-size: 15.5px; }
  .spec td:last-child { position: absolute; top: 18px; right: 18px; width: auto; margin: 0; padding: 0; }
  .c-tick { font-size: 17px; }
  .c-grad-t { font-size: 16px; }
  .spec tbody tr:hover > * { background: transparent; }

  .band { margin: 0 8px; border-radius: 22px; }
  .faq-list details p { padding-right: 0; }
  .foot-base { flex-direction: column; }
  .disc { text-align: left; }
}

@media (max-width: 420px) {
  .btn { padding: 0 20px; }
  .cta-row .btn { flex: 1 1 auto; }
  .ov-toast .ov-mute { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- terms page ---------- */
.doc-cta { display: inline-flex; }
.doc { max-width: 760px; padding: 48px 0 96px; }
.doc h1 { margin: 12px 0 16px; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { display: grid; gap: 8px; padding-left: 20px; }
.doc-lede { font-size: 19px; }
.doc-back { margin-top: 40px; }
.doc a { color: var(--signal-ink); }

/* ---------- docs page: contents on the left, sticky on wide screens ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; align-items: start; }
.docs-body { padding-top: 48px; }
.docs-toc { position: sticky; top: calc(var(--nav-h) + var(--nav-gap) + 24px); max-height: calc(100vh - var(--nav-h) - var(--nav-gap) - 48px); overflow: auto; scrollbar-width: thin; margin-top: 48px; padding: 18px 18px 18px 0; border-right: 1px solid var(--line); }
.docs-toc ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.docs-toc ol ol { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.docs-toc a:hover { color: var(--signal-ink); }
.doc h2[id], .doc h3[id] { scroll-margin-top: calc(var(--nav-h) + var(--nav-gap) + 20px); }
.doc h2 { padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { margin: 26px 0 8px; font-size: 18px; }
.doc ol { display: grid; gap: 8px; padding-left: 22px; }
.doc li > ul { margin-top: 8px; }
.doc-note { padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn) !important; }
.doc-fine { margin-top: 40px; font-size: 14px; color: var(--ink-3) !important; }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-toc { position: static; max-height: none; margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
  .docs-body { padding-top: 24px; }
}

/* ---------- web app status ---------- */
.sec-note { margin-top: 18px; font-size: 16px; }
.p-live { background: var(--good-soft); color: var(--good); }
.stop.is-done::before { background: var(--good); border-color: var(--good); }
.done { color: var(--good); }
.road-track i { width: 77%; } /* reaches the Phase 4 dot: every phase is live */

/* ---------- $CTAP ---------- */
.ctap { padding: clamp(72px, 10vw, 136px) 0 0; }
.ctap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.ctap-grid .sec-sub { margin-top: 20px; }
.ctap-grid h2 { margin-top: 18px; }
.ctap-warn { margin-top: 18px; max-width: 34em; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); }
.ctap-card { padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #EDEAE2; box-shadow: 0 40px 70px -48px rgba(0, 0, 0, .6); }
.ctap-card .label { color: #A29D91; }
.ctap-card .fine { color: #A29D91; }
.ctap-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ctap-card .state-pill { background: rgba(255, 255, 255, .08); color: #EDEAE2; }
.ctap-card[data-state="live"] .state-pill { background: rgba(255, 79, 26, .18); color: #FF8A63; }
.ctap-card[data-state="grad"] .state-pill { background: rgba(79, 214, 144, .16); color: #6FE3A6; }
.ctap-big { margin: 18px 0 4px; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.ctap-big span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: #A29D91; }
.ctap-bar { height: 8px; margin: 14px 0 10px; border-radius: 999px; background: #302E29; overflow: hidden; }
.ctap-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--signal); transition: width .8s var(--ease); }
.ctap-card[data-state="grad"] .ctap-bar i { background: #4FD690; }
.ctap-ca { margin: 20px 0; padding: 14px; border-radius: 12px; background: #1D1C19; border: 1px solid #302E29; }
.ctap-ca-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ctap-ca code { font-family: var(--mono); font-size: 13.5px; color: #fff; overflow-wrap: anywhere; }
.ctap-ca .chip { flex: none; background: transparent; border-color: #4A4740; color: #EDEAE2; }
.ctap-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 20px; }
.ctap-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #A29D91; }
.ctap-facts dd { margin: 2px 0 0; font-weight: 600; }
.ctap-card .btn-line { border-color: #EDEAE2; color: #EDEAE2; }
.ctap-card .btn-line:hover { background: #EDEAE2; color: var(--ink); }
.ctap-card .btn-ink { background: var(--signal); color: var(--ink); }
.ctap-card .btn-ink:hover { background: #FF6A3B; }
.ctap-card .btn-ink.is-soon:hover { background: var(--signal); }
.ctap-card .btn-line.is-soon:hover { background: transparent; color: #EDEAE2; }
@media (max-width: 960px) {
  .ctap-grid { grid-template-columns: 1fr; }
}
