/* ==========================================================================
   Federated Computer — design system
   Modeled on supermemory.ai: a sticky left rail (logo, pages, "On this
   page") beside one narrow reading column. White page, near-black ink, a
   single electric blue, hairline rules, square corners, no shadows. Geist
   for reading, Geist Mono in caps for labels, numbers, and buttons.
   The platform's four layers recur as stacked bars (hero field, fit panel).
   ========================================================================== */

:root {
  /* color */
  --paper: #f4f4f6;
  --ink: #0b1015;
  --ink-86: #0b1015db;
  --ink-68: #0b1015ad;
  --ink-60: #0b101599;
  --ink-45: #0b101573;
  --ink-22: #0b101538;
  --rule: #dfdfdf;
  --blue: #0562ef;
  --blue-deep: #0450c8;
  --blue-7: #0562ef12;
  --blue-11: #0562ef1c;
  --tick: #9ec6f7;
  --warmwhite: #fffbf5;
  --live: #00c763;
  --night: #1a2838;

  /* type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-statement: 40px;
  --lh-statement: 1.12;
  --fs-dek: 17px;
  --fs-body: 17px;
  --lh-body: 1.6;

  /* layout */
  --rail-w: 208px;
  --rail-gap: 108px;
  --col-w: 680px;
  --sp-top: 64px;
  --sp-section: 72px;
  --sp-rule-head: 28px;
  --sp-head-content: 22px;
  --measure: 600px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-hover: cubic-bezier(.25, .1, .25, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-cta: cubic-bezier(.23, 1, .32, 1);
  --dur-hover: .2s;
  --dur-press: .12s;
  --dur-cta: .36s;
}

@media (max-width: 1000px) {
  :root { --sp-top: 48px; }
}
@media (max-width: 600px) {
  :root { --fs-statement: 32px; --fs-dek: 16px; --fs-body: 16px; --sp-section: 60px; }
}

/* ---- utilities ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p, figcaption, dd { text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 500; color: var(--ink); }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--ink); color: #fff; padding: 8px 12px; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow,
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ==========================================================================
   Page frame — rail + column, with a hairline between them
   ========================================================================== */
.page {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, var(--col-w));
  column-gap: var(--rail-gap);
  align-items: start;
  width: min(calc(var(--rail-w) + var(--rail-gap) + var(--col-w)), 100% - 48px);
  margin-inline: auto;
  position: relative;
}
.page::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: calc(var(--rail-w) + 56px);
  width: 1px;
  background: var(--rule);
}

.col { min-width: 0; padding-block: var(--sp-top) 64px; }
.col:focus { outline: none; }

/* ---- rail ---- */
.rail {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding-block: var(--sp-top) 48px;
}
.rail::-webkit-scrollbar { display: none; }
.brand { display: inline-flex; color: var(--ink); }
.brand-logo { width: 200px; height: auto; }

.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nav a {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.006em;
  color: var(--ink-68);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-hover);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav-doors { margin-top: 40px; }
.nav-sub {
  display: flex; flex-direction: column; gap: 10px;
  margin: -2px 0 2px; padding-left: 14px;
  border-left: 1px solid var(--rule);
}
.nav-sub a { font-size: 14px; color: var(--ink-60); position: relative; }
.nav-sub a[aria-current] { color: var(--ink); }
.nav-sub a[aria-current]::before {
  content: ""; position: absolute; left: -15px; top: 2px; bottom: 2px; width: 1px; background: var(--blue);
}

.rail-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.rail-signin { font-size: 14px; color: var(--ink-68); text-decoration: none; transition: color var(--dur-hover) var(--ease-hover); }
.rail-signin:hover, .rail-signin[aria-current] { color: var(--ink); }

.rail-rule {
  border: 0; height: 1px; width: 100%; margin: 28px 0 24px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px);
}

.nav-here { gap: 12px; }
.nav-here::before {
  content: "On this page";
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; line-height: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 2px;
}
.nav-here a {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-60);
  max-width: 100%;
}
.nav-here a::before {
  content: "";
  flex: none;
  width: 16px; height: 2px; margin-top: 9px;
  border-radius: 1px;
  background: var(--ink-22);
  transform-origin: left;
  transition: background-color var(--dur-hover) var(--ease-hover), width .3s var(--ease-out);
}
.nav-here a:has(~ a[aria-current])::before,
.nav-here a[aria-current]::before { background: var(--blue); }
.nav-here a[aria-current] { color: var(--ink); font-weight: 500; }
.nav-here a[aria-current]::before { width: 24px; }
.nav-here a:hover { color: var(--ink); }

