/* meetnix.ai — the marketing site.
 * ===========================================================================
 *
 * NO WEBFONT. NO SCRIPT. NO THIRD-PARTY REQUEST.
 *
 * Not a performance preference — the product's entire proposition is that it
 * does not phone anywhere, and this page is evaluated by people inside
 * networks where an outbound request to a font CDN is a finding. So: system
 * faces, inline SVG, and every interaction below (the mobile drawer, the
 * install tabs, the FAQ) is built out of `:checked` and `:target` rather than
 * JavaScript. The page paints in one round trip from one host.
 *
 * THE PALETTE IS brand.html §03, six values, one of them rationed:
 *
 *   Night  #1A2744  structure — chrome, panels, headings on light
 *   Ember  #C4553A  RATIONED — a session in progress, and the primary action.
 *                   NEVER in the mark, never as decoration. If everything is
 *                   accented, nothing is marked.
 *   Ink    #1A1A1A  running text on light
 *   Paper  #FAF9F8  warm ground on light, text on dark — our output is documents
 *   Slate  #5A6B7A  secondary text, metadata, captions
 *   Ash    #E0DDD8  rules and borders
 *
 * DARK IS THE DEFAULT and light is complete. The readers are engineers and the
 * people who fund them; the ground is deeper than Night so that Night can be a
 * *panel* and still separate from it — one hue, two jobs.
 *
 * TWO FAMILIES, and the second one is load-bearing. Everything the product
 * emits is a file, a JSON document or an identifier, so every value that came
 * out of the record is set in mono on this page too. When you see mono here,
 * you are looking at something the software actually wrote.
 */

/* ═══ tokens ══════════════════════════════════════════════════════════════ */

:root {
  /* the brand constants — these never change with theme */
  --night: #1a2744;
  --ember: #c4553a;
  --ink: #1a1a1a;
  --paper: #faf9f8;
  --slate: #5a6b7a;
  --ash: #e0ddd8;

  /* dark, the default */
  --ground: #080d15;
  --ground-2: #0b111c;
  --surface: #101a2a;
  --raised: #16233a;
  --body: #b5c1d2;
  --structure: #f2f6fb;
  --secondary: #7e8ea6;
  --faint: #78899f;
  --rule: rgba(214, 227, 245, 0.13);
  --hairline: rgba(214, 227, 245, 0.06);
  --glass: rgba(10, 16, 26, 0.72);

  /* Ember, lifted. #C4553A is correct on Paper and unreadable on Night, so the
     dark theme carries the value one step up rather than a different hue. */
  --accent: #e07a5c;
  --accent-soft: rgba(224, 122, 92, 0.14);
  --accent-line: rgba(224, 122, 92, 0.34);
  --accent-fg: #1b0d07;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-3: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", "Liberation Sans", Arial, sans-serif;
  --mono:
    ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "DejaVu Sans Mono",
    "Liberation Mono", Consolas, monospace;

  --page: 74rem;
  --narrow: 46rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --r: 14px;
  --r-sm: 9px;
  --r-lg: 20px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: var(--paper);
    --ground-2: #f4f1eb;
    --surface: #ffffff;
    --raised: #ffffff;
    --body: #2c3540;
    --structure: var(--night);
    --secondary: var(--slate);
    --faint: #6f7f8d;
    --rule: var(--ash);
    --hairline: #eeebe5;
    --glass: rgba(250, 249, 248, 0.78);

    --accent: var(--ember);
    --accent-soft: rgba(196, 85, 58, 0.09);
    --accent-line: rgba(196, 85, 58, 0.3);
    --accent-fg: var(--paper);

    --shadow-1: 0 1px 2px rgba(26, 39, 68, 0.09);
    --shadow-2: 0 18px 44px -20px rgba(26, 39, 68, 0.35);
    --shadow-3: 0 40px 100px -40px rgba(26, 39, 68, 0.4);
    --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    color-scheme: light;
  }
}

/* ═══ reset ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  /* the sticky header, so an in-page anchor does not land under it */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3,
h4 {
  color: var(--structure);
  font-weight: 620;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ type scale ══════════════════════════════════════════════════════════ */

.display {
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.5rem);
  line-height: 0.97;
  letter-spacing: -0.037em;
  font-weight: 640;
}

