/* Afterburner public site. Charcoal and orange from the logo; IBM Plex (self-hosted, OFL); plain engineering layout. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #4a4945;
  --ink-3: #75736c;
  --rule: #d9d6cc;
  --rule-strong: #242424;
  --grid: #e7e4db;
  --brand: #ff7618;
  --brand-ink: #b34700;
  --s-ab: #eb6834;
  --s-ftrex: #2a78d6;
  --s-zebra: #1baf7a;
  --dnf: #75736c;
  --code-bg: #efede6;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c1c1b; --panel: #232322; --ink: #eeede8; --ink-2: #c4c2b9; --ink-3: #9a988f;
    --rule: #3a3936; --rule-strong: #d9d6cc; --grid: #2f2e2c; --brand: #ff8a3a; --brand-ink: #ff9f5c;
    --s-ab: #d95926; --s-ftrex: #3987e5; --s-zebra: #199e70; --dnf: #9a988f; --code-bg: #2a2a28;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1c1b; --panel: #232322; --ink: #eeede8; --ink-2: #c4c2b9; --ink-3: #9a988f;
  --rule: #3a3936; --rule-strong: #d9d6cc; --grid: #2f2e2c; --brand: #ff8a3a; --brand-ink: #ff9f5c;
  --s-ab: #d95926; --s-ftrex: #3987e5; --s-zebra: #199e70; --dnf: #9a988f; --code-bg: #2a2a28;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 2px solid var(--rule-strong); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark img { display: block; height: 52px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav { gap: 22px; }
.nav a {
  font: 400 15px/1 var(--sans); color: var(--ink-2); text-decoration: none;
  padding: 10px 0 8px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* Type */
