/* Atomix website. Colours are the Atomix app's Dark theme (zinc) for dark
   sections and its light counterpart for light ones. Flat and typographic:
   thin rules, square corners, no pills, no glows. */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #27272a;
  --border-2: #3f3f46;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;

  --l-bg: #fafafa;
  --l-surface: #ffffff;
  --l-surface-2: #f4f4f5;
  --l-border: #e4e4e7;
  --l-ink: #18181b;
  --l-ink-2: #52525b;
  --l-ink-3: #71717a;
  --l-accent: #2563eb;

  --chart-atomix: #2563eb;
  --chart-es: #b45309;
  --warn: #b45309;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 4px;
  --gutter: 16px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* Grid and flex children never push the page wider than the screen. */
.steps > *, .calc > *, .split > *, .vs > *, .shots > *, .stats > *, .feature-groups > *, .providers > * { min-width: 0; }
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; scroll-margin-top: 64px; }
.dark { background: var(--bg); color: var(--ink); }
.light { background: var(--l-bg); color: var(--l-ink); }
.light .eyebrow { color: var(--l-ink-3); }
.light .muted { color: var(--l-ink-2); }
.dark .muted { color: var(--ink-2); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.h-xl { font-size: clamp(40px, 6.6vw, 80px); }
.h-l { font-size: clamp(32px, 4.6vw, 54px); }
.h-m { font-size: clamp(22px, 2.6vw, 28px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.accent { color: var(--accent); }
.light .accent { color: var(--l-accent); }
.section-head { max-width: 800px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }

/* Buttons: square, flat. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--r); border: 1px solid transparent; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-accent { background: var(--ink); color: var(--bg); }
.btn-accent:hover { background: #ffffff; }
.btn-ghost { border-color: var(--border-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.light .btn-accent { background: var(--l-ink); color: #fff; }
.light .btn-accent:hover { background: #000; }
.light .btn-ghost { border-color: #d4d4d8; color: var(--l-ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Navigation: a flat bar with a rule under it. */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav .brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.nav .brand svg { height: 22px; width: auto; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.nav .links a:hover, .nav .links a.active { color: var(--ink); }
.nav .cta { display: flex; align-items: center; gap: 8px; }
.nav .btn { padding: 9px 14px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--border-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (max-width: 860px) {
  .nav .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav-wrap.open .links { display: flex; }
  .nav .links a { padding: 12px 0; font-size: 16px; border-top: 1px solid var(--border); }
  .menu-btn { display: inline-flex; }
  .nav .cta .btn { display: none; }
}

/* Hero. */
.hero { display: flex; align-items: flex-end; padding: clamp(150px, 20vw, 220px) 0 clamp(56px, 8vw, 80px); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 26px; color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .pill-note { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero .pill-note i { width: 6px; height: 6px; background: var(--accent); }

/* Reveal on scroll. */
/* Scroll-in reveal: visible without JavaScript; with it, elements rise into
   view once, siblings a beat apart. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Stats: four equal cells, hairline separated. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--l-border); border: 1px solid var(--l-border); }
.stat { background: var(--l-surface); padding: 26px 24px 24px; min-width: 0; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l-ink-3); }
.stat .num { margin-top: 16px; font-size: clamp(40px, 4.4vw, 60px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: var(--l-ink); display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.stat .unit { font-size: 0.42em; color: var(--l-accent); font-weight: 500; letter-spacing: 0; }
.stat .what { margin-top: 14px; color: var(--l-ink-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Full feature list: three open columns. */
.flist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.fcol { min-width: 0; }
.fcol h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--l-ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--l-ink); }
.fcol ul { margin: 0; padding: 0; list-style: none; }
.fcol li { padding: 12px 0; border-bottom: 1px solid var(--l-border); font-size: 15px; color: var(--l-ink-2); }
.fcol li strong { color: var(--l-ink); font-weight: 600; }
@media (max-width: 980px) { .flist { grid-template-columns: 1fr; gap: 28px; } }

/* Numbered list. */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.numlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--l-border); }
.numlist li { padding: 26px 0; border-bottom: 1px solid var(--l-border); }
.numlist .n { font-family: var(--mono); font-size: 12px; color: var(--l-ink-3); padding-top: 5px; }
.numlist h3 { font-size: 19px; }
.numlist p { margin-top: 6px; color: var(--l-ink-2); font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Roadmap: four columns in the planned order. */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); counter-reset: none; }
.road > li { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.road > li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.7; }
.road-n { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.road-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.road-status i { width: 6px; height: 6px; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.road h3 { font-size: 22px; text-wrap: balance; }
.road p { color: var(--ink-2); font-size: 14.5px; }
.road ul { list-style: none; margin: auto 0 0; padding: 0; }
.road ul li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; }
.road ul li::before { content: "—"; color: var(--ink-3); flex: none; }
@media (max-width: 1100px) { .road { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .road { grid-template-columns: minmax(0, 1fr); } }

/* Sizing: three numbered steps down one rail. */
.step-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; position: relative; padding-bottom: 48px; }
.step-row:last-child { padding-bottom: 0; }
.step-row::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 1px; background: var(--l-border); }
.step-row:last-child::before { display: none; }
.step-n { width: 40px; height: 40px; border: 1px solid var(--l-ink); display: grid; place-items: center; font-weight: 600; font-size: 16px; color: var(--l-ink); background: var(--l-bg); position: relative; }
.step-body > h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 20px; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.presets button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--l-surface); border: 1px solid var(--l-border); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.presets button:hover { border-color: #a1a1aa; }
.presets button:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 2px; }
.presets button b { font-size: 17px; font-weight: 600; color: var(--l-ink); }
.presets button span { font-size: 14px; color: var(--l-ink); font-variant-numeric: tabular-nums; }
.presets button small { font-size: 12.5px; color: var(--l-ink-3); }
.presets button.on { border-color: var(--l-ink); box-shadow: inset 0 0 0 1px var(--l-ink); }
.presets button.on b::after { content: " ✓"; color: var(--l-accent); }
.tune { margin-top: 14px; border: 1px solid var(--l-border); background: var(--l-surface); }
.tune > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--l-ink); display: flex; justify-content: space-between; align-items: center; }
.tune > summary::-webkit-details-marker { display: none; }
.tune > summary::after { content: ""; width: 12px; height: 12px; background: linear-gradient(var(--l-ink), var(--l-ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--l-ink), var(--l-ink)) center / 1.5px 12px no-repeat; transition: background-size 0.25s var(--ease); }
.tune[open] > summary::after { background-size: 12px 1.5px, 1.5px 0; }
.tune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; padding: 0 18px 20px; border-top: 1px solid var(--l-border); }
.field { margin-top: 18px; min-width: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; color: var(--l-ink); }
.field label output { font-family: var(--mono); font-size: 13px; color: var(--l-ink-2); }
.field .row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.field input[type="range"] { flex: 1; min-width: 0; accent-color: var(--l-ink); }
.field input[type="number"], .adv input { width: 112px; height: 38px; padding: 0 10px; border-radius: var(--r); border: 1px solid #d4d4d8; background: #fff; color: var(--l-ink); font: inherit; font-size: 14px; }
.field .help { margin-top: 6px; font-size: 12.5px; color: var(--l-ink-3); }
.field .row .help { margin-top: 0; }
@media (max-width: 980px) { .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tune-grid { grid-template-columns: minmax(0, 1fr); } .step-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } .step-row::before { display: none; } }
@media (max-width: 420px) { .presets { grid-template-columns: minmax(0, 1fr); } }

