@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/MartianMono-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ==========================================================================
   STREAMDRM ARCHITECTURAL DESIGN SYSTEM (TradersProxy v3 Frame & Primitives)
   ========================================================================== */
:root {
  color-scheme: light;

  /* Grounds: canvas (page), mist (alternate band / recess), panel (white surface) */
  --bg: #FAFAFA;
  --bg2: #F3F4F6;
  --panel: #FFFFFF;
  --panel2: #F8FAFC;
  --bg-stage: #0F172A;

  /* Ink hierarchy (WCAG AAA/AA verified) */
  --fg: #0A0A0A;
  --fg2: #334155;
  --fg3: #475569;

  /* Architectural hairlines & structural borders */
  --line: #E2E8F0;
  --line2: #CBD5E1;

  /* Primary inverse & cobalt accent */
  --inv: #0A0A0A;
  --invfg: #FAFAFA;
  --ac: #1D4ED8;
  --ac-hover: #1E40AF;
  --ac2: #EFF6FF;
  --acl: #BFDBFE;
  /* Text on an accent, ok or danger fill. Dark mode lightens those fills, so it flips to ink. */
  --on-ac: #FFFFFF;

  /* Semantic verification signals */
  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;

  /* Legacy aliases for use-case pages & workbench */
  --bg-canvas: var(--bg);
  --bg-surface: var(--panel);
  --bg-subtle: var(--bg2);
  --text-primary: var(--fg);
  --text-body: var(--fg2);
  --text-muted: var(--fg3);
  --accent-primary: var(--ac);
  --accent-primary-hover: var(--ac-hover);
  --accent-ink: var(--inv);
  --status-verified: var(--ok);
  --status-verified-bg: var(--ok-bg);
  --status-alert: var(--danger);
  --status-alert-bg: var(--danger-bg);
  --border-hairline: var(--line);
  --border-strong: var(--line2);

  /* Chartbook-era aliases still used by the prose, docs and stage rules below.
     They were undefined before 2026-11-09, so those rules fell back to inherited colours. */
  --ink: var(--fg);
  --ink-2: var(--fg2);
  --ink-3: var(--fg3);
  --sheet: var(--panel);
  --paper: var(--bg2);
  --grid: var(--line);
  --grid-strong: var(--line2);
  --trace: var(--ac);
  --trace-hover: var(--ac-hover);
  --trace-wash: var(--ac2);
  --clear: var(--ok);
  --clear-wash: var(--ok-bg);
  --match: var(--danger);
  --plate: var(--bg-stage);
  --plate-grid: #1E293B;
  --plate-ink: #F8FAFC;

  /* Typography */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Frame & fluid spacing (TradersProxy v3 exact geometry) */
  --frame-max: 1240px;
  --frame-pad: clamp(12px, 2.5vw, 28px);
  --rail-pad-y: clamp(64px, 8.5vw, 104px);
  --rail-pad-x: clamp(20px, 4vw, 48px);
  --wrap: 1240px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --radius-card: 14px;
  --radius-panel: 18px;

  /* Multi-tier elevation tokens */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 16px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 6px 20px rgba(15, 23, 42, 0.06), 0 20px 40px -10px rgba(15, 23, 42, 0.1);
}

/* Dark theme. theme.js sets <html data-theme> before first paint from the visitor's saved
   choice or the operating system setting. Same token names, so every rule below works in
   both themes. Text contrast measured 2026-11-09: fg3 on bg 6.0:1, ac on panel 5.6:1,
   ok on bg 10.1:1, danger on bg 6.3:1 (all AA). */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0E1116;
  --bg2: #151A22;
  --panel: #181D26;
  --panel2: #1C222C;
  --bg-stage: #05070B;

  --fg: #F1F4F8;
  --fg2: #B7C0CD;
  --fg3: #8F9AAA;

  --line: #273040;
  --line2: #344052;

  --inv: #F1F4F8;
  --invfg: #0E1116;
  --ac: #6C8CFF;
  --ac-hover: #8AA4FF;
  --ac2: #1A2340;
  --acl: #2B3A66;
  --on-ac: #0E1116;

  --ok: #3DD68C;
  --ok-bg: #0F2A1E;
  --danger: #FF6B5E;
  --danger-bg: #2C1512;

  --plate-grid: #273040;
  --plate-ink: #F1F4F8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 16px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 6px 20px rgba(0, 0, 0, 0.5), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  max-width: 100%;
}

/* The header is sticky: anchored sections must land below it, not under it. */
section[id],
[id^="sandbox"] {
  scroll-margin-top: 84px;
}

/* Long identifiers such as HTMLCanvasElement.prototype.captureStream must wrap on phones;
   an unbreakable inline code token was 385 px wide at a 375 px viewport (sweep 2026-11-09). */
code, kbd, samp {
  overflow-wrap: anywhere;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

code, pre {
  font-family: var(--font-mono);
}

p code, li code, td code {
  font-size: 13px;
  background-color: var(--bg2);
  color: var(--fg);
  padding: 2px 6px;
  border-radius: 4px;
}

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

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--inv);
  color: var(--invfg);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 200;
}
.skip:focus {
  top: 12px;
}

/* ==========================================================================
   PAGE FRAME PRIMITIVES (.tp-sec, .tp-wrap, .tp-rail, .tp-center, .tp-split)
   ========================================================================== */
.tp-sec,
.hero,
.sec,
.sec--alt,
.sec--rule,
.cta {
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

.sec--alt {
  background-color: var(--bg2);
}

.tp-wrap,
.wrap {
  max-width: var(--frame-max);
  margin-inline: auto;
  border-inline: 0; /* DE-BOXED: Eliminates rigid 1240px vertical rails */
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.tp-wrap--hero {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(36px, 4vw, 48px);
}

.tp-wrap--strip {
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
}

.tp-rail {
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tp-rail--hero {
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tp-rail--head {
  padding-bottom: clamp(36px, 4.5vw, 52px);
  max-width: 960px;
  margin-inline: auto;
}

.tp-rail--flush {
  padding: 0;
}

.tp-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tp-center > .tp-lede,
.tp-center > .tp-body,
.tp-center > .sec__p {
  margin-inline: auto;
}

/* ==========================================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================================== */
.tp-eyebrow,
.sec__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ac);
  background: transparent;
  border: 0;
  padding: 0;
}

.tp-h1,
.hero__h1,
.display {
  margin: 22px 0 0;
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--fg);
  max-width: 36ch; /* Wide headline canopy */
  text-wrap: balance;
}

.tp-center .tp-h1,
.hero-in .tp-h1 {
  margin-inline: auto;
}

.hero-dim,
.hero__dim {
  color: var(--fg3);
  font-weight: 600;
  line-height: 1.3;
}

.tp-h2,
.sec__h2,
.headline {
  margin: 16px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--fg);
  max-width: 38ch; /* Wide section canopy */
  text-wrap: balance;
}

.tp-center .tp-h2,
.tp-center .sec__h2 {
  margin-inline: auto;
}

/* Inside a split the column sets the measure, not a character cap. Side by side, a column is
   never wider than the caps below would allow (rail 1144 px, two columns), so nothing changes
   there; once the split stacks, the copy runs the full width instead of stopping at 64ch and
   leaving the right side empty. Headings fill their first line instead of balancing short. */
.tp-split .tp-h2 {
  max-width: none;
  text-wrap: pretty;
}

.tp-split :is(.tp-body, .tp-lede, .tp-small, .sec__p) {
  max-width: none;
}

.tp-h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg);
}

.tp-h3--lg {
  font-size: 24px;
  letter-spacing: -0.025em;
}

/* Companion Subtitles: Balanced width under major headings */
.tp-lede,
.hero-sub,
.sec__p,
.lede,
.sec__lede {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
  color: var(--fg2);
  max-width: min(100%, 740px);
  text-wrap: pretty;
}

.tp-body {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--fg2);
  max-width: 64ch;
}

.tp-body + .tp-body {
  margin-top: 16px;
}

.tp-body--strong {
  color: var(--fg);
  font-weight: 600;
}

.tp-small {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--fg2);
}

.tp-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg3);
}

.tp-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--fg3);
}

.tp-mono--ac {
  color: var(--ac);
}

.tp-mono--fg2 {
  color: var(--fg2);
}

.tp-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ok);
  background-color: var(--ok-bg);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   HEADER / NAVIGATION (Nav.astro Single-Line Standard)
   ========================================================================== */
.nav,
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav__in,
.top__in {
  max-width: var(--frame-max);
  margin-inline: auto;
  height: 64px;
  padding-inline: var(--frame-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand,
.top__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.nav__logo {
  height: 28px;
  width: auto;
}

.nav__links,
.top__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav__links a,
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg2);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__links a:hover,
.top__nav a:hover,
.nav__links a[aria-current="page"] {
  color: var(--fg);
  background-color: var(--bg2);
}

.nav__cta,
.top__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  padding: 8px 10px;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--fg);
}

.nav__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background-color: var(--inv);
  color: var(--invfg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav__pill:hover {
  background-color: var(--ac);
}

/* Light/dark switch. One SVG, the sun or the moon shown by theme. */
.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--panel);
  color: var(--fg2);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__theme:hover {
  color: var(--fg);
  border-color: var(--line2);
}

.nav__theme svg {
  width: 18px;
  height: 18px;
}

.nav__theme-moon,
:root[data-theme="dark"] .nav__theme-sun {
  display: none;
}

:root[data-theme="dark"] .nav__theme-moon {
  display: block;
}