.h2,
main h2 {
  font-size: clamp(1.85rem, 1.1rem + 2.7vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.h3,
main h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 620;
}

.lede {
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.24rem);
  line-height: 1.55;
  color: var(--secondary);
  max-width: 34em;
  text-wrap: pretty;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--accent-line);
  flex: none;
}

.kicker--plain {
  color: var(--secondary);
}

.kicker--plain::before {
  background: var(--rule);
}

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--secondary);
}

.faint {
  color: var(--faint);
}

.nowrap {
  white-space: nowrap;
}

.measure {
  max-width: var(--narrow);
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .lede {
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  translate: -50% -250%;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: translate 0.15s;
}

.skip:focus {
  translate: -50% 0;
}

/* ═══ layout ══════════════════════════════════════════════════════════════ */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section--edged {
  border-top: 1px solid var(--hairline);
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section__head .lede {
  margin-top: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-right {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.stack {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.stack--tight {
  gap: 0.65rem;
}

.stack--loose {
  gap: 1.8rem;
}

/* `.stack` is a grid, so a bare <a class="btn"> in one stretches to the full
   column and stops reading as a button. Buttons size to their label; a `.plan`
   deliberately opts back out below. */
.stack > .btn {
  justify-self: start;
}

@media (max-width: 900px) {
  .split,
  .split--wide-right,
  .split--wide-left {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ═══ chrome: the top bar ═════════════════════════════════════════════════ */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--structure);
  text-decoration: none;
  flex: none;
}

.wordmark svg {
  width: 22px;
  height: 22px;
}

.wordmark span {
  font-weight: 640;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

/* :not(.btn) is load-bearing. `.nav a` is MORE SPECIFIC than `.btn`, so an
   unscoped rule here silently reset the header button's colour AND its
   `display: inline-flex` — which made every flex property on it, including
   the centring in the drawer, quietly do nothing. It rendered as a slate
   label in an Ember bar and read as a browser bug. */
.nav a:not(.btn) {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.925rem;
  color: var(--secondary);
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav a:not(.btn):hover {
  color: var(--structure);
  background: var(--hairline);
}

/* The current page is marked here rather than with an attribute written into
   each copy of the header — which is what lets the header be ONE file that
   nix/site.nix inlines everywhere. Add a page, add a line. */
body[data-page="product"] .nav a[href="/product"],
body[data-page="self-host"] .nav a[href="/self-host"],
body[data-page="pricing"] .nav a[href="/pricing"],
body[data-page="security"] .nav a[href="/security"],
body[data-page="roadmap"] .nav a[href="/roadmap"],
body[data-page="docs"] .nav a[href="/docs"] {
  color: var(--structure);
  background: var(--hairline);
}

.nav__sep {
  width: 1px;
  height: 1.2rem;
  background: var(--rule);
  margin-inline: 0.55rem;
  flex: none;
}

/* the drawer, CSS only. The checkbox is the state; the label is the button. */
#navtoggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.navbtn {
  display: none;
  margin-left: auto;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--structure);
  cursor: pointer;
}

.navbtn svg {
  width: 17px;
  height: 17px;
}

.navbtn .x {
  display: none;
}

@media (max-width: 880px) {
  .navbtn {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-2);
    display: none;
  }

  #navtoggle:checked ~ .nav {
    display: flex;
  }

  #navtoggle:checked ~ .navbtn .x {
    display: block;
  }

  #navtoggle:checked ~ .navbtn .burger {
    display: none;
  }

  .nav a:not(.btn) {
    padding: 0.75rem 0.5rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }

  .nav__sep {
    display: none;
  }

  .nav .btn {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
  }
}

/* ═══ buttons ═════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 570;
  letter-spacing: -0.008em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    translate 0.15s;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Ember, job one of two: the primary action. There is at most one of these
   in any viewport, which is the whole reason it reads as the way forward. */
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-1);
}

.btn--primary:hover {
  translate: 0 -1px;
  background: color-mix(in oklab, var(--accent) 88%, white);
}

.btn--ghost {
  border-color: var(--rule);
  color: var(--structure);
  background: var(--hairline);
}

.btn--ghost:hover {
  border-color: var(--secondary);
}

.btn--quiet {
  color: var(--structure);
  padding-inline: 0.4rem;
}

.btn--quiet:hover {
  color: var(--accent);
}