.result { background: var(--bg); color: var(--ink); padding: 28px; border: 1px solid var(--border); }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.spec > div { border-top: 1px solid var(--border-2); padding-top: 14px; }
.spec .v { font-size: clamp(32px, 3.6vw, 48px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec .v small { font-size: 14px; color: var(--accent); margin-left: 4px; font-weight: 500; letter-spacing: 0; }
.spec .k { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.result .notes { margin-top: 22px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.result .notes b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--l-surface); border: 1px solid var(--l-border); padding: 24px; min-width: 0; }
.light .panel .eyebrow { margin-bottom: 14px; }
.plist { display: grid; }
.prow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--l-border); }
.prow:first-child { border-top: 0; padding-top: 4px; }
.prow .rank { font-family: var(--mono); font-size: 12px; color: var(--l-ink-3); }
.prow .who b { font-size: 16px; font-weight: 600; color: var(--l-ink); }
.prow .who span { display: block; font-size: 12.5px; color: var(--l-ink-3); margin-top: 2px; }
.prow .who em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--l-accent); margin-left: 8px; }
.prow .price { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--l-ink); font-variant-numeric: tabular-nums; text-align: right; }
.prow .price small { font-size: 12px; color: var(--l-ink-3); font-weight: 400; margin-left: 2px; }
.prow .parts { grid-column: 2 / -1; font-size: 12.5px; color: var(--l-ink-2); }
.prow .warn { grid-column: 2 / -1; font-size: 12.5px; color: var(--warn); }
.prow.best .price { color: var(--l-accent); }
.es-line { font-size: 15px; color: var(--l-ink-2); }
.es-line b { color: var(--l-ink); font-weight: 600; }
.es-line small { font-size: inherit; }
.savings { margin-top: 16px; padding: 16px 18px; background: var(--l-ink); color: #fff; font-size: 14px; }
.savings b { font-size: 26px; display: block; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 4px; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
table.costs { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 14px; }
table.costs th, table.costs td { text-align: left; padding: 9px 6px; border-top: 1px solid var(--l-border); }
table.costs th { font-weight: 500; color: var(--l-ink-3); font-size: 12px; font-family: var(--mono); }
table.costs td.n { font-family: var(--mono); font-size: 13px; text-align: right; }
table.costs th.n { text-align: right; }
@media (max-width: 980px) { .cost-grid { grid-template-columns: minmax(0, 1fr); } }
.method { margin-top: 24px; }
.method > summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.method .body { margin-top: 14px; color: var(--l-ink-2); font-size: 14.5px; display: grid; gap: 10px; max-width: 80ch; }
.method code { font-family: var(--mono); font-size: 13px; background: var(--l-surface-2); padding: 1px 6px; }
.method ul { margin: 0; padding-left: 18px; }
.adv { border-top: 1px solid var(--l-border); padding-top: 14px; }
.adv summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--l-ink); }
.adv .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; }
.adv .grid2 label { font-size: 12.5px; color: var(--l-ink-2); display: flex; flex-direction: column; gap: 5px; }
.adv input { width: 100%; }