/* The wordmark is dark ink on light, and the reverse file on dark. */
.nav__logo--dark,
.drawer__logo--dark,
.foot__logo--dark,
:root[data-theme="dark"] .nav__logo--light,
:root[data-theme="dark"] .drawer__logo--light,
:root[data-theme="dark"] .foot__logo--light {
  display: none;
}

:root[data-theme="dark"] .nav__logo--dark,
:root[data-theme="dark"] .drawer__logo--dark,
:root[data-theme="dark"] .foot__logo--dark {
  display: block;
}

/* ==========================================================================
   BUTTONS, PILLS & CTAS (Cta.astro & v3.css Standard)
   ========================================================================== */
.tp-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tp-btn--primary,
.btn--primary {
  background-color: var(--ac);
  color: var(--on-ac);
}

.tp-btn--primary:hover,
.btn--primary:hover {
  background-color: var(--ac-hover);
  color: var(--on-ac);
}

.tp-btn--dark,
.btn--dark {
  background-color: var(--inv);
  color: var(--invfg);
}

.tp-btn--dark:hover,
.btn--dark:hover {
  background-color: #1E293B;
}

.tp-btn--secondary,
.btn--secondary,
.btn--ghost {
  background-color: var(--bg2);
  color: var(--fg);
  font-weight: 600;
  padding-inline: 22px;
}

.tp-btn--secondary:hover,
.btn--secondary:hover,
.btn--ghost:hover {
  background-color: var(--line);
  color: var(--fg);
}

.tp-btn--sm,
.btn--sm {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.tp-btn--block,
.btn--block {
  display: flex;
  width: 100%;
}

.tp-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tp-actions--start {
  justify-content: flex-start;
}

.tp-terms {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg3);
  text-wrap: balance;
}

.tp-link,
.get-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac);
  border-bottom: 1px solid var(--acl);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tp-link:hover,
.get-link:hover {
  color: var(--ac-hover);
  border-bottom-color: var(--ac-hover);
}

/* ==========================================================================
   CENTERED HERO + RISING PRODUCT STAGE (index.astro + RouteWindow.astro)
   ========================================================================== */
.hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  min-height: 34px;
  max-width: 100%;
  border-radius: 999px;
  background-color: var(--bg2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--fg2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-pill:hover {
  background-color: var(--line);
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--fg);
}

.hero-pill__badge,
.hero-pill__tag {
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: var(--ac);
  color: var(--on-ac);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-pill__text {
  color: var(--fg2);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-pill__arr {
  flex-shrink: 0;
  color: var(--ac);
  font-weight: 700;
  font-size: 12px;
}

.hero-sub {
  max-width: min(100%, 800px);
  margin-inline: auto;
}

/* Rising Hero Stage Window (RouteWindow.astro architecture) */
.rw {
  margin-top: 48px;
  width: 100%;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background-color: var(--panel);
  box-shadow: var(--shadow-lg);
}

.rw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background-color: var(--panel2);
}

.rw-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rw-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--line2);
}

.rw-legend {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.rw-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg2);
}

.rw-sw {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--ac);
}

.rw-sw--ok {
  background-color: var(--ok);
}

/* 3-Column Pipeline Stage inside Hero Window */
.rw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--line);
}

.rw-stage {
  background-color: var(--panel);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rw-stage__step {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ac);
  text-transform: uppercase;
}

.rw-stage__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg2);
  background-color: var(--bg2);
  padding: 4px 8px;
  border-radius: 6px;
}

.rw-stage__badge--ok {
  color: var(--ok);
  background-color: var(--ok-bg);
}

.rw-stage h3,
.rw-stage__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.rw-stage p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}

.rw-stage__code {
  margin-top: auto;
  padding: 12px 14px;
  background-color: var(--bg2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   PLATFORMS STRIP (index.astro .strip Standard)
   ========================================================================== */
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
  flex-wrap: wrap;
}

.strip-label {
  flex-basis: 100%;
  text-align: center;
  margin: 0;
}

.strip-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg2);
  white-space: nowrap;
}

.strip-note {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg3);
}

/* ==========================================================================
   TWO-COLUMN SPLITS, COMPARISON TABLE & SETUP WINDOW (v3.css Standard)
   ========================================================================== */
.tp-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}

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

.tp-split--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 44px);
}

/* Comparison Table (.vps-table from index.astro) */
.vps-table-wrap,
div.vps-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background-color: var(--panel);
}

.vps-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  align-self: center;
  font-size: 14px;
  background-color: var(--panel);
}

div.vps-table {
  padding: 0;
}

.vps-table table,
table.vps-table {
  width: 100%;
  min-width: 580px; /* guarantees columns never crush below readable measure on mobile */
  border-collapse: collapse;
}

.vps-table thead th,
.vps-table thead td {
  background-color: var(--bg2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg3);
  text-align: left;
  padding: 16px 18px;
}

.vps-table tbody th,
.vps-table tbody td {
  padding: 16px 18px;
  text-align: left;
  border-top: 1px solid var(--line);
  color: var(--fg2);
  font-weight: 400;
  vertical-align: top;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.vps-table tbody th {
  width: 30%;
  color: var(--fg);
  font-weight: 600;
}

.vps-table .vps-us {
  background-color: var(--ac2);
}

.vps-table thead .vps-us {
  color: var(--ac);
}

.vps-table tbody td.vps-us {
  color: var(--fg);
  font-weight: 600;
}

/* Ruled Steps List (.tp-steps from v3.css) */
.tp-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tp-steps li,
.tp-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.tp-steps li:last-child,
.tp-step:last-child {
  border-bottom: 1px solid var(--line);
}

.tp-steps__n,
.tp-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ac);
}

.tp-steps__t,
.tp-step__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}

.tp-steps__d,
.tp-step__desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}

/* Floating Product Window (.tp-window / SetupWindow.astro) */
.tp-window {
  border: 1px solid var(--line2);
  border-radius: var(--radius-card);
  background-color: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.tp-window__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background-color: var(--panel2);
}

.tp-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--line2);
  flex: none;
}

.tp-window__title {
  margin-left: 6px;
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 0;
}

.sw-body {
  padding: 8px 22px 22px;
}

.tp-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.tp-field-row:last-of-type {
  border-bottom: 0;
}

.tp-field-row__main {
  min-width: 0;
}

.tp-field-row__value {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.tp-chipbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background-color: var(--bg2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg2);
  white-space: nowrap;
}

.tp-callout {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background-color: var(--ac2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg);
}

/* ==========================================================================
   FRAMED HAIRLINE GRIDS (.tp-hgrid, .tp-hgrid--framed, .get-lead, .tp-cell)
   ========================================================================== */
.tp-hgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background-color: var(--line);
}

.tp-hgrid > * {
  flex: 1 1 320px;
  min-width: 0;
  background-color: var(--panel);
}

.tp-hgrid--four > * {
  flex: 1 1 240px;
}

.tp-hgrid--framed {
  outline: 1px solid var(--line);
}

.get-lead {
  flex: 1 1 100% !important;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 36px;
  align-items: center;
  background-color: var(--panel);
}

.get-lead-p {
  max-width: 38em;
  line-height: 1.65;
}

.get-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--bg2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

.get-list li {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.get-list li:last-child {
  border-bottom: 0;
}

.get-list__n {
  color: var(--ac);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  flex-shrink: 0;
}

.tp-cell {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--panel);
}

.tp-cell__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ac);
  background-color: var(--ac2);
  padding: 4px 10px;
  border-radius: 6px;
}

.tp-cell__foot {
  margin-top: auto;
  padding-top: 12px;
}

/* ==========================================================================
   INTERACTIVE 12-COPY BUYER VERIFICATION WORKBENCH
   ========================================================================== */
.sheet {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: none;
  padding: 24px;
}

.challenge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 24px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.src-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.src-bar__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg3);
  margin-right: 4px;
}

.src-tab {
  background-color: var(--bg2);
  border: 0;
  box-shadow: none;
  color: var(--fg2);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.src-tab:hover {
  background-color: var(--line);
  color: var(--fg);
}

.src-tab--on {
  background-color: var(--ac);
  color: var(--on-ac);
}

.src-tab--upload {
  cursor: pointer;
}

.cs-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cs-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg3);
}

.cs-step strong {
  color: var(--fg);
}

.cs-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--ac2);
  color: var(--ac);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workbench {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.lattice-panel,
.stage,
.capture {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.lattice-panel__head,
.capture__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.lattice-panel__title,
.capture__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.lattice-panel__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
}

.capture__sub {
  font-size: 14px;
  color: var(--fg3);
  margin: 0;
  line-height: 1.5;
}

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

.copy,
.rack-tile {
  position: relative;
  background-color: var(--bg2);
  border: 0;
  box-shadow: none;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy:hover,
.rack-tile:hover {
  background-color: var(--line);
}

.copy--on,
.copy[aria-pressed="true"],
.rack-tile.is-active {
  background-color: var(--ac);
  color: var(--on-ac);
}

.copy.is-culprit {
  background-color: var(--ok);
  color: var(--on-ac);
}

.copy__img,
.copy__ring {
  display: none;
}

.copy__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.copy__cap b,
.copy__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg3);
  flex-shrink: 0;
}

.copy--on .copy__idx,
.copy[aria-pressed="true"] .copy__cap b,
.copy.is-culprit .copy__cap b {
  color: var(--on-ac);
  opacity: 0.85;
}