/* ---- mobile menu (a <details>, so it works with JS off) ---- */
.menu { display: none; position: static; }
.menu summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--ink); }
.menu-glyph { display: inline-grid; gap: 3.5px; width: 12px; }
.menu-glyph i { display: block; height: 1.5px; background: currentColor; transition: rotate .2s var(--ease-out), translate .2s var(--ease-out); }
.menu[open] .menu-glyph i { translate: 0 2.5px; rotate: 45deg; }
.menu[open] .menu-glyph i + i { translate: 0 -2.5px; rotate: -45deg; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 64px); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  padding: 4px 0 20px;
}
.menu-panel a { text-decoration: none; }
.menu-top { padding: 12px 0; font-size: 15px; color: var(--ink); border-top: 1px solid var(--rule); }
.menu-top:first-child { border-top: 0; }
.menu-sub { display: flex; flex-direction: column; padding: 0 0 10px 14px; margin-top: -4px; }
.menu-sub a { padding: 6px 0; font-size: 14px; color: var(--ink-68); }
.menu-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---- "Apps + AI": a scrolling wall of app tiles at the foot of the rail ---- */
.app-wall { display: none; }
@media (min-width: 1001px) and (min-height: 720px) {
  .rail { display: flex; flex-direction: column; height: 100vh; }
  .app-wall {
    display: flex; flex-direction: column;
    flex: 1 1 0; min-height: 150px; max-height: 340px;
    margin-top: auto; padding-top: 28px;
  }
}
.app-wall-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.app-wall-count { color: var(--ink-45); transition: color var(--dur-hover) var(--ease-hover); }
.app-wall-count .arrow { margin-left: 4px; }
.app-wall-head:hover .app-wall-count { color: var(--blue); }
.app-wall-view {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 28px), transparent);
}
.app-wall-scroll { animation: app-wall 70s linear infinite; }
.app-wall:hover .app-wall-scroll, .app-wall:focus-within .app-wall-scroll { animation-play-state: paused; }
@keyframes app-wall { to { translate: 0 -50%; } }
.app-wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 4px; }
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 2px 9px; border: 1px solid transparent;
  color: var(--ink-60); text-decoration: none;
  transition: color var(--dur-hover) var(--ease-hover), border-color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover);
}
.app-tile:hover, .app-tile:focus-visible { color: var(--blue); border-color: var(--rule); background: var(--paper); }
.app-tile:focus-visible { outline-offset: -2px; }
.app-tile-icon { width: 20px; height: 20px; fill: currentColor; }
.app-tile-letter {
  display: grid; place-items: center;
  border: 1.5px solid currentColor;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1;
}
.app-tile-name {
  max-width: 100%; text-align: center; hyphens: manual;
  font-size: 10.5px; line-height: 1.2; color: var(--ink-68);
}
.app-tile:hover .app-tile-name { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .app-wall-scroll { animation: none; }
  .app-wall-view { overflow-y: auto; scrollbar-width: thin; }
  .app-wall-grid[aria-hidden] { display: none; }
}

@media (max-width: 1000px) {
  .page { grid-template-columns: minmax(0, 1fr); width: min(720px, 100% - 48px); }
  .page::before { display: none; }
  .rail {
    z-index: 10;
    max-height: none; overflow: visible;
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
  }
  .rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand-logo { width: 124px; }
  .menu { display: block; }
  .nav-doors, .rail-actions, .rail-rule, .nav-here { display: none; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-cta);
}
.btn:active { transform: scale(.985); }

/* primary: blue, with a white tile that floods the button on hover */
.btn-primary {
  min-width: 208px;
  gap: 12px;
  padding: 2px 16px 2px 2px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: var(--warmwhite);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  clip-path: inset(2px calc(100% - 40px) 2px 2px);
  transition: clip-path var(--dur-cta) var(--ease-cta);
}
.btn-primary:not(:has(.btn-tile))::before { clip-path: inset(50% 50% 50% 50%); }
.btn-primary:not(:has(.btn-tile)) { padding-left: 16px; }
.btn-tile {
  position: relative; z-index: 1;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--blue);
  transition: translate var(--dur-cta) var(--ease-cta);
}
.btn-label {
  position: relative; z-index: 1;
  flex: 1; text-align: center;
  transition: color .25s ease;
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { clip-path: inset(2px); }
.btn-primary:hover .btn-label, .btn-primary:focus-visible .btn-label { color: var(--blue); }
.btn-primary:hover .btn-tile, .btn-primary:focus-visible .btn-tile { translate: 3px 0; }

.btn-sm { height: 36px; min-width: 0; padding-inline: 14px; font-size: 11px; }

/* secondary: pale blue with corner ticks */
.btn-secondary {
  justify-content: center; gap: 10px;
  padding: 1px 16px;
  background: var(--blue-7);
  color: var(--ink);
  transition: background-color var(--dur-hover) var(--ease-hover), transform var(--dur-press) var(--ease-cta);
}
.btn-secondary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --tk: var(--tick);
  background:
    linear-gradient(var(--tk), var(--tk)) left top / 6.5px 1px,
    linear-gradient(var(--tk), var(--tk)) left top / 1px 6.5px,
    linear-gradient(var(--tk), var(--tk)) right top / 6.5px 1px,
    linear-gradient(var(--tk), var(--tk)) right top / 1px 6.5px,
    linear-gradient(var(--tk), var(--tk)) left bottom / 6.5px 1px,
    linear-gradient(var(--tk), var(--tk)) left bottom / 1px 6.5px,
    linear-gradient(var(--tk), var(--tk)) right bottom / 6.5px 1px,
    linear-gradient(var(--tk), var(--tk)) right bottom / 1px 6.5px;
  background-repeat: no-repeat;
}
.btn-secondary:hover { background: var(--blue-11); }
.btn-secondary:hover::after { --tk: var(--blue); }
.btn-secondary .arrow { margin: 0; }