.btn--lg {
  padding: 0.78rem 1.4rem;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.arrow {
  transition: translate 0.15s;
}

.btn:hover .arrow,
a:hover > .arrow {
  translate: 2px 0;
}

/* ═══ badges and pills ════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.72rem 0.3rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--hairline);
  font-size: 0.8rem;
  color: var(--secondary);
  text-decoration: none;
  transition: border-color 0.15s;
}

.badge:hover {
  border-color: var(--secondary);
}

.badge b {
  color: var(--structure);
  font-weight: 580;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.tag {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--secondary);
  vertical-align: 0.15em;
}

.tag--now {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.tag--next {
  color: var(--structure);
  border-color: var(--rule);
}

/* ═══ surfaces ════════════════════════════════════════════════════════════ */

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sheen);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  font-size: 0.94rem;
  color: var(--secondary);
  line-height: 1.55;
}

.card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--ground-2);
  color: var(--structure);
  margin-bottom: 0.35rem;
}

.card__icon svg {
  width: 17px;
  height: 17px;
}

.card--flat {
  background: transparent;
  border-color: transparent;
  padding: 0;
  box-shadow: none;
}

.card--flat .card__icon {
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cards--3,
  .cards--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sheen);
  overflow: hidden;
}

.panel--pad {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

/* ═══ decorative ground ═══════════════════════════════════════════════════ */

.glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 46rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      54rem 26rem at 50% -2%,
      color-mix(in oklab, var(--accent) 34%, transparent),
      transparent 66%
    ),
    radial-gradient(
      44rem 24rem at 76% 10%,
      color-mix(in oklab, var(--night) 92%, transparent),
      transparent 68%
    );
  opacity: 0.62;
}

@media (prefers-color-scheme: light) {
  .glow {
    opacity: 0.32;
  }
}

.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(
    ellipse 74% 58% at 50% 0%,
    #000,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse 74% 58% at 50% 0%, #000, transparent 72%);
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

/* ═══ hero ════════════════════════════════════════════════════════════════ */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__head {
  max-width: 50rem;
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.hero--center .hero__head {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.hero--center .lede {
  margin-inline: auto;
}

.hero--center .actions,
.hero--center .chips,
.hero--center .runson {
  justify-content: center;
}

.hero__note {
  font-size: 0.86rem;
  color: var(--faint);
}

/* the install line — a real command, selectable */
.termline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--ground-2);
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--body);
  max-width: 100%;
  overflow-x: auto;
}

.termline .p {
  color: var(--accent);
  user-select: none;
  flex: none;
}

.termline code {
  white-space: nowrap;
}

.termline .hint {
  margin-left: auto;
  padding-left: 0.8rem;
  font-size: 0.72rem;
  color: var(--faint);
  border-left: 1px solid var(--rule);
  flex: none;
}

@media (max-width: 640px) {
  .termline {
    font-size: 0.76rem;
  }
  /* The command scrolls; the aside would only push it further out of view. */
  .termline .hint {
    display: none;
  }
}

/* ═══ the product window ══════════════════════════════════════════════════ */

.window {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--ground-2);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.window--hero {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.window__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.dots {
  display: flex;
  gap: 0.36rem;
  flex: none;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}

.window__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window__url svg {
  width: 11px;
  height: 11px;
  color: var(--faint);
  flex: none;
}

.window__url b {
  color: var(--structure);
  font-weight: 500;
}

.window__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
}

@media (max-width: 780px) {
  .window__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- the call itself --- */

.call {
  position: relative;
  padding: 0.85rem;
  background:
    radial-gradient(
      30rem 18rem at 20% -10%,
      color-mix(in oklab, var(--night) 55%, transparent),
      transparent 70%
    ),
    var(--ground);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.call__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.call__title {
  font-size: 0.82rem;
  color: var(--structure);
  font-weight: 560;
}

.call__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}

/* Ember, job two of two: a session in progress. This is the only place on the
   page the colour means "live", and it must never be borrowed for emphasis. */
.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  color: var(--accent);
  flex: none;
}

.rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

.stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
}

/* Faces are not drawn. Each tile is a distinct value from the same cool
   family, so the grid reads as several people without inventing any. */
