/* ii — pre-launch site. Self-hosted IBM Plex (SIL OFL 1.1). No external requests. */
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F5F3EE; --surface: #FFFFFF; --band: #ECE9E1; --ink: #0E1116; --text: #1B1F24; --muted: #5B6470; --line: #DAD6CC;
  --green: #16A36B; --green-text: #0A7049; --amber: #E0A43A; --amber-text: #8A5A00; --red: #D45C4C; --red-text: #B23A2E;
  --focus: #0A7049; --radius: 14px; --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116; --surface: #161A21; --band: #12161C; --ink: #ECEAE4; --text: #E4E2DC; --muted: #9AA3AE; --line: #2A3038;
    --green: #22B97A; --green-text: #5FD8A2; --amber: #E8B04A; --amber-text: #F0C46E; --red: #E06A5A; --red-text: #F29486; --focus: #5FD8A2;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Plex", -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "Plex Mono", ui-monospace, Menlo, monospace; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.kicker { font: 500 13px/1 "Plex Mono", monospace; letter-spacing: 0.04em; color: var(--green-text); margin-bottom: 14px; }

/* logo parts — shared by header and hero marks */
.ink { fill: var(--ink); } .coin { fill: var(--green); } .ring { fill: none; stroke: var(--green); stroke-width: 6; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.brand-mark { width: 34px; height: 34px; }
.brand-say { font-size: 13px; }
nav { display: flex; gap: 18px; }
nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 10px 2px; }
nav a:hover { color: var(--green-text); }
@media (max-width: 560px) { nav a[href="#score"] { display: none; } .brand-say { display: none; } nav { gap: 14px; } }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 0.95fr; } .hero { padding: 88px 0 96px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 "Plex Mono", monospace; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 16%, transparent); padding: 9px 12px; border-radius: 999px; margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-mark { width: clamp(120px, 18vw, 170px); height: auto; display: block; margin-left: -14px; }
.say { font: 400 15px/1 "Plex Mono", monospace; color: var(--muted); margin: 4px 0 26px; }
.lead { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: var(--ink); font-weight: 500; max-width: 30ch; margin-bottom: 14px; }
.sublead { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 500; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn:hover { transform: translateY(-1px); }
.hero-copy .fine { max-width: 52ch; }

/* hero animation: mint -> four voluntary returns -> record */
.hero-art { margin: 0; justify-self: center; width: min(100%, 440px); }
.cycle { width: 100%; height: auto; display: block; }
.track { fill: none; stroke: var(--line); stroke-width: 10; }
.progress { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 180px 180px; animation: fill 6s ease-in-out infinite; }
.tick circle { fill: var(--surface); stroke: var(--line); stroke-width: 3; }
.tick path { fill: none; stroke: var(--green-text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.tick path { animation: m1 6s infinite; }
.t2 path { animation-name: m2; } .t3 path { animation-name: m3; } .t4 path { animation-name: m4; }
.coin-big { fill: var(--green); }
.core-ink { fill: var(--bg); }
.core { transform-origin: 180px 180px; animation: pulse 6s ease-in-out infinite; }
@keyframes fill { 0% { stroke-dashoffset: 100; } 80%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes m1 { 0%, 16% { opacity: 0; } 22%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m2 { 0%, 36% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m3 { 0%, 56% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m4 { 0%, 76% { opacity: 0; } 82%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(0.96); } 8% { transform: scale(1); } }
.cycle.paused *, .cycle.paused { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .progress { animation: none; stroke-dashoffset: 0; }
  .tick path { animation: none; opacity: 1; }
  .core { animation: none; }
  .pause { display: none; }
}
.hero-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.pause { white-space: nowrap; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; min-height: 36px; padding: 0 14px; font: inherit; cursor: pointer; }

/* bands */
.band { padding: 72px 0; }
.band.alt { background: var(--band); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 20px; right: 20px; font: 500 13px "Plex Mono", monospace; color: var(--muted); }
.steps svg { width: 44px; height: 44px; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }
.i-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: var(--green); }
.i-ring { fill: none; stroke: var(--green); stroke-width: 2.5; }
.i-paper { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; }

/* score */
.two { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; }
.facts .mono { color: var(--green-text); font-weight: 500; }
.h3s { margin: 0 0 8px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid path { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font: 12px "Plex Mono", monospace; }
.axis-l text { text-anchor: end; }
.axis-b text { text-anchor: middle; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pts circle { fill: var(--surface); stroke: var(--green); stroke-width: 3; }
@media (max-width: 560px) { .chart text { font-size: 15px; } }
.chart figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.calc { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc h3 { margin-bottom: 18px; }
.calc-grid { display: grid; gap: 10px 24px; }
@media (min-width: 820px) { .calc-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: auto auto; } }
.calc label { display: flex; justify-content: space-between; font-weight: 500; }
.calc output { color: var(--green-text); }
input[type=range] { width: 100%; accent-color: var(--green); min-height: 44px; }
.calc-res { display: grid; gap: 14px; margin: 18px 0 10px; }
@media (min-width: 620px) { .calc-res { grid-template-columns: 1fr 1fr; } }
.calc-res > div { background: var(--band); border-radius: 10px; padding: 14px 16px; }
.lbl { display: block; color: var(--muted); font-size: 14px; }
.big { font-size: 26px; color: var(--ink); font-weight: 500; }

/* principles */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cards h3 { margin-bottom: 8px; }
.cards p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* records */
.records { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; }
.records svg { width: 48px; height: 48px; flex: none; }
.records h2 { margin-bottom: 8px; font-size: 26px; }
.records p { color: var(--muted); margin: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 "Plex Mono", monospace; color: var(--green-text); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; color: var(--muted); }
.disclaimer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 18px 20px; color: var(--text); margin-bottom: 28px; }
.foot-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.meta { margin-top: 20px; font-size: 13px; }

/* ── UI review (Oct 6, 2026) ─────────────────────────────────────────────── */
/* 1 rhythm + alternating bands */
.hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } }
.band { padding: 80px 0; }
@media (max-width: 719px) { .band { padding: 56px 0; } }
.band + .band:not(.alt), .hero + .band:not(.alt) { border-top: 1px solid var(--line); }
/* 2 focus keeps pill shape; calmer hovers */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { border-radius: 0; }
a:not(.btn):focus-visible, summary:focus-visible { border-radius: 6px; }
.btn, .pause { transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); transform: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--green)); }
@media (prefers-reduced-motion: reduce) { .btn, .pause { transition: none; } }
/* 3 wordmark flush left */
.hero-mark { width: clamp(76px, 10vw, 104px); margin-left: 0; }
.say { margin: 14px 0 28px; }
.brand-mark { width: 26px; height: 34px; }
/* 4 logo ring inside the big coin */
.core-ring { fill: none; stroke: var(--bg); stroke-width: 4; }
/* 5 lighter ring, smaller on mobile, centred caption */
.track, .progress { stroke-width: 7; }
.hero-art { width: min(100%, 300px); }
@media (min-width: 900px) { .hero-art { width: min(100%, 420px); } }
.hero-art figcaption { justify-content: center; text-align: center; }
.pause { min-height: 44px; }
/* 6 chart */
.chart .end { text-anchor: end; }
.chart .ytitle { text-anchor: start; font-weight: 500; fill: var(--text); }
.chart .grid path { stroke-dasharray: 2 4; }
.chart { padding: 20px 20px 16px; }
/* 7 sliders: styled track with fill (--p set by site.js) */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 44px; cursor: pointer; --p: 25%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--green) var(--p), var(--line) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--green); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
input[type=range]:focus-visible { outline-offset: 0; }
/* 8 result tiles: "Available to mint" is the answer */
.calc { padding: 28px; }
.calc-grid { gap: 4px 40px; }
.calc label { align-items: baseline; }
.calc-res > div { padding: 16px 18px; border-radius: 12px; }
.calc-res > div:last-child { background: color-mix(in srgb, var(--green) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.calc-res > div:last-child .big { color: var(--green-text); }
.big { display: block; margin-top: 4px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; }
/* 9 public records as a quiet empty state */
.records { margin-top: 16px; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 24px; background: transparent; border: 1.5px dashed var(--line); }
.records svg { width: 36px; height: 36px; opacity: .7; }
.records h3 { font-size: 19px; }
.records p { max-width: 52ch; }
.pill { font: 500 12px/1 "Plex Mono", monospace; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 16%, transparent); padding: 6px 10px; border-radius: 999px; }
/* 10 FAQ on the page's left edge */
.faq { display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .faq { grid-template-columns: 4fr 7fr; } .faq-head { position: sticky; top: 88px; align-self: start; } }
summary { padding: 18px 40px 18px 0; transition: color .15s; }
summary:hover { color: var(--green-text); }
summary::after { top: 50%; transform: translateY(-50%); right: 4px; font-size: 22px; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
details p { max-width: 62ch; padding-bottom: 8px; }
/* 11 one icon language: ink outline + one green accent */
.i-acc { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; }
.steps svg { width: 40px; height: 40px; margin-bottom: 18px; }
.steps li { padding: 24px; }
.steps li::before { top: 24px; right: 24px; }
/* 12 dark mode: visible bands, lifted cards, green primary */
@media (prefers-color-scheme: dark) {
  :root { --band: #141920; --surface: #1A1F27; --line: #2C333D; }
  .eyebrow, .pill { background: color-mix(in srgb, var(--amber) 14%, transparent); }
  .btn.primary { background: var(--green); color: #0E1116; border-color: var(--green); }
  .btn.primary:hover { background: color-mix(in srgb, var(--green) 88%, #ffffff); }
}
/* 13 footer: brand row, readable disclaimer, clean accent */
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--text); font-weight: 500; }
.foot-brand .brand-mark { width: 19px; height: 24px; }
.disclaimer { max-width: 78ch; border-left-width: 1px; box-shadow: inset 4px 0 0 var(--amber); padding: 20px 22px 20px 26px; font-size: 14px; line-height: 1.6; }
.foot-grid p { max-width: 60ch; }
.meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
/* 15 header + rhythm (kickers stay sentence case so "ii" never becomes "II") */
.top-in { height: 64px; }
nav { gap: 4px; }
nav a { padding: 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.brand-say { font: 400 13px/1 "Plex Mono", monospace; }
h2 { letter-spacing: -0.02em; margin-bottom: 32px; }
.lead { max-width: 26ch; letter-spacing: -0.01em; }
.cards article, .steps li { transition: border-color .15s; }
.cards article:hover, .steps li:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
#how, #score, #principles, #faq { scroll-margin-top: 72px; }
.facts li { align-items: start; }

/* Return points (Oct 6, 2026) */
#points { scroll-margin-top: 72px; }
.intro { max-width: 68ch; margin: -12px 0 32px; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.stages li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.stage-n { font-size: 12px; color: var(--muted); }
.stages h3 { margin: 8px 0 12px; }
.pts { margin: 0 0 12px; font-weight: 500; color: var(--text); }
.pts span { display: inline-block; font-size: 20px; margin-right: 6px; }
.up { color: var(--green-text); }
.down { color: var(--red-text); }
.stages p:last-child { margin: 0; color: var(--muted); }
.ex { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.ex table { width: 100%; max-width: 560px; border-collapse: collapse; }
.ex caption { text-align: left; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.ex th, .ex td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.ex th { font-weight: 500; color: var(--muted); font-size: 14px; }
.ex .n { text-align: right; }
.ex .fine { margin-top: 16px; max-width: 72ch; }
@media (max-width: 560px) { nav a[href="#points"] { display: none; } }