/* the quiet link */
.more, .btn-text {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  letter-spacing: -.006em;
  color: var(--ink); text-decoration: none;
  transition: color var(--dur-hover) var(--ease-hover);
}
.more:hover, .btn-text:hover { color: var(--blue); }
.arrow {
  display: inline-block; margin-inline-start: .35em; font-weight: 400;
  transition: translate var(--dur-hover) var(--ease-hover);
}
a:hover > .arrow, a:focus-visible > .arrow { translate: 2px 0; }

.actions, .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 520px) {
  .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn, .cta .actions .btn { min-width: 0; }
}
.cta-row { margin-top: 28px; gap: 12px 28px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px;
  background: var(--paper);
  font-size: 13px; line-height: 1.5; color: var(--ink-68);
}
.note-live { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

.statement {
  font-size: var(--fs-statement);
  line-height: var(--lh-statement);
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ink);
}
.note + .statement { margin-top: 32px; }
.dek {
  margin-top: 20px;
  max-width: 32em;
  font-size: var(--fs-dek);
  line-height: 1.6;
  letter-spacing: -.006em;
  color: var(--ink-68);
}
.hero .actions { margin-top: 28px; }

/* the field: a blue plate with the four layers as bars */
.hero-field {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 2.4;
  overflow: hidden;
  background:
    radial-gradient(#ffffff2e 1px, transparent 1.25px) 8px 8px / 16px 16px,
    radial-gradient(120% 90% at 85% 10%, #3b8bff 0%, transparent 60%),
    var(--blue);
  outline: 1px solid #0000001a;
  outline-offset: -1px;
}
.hero-compact .hero-field { aspect-ratio: 3.4; margin-top: 48px; }
.field-stack {
  position: absolute; left: 32px; right: 32px; bottom: 28px;
  display: flex; flex-direction: column-reverse; gap: 10px;
}
.field-layer {
  display: flex; align-items: center; gap: 14px;
}
.field-layer i {
  position: relative; overflow: hidden;
  flex: none;
  display: block; height: 6px;
  width: calc(64% - var(--i) * 12%);
  background: #ffffffd9;
}
.field-layer i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #fff 50%, transparent);
  translate: -100% 0;
  animation: scan 4.8s var(--ease-standard) infinite;
  animation-delay: calc(var(--i) * .5s);
}
@keyframes scan { 0% { translate: -100% 0; } 45%, 100% { translate: 100% 0; } }
.field-layer em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: #ffffffcc; white-space: nowrap;
}
.hero-compact .field-stack { gap: 7px; bottom: 22px; }
.hero-compact .field-layer i { height: 4px; }
@media (max-width: 600px) {
  .hero-field, .hero-compact .hero-field { aspect-ratio: 16 / 10; }
  .field-stack { left: 20px; right: 20px; bottom: 20px; }
  .field-layer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .field-layer i { width: calc(96% - var(--i) * 18%); }
}