.copy__cap span,
.copy__who {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy--on .copy__who,
.copy[aria-pressed="true"] .copy__cap span,
.copy.is-culprit .copy__cap span {
  color: var(--on-ac);
}

.copy__role {
  font-size: 12px;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy--on .copy__role {
  color: var(--on-ac);
  opacity: 0.85;
}

.lattice-panel__foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  cursor: pointer;
}

.toggle input {
  accent-color: var(--ac);
  width: 16px;
  height: 16px;
}

.proof-live {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
  background-color: var(--bg2);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  line-height: 1.5;
}

.stage__bar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage__id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background-color: var(--ok-bg);
  padding: 5px 10px;
  border-radius: var(--r-sm);
}

.stage__who {
  font-size: 14px;
  color: var(--fg);
}

.stage__sep,
.stage__org {
  font-size: 14px;
  color: var(--fg3);
}

.stage__atks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stage__atk-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
  margin-right: 4px;
}

.atk {
  background-color: var(--bg2);
  border: 0;
  box-shadow: none;
  color: var(--fg2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.atk:hover {
  background-color: var(--line);
}

.atk--on {
  background-color: var(--inv);
  color: var(--invfg);
}

.atk--reset {
  color: var(--fg3);
}

.stage__frame {
  position: relative;
  background-color: var(--bg-stage);
  border: 0;
  box-shadow: none;
  border-radius: var(--r-md);
  padding: 16px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage-canvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.stage__frame:fullscreen,
.stage__frame:-webkit-full-screen,
.stage__frame.is-fs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 72px 24px 56px;
  background-color: #0B1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.stage__frame:fullscreen #stage-canvas,
.stage__frame:-webkit-full-screen #stage-canvas,
.stage__frame.is-fs #stage-canvas {
  width: auto;
  height: auto;
  max-width: min(96vw, 1600px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 6px;
}

.stage__fs-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background-color: #0F172A;
  border-bottom: 1px solid #334155;
}

.stage__frame:fullscreen .stage__fs-bar,
.stage__frame:-webkit-full-screen .stage__fs-bar,
.stage__frame.is-fs .stage__fs-bar {
  display: flex !important;
}

.stage__fs-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #CBD5E1;
  text-align: center;
}

.stage__fs-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--danger);
  background-color: var(--danger);
  color: var(--on-ac);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  z-index: 10;
}

.stage__fs-close:hover {
  filter: brightness(0.9);
}

.stage__pill {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background-color: #1E293B;
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
}

.stage__advisory {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background-color: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.stage__foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage__hint {
  font-size: 14px;
  color: var(--fg3);
}

.stage__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sbtn {
  background-color: var(--bg2);
  border: 0;
  box-shadow: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.sbtn:hover {
  background-color: var(--line);
}

.sbtn--primary {
  background-color: var(--ac);
  color: var(--on-ac);
}

.sbtn--primary:hover {
  background-color: var(--ac-hover);
}

.drop {
  background-color: var(--bg2);
  border: 0;
  box-shadow: none;
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.drop:hover,
.drop--over {
  background-color: var(--ac2);
}

.drop__ico {
  width: 28px;
  height: 28px;
  color: var(--ac);
}

.drop__t {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.drop__s {
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.45;
}

.verdict {
  background-color: var(--bg);
  border: 0;
  box-shadow: none;
  border-radius: var(--r-md);
  padding: 20px;
}

.verdict__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg3);
}

.v-idle {
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.55;
}

.v-busy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan {
  height: 6px;
  background-color: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.scan span {
  display: block;
  width: 65%;
  height: 100%;
  background-color: var(--ac);
  border-radius: 3px;
}

.v-busy__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
}

.v-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background-color: var(--ok-bg);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}

.v-h {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.v-who {
  background-color: var(--bg2);
  border: 0;
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.v-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.v-metrics > div {
  background-color: var(--bg2);
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.v-note {
  margin: 0;
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.5;
}

.v-err {
  background-color: var(--danger-bg);
  border: 0;
  border-radius: var(--r-sm);
  padding: 16px;
  color: var(--danger);
}

.v-err__b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.v-err__h {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.v-err__p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   PRICING CARDS (PlanCards.astro Equal-Weight Specification Layout)
   ========================================================================== */
.plans,
.tiers {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  background-color: transparent;
  outline: none;
  align-items: stretch;
  text-align: left;
}

.plan,
.tier {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  background-color: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan:hover,
.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(15, 23, 42, 0.18);
}

.plan--featured,
.tier--pop {
  border: 2px solid var(--ac);
  box-shadow: 0 8px 32px -4px rgba(29, 78, 216, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
  background-color: var(--panel);
}

.plan-head,
.tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.plan-name,
.tier__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.plan-badge,
.tier__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg2);
  background-color: var(--bg2);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-badge--ac,
.tier__tag--pop {
  background-color: var(--ac);
  color: var(--on-ac);
}

.plan-price,
.tier__price {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-amt,
.tier__amt,
.tier__num {
  font-family: var(--font-sans);
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}

.plan-per,
.tier__per {
  font-size: 14px;
  color: var(--fg3);
}

.plan-desc,
.tier__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--fg2);
}

.plan-specs,
.tier__specs,
.tier__list {
  margin: 8px 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg2);
}

.plan-specs li,
.tier__specs li,
.tier__list li {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.plan-specs li strong,
.tier__specs li strong {
  color: var(--fg);
}

.plans-note {
  margin: 24px auto 0;
  max-width: 48em;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg3);
}

/* ==========================================================================
   RULED TWO-COLUMN FAQ (.tp-faq .tp-cols from v3.css)
   ========================================================================== */
.tp-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 56px);
}

.tp-faq__item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: -1px;
}

.tp-faq__q {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tp-faq__a {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--fg2);
}

/* ==========================================================================
   CENTERED CLOSING BAND (ClosingBand.astro Standard)
   ========================================================================== */
.band-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.band-h {
  margin: 24px 0 0;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--fg);
  max-width: 34ch;
  text-wrap: balance;
}

.band-line {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg2);
  max-width: 48ch; /* Narrower than 34ch band-h */
}

/* ==========================================================================
   FOOTER (Footer.astro Standard)
   ========================================================================== */
.foot {
  background-color: var(--bg);
}

.foot-top,
.foot__in {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 68px) var(--rail-pad-x) 40px;
  border-inline: 0; /* DE-BOXED: Eliminates footer vertical rail */
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.foot__p {
  font-size: 14px;
  color: var(--fg3);
  margin: 14px 0 0;
  max-width: 36ch;
  line-height: 1.6;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg2);
}

.foot__h {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg3);
  margin-bottom: 4px;
}

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

.foot__bottom {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: 24px var(--rail-pad-x) 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-inline: 0; /* DE-BOXED: Eliminates bottom vertical rail */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--fg3);
}

/* ==========================================================================
   USE-CASE PAGES SHARED LAYOUT HELPERS
   ========================================================================== */
.hero > .wrap,
.sec > .wrap,
.sec--alt > .wrap,
.sec--rule > .wrap,
.cta > .wrap {
  border-inline: 0; /* DE-BOXED: Eliminates use-case page rails */
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.hero > .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .display,
.hero .lede {
  margin-inline: auto;
}

.hero__ctas {
  justify-content: center;
}

.sec__head {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.sec__head .sec__h2,
.sec__head .headline {
  margin-inline: auto;
}

.sec__head .sec__p,
.sec__head .sec__lede {
  margin-inline: auto;
}

.data {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
  margin: 0 0 16px;
}

.data a {
  color: var(--ac);
  font-weight: 600;
}

.hero__ctas,
.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.subsec {
  margin-top: 48px;
}

.subsec__head {
  margin-bottom: 20px;
}

.id-grid,
.enc-grid,
.modes,
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background-color: transparent;
  outline: none;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  background-color: transparent;
  outline: none;
}

.card,
.conn-card,
.mode-card,
.aud-card {
  background-color: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.card:hover,
.conn-card:hover,
.mode-card:hover,
.aud-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow-lift);
}

.card p,
.conn-card p,
.mode-card p,
.aud-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.32;
}

.tag,
.tier__badge,
.enc-stat,
.layers__n,
.mode-card__num,
.aud-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ac);
  background-color: var(--ac2);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  display: inline-block;
  align-self: flex-start;
  flex-shrink: 0;
}

.mode-card__code {
  margin-top: auto;
  background-color: var(--bg2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.layers {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--line);
  outline: 1px solid var(--line);
}

.layers > li {
  background-color: var(--panel);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.layers > li p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.fmt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--line);
  outline: 1px solid var(--line);
}

.table-scroll,
.uc-table-wrap {
  background-color: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  overflow-x: auto;
}

.table,
.uc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.table th,
.table td,
.uc-table th,
.uc-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th,
.uc-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fg3);
}

.faq-grid,
.faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background-color: transparent;
  outline: none;
  margin-top: 24px;
}

.faq-item,
.faq__list details {
  background-color: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.faq-item:hover,
.faq__list details:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow-lift);
}

.faq-item p,
.faq__list details p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}

