/* ==========================================================================
   AD-MEN — black / white / red.
   Dark by default: the page is the server room, the red is the status LED.
   White sections are used sparingly, as "paper" inserts, so the rhythm is
   black → white → black and the red reads as a signal, never as decoration.
   ========================================================================== */

:root {
  --black: #0a0a0b;
  --black-2: #111113;
  --black-3: #18181b;
  --line: #26262b;
  --line-soft: #1d1d21;
  --grey: #8a8a93;
  --grey-2: #b4b4bc;
  --white: #f6f6f4;
  --white-2: #e9e9e6;
  --red: #e10600;
  --red-2: #ff2d20;
  --red-dim: rgba(225, 6, 0, .14);

  --head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 180ms;
  --slow: 420ms;

  --shell: 1180px;
  --pad: 32px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.shell-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: var(--white); padding: 12px 20px; font-size: .9rem;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- typography - */

h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }

.kicker {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; color: var(--grey);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--red); flex-shrink: 0; }
.kicker.plain::before { display: none; }

.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.title { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.h3 { font-size: 1.2rem; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--grey-2); max-width: 58ch; line-height: 1.55; }
.copy { color: var(--grey-2); max-width: 70ch; }
.copy p + p { margin-top: 1em; }
.copy strong { color: var(--white); font-weight: 600; }
.copy a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); }
.copy a:hover { color: var(--red-2); }
.copy ul, .copy ol { padding-left: 1.3em; margin: .8em 0; }
.copy li + li { margin-top: .4em; }
.copy h2 { color: var(--white); font-size: 1.45rem; margin: 2.2em 0 .7em; }
.copy h3 { color: var(--white); font-size: 1.12rem; margin: 1.8em 0 .5em; }
.copy code { font-family: var(--mono); font-size: .85em; background: var(--black-3); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
.copy pre { font-family: var(--mono); font-size: .82rem; line-height: 1.6; background: var(--black-2); border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 18px 20px; overflow-x: auto; margin: 1.2em 0; border-radius: var(--radius); }
.copy pre code { background: none; border: none; padding: 0; }
.copy table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.copy th, .copy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.copy th { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); font-weight: 500; }

.red { color: var(--red); }
.muted { color: var(--grey); }
.mono { font-family: var(--mono); }

/* --------------------------------------------------------------- nav -- */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); }

.topbar-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand .mark { height: 26px; width: auto; }
.brand .name { font-family: var(--head); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand .name em { font-style: normal; color: var(--red); }

.menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.menu a {
  display: block; font-size: .86rem; font-weight: 500; color: var(--grey-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }
.menu .cta a { background: var(--red); color: var(--white); padding: 9px 16px; border-radius: var(--radius); border: none; font-weight: 600; }
.menu .cta a:hover { background: var(--red-2); }

.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: 1px solid var(--line); cursor: pointer; border-radius: var(--radius);
}
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--white); transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: .92rem; font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-2); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-3); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--white); text-decoration: none;
  border-bottom: 1px solid var(--red); padding-bottom: 2px;
  transition: color var(--fast) var(--ease);
}
.link:hover { color: var(--red-2); }
.link .chev { transition: transform var(--fast) var(--ease); }
.link:hover .chev { transform: translateX(4px); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vh, 120px) 0 clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; top: -200px; right: -200px; width: 640px; height: 640px; pointer-events: none;
  background: radial-gradient(circle, rgba(225, 6, 0, .22), transparent 60%);
}
.hero .shell { position: relative; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero .kicker { margin-bottom: 26px; }
.hero .display { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-proof div { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--grey); display: flex; align-items: center; gap: 8px; }
.hero-proof div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* console panel */
.console {
  background: var(--black-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  font-family: var(--mono); font-size: .78rem; overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--grey); font-size: .7rem; letter-spacing: .08em; }
.console-bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.console-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.console-bar .dots i:first-child { background: var(--red); }
.console-body { padding: 18px 18px 8px; }
.console-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--grey-2); }
.console-row:last-child { border-bottom: none; }
.console-row .k { color: var(--grey); }
.console-row .v { color: var(--white); text-align: right; }
.console-row .s { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.console-row .s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 3px rgba(46, 194, 126, .18); }
.console-row .s.red::before { background: var(--red); box-shadow: 0 0 0 3px var(--red-dim); animation: pulse 1.6s infinite; }
.console-foot { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--grey); font-size: .7rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.console-foot .cursor::after { content: "▌"; color: var(--red); animation: blink 1s steps(1) infinite; margin-left: 2px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--red-dim); } 50% { box-shadow: 0 0 0 6px rgba(225, 6, 0, .06); } }