.tile--a {
  background:
    radial-gradient(9rem 6rem at 62% 34%, #2b3a57, transparent 72%), #16203a;
}
.tile--b {
  background:
    radial-gradient(9rem 6rem at 38% 30%, #23384a, transparent 72%), #131f2e;
}
.tile--c {
  background:
    radial-gradient(9rem 6rem at 55% 40%, #2f3350, transparent 72%), #171d33;
}
.tile--d {
  background:
    radial-gradient(9rem 6rem at 45% 32%, #1f3a44, transparent 72%), #122029;
}

.tile__initials {
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(242, 246, 251, 0.5);
}

.tile__name {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.14rem 0.44rem;
  border-radius: 5px;
  background: rgba(8, 13, 21, 0.66);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  color: #eef3fa;
  white-space: nowrap;
  max-width: calc(100% - 0.8rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile__name svg {
  width: 9px;
  height: 9px;
  flex: none;
  opacity: 0.8;
}

.tile--speaking {
  border-color: rgba(214, 227, 245, 0.42);
  box-shadow: 0 0 0 1px rgba(214, 227, 245, 0.22);
}

.callbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.ctl {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--secondary);
}

.ctl svg {
  width: 13px;
  height: 13px;
}

.ctl--leave {
  width: auto;
  padding-inline: 0.6rem;
  border-color: var(--accent-line);
  color: var(--accent);
}

/* --- the rail: what the server is actually writing --- */

/* Flex rather than grid so the closing note can be pushed to the bottom with
   `margin-top: auto` — the rail is shorter than the call beside it, and the
   dead space under it read as a layout bug rather than as a panel. */
.rail {
  border-left: 1px solid var(--hairline);
  background: var(--surface);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (max-width: 780px) {
  .rail {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--hairline);
}

.trk {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.trk:last-of-type {
  border-bottom: 0;
}

.trk__who {
  font-size: 0.78rem;
  color: var(--structure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trk__size {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.trk__file {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wave {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
  margin-top: 0.22rem;
}

.wave i {
  flex: 1;
  min-width: 1px;
  height: var(--h, 40%);
  border-radius: 1px;
  background: color-mix(in oklab, var(--secondary) 62%, transparent);
}

.wave--live i {
  background: color-mix(in oklab, var(--accent) 78%, transparent);
}

.rail__foot {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.72rem;
  color: var(--faint);
  line-height: 1.45;
}

/* ═══ the mixdown-versus-tracks graphic ═══════════════════════════════════ */

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 780px) {
  .versus {
    grid-template-columns: minmax(0, 1fr);
  }
}

.way {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.way--theirs {
  background: transparent;
  border-style: dashed;
}

.way__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.way h3 {
  font-size: 1.05rem;
}

.way__steps {
  list-style: none;
  display: grid;
  gap: 0.42rem;
  counter-reset: s;
  font-size: 0.9rem;
  color: var(--secondary);
}

.way__steps li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.4rem;
  counter-increment: s;
}

.way__steps li::before {
  content: counter(s);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  padding-top: 0.16rem;
}

.outcome {
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--ground-2);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--secondary);
}

.outcome b {
  color: var(--structure);
  font-weight: 580;
}

.outcome code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--structure);
}

/* the two waveform figures */
.figblock {
  padding: 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--ground-2);
  display: grid;
  gap: 0.5rem;
}

.figrow {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

.figrow__who {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.figrow--guess .figrow__who {
  color: var(--faint);
}

.figrow--named .figrow__who {
  color: var(--structure);
}

.figrow .wave {
  grid-column: auto;
  margin: 0;
  height: 22px;
}

.figrow--mixed .wave i {
  background: color-mix(in oklab, var(--secondary) 45%, transparent);
}

/* ═══ evidence: file listings, JSON, config ═══════════════════════════════ */

.code {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--ground-2);
  overflow: hidden;
  box-shadow: var(--sheen);
}

.code__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.code__head svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.code__head b {
  color: var(--structure);
  font-weight: 500;
}

.code__head .right {
  margin-left: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-family: var(--mono);
  font-size: 0.775rem;
  line-height: 1.62;
  color: var(--body);
  tab-size: 2;
}

.code--sm pre {
  font-size: 0.74rem;
}

.code .k {
  color: var(--structure);
}
.code .s {
  color: color-mix(in oklab, var(--secondary) 82%, var(--structure));
}
.code .c {
  color: var(--faint);
  font-style: italic;
}
.code .d {
  color: var(--faint);
}
.code .n {
  color: var(--structure);
}

/* the one line in the panel the panel exists to show you */
.code .hl {
  display: inline-block;
  border-radius: 3px;
  padding: 0 0.25rem;
  margin: 0 -0.25rem;
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--faint);
  max-width: 34em;
}

/* ═══ tabs, without script ════════════════════════════════════════════════ */

.tabs {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--ground-2);
  overflow: hidden;
}

.tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs__list {
  display: flex;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__list label {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 540;
  color: var(--secondary);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.tabs__list label:hover {
  color: var(--structure);
}

.tabs__panel {
  display: none;
}

.tabs__panel .code {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.tabs__panel .code__head {
  background: transparent;
}

.tabs__note {
  padding: 0.7rem 1.1rem 1rem;
  font-size: 0.82rem;
  color: var(--faint);
  border-top: 1px solid var(--hairline);
}

/* four tabs, wired by position */
#tab1:checked ~ .tabs__list label[for="tab1"],
#tab2:checked ~ .tabs__list label[for="tab2"],
#tab3:checked ~ .tabs__list label[for="tab3"],
#tab4:checked ~ .tabs__list label[for="tab4"] {
  color: var(--structure);
  border-bottom-color: var(--accent);
}

#tab1:checked ~ .tabs__panels > #panel1,
#tab2:checked ~ .tabs__panels > #panel2,
#tab3:checked ~ .tabs__panels > #panel3,
#tab4:checked ~ .tabs__panels > #panel4 {
  display: block;
}

/* ═══ the search mock ═════════════════════════════════════════════════════ */

.search {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}

.search__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--ground-2);
}

.search__bar svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
  flex: none;
}

.search__q {
  font-size: 0.92rem;
  color: var(--structure);
}

.search__caret {
  width: 1px;
  height: 1.05em;
  background: var(--accent);
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.75rem;
  color: var(--secondary);
}

.chip b {
  color: var(--structure);
  font-weight: 550;
}

.chip svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
  flex: none;
}

.chip--on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip--on b {
  color: var(--accent);
}

.hits {
  display: grid;
  gap: 0.5rem;
}

.hit {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--ground-2);
  display: grid;
  gap: 0.32rem;
}