.cta__in {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta__in .cta__btns {
  justify-content: center;
  margin-top: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans,
  .tiers,
  .conn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rw-grid,
  .aud-grid,
  .modes,
  .id-grid,
  .enc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-top,
  .foot__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER PRIMITIVES
   ========================================================================== */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--fg);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav__toggle:hover {
  background-color: var(--bg2);
  border-color: var(--line2);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: min(360px, 88vw);
  height: 100dvh;
  background-color: var(--panel);
  box-shadow: -8px 0 36px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0.28s;
  overflow: hidden;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0s;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg2);
  flex-shrink: 0;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.drawer__close:hover {
  background-color: var(--bg);
  color: var(--fg);
  border-color: var(--line2);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg3);
  margin-top: 18px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.drawer__section-label:first-of-type {
  margin-top: 0;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer__link:hover {
  background-color: var(--bg2);
  color: var(--ac);
}

.drawer__link-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ac);
  width: 18px;
}

.drawer__badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background-color: var(--ok-bg);
  padding: 2px 7px;
  border-radius: 999px;
}

.drawer__sublink {
  display: block;
  padding: 8px 14px 8px 38px;
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.4;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.drawer__sublink:hover {
  color: var(--ac);
  background-color: var(--bg2);
}

.drawer__footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background-color: var(--bg2);
}

.drawer__note {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--fg3);
}

/* ==========================================================================
   PRICING CADENCE TOGGLE
   ========================================================================== */
.pricing-toggle-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 32px auto 0;
  text-align: center;
  max-width: 560px;
}

.pricing-toggle__sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg3);
  text-align: center;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--panel);
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
}

.pricing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pricing-toggle__btn:hover {
  color: var(--fg);
}

.pricing-toggle__btn.is-active {
  background-color: var(--fg);
  color: var(--bg);
}

.pricing-toggle__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: var(--ac);
  color: var(--on-ac);
}

.pricing-toggle__btn.is-active .pricing-toggle__badge {
  background-color: var(--ac);
  color: var(--on-ac);
}