/* the agent log: a console window on the field, typed out by the hero's script */
.hero-log { aspect-ratio: auto; padding: 36px 32px; }
/* with a photo: the console sits in the sky, the landscape shows below it */
.hero-log.has-image {
  aspect-ratio: 1.45; padding: 28px;
  background: #7b7f88;
}
.log-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-log.has-image .log-window { position: relative; }
.hero-log.has-image .log-window { max-width: 600px; outline-color: #00000026; }
.log-caption {
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: #ffffffd9; text-shadow: 0 1px 2px #0000004d;
}
.log-window { background: #fff; outline: 1px solid #0000001a; }
.log-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--rule); background: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-60);
}
.log-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-live { display: inline-flex; align-items: center; gap: 6px; flex: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.log-lines { display: flex; flex-direction: column; gap: 7px; padding: 16px 14px 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.log-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.log-tag { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.log-text { color: var(--ink-86); }
.log-line.is-done .log-tag { color: var(--live); }
.log-line.is-done .log-text { color: var(--ink); font-weight: 500; }
/* animated only with JS and motion allowed; otherwise every line simply shows */
.hero-log.is-animated .log-line { opacity: 0; }
.hero-log.is-animated .log-line.is-on { opacity: 1; }
.hero-log.is-animated .log-line.is-on .log-text { animation: log-type calc(var(--n) * 16ms) steps(var(--n)) both; }
.hero-log.is-animated .log-line.is-typed .log-text { animation: none; }
/* a fixed-height window that scrolls as lines arrive, fading out at the top */
.log-lines { position: relative; }
.hero-log.is-animated .log-view {
  height: 262px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px);
  mask-image: linear-gradient(to bottom, transparent, #000 28px);
}
.hero-log.is-animated .log-lines { transition: transform .45s var(--ease-out), opacity .4s var(--ease-standard); }
/* reasoning steps: greyed, with a spinner in place of the cursor */
.log-line.is-think .log-tag { color: var(--ink-45); }
.log-line.is-think .log-text { color: var(--ink-60); font-style: italic; }
.hero-log.is-animated .log-line.is-think.is-current .log-text::after {
  content: "⠋"; width: auto; height: auto; margin-left: 6px; background: none;
  font-style: normal; color: var(--blue); animation: log-spin .8s steps(1) infinite;
}
@keyframes log-spin {
  0% { content: "⠋"; } 12.5% { content: "⠙"; } 25% { content: "⠹"; } 37.5% { content: "⠸"; }
  50% { content: "⠼"; } 62.5% { content: "⠴"; } 75% { content: "⠦"; } 87.5% { content: "⠧"; }
}
.hero-log.is-animated .log-line.is-current .log-text::after {
  content: ""; display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--blue); animation: log-caret 1s steps(1) infinite;
}
.hero-log.is-clearing .log-lines { opacity: 0; }
@keyframes log-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes log-caret { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .hero-log { padding: 20px 16px; }
  /* the console is taller than the sky here: the photo sits lower, fading up into cloud grey */
  .hero-log.has-image { aspect-ratio: auto; padding: 16px 16px 180px; background: #aeb1b8; }
  .log-bg { inset: auto 0 0 0; height: 72%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); mask-image: linear-gradient(to bottom, transparent, #000 18%); }
  .log-lines { font-size: 12px; }
  .log-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-log.is-animated .log-view { height: 380px; }
}

/* the layer panel shown instead of the field on a solution's hero */
.hero-fit {
  margin-top: 48px;
  border: 1px solid var(--rule);
  padding: 18px 20px 12px;
}
.hero-fit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.hero-fit-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.hero-fit .more { font-size: 13px; }

/* ==========================================================================
   Sections — each one opens on a hairline rule
   ========================================================================== */
.section {
  margin-top: var(--sp-section);
  padding-top: var(--sp-rule-head);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
@media (max-width: 1000px) { .section { scroll-margin-top: 80px; } }

.section-head { margin-bottom: var(--sp-head-content); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink);
}
.section-head .lede {
  margin-top: 10px; max-width: var(--measure);
  font-size: var(--fs-body); line-height: 1.6; color: var(--ink-68);
}
.section-head:has(.eyebrow):not(:has(h2)) { margin-bottom: 14px; }

.rule-dashed {
  border: 0; height: 1px; margin: var(--sp-section) 0 0;
  background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px);
}

/* ---- prose ---- */
.prose { display: flex; flex-direction: column; gap: 22px; max-width: var(--measure); }
.prose p, .prose li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
.prose em { font-style: normal; font-weight: 500; }
.prose a { color: var(--blue); text-decoration: none; font-weight: 500; }
.prose a:hover { color: var(--blue-deep); }
.prose ul { display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-45); }
.prose h3 { font-size: 17px; font-weight: 500; }
.mb-2 { margin-bottom: 24px; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 28px; }

/* ---- bordered lists: layers, paths ---- */
.entries { border: 1px solid var(--rule); }
.entries > li + li { border-top: 1px solid var(--rule); }
.entry, .path-row {
  display: grid;
  color: var(--ink); text-decoration: none;
  transition: background-color var(--dur-hover) var(--ease-hover);
}
.entry:hover, .path-row:hover { background: var(--paper); }
.entry:focus-visible, .path-row:focus-visible { outline-offset: -2px; }
.entry-n {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; color: var(--ink-45);
}

.layer-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start; gap: 16px;
  padding: 18px 20px;
}
.layer-row .entry-n { padding-top: 4px; }
.layer-body { display: flex; flex-direction: column; gap: 4px; }
.entry-title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.entry-text { font-size: 15px; line-height: 1.55; color: var(--ink-68); }
.entry-text p { display: inline; }
.entry-go { display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-45); padding-top: 2px; }
.entry:hover .entry-go { color: var(--blue); }

.path-row {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px; padding: 22px 20px;
}
.path-who {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--ink-60); line-height: 1.45;
}
.path-body h3 { margin-top: 10px; font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
.path-body p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-68); }
.path-link { margin-top: 14px; font-size: 14px; }
.path-row:hover .path-link { color: var(--blue); }
.path-fit { padding-top: 2px; }
@media (max-width: 700px) {
  .path-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .layer-row { grid-template-columns: 32px minmax(0, 1fr); }
  .entry-go { display: none; }
}

/* ---- the layer fit panel ---- */
.fit { display: flex; flex-direction: column; }
.fit-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.fit-row:first-child { border-top: 0; }
.fit-bar { display: block; height: 4px; background: var(--paper); }
.fit-bar span { display: block; height: 100%; }
.fit-row.is-yes .fit-bar span { background: var(--blue); }
.fit-row.is-own .fit-bar span {
  background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 6px);
}
.fit-row.is-no .fit-bar span { background: transparent; }
.fit-name { color: var(--ink); }
.fit-row.is-no .fit-name { color: var(--ink-45); }
.fit-state {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--blue);
}
.fit-row.is-own .fit-state { color: var(--ink); }
.fit-row.is-no .fit-state { color: var(--ink-45); }
.fit-compact .fit-row { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13px; }
.fit-compact .fit-state { display: none; }
.fit-compact .fit-bar { height: 3px; }