.hit__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.hit__meta b {
  color: var(--structure);
  font-weight: 500;
}

.hit__meta .dot {
  opacity: 0.5;
}

.hit__quote {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--body);
}

.hit__quote mark {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 0.15em;
}

.search__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  padding-top: 0.2rem;
}

/* ═══ the comparison matrix ═══════════════════════════════════════════════ */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
}

table.matrix {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.matrix th,
.matrix td {
  padding: 0.72rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.matrix thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  border-bottom-color: var(--rule);
  white-space: nowrap;
}

.matrix thead th.ours {
  color: var(--accent);
}

.matrix tbody th {
  font-weight: 540;
  color: var(--structure);
  width: 30%;
}

.matrix td {
  color: var(--secondary);
}

.matrix td.ours {
  color: var(--structure);
  background: var(--accent-soft);
}

.matrix tr:last-child th,
.matrix tr:last-child td {
  border-bottom: 0;
}

/* Top-aligned, not centred: a cell that wraps to two lines put the tick
   opposite the second one, which reads as belonging to the wrong row. */
.mk {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.mk svg,
svg.mk {
  width: 13px;
  height: 13px;
  margin-top: 0.28em;
  flex: none;
}

svg.mk {
  display: inline-block;
  vertical-align: -0.1em;
  margin-top: 0;
}

/* ═══ steps / numbered flow ═══════════════════════════════════════════════ */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: f;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  counter-increment: f;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.step::before {
  content: counter(f, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  font-size: 0.98rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.5;
}

/* ═══ stats ═══════════════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 0.25rem;
}

.stat__n {
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  color: var(--structure);
  font-variant-numeric: tabular-nums;
}

.stat__l {
  font-size: 0.82rem;
  color: var(--secondary);
  line-height: 1.4;
}

/* ═══ marquee-free logo strip ═════════════════════════════════════════════ */

.runson {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
}

.runson span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--secondary);
  white-space: nowrap;
}

.runson span svg {
  width: 12px;
  height: 12px;
  opacity: 0.65;
  flex: none;
}

/* ═══ pricing ═════════════════════════════════════════════════════════════ */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 940px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plans {
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sheen);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.plan--featured {
  border-color: var(--accent-line);
  box-shadow:
    var(--sheen),
    0 0 0 1px var(--accent-line),
    var(--shadow-2);
}

.plan__flag {
  position: absolute;
  top: -0.65rem;
  left: 1.6rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan__name {
  font-size: 1.05rem;
  font-weight: 620;
  color: var(--structure);
}

.plan__for {
  font-size: 0.86rem;
  color: var(--secondary);
  line-height: 1.45;
  min-height: 2.6em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--hairline);
}

.plan__price b {
  font-size: 2rem;
  font-weight: 630;
  letter-spacing: -0.035em;
  color: var(--structure);
  line-height: 1.2;
}

.plan__price span {
  font-size: 0.82rem;
  color: var(--faint);
}

.plan__list {
  list-style: none;
  display: grid;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.45;
}

.plan__list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

.plan__list svg {
  width: 13px;
  height: 13px;
  margin-top: 0.3rem;
  color: var(--faint);
  flex: none;
}

.plan--featured .plan__list svg {
  color: var(--accent);
}

.plan__list b {
  color: var(--structure);
  font-weight: 550;
}

.plan__list li.head {
  grid-template-columns: 1fr;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.4rem;
}

.plan .btn {
  justify-content: center;
  margin-top: auto;
}

/* ═══ FAQ, via <details> ══════════════════════════════════════════════════ */

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  cursor: pointer;
  list-style: none;
  color: var(--structure);
  font-weight: 550;
  font-size: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--faint);
  font-size: 1.1rem;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "\2212";
  color: var(--accent);
}