@media (max-width: 480px) {
  .pricing-toggle__btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Responsive Media Queries */
@media (max-width: 920px) {
  .nav__links,
  .top__nav,
  .nav__link,
  .nav__link--studio {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .tp-sec,
  .hero,
  .sec,
  .sec--alt,
  .sec--rule,
  .cta {
    padding-left: 14px;
    padding-right: 14px;
  }
  .tp-wrap,
  .wrap,
  .hero > .wrap,
  .sec > .wrap,
  .sec--alt > .wrap,
  .sec--rule > .wrap,
  .cta > .wrap {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .tp-wrap--hero {
    padding-top: 40px;
    padding-bottom: 24px;
  }
  .tp-wrap--strip {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav__in,
  .top__in {
    gap: 12px;
    padding-inline: 14px;
  }
  .nav__cta {
    gap: 8px;
  }
  .nav__cta .nav__pill {
    padding: 0 14px;
    font-size: 13px;
  }
  /* Heading hierarchy hardening at <= 720px */
  .tp-h1,
  .hero__h1,
  .display,
  .band-h {
    max-width: 100%;
    font-size: clamp(28px, 6vw, 36px);
  }
  .tp-h2,
  .sec__h2,
  .headline {
    max-width: 100%;
    font-size: clamp(22px, 4.5vw, 26px);
  }
  .tp-lede,
  .hero-sub,
  .sec__p,
  .lede,
  .sec__lede,
  .band-line {
    max-width: min(100%, 62ch);
    font-size: 16px;
    line-height: 1.55;
  }
  .plans,
  .tiers,
  .tp-faq,
  .faq-grid,
  .faq__list,
  .conn-grid,
  .foot-top,
  .foot__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .tp-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .get-lead {
    padding: 24px 20px;
  }
  .tp-cell {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  /* Crisp, proportional hero pill scaling for mobile */
  .hero-pill {
    padding: 3.5px 11px 3.5px 5px;
    gap: 7px;
    font-size: 11.5px;
  }
  .hero-pill__badge,
  .hero-pill__tag {
    padding: 2.5px 8px;
    font-size: 10.5px;
  }

  /* Window Header Bar (.tp-window__bar) — clean single-line title and status badge */
  .tp-window__bar {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .tp-window__title {
    flex: 1 1 auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
  }
  .tp-window__bar .tp-tag {
    flex-shrink: 0;
    margin-left: 0;
    font-size: 10.5px;
    padding: 2.5px 7px;
  }

  /* Stage Window Header (.rw-head) — keep dots inline with title */
  .rw-head {
    padding: 14px 16px;
    gap: 10px 14px;
  }
  .rw-title {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .rw-dots {
    flex-shrink: 0;
  }
  .rw-title .tp-mono {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .rw-key {
    font-size: 12px;
  }

  /* Stage Header & Verdict Header on Mobile */
  .verdict__head,
  .rw-stage__top {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
}

@media (max-width: 480px) {
  .tp-wrap,
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .tp-h1,
  .hero__h1,
  .display {
    font-size: clamp(24px, 6.8vw, 28px);
  }
  .tp-h2,
  .sec__h2,
  .headline {
    font-size: 20px;
  }
  .tp-lede,
  .hero-sub,
  .sec__p,
  .lede,
  .sec__lede,
  .band-line {
    max-width: 100%;
    font-size: 15px;
  }
  .tp-btn,
  .btn {
    padding: 0 18px;
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .nav__logo {
    height: 24px;
  }
  .nav__cta .nav__pill {
    padding: 0 11px;
    font-size: 12px;
    min-height: 36px;
  }
  .nav__toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
}

@media (max-width: 360px) {
  /* Ultra-compact register for Samsung Galaxy Z Fold 5 cover screen (344px) */
  .hero-pill {
    gap: 6px;
    padding: 3px 9px 3px 4px;
    font-size: 11px;
  }
  .hero-pill__badge,
  .hero-pill__tag {
    padding: 2px 7px;
    font-size: 10px;
  }
  .hero-pill__arr {
    font-size: 11px;
  }
}

/* ==========================================================================
   Prose, Legal & Documentation Styling
   ========================================================================== */
.prose {
  max-width: 820px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-top: 0;
  margin-bottom: 16px;
}

.prose h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grid);
}

.prose h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose p {
  margin-top: 0;
  margin-bottom: 20px;
}

.prose ul, .prose ol {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

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

.prose a {
  color: var(--trace);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
}

.prose pre {
  background: var(--plate);
  color: var(--plate-ink);
  border: 1px solid var(--plate-grid);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}

.prose pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.prose-callout {
  background: var(--trace-wash);
  border-left: 4px solid var(--trace);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 28px 0;
  color: var(--ink-2);
}

.prose-callout p:last-child {
  margin-bottom: 0;
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.prose-table th, .prose-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid);
  text-align: left;
}

.prose-table th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

/* Documentation Split Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  background: var(--sheet);
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-sidebar__h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 8px 12px 4px;
}

.docs-sidebar__a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.docs-sidebar__a:hover, .docs-sidebar__a.is-active {
  background: var(--paper);
  color: var(--trace);
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .docs-sidebar {
    position: static;
  }
}

/* ==========================================================================
   Classes that replace former inline style attributes (blocked by the
   style-src 'self' CSP, so they never applied). Added 2026-11-09.
   ========================================================================== */
.sec--page {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.page-head .tp-kicker {
  margin-bottom: 8px;
}

.page-head .tp-lede {
  margin-bottom: 32px;
}

.page-head .tp-lede--contact {
  margin-bottom: 36px;
}

.page-meta {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--fg3);
}

.prose--wide {
  max-width: 100%;
}

.prose-rule {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.nav__links a.is-current {
  color: var(--ac);
}

/* Threat log: locked state */
.tp-field-row__value--alert {
  color: var(--danger);
  font-weight: 600;
}

.tp-chipbtn--alert {
  background-color: var(--danger);
  color: var(--on-ac);
}

/* Case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.case {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.case__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.case__tag--ok {
  background-color: var(--ok-bg);
  color: var(--ok);
}

.case__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
}

.case__h {
  margin: 0;
  font-size: 22px;
}

.case__p {
  margin: 0;
  color: var(--fg2);
  line-height: 1.6;
}

.case__quote {
  margin: 0;
  padding: 16px;
  background-color: var(--bg2);
  border-left: 3px solid var(--ac);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 14px;
  color: var(--fg);
}

.case__quote--ok {
  border-left-color: var(--ok);
}

.case__quote footer {
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--fg2);
}

/* Metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px;
  padding: 32px;
  text-align: center;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metric__n {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
}

.metric__n--ac {
  color: var(--ac);
}

.metric__n--ok {
  color: var(--ok);
}

.metric__l {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg3);
}

/* ==========================================================================
   Sandbox: the three players, live (index.html #sandbox, sandbox.js)
   ========================================================================== */
/* Heading left, lede right while there is room; stacked and full width below that. Either way
   the head spans the rail, so nothing is left empty beside it. */
.sb-head {
  display: grid;
  gap: 12px var(--gutter);
}

@media (min-width: 900px) {
  .sb-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
}

.sb-head .tp-h2 {
  margin-top: 0;
}

.sb-head .tp-lede {
  margin-top: 0;
  max-width: none;
}

/* The three files: one ruled strip, not three cards. The open file carries a 2 px top rule. */
.sb-files {
  display: grid;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sb-file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--fg2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sb-file:first-child {
  border-top: 0;
}

@media (min-width: 720px) {
  .sb-files {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sb-file {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .sb-file:first-child {
    border-left: 0;
  }
}

.sb-file__ico {
  flex: none;
}

.sb-file__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sb-file__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

.sb-file__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg3);
  overflow-wrap: anywhere;
}

.sb-file:hover:not(:disabled) {
  background-color: var(--bg2);
}

.sb-file:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: -2px;
}

.sb-file[aria-selected="true"] {
  background-color: var(--panel);
  box-shadow: inset 0 2px 0 var(--fg);
  color: var(--fg);
}

.sb-file:disabled {
  cursor: not-allowed;
}

.sb-file:disabled .sb-file__name {
  color: var(--fg3);
}

.sb-bench {
  display: grid;
  gap: 24px var(--gutter);
  margin-top: 16px;
}

@media (min-width: 980px) {
  .sb-bench {
    grid-template-columns: calc(66.6667% - var(--gutter)) minmax(0, 1fr);
    align-items: start;
  }
}

.sb-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-stage);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sb-stage__idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--plate-ink);
  font-size: 15px;
}

.sb-stage[data-state="live"] .sb-stage__idle,
.sb-stage[data-state="loading"] .sb-stage__idle {
  display: none;
}

.sb-stage[data-state="loading"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 40%;
  background-color: var(--ac);
  animation: sb-load 1.1s ease-in-out infinite alternate;
}

@keyframes sb-load {
  from { transform: translateX(0); }
  to { transform: translateX(150%); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-stage[data-state="loading"]::after {
    animation: none;
    width: 100%;
  }
}

.sb-toggle-row {
  margin: 12px 0 4px;
  display: flex;
  align-items: center;
}

.sb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--fg2);
}

.sb-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--trace, #1F45D6);
}

.sb-toggle__label {
  font-weight: 500;
  color: var(--fg);
}

.sb-toggle__hint {
  font-size: 12px;
  color: var(--fg3);
}

.sb-status {
  margin: 10px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--fg2);
}

.sb-credit {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--fg3);
}
.sb-credit a {
  color: inherit;
}
.sb-status[data-kind="error"] {
  color: var(--danger);
}

.sb-panel {
  padding: 20px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sb-panel__h {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sb-panel__note {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--fg3);
}

.sb-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 16px;
  margin: 0;
}

.sb-facts dt,
.sb-facts dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
}

.sb-facts dt {
  color: var(--fg2);
}

.sb-facts dd {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  color: var(--fg);
  max-width: 22ch;
  overflow-wrap: anywhere;
}

.sb-tries__h {
  margin: 36px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.sb-tries {
  display: grid;
  gap: 0 var(--gutter);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .sb-tries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sb-tries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sb-tries li {
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.sb-tries strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.sb-tries p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg2);
}

/* Text left, button right at every width down to a phone; below 480 px the button becomes a
   full-width block instead of dropping to a ragged second line. */
.sb-next .tp-btn {
  flex: none;
  white-space: nowrap;
}

.sb-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sb-next p {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  max-width: 56ch;
  color: var(--fg2);
}

@media (max-width: 479px) {
  .sb-next {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-next p {
    flex: none;
  }

  .sb-next .tp-btn {
    text-align: center;
    justify-content: center;
  }
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  margin: 36px 0;
}

.contact-card {
  padding: 24px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-card h3 {
  margin: 0 0 8px;
}

.contact-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--fg2);
}

/* ==========================================================================
   Measured results (index.html #proof): a ruled table and two plain lists.
   No big-number tiles, no boxes. Full width at every size; the table's two
   columns become stacked rows on a phone.
   ========================================================================== */
.results {
  display: block;
  width: 100%;
  text-align: left;
}

.results thead,
.results tbody {
  display: block;
}

.results tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.results th,
.results td {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.results thead th {
  padding: 0 0 10px;
  border-top: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg3);
}

.results tbody th {
  font-weight: 400;
  color: var(--fg2);
}

.results td {
  font-weight: 600;
  color: var(--fg);
}

.results tbody tr:last-child > * {
  border-bottom: 1px solid var(--line);
}

/* Phone range (THREE LAYOUTS): results stack on every phone width. */
@media (width < 768px) {
  .results thead {
    display: none;
  }

  .results tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .results tbody th {
    padding: 14px 0 2px;
  }

  .results td {
    padding: 0 0 14px;
    border-top: 0;
  }

  .results tbody tr:last-child > th {
    border-bottom: 0;
  }
}

.limits {
  display: grid;
  gap: 32px var(--gutter);
  margin-top: 48px;
}

@media (min-width: 760px) {
  .limits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.limits__h {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.limits ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.limits li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg2);
}

/* ==========================================================================
   PAGE GRID (2026-11-11). One gutter for every side-by-side layout, so halves and quarters
   share their column edges from section to section (in a 1144 px rail with a 40 px gutter:
   halves start at 0 and 592, quarters at 0, 296, 592 and 888). Ruled strips (.tp-hgrid,
   .sb-files, .rw-grid, .plans) are the second family: dividers at exact thirds or quarters of the rail.
   New layouts use var(--gutter); do not give a grid its own gap.
   ========================================================================== */
:root {
  --gutter: clamp(24px, 3vw, 40px);
}

.tp-split {
  gap: clamp(32px, 4.5vw, 56px) var(--gutter);
}

.tp-faq {
  column-gap: var(--gutter);
}

/* One left and right edge for the nav bar, every section and the footer. Sections are inset twice
   (.tp-sec, then .tp-wrap inside the 1240 px frame); the nav and footer used their own paddings
   and sat 8 to 52 px off the content edge. These two values mirror the section paddings at each
   breakpoint; change them together with .tp-sec / .tp-wrap. */
:root {
  --inset-outer: clamp(16px, 3vw, 32px);
  --inset-inner: clamp(20px, 4vw, 48px);
}

@media (max-width: 720px) {
  :root {
    --inset-outer: 14px;
    --inset-inner: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --inset-inner: 14px;
  }
}

.nav,
.top,
.foot {
  padding-inline: var(--inset-outer);
}

.nav__in,
.top__in,
.foot-top,
.foot__in,
.foot__bottom {
  padding-inline: var(--inset-inner);
}

/* Eight and four cells never leave an orphan row: four, two or one per row. */
#audiences .tp-hgrid,
#storage .tp-hgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  #audiences .tp-hgrid,
  #storage .tp-hgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  #audiences .tp-hgrid,
  #storage .tp-hgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   LOOK LAYER "plain" (2026-11-11). THE DEFAULT since the founder approved it the same day.
   Applies unless <html data-look="classic">, which theme.js sets for a page opened with
   ?look=classic (the look before this layer, kept for comparison). No JavaScript is needed
   for the default. Nothing above this block was changed for it.
   To go back: delete this block and the three "look=classic" lines in theme.js.
   To finish the job: fold these values into the rules above and delete the switch.
   What it does: neutral greys and ink instead of the blue accent, square-ish 6 to 8 px corners
   instead of pills, no shadows or hover lifts, no hero pill, no fake window dots, no numbered
   mono eyebrows, no upper-case labels.
   ========================================================================== */
:root:not([data-look="classic"]) {
  --bg: #FAFAF8;
  --bg2: #F1F1EE;
  --panel: #FFFFFF;
  --panel2: #F7F7F4;
  --bg-stage: #121211;
  --fg: #111110;
  --fg2: #3F3F3B;
  --fg3: #5E5E59;
  --line: #E3E3DF;
  --line2: #CECEC8;
  --inv: #111110;
  --invfg: #FAFAF8;
  --ac: var(--fg);
  --ac-hover: var(--fg2);
  --ac2: var(--bg2);
  --acl: var(--line2);
  --on-ac: var(--bg);
  --plate-grid: #2A2A28;
  --r-md: 6px;
  --r-lg: 8px;
  --radius-card: 8px;
  --radius-panel: 8px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-lift: none;
}

:root:not([data-look="classic"])[data-theme="dark"] {
  --bg: #111110;
  --bg2: #191918;
  --panel: #1B1B1A;
  --panel2: #212120;
  --bg-stage: #070707;
  --fg: #F2F2EE;
  --fg2: #BEBEB8;
  --fg3: #97978F;
  --line: #2C2C2A;
  --line2: #3B3B38;
  --inv: #F2F2EE;
  --invfg: #111110;
  --plate-grid: #2C2C2A;
}

/* No upper-case labels, no hover lifts. */
:root:not([data-look="classic"]) :is(span, p, div, strong, li, dt, dd, th, td, a, button, label, h3, h4) {
  text-transform: none;
}

:root:not([data-look="classic"]) :is(article, div, li, a, section):hover {
  transform: none;
}

/* Buttons and small chrome: 6 to 8 px corners, ink primary, outlined secondary. */
:root:not([data-look="classic"]) :is(.tp-btn, .btn, .nav__pill, .nav__theme, .pricing-toggle, .pricing-toggle__btn) {
  border-radius: 8px;
}

:root:not([data-look="classic"]) :is(.tp-btn--secondary, .btn--secondary, .btn--ghost) {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--line2);
}

:root:not([data-look="classic"]) :is(.tp-btn--secondary, .btn--secondary, .btn--ghost):hover {
  background-color: var(--bg2);
}

:root:not([data-look="classic"]) :is(.tp-btn--dark, .btn--dark):hover {
  background-color: var(--fg2);
}

:root:not([data-look="classic"]) :is(.plan-badge, .tier__tag, .drawer__badge, .pricing-toggle__badge, .rw-stage__badge) {
  padding: 0;
  border-radius: 0;
  background: none;
}

/* Hero: no pill, no fake window, no badges. */
:root:not([data-look="classic"]) :is(.hero-pill, .rw-dots, .tp-window__dot, .tp-tag) {
  display: none;
}

:root:not([data-look="classic"]) .hero-in .tp-h1 {
  margin-top: 0;
}

:root:not([data-look="classic"]) .rw {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

:root:not([data-look="classic"]) .rw-head {
  background-color: var(--panel);
}

:root:not([data-look="classic"]) .rw-stage__step {
  font-weight: 500;
  color: var(--fg3);
}

:root:not([data-look="classic"]) .rw-stage__code {
  border-radius: 4px;
}

/* Sections: no numbered eyebrows; hairlines from the token. */
:root:not([data-look="classic"]) :is(.tp-eyebrow, .sec__eyebrow) {
  display: none;
}

:root:not([data-look="classic"]) :is(.tp-eyebrow, .sec__eyebrow) + :is(.tp-h2, .sec__h2, .headline) {
  margin-top: 0;
}

:root:not([data-look="classic"]) :is(.tp-sec, .hero, .sec, .sec--alt, .sec--rule, .cta) {
  border-bottom-color: var(--line);
}

/* Cards and tables: one radius, a hairline, no glow. */
:root:not([data-look="classic"]) :is(.plan, .tier, .vps-table, .get-list, .docs-sidebar, .case, .metrics, .contact-card) {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

:root:not([data-look="classic"]) :is(.plan--featured, .tier--pop) {
  border: 1px solid var(--fg);
  box-shadow: none;
}

:root:not([data-look="classic"]) .sb-toggle input[type="checkbox"] {
  accent-color: var(--fg);
}

/* ==========================================================================
   PRICING STRIP (2026-11-11). The plans are one ruled strip (the same family as .sb-files and
   .tp-hgrid), not four boxed cards: dividers at exact quarters of the rail, and every plan is a
   subgrid of the same five rows (name, price, description, list, button), so prices, lists and
   buttons sit on shared lines across the plans. Four per row from 1100 px, two from 640, one
   below. Selectors carry :root so they outrank the look layer above.
   ========================================================================== */
:root .plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--line);
  overflow: hidden;
}

@media (min-width: 640px) {
  :root .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  :root .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

:root .plans > .plan {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 0;
  padding: 28px 24px 24px;
  border: 0;
  border-radius: 0;
  background-color: var(--panel);
  box-shadow: none;
  transform: none;
  transition: none;
}

/* The recommended plan: a 2 px rule along its top edge, as on the open file in the sandbox. */
:root .plans > .plan--featured {
  box-shadow: inset 0 2px 0 var(--fg);
}

:root .plans .plan-head {
  display: block;
}

:root .plans .plan-name {
  line-height: 1.3;
}

:root .plans .plan-badge {
  display: block;
  margin-top: 2px;
  padding: 0;
  border-radius: 0;
  background: none;
  font: 500 13px/1.4 var(--font-sans);
  color: var(--fg3);
  white-space: normal;
}

:root .plans .plan-badge--ac {
  color: var(--fg);
  font-weight: 600;
}

:root .plans .plan-price {
  display: block;
  margin: 20px 0 0;
}

:root .plans .plan-amt {
  display: block;
  font-size: 40px;
}

:root .plans .plan-per {
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

:root .plans .plan-desc {
  margin: 14px 0 0;
}

:root .plans .plan-specs {
  margin: 20px 0 0;
}

:root .plans .plan-specs li {
  padding: 11px 0;
}

:root .plans > .plan > .tp-btn {
  align-self: end;
  margin-top: 24px;
}

/* Text that was drawn for an accent fill must not keep that colour once the fill is gone
   (it was near-black on a near-black panel in the dark theme). */
:root:not([data-look="classic"]) :is(.plan-badge--ac, .tier__tag--pop, .drawer__badge) {
  color: var(--fg);
}

:root:not([data-look="classic"]) .pricing-toggle__badge,
:root:not([data-look="classic"]) .pricing-toggle__btn.is-active .pricing-toggle__badge {
  color: inherit;
  font-family: var(--font-sans);
  font-weight: 500;
  opacity: 0.75;
}

/* A button inside running text keeps its own text colour (.prose a set the link colour on it,
   which was the same as the button's fill: invisible on the contact page in both themes). */
.prose a.tp-btn--primary,
.prose a.btn--primary {
  color: var(--on-ac);
}

.prose a.tp-btn--secondary,
.prose a.btn--secondary {
  color: var(--fg);
}

/* ==========================================================================
   FOOTER (2026-11-11). The same markup on every page. Three blocks on the page's quarter grid:
   brand (one quarter), Product (one quarter), Use cases (two quarters, its ten links in two
   columns, so the second column starts on the fourth quarter line). Company links sit in the
   bottom bar. Tablet: brand and Product side by side on the halves, Use cases under them in two
   columns on the same halves. Phone: one block per row, both link lists in two columns.
   Selectors carry :root so they outrank the older .foot rules and their media queries.
   ========================================================================== */
:root .foot-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px var(--gutter);
  padding-block: 48px 36px;
}

:root .foot__brand,
:root .foot__col {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 640px) {
  :root .foot__brand,
  :root .foot__col {
    grid-column: auto;
  }

  :root .foot__col--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  :root .foot-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 56px 44px;
  }

  :root .foot__col--wide {
    grid-column: span 2;
  }
}

:root .foot__p {
  margin: 14px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg2);
}

