/* Sub-pages. Each page is one flat colour with one ink; forms are underlines and blocks. */
body.pg-body { --bg: var(--white); --fg: var(--ink); background: var(--bg); color: var(--fg); }
html:has(body.pg-body) { background: var(--ink); }
body.pg-launch { --bg: var(--white); --fg: var(--ink); }
body.pg-tokens { --bg: var(--red); --fg: var(--white); }
body.pg-docs { --bg: var(--white); --fg: var(--ink); }
body.pg-roadmap { --bg: var(--ink); --fg: var(--white); }
.pg-body .btn--solid, .pg-body .btn--main { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pg-body .btn--solid:hover, .pg-body .btn--main:hover { background: transparent; color: var(--fg); }
body.pg-tokens .btn--main, body.pg-tokens .btn--solid { background: var(--white); border-color: var(--white); color: var(--ink); }
body.pg-tokens .btn--main:hover { background: transparent; color: var(--white); }
.pg-body .ft { background: var(--ink); color: var(--white); }

.pg { padding: calc(var(--hd) + clamp(28px, 5vw, 72px)) var(--gut) clamp(64px, 8vw, 120px); }
.pg__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; font: 800 14px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--fg); color: var(--bg); font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; }
.badge__dot { width: 8px; height: 8px; background: var(--bg); }
.badge__dot--live { animation: blip 1.4s steps(2) infinite; }
@keyframes blip { 50% { opacity: .2; } }
.pg__title { margin: 0; font: 900 clamp(44px, 10.5vw, 190px)/.84 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.04em; text-wrap: balance; }
.pg__lead { max-width: 40ch; margin: clamp(24px, 3vw, 40px) 0 clamp(40px, 6vw, 88px); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.3; font-weight: 700; }
.pg [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* shared form bits */
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea, .search input {
  width: 100%; height: 56px; padding: 0 2px; border: 0; border-bottom: 3px solid var(--fg); border-radius: 0; background: transparent; color: inherit;
  font: 700 20px/1.2 var(--body); transition: background-color .15s;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 2px; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder, .search input::placeholder { color: currentColor; opacity: .45; }
.field input:focus, .field textarea:focus, .search input:focus { outline: none; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.field--row { grid-template-columns: 1fr 1fr; gap: 24px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 3px solid var(--fg); border-radius: 0; background: transparent; color: inherit; font: 800 13px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background-color .12s, color .12s; }
.opt:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.opt.is-on { background: var(--fg); color: var(--bg); }
.opt small { margin-left: 8px; font-size: inherit; opacity: .6; }
.btn { height: 62px; }
.num { display: inline-block; font: 900 16px/1 var(--display); font-stretch: 125%; letter-spacing: .04em; }
.hint { font-size: 14px; font-weight: 600; opacity: .75; }
.note { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.5; font-weight: 500; opacity: .85; }
.note a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.panel { display: grid; gap: 24px; padding: 28px 0 36px; border-top: 3px solid var(--fg); background: transparent; }

/* ───────── launch ───────── */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 440px); gap: clamp(28px, 5vw, 80px); align-items: start; }
.launch__form { display: grid; min-width: 0; }
.sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.sec__head h2 { margin: 0; font: 900 clamp(26px, 3vw, 44px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; }
.sec__head .hint { margin-left: auto; }
.sec--toggle { padding: 0; }
.sec--toggle > button { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 28px 0; cursor: pointer; }
.sec--toggle > button:focus-visible { outline: 3px solid var(--fg); }
.sec--toggle > button .hint { margin-left: auto; }
.sec--toggle > button h2 { margin: 0; font: 900 clamp(26px, 3vw, 44px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.sec--toggle .sec__body { display: none; padding: 0 0 32px; gap: 20px; }
.sec--toggle.is-open .sec__body { display: grid; }
.sec--toggle .caret { width: 14px; height: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.sec--toggle.is-open .caret { transform: translateY(3px) rotate(-135deg); }
.identity { display: grid; grid-template-columns: clamp(130px, 14vw, 190px) 1fr; gap: 28px; align-items: stretch; }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; padding: 12px; cursor: pointer; overflow: hidden; min-height: 170px; border: 3px dashed var(--fg); font-size: 13px; font-weight: 700; line-height: 1.35; transition: background-color .15s; }
.drop:hover, .drop.is-over { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; margin: 0 auto 4px; }
.drop em { font-style: normal; text-decoration: underline; text-decoration-thickness: 2px; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.identity__fields { display: grid; gap: 22px; align-content: start; }
.search { position: relative; }
.search svg { position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: square; pointer-events: none; }
.pairs { display: grid; gap: 20px; max-height: 300px; overflow: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--fg) transparent; }
.pairs__group > p { margin: 0 0 8px; font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pairs__group[hidden], .opt[hidden] { display: none; }
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 3px solid var(--fg); }
.job { position: relative; display: grid; align-content: space-between; gap: 40px; min-height: 190px; padding: 14px 14px 16px; border: 0; border-right: 3px solid var(--fg); border-radius: 0; background: var(--c, transparent); color: var(--t, var(--fg)); text-align: left; cursor: pointer; font: inherit; transition: filter .12s; }
.job:last-child { border-right: 0; }
.job:hover { filter: brightness(1.06); }
.job.is-on { outline: 4px solid var(--fg); outline-offset: -10px; }
.job img { display: none; }
.job__k { display: flex; justify-content: space-between; font: 800 12px/1 var(--display); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.job b { display: block; font: 900 clamp(17px, 1.9vw, 28px)/.95 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; }
.job small { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; }
.job[data-job="0"] { --c: #e5001c; --t: #ffffff; }
.job[data-job="1"] { --c: #ffffff; --t: #0b0b0b; }
.job[data-job="2"] { --c: #bdbdbd; --t: #0b0b0b; }
.job[data-job="3"] { --c: #7a0010; --t: #ffffff; }
.job[data-job="0"].is-on, .job[data-job="3"].is-on { outline-color: #ffffff; }
.job[data-job="1"].is-on, .job[data-job="2"].is-on { outline-color: var(--ink); }
.tax { display: grid; gap: 14px; }
.tax > p:first-child { margin: 0; font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; }
.launch__cta { display: grid; gap: 14px; justify-items: start; padding-top: 28px; border-top: 3px solid var(--fg); }
.launch__aside { position: sticky; top: calc(var(--hd) + 20px); display: grid; gap: 16px; }
.launch__aside .panel { padding: 22px; border: 0; background: var(--fg); color: var(--bg); }
.pv__head { display: flex; align-items: center; gap: 16px; }
.pv__tile { display: grid; place-items: center; flex: none; width: 76px; height: 76px; overflow: hidden; background: var(--red); color: var(--white); font: 900 38px/1 var(--display); font-stretch: 150%; }
.pv__tile img { width: 100%; height: 100%; object-fit: cover; }
.pv__name { margin: 0; font: 900 24px/1 var(--display); font-stretch: 125%; text-transform: uppercase; overflow-wrap: anywhere; }
.pv__sym { margin: 6px 0 0; font-size: 14px; font-weight: 700; opacity: .8; overflow-wrap: anywhere; }
.pv__label { margin: 0; font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.sum { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sum li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 2px solid color-mix(in srgb, var(--bg) 35%, transparent); }
.sum b { display: block; font-weight: 800; font-size: 15px; }
.sum small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; opacity: .8; }

/* ───────── tokens ───────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; }
.toolbar .search { flex: 1 1 320px; max-width: 520px; }
.toolbar .opts { flex: 1 1 auto; }
.toolbar .opts .grow { flex: 1; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border: 3px solid var(--fg); }
.tcard { display: grid; gap: 22px; padding: 18px; border-right: 3px solid var(--fg); border-bottom: 3px solid var(--fg); margin: 0 -3px -3px 0; }
.tcard__top { display: flex; gap: 12px; align-items: center; }
.tcard__tile { width: 52px; height: 52px; background: var(--fg); opacity: .35; flex: none; }
.tcard__lines { display: grid; gap: 8px; flex: 1; }
.tcard .sk { height: 12px; background: var(--fg); opacity: .35; }
.tcard .sk--w { width: 70%; }
.tcard .sk--n { width: 42%; }
.tcard .sk--bar { height: 58px; opacity: .2; }
.tcard.is-ghost .sk, .tcard.is-ghost .tcard__tile { animation: blip 2.4s steps(4) infinite; }
.empty { display: grid; justify-items: start; gap: 18px; padding: clamp(40px, 6vw, 88px) 0 0; }
.empty h2 { margin: 0; font: 900 clamp(44px, 9vw, 150px)/.85 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.04em; }
.empty p { margin: 0; max-width: 40ch; font-size: 19px; font-weight: 700; }
.empty[hidden] { display: none; }

/* ───────── docs ───────── */
.docs { display: grid; grid-template-columns: clamp(170px, 18vw, 240px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--hd) + 20px); }
.toc ul { display: grid; margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--fg); }
.toc a { display: block; padding: 12px 0; border-bottom: 2px solid var(--fg); font: 800 13px/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; opacity: .55; transition: opacity .15s, padding .2s var(--ease); }
.toc a:hover { opacity: 1; }
.toc a.is-on { opacity: 1; padding-left: 12px; box-shadow: inset 6px 0 0 var(--red); }
.doc { display: grid; gap: clamp(56px, 8vw, 110px); min-width: 0; }
.doc section { scroll-margin-top: calc(var(--hd) + 24px); display: grid; gap: 28px; }
.doc h2 { margin: 0; font: 900 clamp(38px, 6.4vw, 104px)/.88 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.035em; }
.doc p { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.55; }
.doc .prose { display: grid; gap: 18px; }
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid var(--ink); }
.engines .panel { gap: 14px; padding: 24px; border: 0; background: var(--c); color: var(--t); }
.engines .panel:nth-child(1) { --c: #e5001c; --t: #ffffff; }
.engines .panel:nth-child(2) { --c: #ffffff; --t: #0b0b0b; }
.engines .panel:nth-child(3) { --c: #bdbdbd; --t: #0b0b0b; }
.engines .panel:nth-child(4) { --c: #7a0010; --t: #ffffff; }
.engines h3 { margin: 0; display: grid; gap: 22px; font: 900 clamp(26px, 3vw, 44px)/.95 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.02em; }
.engines p { font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.steps li { display: grid; grid-template-columns: clamp(64px, 9vw, 130px) 1fr; gap: 20px; padding: 22px 0; border-bottom: 3px solid var(--ink); }
.steps .num { font: 900 clamp(40px, 6vw, 92px)/.8 var(--display); font-stretch: 50%; letter-spacing: 0; }
.steps h3 { margin: 0 0 6px; font: 900 22px/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.steps p { font-size: 16px; }
.rows { display: grid; border-top: 3px solid var(--ink); }
.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.rows code { font: 600 14px/1.4 ui-monospace, Menlo, Consolas, monospace; opacity: .6; }
.faq { display: grid; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 3px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 800 clamp(17px, 1.7vw, 22px)/1.25 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font: 900 32px/1 var(--display); transition: transform .2s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details[open] summary { color: var(--red); }
.faq details p { padding: 0 0 22px; font-size: 16.5px; max-width: 70ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 48px); background: var(--red); color: var(--white); }
.cta p { margin: 0; }
.cta .cta__k { font: 800 13px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; color: var(--white); }
.cta .cta__t { margin-top: 10px; font: 900 clamp(34px, 5vw, 76px)/.9 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.03em; }
.cta .btn { background: var(--white); border-color: var(--white); color: var(--ink); }
.cta .btn:hover { background: transparent; color: var(--white); }

/* ───────── roadmap ───────── */
.rm__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: clamp(40px, 6vw, 88px); border: 3px solid var(--fg); }
.rm__stat { display: grid; gap: 16px; align-content: space-between; min-height: 170px; padding: 20px; border-right: 3px solid var(--fg); }
.rm__stat:last-child { border-right: 0; }
.rm__stat b { font: 900 clamp(22px, 2.4vw, 34px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.rm__list { display: grid; margin: 0 0 clamp(56px, 8vw, 110px); padding: 0; list-style: none; border-top: 3px solid var(--fg); }
.rm__item { display: grid; grid-template-columns: clamp(150px, 20vw, 260px) minmax(0, 1fr); gap: 24px 40px; padding: 32px 0 40px; border-bottom: 3px solid var(--fg); }
.rm__meta { display: grid; gap: 14px; align-content: start; }
.rm__meta .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rm__meta a { font: 800 13px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rm__item .num { font: 900 clamp(34px, 4vw, 60px)/.8 var(--display); font-stretch: 50%; }
.rm__body h2 { margin: 0 0 10px; font: 900 clamp(34px, 5.2vw, 84px)/.88 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.035em; }
.rm__body > p { margin: 0 0 22px; font-size: 18px; font-weight: 700; opacity: .8; }
.rm__body ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rm__body li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--white); }
.rm__body li::before { content: ""; width: 10px; height: 10px; margin-top: .45em; background: var(--white); }
.rm__item.is-building .rm__body li::before { background: var(--red-hi); }
.rm__item.is-next .rm__body li::before { background: var(--grey); }
.rm__item.is-later .rm__body li::before { background: var(--white); opacity: .5; }
.rm__ship { display: grid; gap: 20px; justify-items: start; }
.rm__ship h2 { margin: 0; max-width: 14ch; font: 900 clamp(40px, 8vw, 140px)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.04em; }
.rm__ship p { margin: 0; max-width: 50ch; font-size: 19px; font-weight: 600; color: var(--white); }
.rm__ship .pv__label { color: var(--red-hi); opacity: 1; }
.rm__ship .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rm__ship .btn--card { color: var(--white); }
.rm__ship .btn--card:hover { color: var(--ink); background: var(--white); }
.dot--yellow { background: var(--red-hi); }
.dot--mute { background: var(--white); opacity: .5; }
body.pg-roadmap .badge { background: var(--red); color: var(--white); }
body.pg-roadmap .badge__dot { background: var(--white); }

@media (max-width: 960px) {
  .launch { grid-template-columns: 1fr; }
  .launch__aside { position: static; order: -1; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { padding: 10px 12px; border: 2px solid var(--fg); opacity: 1; }
  .toc a.is-on { padding-left: 12px; box-shadow: none; background: var(--fg); color: var(--bg); }
}
@media (max-width: 700px) {
  .identity { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .job:nth-child(2) { border-right: 0; }
  .job:nth-child(-n+2) { border-bottom: 3px solid var(--fg); }
  .engines { grid-template-columns: 1fr; }
  .rm__stats { grid-template-columns: 1fr; }
  .rm__stat { border-right: 0; border-bottom: 3px solid var(--fg); min-height: 0; }
  .rm__stat:last-child { border-bottom: 0; }
  .rm__item { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

.badge { justify-self: start; width: max-content; }

/* launch: real form states */
.err { display: block; min-height: 0; font: 800 12px/1.3 var(--body); font-style: normal; color: #b3001b; }
.err:empty { display: none; }
body.pg-launch .err { color: #7a0012; }
.job.is-soon { cursor: not-allowed; opacity: .5; filter: grayscale(.3); }
.job.is-soon:hover { filter: grayscale(.3); }
.live-warn { margin: 0; padding: 14px 16px; background: var(--red); color: var(--white); font-weight: 800; font-size: 15px; line-height: 1.4; }
.go__row { display: flex; flex-wrap: wrap; gap: 12px; }
.log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font: 600 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.log:empty { display: none; }
.log li { padding-left: 18px; position: relative; }
.log li::before { content: "›"; position: absolute; left: 0; }
.log__ok::before { content: "✓" !important; }
.log__bad { color: #7a0012; font-weight: 800; }
.log__bad::before { content: "✕" !important; }
.result { display: grid; gap: 12px; padding: 20px; background: var(--fg); color: var(--bg); }
.result[hidden] { display: none; }
.result h3 { margin: 0; font: 900 28px/1 var(--display); font-stretch: 150%; text-transform: uppercase; }
.result p { margin: 0; font-weight: 600; }
.result code { overflow-wrap: anywhere; font: 700 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.result__links { display: flex; flex-wrap: wrap; gap: 8px; }
.result .btn { color: var(--bg); }
.result .btn:hover { color: var(--fg); background: var(--bg); }