.faq .answer {
  padding: 0 0.2rem 1.15rem;
  font-size: 0.94rem;
  color: var(--secondary);
  line-height: 1.6;
  max-width: 46em;
  display: grid;
  gap: 0.7rem;
}

/* ═══ roadmap rows ════════════════════════════════════════════════════════ */

.rows {
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 0.4rem 1.2rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .row .status {
    grid-row: 1;
    grid-column: 2;
  }
}

.row__what {
  color: var(--structure);
  font-weight: 550;
  font-size: 0.98rem;
}

.row__why {
  grid-column: 2 / -1;
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .row__why {
    grid-column: 1 / -1;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status--shipped {
  color: var(--structure);
}

.status--now {
  color: var(--accent);
}

/* ═══ callout / quote ═════════════════════════════════════════════════════ */

.callout {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  background: var(--surface);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--structure);
  letter-spacing: -0.014em;
  text-wrap: pretty;
}

.callout small {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--faint);
  line-height: 1.5;
}

/* ═══ prose (docs, long text) ═════════════════════════════════════════════ */

.prose {
  max-width: var(--narrow);
  display: grid;
  gap: 1rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  margin-top: 1.6rem;
}

.prose h3 {
  margin-top: 1rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.68;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
}

.prose li {
  padding-left: 0.25rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.6rem;
}

.prose ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.68em;
  border-radius: 50%;
  background: var(--faint);
}

.prose strong {
  color: var(--structure);
  font-weight: 600;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.1em 0.36em;
  border-radius: 4px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  color: var(--structure);
  white-space: nowrap;
}

.prose a {
  color: var(--structure);
  text-decoration-color: var(--accent-line);
}

.prose a:hover {
  color: var(--accent);
}

/* ═══ closing call to action ══════════════════════════════════════════════ */

.closer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}

.closer .wrap {
  padding-block: clamp(4rem, 8vw, 7rem);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.closer .display {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
}

/* ═══ footer ══════════════════════════════════════════════════════════════ */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--ground-2);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.foot__about {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  max-width: 22rem;
}

.foot__about p {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.55;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--structure);
  font-weight: 620;
  letter-spacing: -0.015em;
}

.foot__brand svg {
  width: 20px;
  height: 20px;
}

.foot__col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.foot__col h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.foot__col a {
  font-size: 0.89rem;
  color: var(--secondary);
  text-decoration: none;
}

.foot__col a:hover {
  color: var(--structure);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--faint);
}

.foot__bottom a {
  color: var(--secondary);
  text-decoration: none;
}

.foot__bottom a:hover {
  color: var(--structure);
}

/* Rule 1 (brand.html §01): the German line leads, and it goes on the site
   before anyone else gets to make the joke. It is not decoration — it is the
   claim, in the language that owns the pun. */
.foot__de {
  margin-left: auto;
  font-style: italic;
  color: var(--secondary);
}