:root .foot__mail {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-underline-offset: 3px;
}

:root .foot__col {
  display: block;
  font-size: 14px;
}

:root .foot__h {
  display: block;
  margin: 0 0 6px;
  font: 600 13px/28px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}

:root .foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--gutter);
}

/* Both lists stay in two columns up to the desktop layout, where Product has a quarter to itself. */
@media (min-width: 1100px) {
  :root .foot__list {
    columns: 1;
  }

  :root .foot__list--two {
    columns: 2;
  }
}

:root .foot__list li {
  break-inside: avoid;
}

:root .foot__list a {
  display: block;
  padding: 5px 0;
  line-height: 1.45;
  color: var(--fg2);
}

:root .foot__list a:hover,
:root .foot__legal a:hover,
:root .foot__mail:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

:root .foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px var(--gutter);
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg3);
}

:root .foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

:root .foot__legal a {
  padding: 4px 0;
  color: var(--fg2);
}

/* The smallest phones: two link columns would wrap the longer labels. */
@media (max-width: 359px) {
  :root .foot__list {
    columns: 1;
  }
}

/* ==========================================================================
   NAV COLLAPSE (2026-11-11). The bar's content must fit between the page's left and right
   edges (--inset-outer + --inset-inner). The homepage row needs 966 px at full spacing and the
   old rule only collapsed at 920 px, so between 920 and about 1150 the last button ran off the
   right edge. Two steps: tighter spacing below 1200 (needs about 894 px, fits down to 1080),
   then the menu button below 1080. Keep 1079 in step with nav.js.
   ========================================================================== */
:root .nav__in,
:root .top__in {
  min-width: 0;
}

:root .nav__brand {
  flex: none;
}

@media (max-width: 1199px) {
  :root .nav__in,
  :root .top__in {
    gap: 16px;
  }

  :root .nav__links,
  :root .top__nav {
    gap: 0;
  }

  :root .nav__links a,
  :root .top__nav a {
    padding: 0 8px;
  }
}

@media (max-width: 1079px) {
  :root .nav__links,
  :root .top__nav,
  :root .nav__link,
  :root .nav__link--studio {
    display: none;
  }

  :root .nav__toggle {
    display: inline-flex;
  }
}

/* Phones: logo 125, button 91, theme 40 and menu 38 need 314 px with these gaps. Below 400 px
   (a 375 px phone fits, but a 380 px window with a scrollbar does not), the plan button leaves
   the bar (the menu has a pricing link). */