/* ------------------------------------------------------------- ticker -- */

.ticker { border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--black-2); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker-track span::after { content: "/"; color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections -- */

.section { padding: clamp(64px, 9vh, 110px) 0; border-bottom: 1px solid var(--line); }
.section.paper { background: var(--white); color: var(--black); border-bottom: none; }
.section.paper .kicker { color: #6b6b72; }
.section.paper .lede, .section.paper .copy { color: #3c3c43; }
.section.paper .copy strong, .section.paper .copy h2, .section.paper .copy h3 { color: var(--black); }
.section.paper .muted { color: #6b6b72; }
.section.red-band { background: var(--red); color: var(--white); border-bottom: none; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .kicker { margin-bottom: 18px; }
.section-head .lede { justify-self: end; }
.section-head.single { grid-template-columns: 1fr; }
.section-head:has(.copy) { align-items: start; }

/* --------------------------------------------------------------- grids -- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.cell { background: var(--black); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: background var(--fast) var(--ease); }
.cell:hover { background: var(--black-2); }
.cell .idx { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--red); }
.cell h3 { font-size: 1.12rem; }
.cell p { color: var(--grey-2); font-size: .94rem; line-height: 1.6; }
.cell ul { list-style: none; display: grid; gap: 7px; margin-top: 4px; }
.cell li { font-size: .88rem; color: var(--grey-2); padding-left: 18px; position: relative; }
.cell li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--red); }
.cell .icon { width: 36px; height: 36px; color: var(--red); }
.cell .icon svg { width: 100%; height: 100%; }
.cell a.link { margin-top: auto; align-self: flex-start; }

.paper .grid-3, .paper .grid-2, .paper .grid-4 { background: #d8d8d3; border-color: #d8d8d3; }
.paper .cell { background: var(--white); }
.paper .cell:hover { background: #fff; }
.paper .cell p, .paper .cell li { color: #3c3c43; }

/* ------------------------------------------------------------- stats --- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--black); padding: 26px 24px; }
.stat .n { font-family: var(--head); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat .n sup { font-size: .5em; color: var(--red); vertical-align: top; top: .3em; position: relative; }
.stat .l { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* ------------------------------------------------------------- layers --- */
/* The ecosystem diagram: stacked layers, infrastructure at the bottom. */

.layers { display: grid; gap: 10px; }
.layer {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 20px 24px; border: 1px solid var(--line); background: var(--black-2); border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.layer:hover { border-color: var(--grey); transform: translateX(4px); }
.layer.base { border-color: var(--red); background: linear-gradient(90deg, var(--red-dim), var(--black-2) 50%); }
.layer .lv { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.layer.base .lv { color: var(--red); }
.layer h3 { font-size: 1.02rem; margin-bottom: 3px; }
.layer p { font-size: .9rem; color: var(--grey-2); }
.layer .tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.layer.base .tag { color: var(--white); border-color: var(--red); background: var(--red); }

/* -------------------------------------------------------------- plans --- */

.billing { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 40px; }
.paper .billing { border-color: #c8c8c2; }
.billing button {
  font-family: var(--body); font-size: .84rem; font-weight: 600; padding: 9px 18px; border-radius: 99px;
  background: none; border: none; color: inherit; cursor: pointer; opacity: .6; transition: opacity var(--fast), background var(--fast);
}
.billing button[aria-pressed="true"] { background: var(--white); color: var(--black); opacity: 1; }
.paper .billing button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.billing .save { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-left: 8px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--black); color: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px 30px 30px;
  transition: transform var(--slow) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--grey); }
.plan.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 40px 80px -40px rgba(225, 6, 0, .5); }
.plan .flag {
  position: absolute; top: -13px; left: 30px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--red); color: var(--white); padding: 6px 12px; border-radius: 99px;
}
.plan .tier { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.plan h3 { font-size: 1.6rem; margin-bottom: 8px; }
.plan .for { font-size: .9rem; color: var(--grey-2); min-height: 3em; margin-bottom: 24px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price .cur { font-family: var(--head); font-size: 1.3rem; color: var(--grey-2); }
.plan .price .amt { font-family: var(--head); font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan .price .per { font-size: .85rem; color: var(--grey); }
.plan .billed { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--grey); margin-bottom: 26px; min-height: 1.2em; }
.plan .btn { margin-bottom: 28px; }
.plan .inc { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan li { font-size: .9rem; color: var(--grey-2); padding-left: 24px; position: relative; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.plan li strong { color: var(--white); font-weight: 600; }
.plan li.plus { color: var(--white); font-weight: 500; }
.plan .spec { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.plan .spec div { font-family: var(--mono); font-size: .68rem; color: var(--grey); letter-spacing: .04em; }
.plan .spec b { display: block; color: var(--white); font-weight: 500; font-size: .8rem; margin-top: 2px; }

.plan-note { margin-top: 24px; font-size: .86rem; color: inherit; opacity: .7; max-width: 80ch; }

/* comparison */
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-family: var(--head); font-size: 1.05rem; font-weight: 600; border-bottom: 2px solid var(--white); }
.compare thead th.hl { color: var(--red); }
.compare tbody th { font-weight: 500; color: var(--grey-2); }
.compare tbody th small { display: block; font-size: .78rem; color: var(--grey); font-weight: 400; }
.compare td { color: var(--white); }
.compare td.hl { background: rgba(225, 6, 0, .06); }
.compare tr.group th { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); padding-top: 30px; border-bottom: none; }
.compare .yes { color: var(--white); }
.compare .yes::before { content: "✓ "; color: var(--red); font-weight: 700; }
.compare .no { color: var(--line); }
.compare .no::before { content: "—"; }
.compare-wrap { overflow-x: auto; }

/* comparison tables and stats inside a white "paper" section */
.paper .compare th, .paper .compare td { border-bottom-color: #d8d8d3; }
.paper .compare thead th { border-bottom-color: var(--black); color: var(--black); }
.paper .compare thead th.hl { color: var(--red); }
.paper .compare tbody th { color: #3c3c43; }
.paper .compare td { color: var(--black); }
.paper .compare td.hl { background: rgba(225, 6, 0, .05); }
.paper .compare .no { color: #c8c8c2; }
.paper .stats { background: #d8d8d3; border-color: #d8d8d3; }
.paper .stat { background: var(--white); }
.paper .stat .l { color: #6b6b72; }
.paper .guide { background: #fff; border-color: #d8d8d3; color: var(--black); }
.paper .guide p { color: #3c3c43; }
.paper .plan-note { color: #3c3c43; opacity: 1; }
.paper .plan-note .link { color: var(--black); }

/* ---------------------------------------------------------------- faq --- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--head); font-size: 1.08rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); font-size: 1.3rem; flex-shrink: 0; transition: transform var(--fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--grey-2); max-width: 72ch; font-size: .95rem; }
.faq .ans p + p { margin-top: .7em; }
.paper .faq, .paper .faq details { border-color: #d8d8d3; }
.paper .faq .ans { color: #3c3c43; }

/* ------------------------------------------------------------ process --- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 20px; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--red); }
.step .n { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--grey); margin-bottom: 14px; display: block; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--grey-2); }
.paper .step { border-top-color: #d8d8d3; }
.paper .step p { color: #3c3c43; }

/* --------------------------------------------------------------- band --- */

.band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px 64px; align-items: center; }
.band-inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 12px; }
.band-inner p { opacity: .85; max-width: 56ch; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- page head --- */

.page-head { padding: clamp(56px, 8vh, 96px) 0 clamp(40px, 6vh, 64px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; top: -260px; right: -160px; width: 560px; height: 560px; pointer-events: none; background: radial-gradient(circle, rgba(225, 6, 0, .16), transparent 60%); }
.page-head .shell { position: relative; }
.page-head .kicker { margin-bottom: 22px; }
.page-head .title { margin-bottom: 18px; max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.page-head .crumbs { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 26px; display: flex; gap: 10px; }
.page-head .crumbs a { color: var(--grey); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--white); }
.page-head .crumbs span::before { content: "/"; color: var(--red); margin-right: 10px; }

/* ------------------------------------------------------------- article -- */

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-top: 24px; }
.article .copy { max-width: 72ch; font-size: 1.05rem; }
.article .copy > p:first-child { font-size: 1.15rem; color: var(--white); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--black-2); padding: 20px 24px; border-radius: var(--radius); margin: 1.6em 0; font-size: .95rem; }
.callout strong { color: var(--white); }
.disclosure { font-family: var(--mono); font-size: .72rem; line-height: 1.7; color: var(--grey); border: 1px dashed var(--line); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 2em; }
.disclosure a { color: var(--grey-2); }

.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--black-2);
  transition: border-color var(--fast) var(--ease), transform var(--slow) var(--ease);
}
.guide:hover { border-color: var(--red); transform: translateY(-3px); }
.guide .cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.guide h3 { font-size: 1.15rem; }
.guide p { font-size: .9rem; color: var(--grey-2); flex: 1; }
.guide .meta { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--grey); }

/* ------------------------------------------------------------- forms ---- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field > label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .96rem; color: var(--white); background: var(--black-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color var(--fast) var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--black-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field .hint { font-size: .8rem; color: var(--grey); }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; color: var(--grey-2); }
.form .consent input { margin-top: 4px; accent-color: var(--red); }
.form-note { font-size: .82rem; color: var(--grey); }
.form-ok, .form-err { display: none; border: 1px solid var(--red); border-radius: var(--radius); padding: 18px 20px; background: var(--red-dim); margin-bottom: 24px; font-size: .95rem; }
.form-err { border-color: var(--grey); background: var(--black-2); }
.form-ok.show, .form-err.show { display: block; }

.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-pick label { cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--black-2); transition: border-color var(--fast); height: 100%; }
.plan-pick input:checked + .box { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.plan-pick .box b { display: block; font-family: var(--head); font-size: 1.05rem; font-weight: 600; color: var(--white); text-transform: none; letter-spacing: -.01em; margin-bottom: 2px; }
.plan-pick .box span { font-family: var(--mono); font-size: .7rem; color: var(--grey); }

.summary { border: 1px solid var(--line); border-radius: 10px; padding: 26px; background: var(--black-2); position: sticky; top: 92px; }
.summary h3 { font-size: 1rem; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; color: var(--grey-2); }
.summary .row b { color: var(--white); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; }
.summary .total .amt { font-family: var(--head); font-size: 1.8rem; font-weight: 600; }
.summary .fine { font-size: .78rem; color: var(--grey); margin-top: 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* ------------------------------------------------------------ contact --- */

.routes { border-top: 1px solid var(--line); }
.route { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.route .who { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding-top: .4em; }
.route a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); }
.route a:hover { color: var(--red-2); }
.route .hint { display: block; margin-top: 4px; font-size: .86rem; color: var(--grey); }

/* -------------------------------------------------------------- legal --- */

.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; border-left: 1px solid var(--line); }
.toc a { display: block; font-size: .84rem; color: var(--grey); text-decoration: none; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; transition: color var(--fast), border-color var(--fast); }
.toc a:hover { color: var(--white); border-left-color: var(--red); }
.legal .copy h2 { font-size: 1.3rem; margin-top: 2.4em; scroll-margin-top: 90px; }
.legal .copy h2:first-of-type { margin-top: 0; }
.updated { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

/* --------------------------------------------------------------- foot --- */

.foot { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--black-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot .brand { margin-bottom: 18px; }
.foot .pull { font-size: .9rem; color: var(--grey-2); max-width: 36ch; margin-bottom: 20px; }
.foot .status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--line); padding: 7px 12px; border-radius: 99px; }
.foot .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; }
.foot h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); font-weight: 500; margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot ul a { font-size: .88rem; color: var(--grey-2); text-decoration: none; transition: color var(--fast); }
.foot ul a:hover { color: var(--white); }
.foot-meta { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--grey); }
.foot-fine { margin-top: 14px; font-size: .74rem; line-height: 1.7; color: var(--grey); max-width: 100ch; }

/* ------------------------------------------------------------ motion --- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* -------------------------------------------------------- responsive --- */

@media (max-width: 1024px) {
  .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .guide-list { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .section-head, .band-inner, .two-col, .legal-grid { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 10px; }
  .layer .tag { justify-self: start; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .toc a { padding: 4px 0; border-left: none; }
  .summary { position: static; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }

  .menu-btn { display: flex; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu li { border-top: 1px solid var(--line-soft); }
  .menu a { padding: 15px var(--pad); font-size: .95rem; border-bottom: none; }
  .menu .cta a { margin: 12px var(--pad) 16px; border-radius: var(--radius); text-align: center; }

  .grid-4, .stats, .steps, .guide-list, .plan-pick, .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 4px; }
  .route .who { padding-top: 0; }
  .console-row { grid-template-columns: 1fr auto; }
  .console-row .s { display: none; }
  .compare thead th { font-size: .9rem; }
  .compare th, .compare td { padding: 12px 10px; }
}