/* FAQ: drawn plus/minus, animated open and close (see app.js). */
.faq { max-width: 820px; border-top: 1px solid var(--l-border); }
.faq details { border-bottom: 1px solid var(--l-border); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--l-ink), var(--l-ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--l-ink), var(--l-ink)) center / 1.5px 14px no-repeat;
  transition: background-size 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; transform: rotate(180deg); }
.faq .a { padding: 0 0 24px; color: var(--l-ink-2); max-width: 70ch; animation: faq-in 0.4s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq .a { animation: none; } }

/* CTA + footer. */
/* The closing section fills the last screen, so the page never ends on a sliver of the FAQ. */
.cta { text-align: center; min-height: calc(100svh - 110px); display: flex; align-items: center; justify-content: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand svg { height: 18px; width: auto; color: var(--ink); }

/* Product screenshots: a thin frame, no device chrome. */
.shot { border: 1px solid var(--border); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.light .shot { border-color: var(--l-border); background: var(--l-surface); }
.hero-shot { padding-bottom: 0; }
.hero-shot .shot { margin-top: clamp(40px, 6vw, 72px); border-bottom: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--l-ink-2); display: grid; gap: 2px; }
.shots figcaption b { color: var(--l-ink); font-weight: 600; }
.shots .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Features: a bento grid, everything visible at once. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b { background: var(--surface); border: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color 0.25s, transform 0.35s var(--ease); }
.b:hover { border-color: var(--border-2); }
.b-2 { grid-column: span 2; }
.b-4 { grid-column: span 4; }
.b-6 { grid-column: span 6; }
.b .mock { margin-bottom: 8px; background: var(--bg); }
.b { container-type: inline-size; }

.b h3 { font-size: 19px; margin-top: auto; text-wrap: balance; }
.b p { color: var(--ink-2); font-size: 14px; }
.b-row { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 0; }
.brow-item { flex: 1 1 220px; padding: 20px; border-left: 1px solid var(--border); display: grid; gap: 4px; align-content: start; }
.brow-item:first-child { border-left: 0; }
.brow-item b { color: var(--ink); font-weight: 600; font-size: 15px; }
.brow-item span { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 1100px) { .b-2 { grid-column: span 3; } .b-4 { grid-column: span 6; } }
@media (max-width: 700px) { .bento { grid-template-columns: minmax(0, 1fr); } .b-2, .b-4, .b-6 { grid-column: auto; } .brow-item { border-left: 0; border-top: 1px solid var(--border); flex-basis: 100%; } .brow-item:first-child { border-top: 0; } }

/* Product mocks: small, honest renderings of real screens. */
.mock { border: 1px solid var(--border-2); background: var(--surface); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 12.5px; color: var(--ink-2); min-width: 0; contain: inline-size; }
.mock-bar { display: flex; gap: 8px; align-items: center; }
.mock-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--ink); padding: 8px 10px; border: 1px solid var(--border-2); background: var(--bg); }
.mock-btn { padding: 8px 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 12px; }
.mock-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.mock-meta b { color: var(--ink); font-weight: 600; font-size: 13px; }
.mock-hist { display: flex; align-items: flex-end; gap: 3px; height: 72px; border-bottom: 1px solid var(--border-2); padding-bottom: 1px; }
.mock-hist.short { height: 44px; }
.mock-hist i { flex: 1; height: var(--h); min-height: 1px; background: var(--accent); opacity: 0.85; transition: height 0.5s var(--ease); }
.mock-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.mock-rows > div { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); }
.mock-rows b { font-family: var(--mono); font-weight: 400; color: var(--ink); font-size: 11.5px; white-space: nowrap; }
.mock-rows span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev { font: 600 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 2px; white-space: nowrap; }
.sev-critical { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.sev-high { background: rgba(251, 146, 60, 0.18); color: #fdba74; }
.sev-medium { background: rgba(250, 204, 21, 0.16); color: #fde68a; }
.mock-rule { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--border-2); }
.mock-rule b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.mock-rule span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; }
.mock-table { display: grid; grid-template-columns: minmax(0, 1fr); }
.mock-table > div { display: grid; grid-template-columns: 92px 1fr 72px 120px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.mock-table > .th { border-top: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mock-table b { font-family: var(--mono); font-weight: 400; color: var(--ink); font-size: 11.5px; }
.mock-table span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-table .sev { justify-self: start; }
.mock-tiles, .mock-tiles.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tile { border: 1px solid var(--border); background: var(--bg); padding: 12px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.tile-t { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.hbars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hbars > div { display: grid; grid-template-columns: 1fr; gap: 4px; }
.hbars span { display: block; height: 8px; width: var(--w); background: var(--ink-3); }
.hbars span.hi, .hbars > div:first-child span { background: var(--accent); }
.hbars em { font-style: normal; font-size: 11px; color: var(--ink-2); }
.hbars.big span { height: 14px; }
.hbars.big > div:first-child span { background: var(--ink-3); }
.spark { width: 100%; height: 44px; color: var(--accent); }
.donut { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fca5a5 0 var(--a), #fdba74 var(--a) calc(var(--a) + var(--b)), var(--accent) calc(var(--a) + var(--b)) calc(var(--a) + var(--b) + var(--c)), var(--border-2) 0); }
.donut b { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--ink); font-size: 15px; font-weight: 600; }
.mini-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.mini-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); font-size: 12px; }
.mini-rows > div:first-child { border-top: 0; }
.mini-rows b { font-family: var(--mono); font-weight: 400; color: var(--ink); font-size: 11.5px; }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.roles i { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border: 1px solid var(--border-2); color: var(--ink-2); border-radius: 2px; }
.mock-map svg { width: 100%; height: auto; color: var(--accent); display: block; }
.fly { offset-rotate: 0deg; }
.fly-1 { offset-path: path("M60 95Q160 10 250 60"); animation: fly 3.2s linear infinite; }
.fly-2 { offset-path: path("M110 110Q200 40 290 85"); animation: fly 4.1s linear infinite 1s; }
@keyframes fly { from { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; margin-right: 7px; animation: pulse 1.6s infinite; }
.mock-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.flow-card { border: 1px solid var(--border); background: var(--bg); padding: 12px; min-width: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink); overflow-wrap: anywhere; }
.flow-card b { color: var(--accent); margin-right: 6px; }
.flow-card span { display: block; margin-top: 6px; color: var(--ink-3); font-family: var(--font); font-size: 12px; }
.flow-card.list { display: grid; grid-template-columns: minmax(0, 1fr); padding: 4px 12px; }
.flow-card.list > div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.flow-card.list > div:first-child { border-top: 0; }
.flow-card .type { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); border: 1px solid var(--border-2); padding: 3px 5px; }
.flow-arrow { color: var(--ink-3); font-size: 18px; }
.tiers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.tiers > div { border: 1px solid var(--border); background: var(--bg); padding: 10px 12px; min-width: 0; }
.tiers b { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; }
.tiers span { font-size: 11.5px; color: var(--ink-3); }
.tiers i { color: var(--ink-3); }
@media (max-width: 560px) { .mock-tiles, .mock-tiles.two { grid-template-columns: minmax(0, 1fr); } .mock-flow { grid-template-columns: minmax(0, 1fr); } .flow-arrow { transform: rotate(90deg); justify-self: center; } .tiers { grid-template-columns: minmax(0, 1fr); } .tiers i { display: none; } .mock-table > div { grid-template-columns: 80px 1fr 64px; } .mock-table > div > :last-child { display: none; } }

/* Scoreboard comparison. */
.score { border-top: 1px solid var(--border); }
.score-head, .score-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; }
.score-head { padding: 14px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border); }
.score-head span:nth-child(2) { color: var(--accent); }
.score-row { padding: 22px 0; border-bottom: 1px solid var(--border); align-items: start; }
.score-k { font-weight: 600; color: var(--ink); padding-top: 4px; }
.score-v { min-width: 0; display: grid; gap: 8px; }
.score-v b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-2); }
.score-v.win b { color: var(--ink); }
.score-v i { display: block; height: 6px; width: var(--w); min-width: 6px; background: var(--ink-3); }
.score-v.win i { background: var(--accent); }
.score-v span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .score-head { display: none; } .score-row { grid-template-columns: 1fr; gap: 14px; } .score-v::before { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); } .score-row .score-v:nth-child(2)::before { content: "Atomix"; color: var(--accent); } .score-row .score-v:nth-child(3)::before { content: "Elasticsearch"; } }