@media (max-width: 480px) {
  :root .nav__in,
  :root .top__in {
    gap: 8px;
  }

  :root .nav__cta,
  :root .top__cta {
    gap: 6px;
  }

  :root .nav__logo {
    width: auto;
    height: 24px;
  }

  :root .nav__cta .nav__pill {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  :root .nav__toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
}

@media (max-width: 399px) {
  :root .nav__cta .nav__pill {
    display: none;
  }
}

/* ==========================================================================
   PHONE PASS (2026-11-12). Measured at 393 x 851 (Pixel 5) with the real players.
   - Text keeps its authored size: without this Android Chrome may inflate some blocks.
   - The sandbox stage is sized from its own column: a 16:9 picture plus the 49 px control bar
     for video, and a tall box for a PDF or an image below 980 px, where a 16:9 strip left a
     page 111 px of height.
   - The comparison table stacks below 640 px (each value carries its column name in data-label)
     instead of scrolling sideways at 580 px.
   Selectors carry :root so they outrank the look layer.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.sb-stage-col {
  container-type: inline-size;
  min-width: 0;
}

@supports (height: 1cqw) {
  :root .sb-stage {
    aspect-ratio: auto;
    height: calc(56.25cqw + 51px);
  }

  @media (max-width: 979px) {
    :root .sb-stage[data-kind="pdf"] {
      height: clamp(420px, 150cqw, min(82vh, 760px));
      height: clamp(420px, 150cqw, min(82svh, 760px));
    }

    :root .sb-stage[data-kind="image"] {
      height: clamp(300px, 100cqw, min(72vh, 560px));
      height: clamp(300px, 100cqw, min(72svh, 560px));
    }
  }
}

@media (max-width: 979px) {
  :root .sb-facts {
    grid-template-columns: auto minmax(0, 1fr);
  }

  :root .sb-facts dd {
    max-width: none;
  }
}

@media (max-width: 479px) {
  :root .sb-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: start;
  }

  :root .sb-toggle input[type="checkbox"] {
    margin: 2px 0 0;
  }

  :root .sb-toggle__hint {
    grid-column: 2;
  }
}

/* Phone range (THREE LAYOUTS): comparison tables are cards on every phone width. */
@media (width < 768px) {
  :root div.vps-table {
    overflow: visible;
  }

  :root .vps-table table,
  :root table.vps-table,
  :root .vps-table tbody,
  :root .vps-table tbody tr,
  :root .vps-table tbody th,
  :root .vps-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
  }

  :root .vps-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  :root .vps-table tbody tr {
    padding: 18px;
    border-top: 1px solid var(--line);
  }

  :root .vps-table tbody tr:first-child {
    border-top: 0;
  }

  :root .vps-table tbody th,
  :root .vps-table tbody td {
    padding: 0;
    border: 0;
    background: none;
  }

  :root .vps-table tbody th {
    font-size: 16px;
    line-height: 1.3;
  }

  :root .vps-table tbody td {
    margin-top: 12px;
  }

  :root .vps-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--fg3);
  }

  .prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 639px) {
  :root .prose-table {
    font-size: 13px;
  }

  :root .prose-table th,
  :root .prose-table td {
    padding: 10px 8px;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 479px) {
  :root .tp-actions .tp-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  :root .copy__cap {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  :root .copy__cap span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   12-COPY VERIFIER (challenge.html, 2026-11-12).
   Redesigned to match the ruled-strip & sandbox workbench design system:
   1. Source selector (.ch-sources): 4-column ruled strip like .sb-files.
   2. 12 buyer copies (.ch-copies + .lattice): 6x2 ruled grid (4x3 tablet, 2x6 phone)
      where the selected copy carries a 2 px top rule and the matched copy turns green.
   3. Two-column workbench (.ch-bench): 2/3 stage column + 1/3 result column, matching .sb-bench.
   ========================================================================== */
:root .ch-sources {
  display: grid;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--panel);
  overflow: hidden;
}

:root .ch-sources > .src-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background-color: var(--bg2);
  color: var(--fg2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

:root .ch-sources > .src-tab:first-child {
  border-top: 0;
}

@media (min-width: 640px) {
  :root .ch-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root .ch-sources > .src-tab:nth-child(2) {
    border-top: 0;
  }

  :root .ch-sources > .src-tab:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  :root .ch-sources {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  :root .ch-sources > .src-tab {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  :root .ch-sources > .src-tab:first-child {
    border-left: 0;
  }
}

:root .ch-sources > .src-tab:hover {
  background-color: var(--panel2);
  color: var(--fg);
}

:root .ch-sources > .src-tab.src-tab--on,
:root .ch-sources > .src-tab.is-active {
  background-color: var(--panel);
  box-shadow: inset 0 2px 0 var(--fg);
  color: var(--fg);
}

:root .ch-copies {
  margin-top: 28px;
}

:root .ch-copies__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

:root .ch-step-h {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

:root .ch-copies__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
}

:root .ch-copies__meta.is-err {
  color: var(--danger);
}

:root .ch-copies .lattice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--line);
  overflow: hidden;
}

@media (min-width: 640px) {
  :root .ch-copies .lattice {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  :root .ch-copies .lattice {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

:root .ch-copies .copy {
  position: relative;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background-color: var(--bg2);
  color: var(--fg2);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

:root .ch-copies .copy:hover {
  background-color: var(--panel2);
  color: var(--fg);
}

:root .ch-copies .copy.copy--on,
:root .ch-copies .copy[aria-pressed="true"] {
  background-color: var(--panel);
  box-shadow: inset 0 2px 0 var(--fg);
  color: var(--fg);
}

:root .ch-copies .copy.copy--on .copy__cap b,
:root .ch-copies .copy[aria-pressed="true"] .copy__cap b {
  color: var(--fg);
  opacity: 1;
}

:root .ch-copies .copy.copy--on .copy__cap span,
:root .ch-copies .copy[aria-pressed="true"] .copy__cap span {
  color: var(--fg);
}

:root .ch-copies .copy.is-culprit {
  background-color: var(--ok-bg);
  box-shadow: inset 0 2px 0 var(--ok);
  color: var(--fg);
}

:root .ch-copies .copy.is-culprit .copy__cap b {
  color: var(--ok);
  opacity: 1;
}

:root .ch-copies .copy.is-culprit .copy__cap span {
  color: var(--fg);
}

:root .ch-bench {
  display: grid;
  gap: 24px var(--gutter);
  margin-top: 28px;
}

@media (min-width: 980px) {
  :root .ch-bench {
    grid-template-columns: calc(66.6667% - var(--gutter)) minmax(0, 1fr);
    align-items: start;
  }
}

:root .ch-stage-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:root .ch-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

:root .ch-stage-bar .stage__badge {
  background-color: var(--bg2);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
}

:root .ch-stage-bar .atk {
  background-color: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 11px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

:root .ch-stage-bar .atk:hover:not(:disabled) {
  background-color: var(--panel2);
  border-color: var(--line2);
  color: var(--fg);
}

:root .ch-stage-bar .atk.atk--on {
  background-color: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

:root .ch-stage-col .stage__frame {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-stage);
  min-height: 0;
}

:root .ch-stage-col #stage-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

:root .ch-stage-col .stage__pill {
  position: static;
  display: inline-flex;
  align-items: center;
  background-color: var(--bg2);
  border: 1px solid var(--line);
  color: var(--fg2);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
}

:root .ch-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

:root .ch-stage-foot .sbtn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line2);
  background-color: var(--panel);
  color: var(--fg);
}

:root .ch-stage-foot .sbtn:hover:not(:disabled) {
  background-color: var(--bg2);
}

:root .ch-stage-foot .sbtn--primary {
  background-color: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

:root .ch-stage-foot .sbtn--primary:hover:not(:disabled) {
  background-color: var(--fg2);
  border-color: var(--fg2);
}

:root .ch-proof-live {
  margin: 0;
  font-size: 13px;
  color: var(--fg3);
}

:root .ch-panel {
  padding: 20px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

:root .ch-panel .sb-panel__note {
  margin: 0;
}

:root .ch-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed var(--line2);
  border-radius: 6px;
  background-color: var(--bg2);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

:root .ch-drop:hover,
:root .ch-drop.is-over,
:root .ch-drop.drop--over {
  background-color: var(--panel2);
  border-color: var(--fg2);
}

:root .ch-drop__t {
  font-size: 13.5px;
  color: var(--fg2);
  min-width: 0;
}

:root .ch-drop__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background-color: var(--panel);
  border: 1px solid var(--line2);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

:root .ch-panel .verdict {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

:root .ch-panel .verdict__head {
  padding-bottom: 10px;
  margin-bottom: 12px;
}

:root .ch-panel .v-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 12px 0;
}

:root .ch-panel .v-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
}

:root .ch-panel .v-metrics > div .k {
  color: var(--fg2);
}

:root .ch-panel .v-metrics > div .v {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  text-align: right;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   THREE LAYOUTS (2026-11-13, site). Founder: "make mobile, tablet and web versions of the
   website, so each is designed for its screen size and one flaw cannot crimp the design".
   Three ranges, the same as the dashboard: desktop from 1180 px, tablet 768-1179, phone below
   768. This block owns the structure (columns, stacking, the nav switch) inside each range with
   bounded media queries, so a rule for one size cannot reach another. Before it, about 25
   breakpoints and several auto-fit grids decided columns from the window width, so layouts
   changed part-way through a range (2+1 strips, side-by-side headers appearing at 900, 940,
   980 or 1024 px). Earlier blocks still own type, colour and spacing.
   Do not add a breakpoint here: put a change in the range it belongs to.
   Card strips (.tp-hgrid) choose columns from how many cards they hold, using :has().
   ========================================================================== */

/* All sizes: strips are grids, not wrapping rows. */
:is(#audiences, #storage, section) .tp-hgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

:is(#audiences, #storage, section) .tp-hgrid > * {
  min-width: 0;
}

:is(#audiences, #storage, section) .tp-hgrid > .get-lead {
  grid-column: 1 / -1;
}

/* A left-aligned intro on a text page (docs, about, contact, legal) fills its column like the
   paragraphs under it; the 740 px cap left a quarter of a tablet page empty beside it. */
.prose.page-head > .tp-lede {
  max-width: none;
}

/* The lead cell's text fills its column too (it was capped at 38em, which left a third of a
   tablet row empty once the heading moved above it). */
:root .get-lead-p {
  max-width: none;
}

/* ---------- Desktop: 1180 px and wider ---------- */
/* Range syntax, not min/max-width: with max-width: 1179px a scaled window of 1179.5 px fell
   between the ranges and got neither layout. */
@media (width >= 1180px) {
  :root .nav__links,
  :root .top__nav {
    display: flex;
  }

  :root .nav__toggle {
    display: none;
  }

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

  .tp-split.tp-split--stack {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Three cards (or a lead plus six) in thirds; four or eight in quarters. */
  :is(#audiences, #storage, section) .tp-hgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(#audiences, #storage, section) .tp-hgrid:is(:has(> :nth-child(4):last-child), :has(> :nth-child(8):last-child)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .sb-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .sb-bench {
    grid-template-columns: calc(66.6667% - var(--gutter)) minmax(0, 1fr);
    align-items: start;
  }

  .sb-tries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  :root .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  /* An odd last question spans both columns instead of sitting alone in one. */
  .tp-faq > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }

  :root .foot-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  :root .foot__col--wide {
    grid-column: span 2;
  }

  :root .foot__list {
    columns: 1;
  }

  :root .foot__list--two {
    columns: 2;
  }
}

/* ---------- Tablet: 768 to 1179 px ---------- */
@media (768px <= width < 1180px) {
  /* The menu button, as on phones: the full bar needs about 1080 px and would squeeze. */
  :root .nav__links,
  :root .top__nav,
  :root .nav__link,
  :root .nav__link--studio {
    display: none;
  }

  :root .nav__toggle {
    display: inline-flex;
  }

  /* Text and its companion stack, each the full width of the page. */
  .tp-split,
  .sb-head,
  .sb-bench,
  .get-lead,
  .rw-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Three cards stay in one row of thirds; everything else in halves with no lone card. */
  :is(#audiences, #storage, section) .tp-hgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(#audiences, #storage, section) .tp-hgrid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(#audiences, #storage, section) .tp-hgrid:not(:has(> .get-lead)):not(:has(> :nth-child(3):last-child)) > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

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

  /* Questions in one column: a full-width answer reads better than two narrow ones here. */
  .tp-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Docs: the section list sits above the text in three columns. */
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .docs-sidebar {
    position: static;
    display: block;
    columns: 3;
    column-gap: var(--gutter);
  }

  .docs-sidebar > * {
    display: block;
    break-inside: avoid;
  }

  .docs-sidebar__h {
    break-after: avoid;
  }

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

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

  :root .foot__brand,
  :root .foot__col {
    grid-column: auto;
  }

  :root .foot__col--wide {
    grid-column: 1 / -1;
  }

  :root .foot__list {
    columns: 2;
  }
}

/* ---------- Phone: below 768 px ---------- */
@media (width < 768px) {
  :root .nav__links,
  :root .top__nav,
  :root .nav__link,
  :root .nav__link--studio {
    display: none;
  }

  :root .nav__toggle {
    display: inline-flex;
  }

  .tp-split,
  .sb-head,
  .sb-bench,
  .get-lead,
  .rw-grid,
  .sb-tries,
  .sb-files,
  .docs-layout,
  .contact-grid,
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#audiences, #storage, section) .tp-hgrid,
  :root .plans,
  .tp-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-sidebar {
    position: static;
    display: block;
    columns: 2;
    column-gap: 16px;
  }

  .docs-sidebar > * {
    display: block;
    break-inside: avoid;
  }

  .docs-sidebar__h {
    break-after: avoid;
  }

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

  :root .foot__brand,
  :root .foot__col {
    grid-column: 1 / -1;
  }

  /* Touch targets: 44 px, the size Apple's guidelines ask for. */
  .pricing-toggle__btn,
  .atk {
    min-height: 44px;
  }

  /* Hero and closing buttons: one full-width button per row, the same width, not two centred
     buttons of different lengths. */
  :root .hero-in .tp-actions,
  :root .band-in .tp-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
  }

  :root .hero-in .tp-actions .tp-btn,
  :root .band-in .tp-actions .tp-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}


/* ==========================================================================
   CHALLENGE BUTTONS (2026-11-16). The 12-copy page had four button sizes (34 px mono tamper
   chips, 40 px stage buttons, a 32 px file button, 48 px band buttons). Now the site's scale:
   48 px for band calls to action, 44 px with 15 px text for everything else; ink for the one
   primary action, outlined for the rest, sans text, 8 px corners.
   ========================================================================== */
:root :is(body, .ch-stage-bar, .ch-stage-foot, .ch-panel) :is(.atk, .sbtn, .ch-drop__btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--line2);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

:root :is(body, .ch-stage-bar, .ch-stage-foot, .ch-panel) :is(.atk, .sbtn):hover {
  background-color: var(--bg2);
}

:root :is(body, .ch-stage-bar) .atk--reset {
  color: var(--fg2);
}

:root :is(body, .ch-stage-bar, .ch-stage-foot) :is(.atk--on, .atk--on:hover, .sbtn--primary) {
  background-color: var(--fg);
  box-shadow: none;
  color: var(--bg);
}

:root :is(body, .ch-stage-foot) .sbtn--primary:hover {
  background-color: var(--fg2);
}

:root .stage__badge,
:root .v-badge {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}
/* Labels in the text face; the code font stays for real values (copy size, IDs). */
:root .stage__atk-lbl,
:root .verdict__head {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   CARD ROWS SHARE LINES (2026-11-21, final layout pass)
   Cards in one row put their label, title, text and foot on the same lines (subgrid), so a
   title or foot that wraps to two lines no longer pushes its neighbours' parts out of line.
   Measured before: "How it works" code lines 19 px apart (1440/1920), "Who it is for" feet
   29 px apart (768-1920), contact buttons 25 px apart (768-1920).
   ========================================================================== */
@supports (grid-template-rows: subgrid) {
  @media (width >= 768px) {
    :root .rw-grid,
    :root #audiences .tp-hgrid {
      grid-auto-rows: auto auto 1fr auto;
    }
    :root .rw-grid > .rw-stage,
    :root #audiences .tp-hgrid > .tp-cell {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 12px;
      align-content: start;
    }
    :root .rw-grid > .rw-stage > .rw-stage__code,
    :root #audiences .tp-hgrid > .tp-cell > .tp-cell__foot {
      margin-top: 0;
      align-self: stretch;
    }
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
}

.contact-card > .tp-btn {
  margin-top: auto;
}

/* Centred notes under a centred section head share the lede's measure (was 48em = 672 px
   under a 740 px lede in the same section). */
:root .plans-note {
  max-width: min(100%, 740px);
}

/* One menu everywhere (2026-11-21): the phone menu lists the header links in the same words and
   order, then the tools; section labels in the text face, no numbers, no badges. The current
   page is marked in both menus. */
:root .drawer__section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg3);
  padding-left: 14px;
}

:root .drawer__link-num,
:root .drawer__badge {
  display: none;
}

:root .drawer__link[aria-current="page"] {
  background-color: var(--bg2);
}

:root .nav__links a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   OVERSIGHTS FIXED (2026-11-21, second final pass: founder found a scrolling table and a link
   broken out of its sentence). Each rule is the general fix, not a patch on one page.
   ========================================================================== */

/* Comparison tables switch to stacked rows by the width of their own box, not the screen:
   a three-column table in a half column (484 px at 1440) scrolled sideways. */
:root div.vps-table {
  container-type: inline-size;
}

@container (width < 580px) {
  :root .vps-table table,
  :root .vps-table tbody,
  :root .vps-table tbody tr,
  :root .vps-table tbody th,
  :root .vps-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
  }
  :root .vps-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :root .vps-table tbody tr {
    padding: 18px;
    border-top: 1px solid var(--line);
  }
  :root .vps-table tbody tr:first-child {
    border-top: 0;
  }
  :root .vps-table tbody th,
  :root .vps-table tbody td {
    padding: 0;
    border: 0;
    background: none;
  }
  :root .vps-table tbody th {
    font-size: 16px;
    line-height: 1.3;
  }
  :root .vps-table tbody td {
    margin-top: 12px;
  }
  :root .vps-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--fg3);
  }
}

/* A link inside a sentence stays part of the sentence: tp-link is an inline-block with a
   bottom border, built for standalone "Read more" links; inside running text it broke out as a
   block and left ": crop one or paint over it" on a line of its own. */
:root :is(p, li, dd, td, .tp-steps__d, .tp-small, .tp-body, .tp-lede) > .tp-link {
  display: inline;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line2);
}

:root :is(p, li, dd, td, .tp-steps__d, .tp-small, .tp-body, .tp-lede) > .tp-link:hover {
  text-decoration-color: currentColor;
}

/* Headings never leave one word alone on their last line. */
:root :is(h1, h2, h3, .tp-h1, .tp-h2, .tp-h3, .tp-faq__q) {
  text-wrap: balance;
}

/* Inline code breaks only when it must, so punctuation after it never starts a line. */
:root :is(p, li, dd, td) code {
  overflow-wrap: break-word;
}

/* Code samples wrap inside their box at every width instead of scrolling sideways. */
:root .prose pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Long keys wrap in their box. */
:root .key-box code {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Partner form on tablets: name and email side by side, the company on its own row, so a
   publisher's full name fits (it was clipped in a 198 px third at 768 px). */
@media (768px <= width < 1180px) {
  :root .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root .deal-grid > .deal-field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Keeps a code term and the punctuation after it on one line. */
:root .nobr {
  white-space: nowrap;
}

/* A comparison table beside text keeps its table form: on desktop its column gets a 600 px
   minimum and a slightly larger share, and the text column gives up the difference (at 1440:
   text 504 px, table 600 px instead of 552/552, where the table scrolled and then stacked). */
@media (width >= 1180px) {
  :root .tp-split:has(> .vps-table) {
    grid-template-columns: minmax(0, 1fr) minmax(600px, 1.15fr);
    align-items: start;
  }
}

/* Deal-room heroes: the buttons start on the text's left edge (they were centred under
   left-aligned text from 768 px up: text at 732, buttons at 793 on a 1440 screen). */
@media (width >= 768px) {
  :root .deal-head .tp-actions {
    justify-content: flex-start;
  }
}

/* Deal-room form on tablets: "who replies and when" runs full width under the buttons instead
   of a narrow four-line column beside them (768 px: 250 px wide). */
@media (768px <= width < 1180px) {
  :root .deal-actions .deal-next {
    flex-basis: 100%;
    margin-left: 0;
  }
}