/* layer strip: pinned above the paths list, lit by the hovered path (mouse devices only) */
.layer-strip { display: none; }
@media (hover: hover) and (min-width: 1001px) {
  html.js .layer-strip {
    display: block; position: sticky; top: 0; z-index: 2;
    margin-bottom: 12px; padding: 12px 0 14px;
    background: #fff; border-bottom: 1px solid var(--rule);
  }
}
.layer-strip-label {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.layer-strip .strip-on, .layer-strip.is-active .strip-idle { display: none; }
.layer-strip.is-active .strip-on { display: inline; color: var(--ink); }
.layer-strip-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.strip-layer { display: flex; flex-direction: column; gap: 7px; }
.strip-layer i { display: block; height: 6px; background: var(--ink-22); transition: background-color var(--dur-hover) var(--ease-hover); }
.strip-layer em { font-style: normal; font-size: 13px; color: var(--ink-68); transition: color var(--dur-hover) var(--ease-hover); }
.strip-layer.is-lit i { background: var(--blue); }
.strip-layer.is-lit em { color: var(--ink); font-weight: 500; }
.strip-layer.is-own i { background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 6px); }
.strip-layer.is-own em { color: var(--ink); }
.strip-layer.is-off i { background: var(--paper); }
.strip-layer.is-off em { color: var(--ink-45); }
/* the same states on a layers section's rows */
.layer-row { transition: background-color var(--dur-hover) var(--ease-hover), opacity var(--dur-hover) var(--ease-hover); }
.layer-row.is-lit, .layer-row.is-own { background: var(--blue-7); }
.layer-row.is-lit .entry-n, .layer-row.is-own .entry-n { color: var(--blue); }
.layer-row.is-off { opacity: .45; }

/* ---- stats ---- */
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.section-stats:not(:has(.section-head)) { padding-top: 32px; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 18px;
  padding: 18px 20px 22px;
  border: 1px solid var(--rule);
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.45;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.stat-value {
  font-size: 40px; line-height: 1; letter-spacing: -.035em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- quote ---- */
.said, .pull-quote {
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 22px;
}
.said blockquote, .said blockquote p, .pull-quote {
  font-size: 22px; line-height: 1.45; letter-spacing: -.015em; color: var(--ink-86); max-width: 30em;
}
.said figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-60); }
.said-list { display: flex; flex-direction: column; gap: 36px; }
.said-list .said blockquote, .said-list .said blockquote p { font-size: 18px; line-height: 1.55; }
.said-list .said:only-child blockquote, .said-list .said:only-child blockquote p { font-size: 22px; line-height: 1.45; }
.said-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.said-card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 20px 20px 18px; border: 1px solid var(--rule); }
.said-card blockquote, .said-card blockquote p { margin: 0; font-size: 16px; line-height: 1.55; letter-spacing: -.005em; color: var(--ink-86); }
.said-card blockquote::before { content: "\201C"; }
.said-card blockquote::after { content: "\201D"; }
.said-who { display: flex; align-items: center; gap: 12px; }
.said-photo { flex: none; width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--rule); background: var(--paper); }
.said-initials { display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-60); }
.said-id { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.4; }
.said-name { font-weight: 500; color: var(--ink); }
.said-role, .said-role p { margin: 0; color: var(--ink-60); }
.said-role a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.said-role a:hover { color: var(--blue); border-color: currentColor; }
@media (max-width: 640px) { .said-cards { grid-template-columns: minmax(0, 1fr); } }
.said-savings { margin-top: 40px; }
.said-savings-title { margin-bottom: 14px; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 400; }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.compare-table th, .compare-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.compare-table thead th {
  border-top: 0; background: var(--paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.compare-table thead th a { text-decoration: none; color: var(--ink); }
.compare-table thead th a:hover { color: var(--blue); }
.compare-table tbody th { font-weight: 500; color: var(--ink); }
.compare-table td.bad { color: var(--ink-60); }
.compare-table td.good { color: var(--ink); font-weight: 500; }
.compare-table td.good::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; background: var(--blue);
}
.matrix-table { min-width: 620px; }
.matrix-table thead th { line-height: 1.35; }
.matrix-layer {
  display: block; margin-top: 2px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-45);
}
.matrix-table td { white-space: nowrap; }
.m-yes { color: var(--blue); font-weight: 500; }
.m-own { color: var(--ink); }
.m-no  { color: var(--ink-45); }
.m-note { color: var(--ink-68); white-space: normal !important; }

/* ---- checklist & features ---- */
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.check-list li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.55; color: var(--ink-86); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 10px; border: 1px solid var(--blue); background: var(--blue-11);
}
.check-list li p { margin: 0; }
@media (max-width: 640px) { .check-list { grid-template-columns: minmax(0, 1fr); } }

.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px;
  font-size: var(--fs-body); line-height: 1.6; color: var(--ink-68);
}
.feature-list li::before {
  content: ""; grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 7px; background: var(--blue);
}
.feature-list li strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.feature-list li p { margin: 2px 0 0; max-width: var(--measure); }