/* ═══ waveform bar heights ════════════════════════════════════════════════
 *
 * The bars are drawn by CSS rather than written into the markup, so a
 * waveform is `<i></i>` repeated and nothing else. Two cycles of coprime
 * length (17 and 13) plus row-reverse give four visibly different figures out
 * of one rule set — which matters, because four tracks that look identical
 * would undercut the exact claim the figure is making.
 */

.wave i:nth-child(17n + 1) { --h: 38% }
.wave i:nth-child(17n + 2) { --h: 62% }
.wave i:nth-child(17n + 3) { --h: 44% }
.wave i:nth-child(17n + 4) { --h: 88% }
.wave i:nth-child(17n + 5) { --h: 55% }
.wave i:nth-child(17n + 6) { --h: 26% }
.wave i:nth-child(17n + 7) { --h: 71% }
.wave i:nth-child(17n + 8) { --h: 47% }
.wave i:nth-child(17n + 9) { --h: 95% }
.wave i:nth-child(17n + 10) { --h: 34% }
.wave i:nth-child(17n + 11) { --h: 58% }
.wave i:nth-child(17n + 12) { --h: 80% }
.wave i:nth-child(17n + 13) { --h: 41% }
.wave i:nth-child(17n + 14) { --h: 66% }
.wave i:nth-child(17n + 15) { --h: 30% }
.wave i:nth-child(17n + 16) { --h: 74% }
.wave i:nth-child(17n + 17) { --h: 50% }

.wave--alt i:nth-child(13n + 1) { --h: 55% }
.wave--alt i:nth-child(13n + 2) { --h: 30% }
.wave--alt i:nth-child(13n + 3) { --h: 78% }
.wave--alt i:nth-child(13n + 4) { --h: 45% }
.wave--alt i:nth-child(13n + 5) { --h: 92% }
.wave--alt i:nth-child(13n + 6) { --h: 38% }
.wave--alt i:nth-child(13n + 7) { --h: 61% }
.wave--alt i:nth-child(13n + 8) { --h: 27% }
.wave--alt i:nth-child(13n + 9) { --h: 84% }
.wave--alt i:nth-child(13n + 10) { --h: 50% }
.wave--alt i:nth-child(13n + 11) { --h: 68% }
.wave--alt i:nth-child(13n + 12) { --h: 33% }
.wave--alt i:nth-child(13n + 13) { --h: 73% }

.wave--rev {
  flex-direction: row-reverse;
}

.wave--quiet i {
  background: color-mix(in oklab, var(--secondary) 34%, transparent);
}

/* ═══ the architecture diagram ════════════════════════════════════════════
 *
 * HTML rather than one wide SVG on purpose: a 900-unit viewBox squeezed into
 * a 360 px phone renders its labels at five pixels, and the diagram is the
 * part of this page an engineer reads most carefully.
 */

.boundary {
  position: relative;
  border: 1px dashed var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 2rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.75rem;
}

.boundary__tag {
  position: absolute;
  top: -0.62rem;
  left: clamp(1.1rem, 3vw, 2rem);
  padding: 0 0.55rem;
  background: var(--ground);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.tier {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.tier__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.tier__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.55rem;
}

.node {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--ground-2);
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.18rem;
  align-content: start;
}

.node__n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--structure);
}

.node__d {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--faint);
}

.node--live {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.node--live .node__n {
  color: var(--accent);
}

.node--out {
  border-style: dashed;
  background: transparent;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: var(--faint);
}

.link::before,
.link::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ═══ small odds and ends ═════════════════════════════════════════════════ */

.checks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--secondary);
  line-height: 1.5;
}

.checks li {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.checks svg {
  width: 14px;
  height: 14px;
  margin-top: 0.3rem;
  color: var(--accent);
  flex: none;
}

.checks b {
  color: var(--structure);
  font-weight: 570;
}

.note {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--faint);
}

.note a {
  color: var(--secondary);
}

.hr {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* A fixed label column, so the descriptions line up. `auto` sized each row to
   its own label and the right-hand edge came out ragged. */
.seg {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 0.5rem 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.seg b {
  color: var(--structure);
  font-weight: 570;
  font-size: 0.95rem;
  text-wrap: balance;
}

.seg span {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .seg {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ═══ print ═══════════════════════════════════════════════════════════════ */

@media print {
  .top,
  .closer,
  .glow,
  .gridlines,
  .navbtn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .card,
  .panel,
  .code,
  .plan {
    break-inside: avoid;
  }
}