/* Custom dropdown, matching the inputs. */
.dd { position: relative; margin-top: 8px; }
.dd-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; padding: 0 10px 0 12px; border-radius: var(--r); border: 1px solid #d4d4d8; background: #fff; color: var(--l-ink); font: inherit; font-size: 14px; cursor: pointer; }
.dd-btn:hover { border-color: #a1a1aa; }
.dd-btn:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 1px; }
.dd-btn svg { color: var(--l-ink-3); transition: transform 0.2s var(--ease); flex: none; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #d4d4d8; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.dd-menu li { padding: 8px 10px; border-radius: 3px; font-size: 14px; color: var(--l-ink); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.dd-menu li small { color: var(--l-ink-3); font-family: var(--mono); font-size: 11px; }
.dd-menu li:hover, .dd-menu li.focus { background: var(--l-surface-2); }
.dd-menu li[aria-selected="true"] { font-weight: 600; }

/* Closing section: the hero's contour lines again. */
.cta { position: relative; overflow: hidden; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta .wrap { position: relative; }

/* Mocks adapt to the card they sit in (kept last so it wins over the mock styles). */
@container (max-width: 460px) {
  .b .mock-flow { grid-template-columns: minmax(0, 1fr); }
  .b .flow-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .b .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .b .tiers i { display: none; }
  .b .mock-table > div { grid-template-columns: 84px minmax(0, 1fr) 68px; }
  .b .mock-table > div > :last-child { display: none; }
}