/* ---- steps ---- */
.step-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step-row.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { border: 1px solid var(--rule); padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.step-num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--blue); }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-68); }
@media (max-width: 700px) { .step-row, .step-row.steps-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---- faq & app directory (native <details>) ---- */
.faq-list, .app-directory { border: 1px solid var(--rule); }
.faq-item + .faq-item, .app-category + .app-category { border-top: 1px solid var(--rule); }
.faq-item summary, .app-category summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4;
  transition: background-color var(--dur-hover) var(--ease-hover);
}
.faq-item summary:hover, .app-category summary:hover { background: var(--paper); }
.faq-item summary::-webkit-details-marker, .app-category summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .app-category summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  background:
    linear-gradient(var(--ink-60), var(--ink-60)) center / 11px 1px no-repeat,
    linear-gradient(var(--ink-60), var(--ink-60)) center / 1px 11px no-repeat;
  transition: rotate .25s var(--ease-out);
}
.faq-item[open] summary::after, .app-category[open] summary::after { rotate: 45deg; }
.faq-answer { padding: 0 18px 18px; max-width: calc(var(--measure) + 36px); }
.faq-answer p { font-size: 15px; line-height: 1.6; color: var(--ink-68); }

.app-category summary { justify-content: flex-start; }
.app-category summary::after { margin-left: auto; }
.app-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-45);
  border: 1px solid var(--rule); padding: 1px 6px;
}
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.app-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; font-size: 14px; line-height: 1.5;
  border-bottom: 1px solid var(--rule);
}
.app-item:nth-child(odd) { border-right: 1px solid var(--rule); }
.app-item:nth-last-child(-n + 2):nth-child(odd), .app-item:last-child { border-bottom: 0; }
.app-name { font-weight: 500; }
.app-desc { color: var(--ink-68); }
.app-link { color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 500; }
.app-link:hover { color: var(--blue-deep); }
@media (max-width: 600px) {
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-item:nth-child(odd) { border-right: 0; }
  .app-item:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
}

/* ---- callout ---- */
.callout {
  background: var(--paper);
  border-left: 2px solid var(--blue);
  padding: 18px 22px;
}
.callout p { font-size: 16px; line-height: 1.6; color: var(--ink-86); }

/* ---- founder ---- */
.founder-block { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 28px; align-items: start; }
.founder-photo {
  aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(var(--ink-22) 1px, transparent 1.25px) 8px 8px / 16px 16px, var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-45);
}
.founder-body h3 { font-size: 20px; letter-spacing: -.015em; }
.founder-role { display: block; margin: 4px 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.founder-body p { font-size: var(--fs-body); line-height: 1.6; margin-bottom: 14px; }
@media (max-width: 600px) { .founder-block { grid-template-columns: minmax(0, 1fr); } .founder-photo { width: 120px; } }

/* ---- architecture diagram ---- */
.stack-diagram { display: flex; flex-direction: column-reverse; border: 1px solid var(--rule); }
.stack-diagram .layer {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.stack-diagram .layer:last-child { border-top: 0; }
.stack-diagram .layer::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0;
  width: 2px; background: var(--blue); opacity: calc(.25 + var(--o, 0));
}
.stack-diagram .layer:nth-child(1) { --o: .75; }
.stack-diagram .layer:nth-child(2) { --o: .5; }
.stack-diagram .layer:nth-child(3) { --o: .25; }
.stack-diagram .layer-num { grid-row: 1 / span 2; padding-top: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--blue); }
.stack-diagram .layer h4 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.stack-diagram .layer p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-68); }
.mcp-spine {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.mcp-spine::before, .mcp-spine::after {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px);
}