.kicker { font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 18px; font-weight: 600; letter-spacing: -.01em; max-width: 22ch; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 14px; max-width: 68ch; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
code, .num { font-family: var(--mono); font-size: .92em; }
code { background: var(--code-bg); padding: 1px 5px; }

section { padding: 40px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 48px 0 40px; }

/* Facts grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 24px; gap: 0; border-top: 1px solid var(--rule-strong); }
.fact { padding: 16px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.fact b { display: block; font: 600 16px/1.3 var(--sans); color: var(--ink); margin-bottom: 4px; }
.fact p { margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 20px; }
.stat { border-top: 2px solid var(--brand); padding-top: 10px; }
.stat .v { font: 600 30px/1.1 var(--mono); }
.stat .l { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

ul.plain { padding-left: 18px; margin: 0 0 14px; max-width: 70ch; }
ul.plain li { margin: 4px 0; }

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 8px 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 13px/1.3 var(--sans); color: var(--ink-2); border-bottom-color: var(--rule-strong); }
td.r, th.r { text-align: right; padding-right: 0; padding-left: 10px; }
td .dnf { color: var(--dnf); font-style: italic; }

/* Results */
.machine-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.machine-pick label { border: 1px solid var(--rule); padding: 6px 10px; font: 14px var(--mono); cursor: pointer; }
.machine-pick input { margin-right: 6px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.jump { gap: 6px 18px; }
.jump a { font: 14px/1.6 var(--sans); color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.jump a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.scale-pick { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { width: 30px; height: 12px; }
.card { padding: 28px 0 8px; margin: 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-head .note { font-size: 13px; color: var(--ink-3); }
.chart { position: relative; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart text { font-family: var(--mono); fill: var(--ink-3); font-size: 11px; }
.chart .axis-title { fill: var(--ink-2); font-size: 11.5px; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--ink-3); stroke-width: 1; }
.chart .band { fill: var(--grid); opacity: .55; }
.chart .band-label { fill: var(--ink-3); font-size: 10.5px; }
.chart .hair { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .lbl { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.tip {
  position: absolute; pointer-events: none; z-index: 2; min-width: 220px; max-width: 300px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong);
  padding: 10px 12px; font-size: 13px; line-height: 1.45; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.tip .h { font: 600 13px/1.2 var(--sans); margin-bottom: 6px; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; }
.tip .row i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.tip .sub { color: var(--ink-3); font-size: 12px; margin-top: 6px; }
details { margin-top: 10px; }
summary { cursor: pointer; font: 14px var(--sans); color: var(--ink-2); padding: 6px 0; }

/* Footer */
footer { border-top: 2px solid var(--rule-strong); margin-top: 24px; padding: 24px 0 40px; font-size: 13px; color: var(--ink-3); }
footer p { max-width: none; margin: 0 0 6px; }
.placeholder { background: #fff2b3; color: #4a3b00; padding: 0 4px; }
:root[data-theme="dark"] .placeholder { background: #5a4a00; color: #fff2b3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .placeholder { background: #5a4a00; color: #fff2b3; } }

@media (max-width: 560px) {
  .chart text { font-size: 10px; }
}

/* Screenshot */
.shot { margin: 8px 0 0; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; max-width: 68ch; }

/* ---- Product page splash (truncation field, run-screen replay, docking logo) ---- */
.splash-head { position: fixed; inset: 0 0 auto 0; z-index: 30; border-bottom: 1px solid transparent; background: transparent;
  transition: background .25s ease, border-color .25s ease; }
.splash-head.solid { background: rgba(20,20,19,.94); border-bottom-color: rgba(255,255,255,.12); }
.splash-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.splash-head .nav a { color: #c9c7be; }
.splash-head .nav a:hover, .splash-head .nav a[aria-current="page"] { color: #fff; }
.logo-slot { display: block; width: 185px; height: 52px; flex: none; }
.dock-logo { position: fixed; z-index: 31; top: 8px; left: max(16px, calc(50vw - 504px)); height: 52px; width: auto;
  transform-origin: 0 0; pointer-events: none; }
.splash { position: relative; height: 135vh; background: #121211; color: #f2f1ec; }
.splash-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 76px 16px 24px; }
.splash-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.splash-scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(18,18,17,.62) 0%, rgba(18,18,17,.2) 55%, rgba(18,18,17,0) 80%); }
.splash-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; }
.logo-space { height: clamp(72px, 15vh, 150px); width: 100%; flex: none; margin-bottom: 20px; }
.splash h1 { color: #fff; font-size: clamp(34px, 6vw, 68px); line-height: 1.04; margin: 0 auto 14px; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.splash .lede { color: #dcdad2; font-size: clamp(16px, 2vw, 20px); max-width: 54ch; margin: 0 auto 26px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.splash-run { width: min(760px, 100%); }
.splash .cue { font-size: 13px; color: #8f8d85; margin: 14px 0 0; }
.t-screen { margin: 0; padding: 18px 20px; background: rgba(8,8,7,.88); color: #d9d7cf; border: 1px solid #2c2b28; border-radius: 6px;
  font: 13px/1.45 var(--mono); white-space: pre; overflow-x: auto; box-shadow: 0 20px 60px rgba(0,0,0,.45); text-align: left; }
.t-screen .t-ban, .t-screen .t-res { color: #fff; }
.t-screen .t-ok { color: #6fcf97; font-weight: 400; }
.t-screen .t-run, .t-screen .t-bar { color: #ff9a4d; font-weight: 400; }
.after-splash { position: relative; z-index: 2; background: var(--paper); }
html:not(.splash-js) .splash { height: auto; }
html:not(.splash-js) .splash-stick { position: relative; min-height: 100vh; height: auto; }
@media (max-width: 560px) {
  .splash-head .nav { gap: 12px; flex-wrap: nowrap; }
  .splash-head .nav a { font-size: 13px; }
  .logo-slot { width: 122px; height: 34px; }
  .dock-logo { height: 34px; top: 17px; }
  .splash-head .wrap { flex-wrap: nowrap; }
  .t-screen { font-size: 10.5px; padding: 12px; }
}

/* ---- Results and summary pages: same dark header and field, no docking ---- */
.splash-head.fixed-logo { position: sticky; top: 0; }
.fixed-logo .mark img { display: block; height: 52px; width: auto; }
.band { position: relative; overflow: hidden; background: #121211; color: #f2f1ec; }
.band .splash-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band-inner { position: relative; z-index: 2; padding: 56px 16px 72px; }
.band h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.band .lede { color: #dcdad2; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.band .band-cond { color: #a9a79e; max-width: 70ch; margin-bottom: 0; }
.controls { padding: 28px 0 8px; }
@media (max-width: 560px) { .fixed-logo .mark img { height: 34px; } .band-inner { padding: 36px 16px 48px; } }

/* How it works (product and upload pages): a timeline, a thin line with a small mark at each step */
.steps { list-style: none; margin: 14px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--rule); max-width: 78ch; }
.steps li { position: relative; padding: 0 0 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ''; position: absolute; left: -31px; top: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3); box-shadow: 0 0 0 4px var(--paper); }
.steps li b { color: var(--ink); }

/* Summary page: three sentences, bar chart, questions */
.three { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 12px; border-top: 2px solid var(--rule-strong); }
.three > div { padding: 16px 20px 6px 0; }
.three .n { font: 600 22px/1.25 var(--sans); }
.three .n b { color: var(--brand-ink); font-family: var(--mono); }
.three p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .three { grid-template-columns: 1fr; } }
.bars { margin: 8px 0; }
.bars svg { width: 100%; height: auto; display: block; }
.bars text { font: 12px var(--sans); fill: var(--ink-2); }
.bars .model { font-size: 13px; fill: var(--ink); }
.bars .val { font: 600 12px var(--mono); fill: var(--ink); }
.bars .grid { stroke: var(--grid); }
.bar-light { fill: color-mix(in oklab, var(--s-ab) 38%, var(--panel)); stroke: var(--s-ab); stroke-width: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar-light { fill: color-mix(in oklab, var(--s-ab) 55%, #ffffff); stroke: none; } }
:root[data-theme="dark"] .bar-light { fill: color-mix(in oklab, var(--s-ab) 55%, #ffffff); stroke: none; }
.faq details { border-top: 1px solid var(--rule); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 72ch; }

/* Product page: more than speed */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 12px; }
.hl { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: 4px; padding: 16px 18px 18px; }
.hl b { display: block; font: 600 17px/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.hl p { margin: 0; font-size: 15px; color: var(--ink-2); }
.facts-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
@media (max-width: 560px) { .facts-2 { grid-template-columns: 1fr; } }

/* Product page: tunes itself */
.tune { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; margin: 14px 0 8px; border-top: 1px solid var(--rule-strong); }
.tn { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.tn b { display: block; font: 600 16px/1.3 var(--sans); color: var(--brand-ink); margin-bottom: 4px; }
.tn p { margin: 0; }
.sub-h { font: 600 17px/1.3 var(--sans); margin: 26px 0 2px; }
.opts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 10px 0 8px; }
.opts dt { margin: 0; }
.opts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; gap: 2px; } .opts dd { margin-bottom: 10px; } }
.highlights.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Contact page */
.contact-card { border-top: 3px solid var(--brand); background: var(--panel); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); border-radius: 4px; padding: 20px 24px; max-width: 460px; margin: 36px 0 20px; }
.contact-card p { margin: 0; }
.contact-card .who { font: 600 22px/1.3 var(--sans); }
.contact-card .org { color: var(--ink-2); margin-bottom: 10px; }
.contact-card .mail { font: 17px var(--mono); }
/* Five tabs: on a phone the nav takes its own row under the logo. */
@media (max-width: 640px) {
  .splash-head .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 4px; min-height: 0; }
  .splash-head .nav { width: 100%; justify-content: space-between; gap: 0; }
  .splash-head .nav a { font-size: 13px; padding: 8px 0 6px; }
  .splash-stick { padding-top: 104px; }
}
.btn-link { display: inline-block; font: 600 16px var(--sans); color: #fff; background: var(--brand-ink); border-radius: 4px; padding: 11px 22px; text-decoration: none; }
.btn-link:hover { color: #fff; filter: brightness(1.08); }