/* ---- split ---- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split-col { border: 1px solid var(--rule); padding: 18px 20px 20px; }
.split-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.split-list { display: flex; flex-direction: column; gap: 10px; }
.split-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-86); }
.split-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--blue); }
.split-col + .split-col .split-list li::before { background: transparent; border: 1px solid var(--ink-45); }
.split-list li p { margin: 0; }
@media (max-width: 700px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---- pricing ---- */
/* The switch: visually hidden radios drive which panel shows (up to 4). */
.plan-radio { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.plan-tabs { display: inline-flex; margin-bottom: 28px; border: 1px solid var(--rule); }
.plan-tabs label {
  padding: 9px 16px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-60);
  transition: color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover);
}
.plan-tabs label + label { border-left: 1px solid var(--rule); }
.plan-tabs label:hover { color: var(--ink); background: var(--paper); }
.plan-switch:has(.plan-radio) .plan-panel { display: none; }
.plan-radio:nth-of-type(1):checked ~ .plan-panels > .plan-panel:nth-child(1),
.plan-radio:nth-of-type(2):checked ~ .plan-panels > .plan-panel:nth-child(2),
.plan-radio:nth-of-type(3):checked ~ .plan-panels > .plan-panel:nth-child(3),
.plan-radio:nth-of-type(4):checked ~ .plan-panels > .plan-panel:nth-child(4) { display: block; }
.plan-radio:nth-of-type(1):checked ~ .plan-tabs label:nth-child(1),
.plan-radio:nth-of-type(2):checked ~ .plan-tabs label:nth-child(2),
.plan-radio:nth-of-type(3):checked ~ .plan-tabs label:nth-child(3),
.plan-radio:nth-of-type(4):checked ~ .plan-tabs label:nth-child(4) { color: #fff; background: var(--blue); }
.plan-radio:nth-of-type(1):focus-visible ~ .plan-tabs label:nth-child(1),
.plan-radio:nth-of-type(2):focus-visible ~ .plan-tabs label:nth-child(2),
.plan-radio:nth-of-type(3):focus-visible ~ .plan-tabs label:nth-child(3),
.plan-radio:nth-of-type(4):focus-visible ~ .plan-tabs label:nth-child(4) { outline: 2px solid var(--blue); outline-offset: 3px; }
.plan-panel { scroll-margin-top: 24px; }
.plan-lede { margin: 0 0 22px; max-width: var(--measure); font-size: var(--fs-body); line-height: 1.6; color: var(--ink-68); }
.plan-block { margin-top: 40px; }
.plan-subhead {
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.plan-note { margin: 16px 0 0; max-width: var(--measure); font-size: 13px; line-height: 1.5; color: var(--ink-68); }
.plan-note-top { margin: -6px 0 16px; }

.tier-list { display: flex; flex-direction: column; gap: 12px; }
.tier {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding: 20px 20px 22px; border: 1px solid var(--rule);
}
.tier-name, .addon-name {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.tier-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tier-amount { font-size: 40px; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier-unit { font-size: 13px; line-height: 1.4; color: var(--ink-60); }
.tier-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-68); }
.tier-intro { margin: 0 0 12px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.tier-features { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.tier-features li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: var(--ink-86); }
.tier-features li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border: 1px solid var(--blue); background: var(--blue-11);
}
.tier-features li p { margin: 0; }
@media (max-width: 640px) { .tier { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.addon-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.addon { padding: 18px 20px 20px; border: 1px solid var(--rule); }
.addon .tier-amount { font-size: 32px; }
.addon-body { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-68); }
.addon-body p { margin: 0; }
@media (max-width: 640px) { .addon-row { grid-template-columns: minmax(0, 1fr); } }

.app-price-table { min-width: 520px; }
.app-price-table td { color: var(--ink-68); }
.app-price-table td p { margin: 0; }
.app-price-table .app-price { white-space: nowrap; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---- long-form pages: apps, legal ---- */
.doc h2 { margin-top: 18px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; font-weight: 400; }
.doc h3 { margin-top: 4px; font-size: 17px; font-weight: 500; }
.doc > :first-child { margin-top: 0; }
.doc strong { font-weight: 500; }
.doc ul ul { margin-top: 8px; }
.doc ul ul li { font-size: 15px; color: var(--ink-86); }
.doc li p { margin: 0; }
.doc img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.doc table {
  display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; border: 1px solid var(--rule);
  font-size: 14px; line-height: 1.45;
}
.doc th, .doc td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.doc thead th {
  border-top: 0; background: var(--paper); white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.doc tbody td:first-child { min-width: 160px; font-weight: 500; color: var(--ink); }
.doc td { color: var(--ink-86); }
.doc tbody td:not(:first-child) { white-space: nowrap; }

.app-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); margin: 0; }
.app-facts > div { padding: 14px 18px 16px; border-top: 1px solid var(--rule); }
.app-facts > div:nth-child(-n + 2) { border-top: 0; }
.app-facts > div:nth-child(even) { border-left: 1px solid var(--rule); }
.app-facts dt {
  margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.app-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.app-facts a { color: var(--blue); text-decoration: none; font-weight: 500; }
.app-facts-more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
@media (max-width: 600px) {
  .app-facts { grid-template-columns: minmax(0, 1fr); }
  .app-facts > div:nth-child(2) { border-top: 1px solid var(--rule); }
  .app-facts > div:nth-child(even) { border-left: 0; }
}
.app-name a { color: inherit; text-decoration: none; }
.app-name a:hover { color: var(--blue); }

/* ---- savings: bar comparison + calculator ---- */
.bar-chart { margin: 0 0 40px; }
.bar-chart-title { margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; align-items: center; gap: 14px; font-size: 15px; }
.bar-name { color: var(--ink-86); }
.bar-track { height: 14px; }
.bar-fill { display: block; height: 100%; background: var(--ink-22); }
.bar-row.is-highlight .bar-fill { background: var(--blue); }
.bar-row.is-highlight .bar-name, .bar-row.is-highlight .bar-value { color: var(--ink); font-weight: 500; }
.bar-value { text-align: right; color: var(--ink-68); font-variant-numeric: tabular-nums; }

.savings-calc { border: 1px solid var(--rule); padding: 20px 20px 22px; }
.calc-apps { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.calc-app {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 7px 10px; border: 1px solid var(--rule); cursor: pointer; font-size: 14px; line-height: 1.35;
  transition: border-color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover);
}
.calc-app:hover { background: var(--paper); }
.calc-app:has(input:checked) { border-color: var(--blue); background: var(--blue-7); }
.calc-app input { margin: 0; accent-color: var(--blue); grid-row: span 2; align-self: center; }
.calc-app-name { color: var(--ink); }
.calc-app-cost { grid-column: 2; font-size: 12px; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.calc-users { margin-top: 28px; }
.calc-users .plan-subhead { display: block; }
.calc-users-row { display: flex; align-items: center; gap: 16px; }
.calc-users-row input { flex: 1; accent-color: var(--blue); }
.calc-users-value { min-width: 64px; text-align: right; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
html:not(.js) .calc-result { display: none; }
/* compact: one result, with a link to the full calculator beside it */
.savings-calc.is-compact .calc-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.savings-calc.is-compact .calc-app { padding: 6px 9px; font-size: 13px; }
.savings-calc.is-compact .calc-result { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.calc-more { justify-self: end; margin-bottom: 4px; }
.calc-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 14px 16px 16px; border: 1px solid var(--rule); }
.calc-stat.is-highlight { border-color: var(--blue); }
.calc-stat-label { flex-basis: 100%; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.calc-stat-value { font-size: 30px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-stat.is-highlight .calc-stat-value { color: var(--blue); }
.calc-stat-unit { font-size: 13px; color: var(--ink-60); }
@media (max-width: 640px) {
  .calc-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-result, .savings-calc.is-compact .calc-result { grid-template-columns: minmax(0, 1fr); }
  .savings-calc.is-compact .calc-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-more { justify-self: start; }
  .bar-row { grid-template-columns: 84px minmax(0, 1fr) 60px; gap: 10px; }
}

/* ==========================================================================
   Closing call to action — a dark plate that bleeds past the column
   ========================================================================== */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--sp-section) -32px 0;
  padding: 36px 32px;
  color: var(--warmwhite);
  background:
    radial-gradient(#ffffff1f 1px, transparent 1.25px) 8px 8px / 16px 16px,
    radial-gradient(90% 120% at 100% 0%, #0562ef99 0%, transparent 60%),
    var(--night);
}
.cta::after {
  content: ""; position: absolute; right: 32px; top: 40px; z-index: -1;
  width: 22%; height: 34px;
  background:
    linear-gradient(#ffffff40, #ffffff40) 0 0 / 55% 4px no-repeat,
    linear-gradient(#ffffff59, #ffffff59) 0 10px / 70% 4px no-repeat,
    linear-gradient(#ffffff80, #ffffff80) 0 20px / 85% 4px no-repeat,
    linear-gradient(#ffffffb3, #ffffffb3) 0 30px / 100% 4px no-repeat;
}
.cta-title { max-width: min(18em, 70%); font-size: 32px; line-height: 1.2; letter-spacing: -.02em; color: var(--warmwhite); }
.cta-text { margin-top: 10px; max-width: min(30em, 70%); font-size: 16px; line-height: 1.6; color: #fffbf5cc; }
.cta .actions { margin-top: 32px; }
.cta .btn-primary { border-color: #fff; }
.cta .btn-secondary { background: #ffffff14; color: var(--warmwhite); }
.cta .btn-secondary:hover { background: #ffffff24; }
.cta .btn-secondary::after { --tk: #ffffff59; }
@media (max-width: 1000px) {
  .cta { margin-inline: -24px; padding: 28px 24px; }
  .cta::after { display: none; }
  .cta-title, .cta-text { max-width: 30em; }
}
@media (max-width: 600px) { .cta-title { font-size: 26px; } }

/* ==========================================================================
   Sign-in form
   ========================================================================== */
.form-page { max-width: 420px; }
.form-page .statement { margin: 14px 0 32px; font-size: 34px; }
.form-page form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.field input {
  height: 44px; padding: 0 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 0; background: #fff;
  transition: border-color var(--dur-hover) var(--ease-hover);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-11); }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-68); }
.field-row label { display: inline-flex; gap: 8px; align-items: center; }
.field-row input { accent-color: var(--blue); }
.field-row a { color: var(--ink-68); text-decoration: none; }
.field-row a:hover { color: var(--blue); }
.form-page .btn-primary { width: 100%; margin-top: 6px; }
.form-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-68); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--ink-60); }
.form-note a { color: var(--ink); }

/* ==========================================================================
   Footer — the last thing in the column
   ========================================================================== */
.foot {
  margin-top: var(--sp-section);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 13px; line-height: 1.5; color: var(--ink-60);
}
.foot a { color: var(--ink-68); text-decoration: none; transition: color var(--dur-hover) var(--ease-hover); }
.foot a:hover { color: var(--ink); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.foot-mark .brand-logo { width: 200px; }
.foot-line { max-width: 34ch; color: var(--ink-68); }
.foot-place, .foot-head {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 14px;
  letter-spacing: .06em; text-transform: uppercase;
}
.foot-head { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.foot-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-legal {
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}
.foot-social { display: flex; gap: 16px; margin-top: 4px; font-size: 13px; }
.foot-social .arrow { margin-left: 3px; }
.foot-policy { white-space: nowrap; }
.foot-top { margin-left: auto; white-space: nowrap; display: inline-flex; gap: 5px; }
.foot-up { display: inline-block; transition: translate var(--dur-hover) var(--ease-hover); }
.foot-top:hover .foot-up { translate: 0 -2px; }
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { flex-wrap: wrap; row-gap: 10px; }
  .foot-top { margin-left: 0; }
}

/* ==========================================================================
   Reveal — sections rise in as they scroll into view (JS adds html.js)
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 10px;
  transition: opacity .6s var(--ease-standard), translate .6s var(--ease-standard);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-visible { opacity: 1; translate: 0; }
/* the first screen paints at once — never hidden behind an animation */
html.js .hero [data-reveal] { opacity: 1; translate: 0; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; translate: 0; transition: none; }
  .field-layer i::after { animation: none; display: none; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
