/* ==================================================================
   POLYGON PRIVATE — COMBINED TEMPLATE
   Base: Claude concept 1 (header, buttons, underlines, sections)
   Hero globe + closing headline: ChatGPT concept 3
   Use cases + performance bars: Claude concept 2
   ================================================================== */

/* ------------------------------------------------------------------
   0. FONTS — Gellix (titles, UI) / ABC Arizona Text (paragraphs)
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Gellix"; src: url("../fonts/gellix-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gellix"; src: url("../fonts/gellix-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arizona"; src: url("../fonts/arizona-text-light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arizona"; src: url("../fonts/arizona-text-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arizona"; src: url("../fonts/arizona-text-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* IBM Plex Mono (SIL Open Font License), self-hosted instead of Google Fonts */
@font-face {
  font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------ */
:root {
  /* Brand (fixed in both themes) */
  --primary: #121ab4;
  --primary-dark: #0d126f;
  --primary-deep: #080b3d;
  --primary-bright: #3440ff;

  /* Theme tokens — light */
  --paper: #f8f9fc;
  --surface: #ffffff;
  --ink: #0b0c14;
  --ink-2: #171821;
  --muted: #5f6170;
  --faint: #b3b5c3;
  --rule: rgba(11, 12, 20, 0.1);
  --rule-strong: #0b0c14;
  --border: rgba(18, 26, 180, 0.12);
  --accent: #121ab4;          /* blue used for text / strokes */
  --accent-strong: #0d126f;
  --primary-soft: #e8eaff;
  --primary-pale: #f4f5ff;
  --globe-rgb: 18, 26, 180;
  --globe-node: 52, 64, 255;
  --nav-glass: rgba(248, 249, 252, 0.86);

  /* Type */
  --sans: "Gellix", "Helvetica Neue", Helvetica, Arial, sans-serif;           /* titles + interface */
  --text: "Arizona", "Iowan Old Style", Georgia, "Times New Roman", serif;     /* paragraphs */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 168px);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

:root { color-scheme: light; --polygon: #6c00f6; --polygon-soft: #f1eafd; }

/* Polygon network mentions: logo + Polygon purple */
.pg { color: var(--polygon); white-space: nowrap; }
/* inline logo: centred on the lowercase letters of the word next to it */
.pg__logo { display: inline-block; width: 1.3em; height: 1.3em; margin-right: .3em; vertical-align: -.33em; overflow: visible; }

/* ------------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
em { font-style: normal; }
img { max-width: 100%; }

::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 2px; }

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

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

/* ------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------ */
/* Titles and interface text use Gellix; running text inherits Arizona */
h1, h2, h3, summary,
.h2, .hero__title, .closing__title, .benefit__title, .ledger__head h3, .tile h3,
.nav, .mobile-menu, .btn, .brand, .eyebrow, .chapter, .plate__head,
.ledger__tag, .route-list, .traits, .lifecycle, .metric dt, .metric dd, .badge,
.stack, .footer__cols, .footer__tag, .viz-switch, .arch__hint {
  font-family: var(--sans);
}
.h2 {
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.h2 em, .hero__title em, .closing__title em { color: var(--accent); }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.lede--lg {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--ink);
  max-width: 26ch;
}

.body { color: var(--muted); max-width: 52ch; }
.body--muted { margin-top: 28px; font-size: 15px; }
.body mark {
  background: linear-gradient(transparent 62%, var(--primary-soft) 62%);
  color: var(--ink);
  padding: 0 2px;
}

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Chapter marker (§ 01 Rationale) */
.chapter {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.chapter span { font-family: var(--mono); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.chapter::before {
  content: ""; flex: none; align-self: center;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary-bright);
  margin-right: -4px;
}
.chapter--light::before { background: #a9adff; }
.chapter--light { color: rgba(255,255,255,.6); }
.chapter--light span { color: #a9adff; }

/* ------------------------------------------------------------------
   4. BUTTONS (concept 1)
   ------------------------------------------------------------------ */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 26px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  border-radius: 2px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 34px; font-size: 16px; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost { border: 1px solid var(--rule); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--link { padding: 0 4px; height: auto; color: var(--ink); }
.btn--link::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .45s var(--ease);
}
.btn--link:hover { color: var(--accent); }
.btn--link:hover::after { transform: scaleX(0); transform-origin: left; }

.btn--outline-light { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------
   5. NAVIGATION (concept 1)
   ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
/* The frosted background lives on ::before. A backdrop-filter on .nav itself would become the
   containing block of the fixed mobile menu and clip it to the height of the bar. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before, body.menu-open .nav::before { opacity: 1; }
body.menu-open .nav::before { background: var(--paper); }
.nav.is-scrolled, body.menu-open .nav { border-bottom-color: var(--rule); }
.nav__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__name { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.brand__name em { font-weight: 400; color: var(--accent); }

.nav__links { display: flex; gap: 34px; font-size: 14px; }
.nav__links a { position: relative; color: var(--ink-2); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--accent); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nav__docs { position: relative; font-size: 14px; color: var(--ink-2); }
.nav__docs:hover { color: var(--accent); }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle-line {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle-line:nth-of-type(2) { top: 18px; }
.nav__toggle-line:nth-of-type(3) { top: 25px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-of-type(2) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-of-type(3) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  z-index: 49;
  background: var(--paper);
  padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(12px);
  animation: menuIn .6s var(--ease) forwards;
}
.mobile-menu nav a span { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0; }
.mobile-menu nav a:nth-child(2) { animation-delay: .04s; }
.mobile-menu nav a:nth-child(3) { animation-delay: .08s; }
.mobile-menu nav a:nth-child(4) { animation-delay: .12s; }
.mobile-menu nav a:nth-child(5) { animation-delay: .16s; }
.mobile-menu nav a:nth-child(6) { animation-delay: .2s; }
.mobile-menu__cta { display: grid; gap: 12px; margin-top: 32px; }
.mobile-menu__cta .btn { width: 100%; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
   6. HERO — globe canvas (ChatGPT 3) + concept 1 composition
   ------------------------------------------------------------------ */
.hero { position: relative; margin-top: calc(var(--nav-h) * -1); }

.hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 clamp(40px, 5vw, 64px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
.hero__globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 72%, transparent) 38%, transparent 72%),
    linear-gradient(0deg, var(--paper) 0%, transparent 22%);
}
.hero__stage > .wrap { position: relative; }


.hero__eyebrow { margin-bottom: clamp(28px, 4vw, 44px); }
h1.hero__eyebrow { font-weight: 400; } /* the eyebrow is the page H1; keep its original weight */

.hero__title {
  font-weight: 500;
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  /* Gellix "P" carries a 0.078em left side-bearing; pull the title back
     so the stem lines up optically with the paragraph and button below */
  margin-left: -0.075em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
  max-width: 1040px;
}
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }


/* Figure plate — submission path */
.plate {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 40px);
  position: relative;
}
.plate::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--primary), var(--primary)) top left / 18px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) top left / 1px 18px no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 1px 18px no-repeat;
}
.plate__head {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.plate__head span:first-child { color: var(--accent); }
.plate__legend { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.legend { display: inline-block; width: 22px; height: 2px; margin-left: 14px; }
.legend--private { background: var(--primary-bright); }
.legend--public { background: repeating-linear-gradient(90deg, var(--faint) 0 4px, transparent 4px 7px); }
.plate figcaption {
  margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 17px; color: var(--muted);
}

/* ------------------------------------------------------------------
   7. SVG FLOW / PACKETS (shared)
   ------------------------------------------------------------------ */
.flow { width: 100%; height: auto; margin: 12px 0; }
.flow--v { display: none; max-width: 340px; margin-inline: auto; }

.route { fill: none; stroke-linecap: round; }
.route--public { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 6; }
.route--private-base { stroke: var(--primary-soft); stroke-width: 6; }
.route--private { stroke: var(--primary-bright); stroke-width: 2; }

.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease-io) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.node text { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; fill: var(--ink); }
.flow--v .node--private text, .flow--v .node--settle text { text-anchor: start; }
.node--private circle { fill: var(--surface); stroke: var(--primary-bright); stroke-width: 2; }
.node--settle rect { fill: var(--surface); stroke: var(--primary-bright); stroke-width: 1.5; }
.node--settle text { fill: var(--polygon); font-weight: 500; }
.node--public circle { fill: var(--paper); stroke: var(--faint); stroke-width: 1.5; }
.node--public text { fill: var(--faint); }
.flow__note { font-family: var(--sans); font-size: 15px; fill: var(--faint); }
.flow__note--blue { fill: var(--accent); }

.packet { fill: var(--primary-bright); filter: drop-shadow(0 0 6px rgba(52, 64, 255, 0.6)); opacity: 0; }
.packet--public { fill: var(--faint); filter: none; }

/* ------------------------------------------------------------------
   8. SECTIONS (shared)
   ------------------------------------------------------------------ */
.section { padding: var(--section) 0; position: relative; }
.section--rule { border-top: 1px solid var(--rule); }
.section--paper { background: var(--surface); border-block: 1px solid var(--rule); }
.section--grid {
  background-color: var(--primary-pale);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  border-block: 1px solid var(--border);
}
.section--first { padding-top: clamp(64px, 8vw, 112px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  column-gap: 64px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.section-head .chapter { grid-column: 1 / -1; }
.section-head .h2 { max-width: 20ch; }
.section-head__aside { justify-self: end; font-size: 16px; color: var(--muted); max-width: 36ch; }

.section-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { max-width: 18ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.split__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.split__main .body { margin-top: 28px; }

/* ------------------------------------------------------------------
   9. RATIONALE — benefits (concept 1 §01)
   ------------------------------------------------------------------ */
.benefits { margin-top: clamp(48px, 6vw, 80px); }
.benefit {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr; column-gap: 16px;
  padding: 32px 0 36px;
}
.benefit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.benefit::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease) .2s;
}
.benefit.is-visible::after { transform: scaleX(1); }
.benefit__num { grid-row: 1 / 3; font-family: var(--mono); font-size: 15px; color: var(--accent); line-height: 2.2; }
.benefit__title { font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.benefit p { color: var(--muted); max-width: 46ch; }

/* ------------------------------------------------------------------
   10. COMPARISON LEDGER (concept 1 §03)
   ------------------------------------------------------------------ */
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.ledger__col { padding: clamp(28px, 4vw, 56px); }
.ledger__col--public { background: var(--paper); color: var(--muted); }
.ledger__col--private { background: var(--surface); border-left: 1px solid var(--rule); position: relative; }
.ledger__col--private::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--primary); }
.ledger__head { margin-bottom: 40px; }
.ledger__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.ledger__col--private .ledger__tag { color: var(--accent); }
.ledger__head h3 { font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); letter-spacing: -0.035em; line-height: 1.1; margin-top: 8px; }
.ledger__col--public h3 { color: var(--muted); }

.route-list { --mx: 6px; position: relative; display: grid; margin-bottom: 40px; }
/* rail and every marker share one centre line (--mx from the list's left edge) */
.route-list::before {
  content: ""; position: absolute; left: calc(var(--mx) - 0.5px); top: 22px; bottom: 22px; width: 1px;
  background: repeating-linear-gradient(var(--faint) 0 3px, transparent 3px 7px);
}
.route-list li { position: relative; padding: 10px 0 10px 34px; font-size: 16px; line-height: 24px; }
.route-list li::before {
  content: ""; position: absolute; left: calc(var(--mx) - 6px); top: 50%;
  width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--faint);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
  z-index: 1;
}
.route-list li.is-hit::before { border-color: var(--muted); }

.route-list--private::before { left: calc(var(--mx) - 1px); width: 2px; background: var(--primary-soft); }
.route-list--private li { color: var(--ink); }
.route-list--private li::before { background: var(--surface); border-color: var(--primary-bright); }
.route-list--private li.is-hit::before { background: var(--primary-bright); box-shadow: 0 0 0 4px rgba(52,64,255,.14); }
.route-list--private li:last-of-type { font-weight: 500; }
.route-list--private li:last-of-type::before { background: var(--primary); border-color: var(--primary); border-radius: 2px; }
.route-list--private li:last-of-type.is-hit::before { box-shadow: 0 0 0 5px rgba(52,64,255,.18), 0 0 18px rgba(52,64,255,.55); }

/* travelling transaction (positioned by JS on the same centre line) */
.route-dot {
  position: absolute; left: calc(var(--mx) - 7px); top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #8b8ea0; opacity: 0; pointer-events: none; z-index: 2;
  transition: background-color .3s, box-shadow .3s;
}
.route-list--private .route-dot { background: var(--primary-bright); box-shadow: 0 0 0 4px rgba(52,64,255,.15), 0 0 14px rgba(52,64,255,.6); }
.route-dot.is-exposed { background: #f2a516; box-shadow: 0 0 0 4px rgba(242,165,22,.2), 0 0 12px rgba(242,165,22,.6); }

/* pre-inclusion exposure: a warning marker that lights when the transaction reaches it */
.route-list li.is-exposed { color: var(--ink-2); font-weight: 500; }
.route-list li.is-exposed::before { display: none; }
.warn {
  position: absolute; left: calc(var(--mx) - 11px); top: 50%; margin-top: -11px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1.5px dashed #e0a43a;
  color: #e0a43a;
  transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.warn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.warn svg circle { fill: currentColor; stroke: none; }
.warn__tag {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 2px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; vertical-align: 1px;
  background: #fff3dc; color: #8a5400;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.route-list li.is-exposed.is-lit { color: #8a5400; }
.is-exposed.is-lit .warn {
  background: #f2a516; border: 1.5px solid #f2a516; color: #3b2400;
  animation: warnPulse 1.6s ease-out infinite;
}
.is-exposed.is-lit .warn__tag { opacity: 1; transform: none; }
@keyframes warnPulse {
  0% { box-shadow: 0 0 0 0 rgba(242,165,22,.45); }
  100% { box-shadow: 0 0 0 12px rgba(242,165,22,0); }
}

.traits { display: grid; gap: 10px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 15px; }
.traits li { display: flex; align-items: center; gap: 12px; line-height: 24px; }
.traits li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--faint); }
.traits--private li { color: var(--ink); }
.traits--private li::before { background: var(--primary-bright); }

/* ------------------------------------------------------------------
   11. API CONSOLE — animated code per state (concept 1 §04)
   ------------------------------------------------------------------ */
.api { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.api__copy .body { margin: 28px 0 40px; }

.console {
  background: var(--primary-deep);
  color: #dfe1ff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(8, 11, 61, 0.55);
}
.console__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5);
}
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console__live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #a9adff; }
.console__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-bright); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 64, 255, .6); }
  50% { box-shadow: 0 0 0 5px rgba(52, 64, 255, 0); }
}

.console__code {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.console__code--req { min-height: calc(13px * 1.7 * 10 + 44px); }
.console__code--res { min-height: calc(13px * 1.7 * 10 + 44px); background: rgba(0,0,0,.18); }
.console__divider {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  border-block: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.45);
}
.console__divider b { font-weight: 500; color: #7ee2b8; }

.c-cmd { color: #fff; font-weight: 500; }
.c-flag { color: #8a8fd8; }
.c-str { color: #b9bcff; }
.c-key { color: #fff; }
.c-num { color: #ffcf8a; }
.c-bool { color: #ff9fb6; }
.c-punc { color: rgba(255,255,255,.45); }
.c-method { color: #fff; background: var(--primary); padding: 1px 6px; border-radius: 2px; }
.c-hot { background: rgba(52, 64, 255, .35); color: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(52, 64, 255, .35); }
.cursor {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  vertical-align: -3px; background: var(--primary-bright);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lifecycle {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}
.lifecycle button {
  position: relative;
  display: block; width: 100%; height: 100%;
  text-align: left;
  padding: 20px 14px 22px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35;
  color: rgba(255,255,255,.4);
  border-right: 1px solid rgba(255,255,255,.06);
  transition: color .5s, background-color .3s;
}
.lifecycle li:last-of-type button { border-right: 0; }
.lifecycle button:hover { background: rgba(255,255,255,.03); color: rgba(255,255,255,.7); }
.lifecycle button::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--primary-bright); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.lifecycle button i {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); margin-bottom: 12px;
  transition: background-color .4s, border-color .4s;
}
.lifecycle .is-done { color: rgba(255,255,255,.75); }
.lifecycle .is-done::after { transform: scaleX(1); }
.lifecycle .is-done i { background: var(--primary-bright); border-color: var(--primary-bright); }
.lifecycle .is-current { color: #fff; }
.lifecycle .is-current i { animation: pulse 1.4s ease-in-out infinite; }

/* ------------------------------------------------------------------
   12. USE CASES — bento (concept 2)
   ------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(52,64,255,.1), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.tile:hover { border-color: rgba(52,64,255,.35); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(18,26,180,.45); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; }
.tile h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: auto; }
.tile p { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 40ch; }
.tile__viz { height: 92px; margin-bottom: 24px; display: flex; align-items: center; }

.tile--dark { background: #0b0c14; border-color: #0b0c14; color: #fff; }
.tile--dark p { color: #9a9cad; }
.tile--dark::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(52,64,255,.25), transparent 60%); }
.tile--blue { background: var(--primary); border-color: var(--primary); color: #fff; }
.tile--blue p { color: rgba(255,255,255,.78); }
.tile--blue::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,255,255,.16), transparent 60%); }

/* Trading infrastructure: price chart with a privately routed order */
.viz-trade { gap: 16px; }
.tile__viz svg.viz-trade__chart { flex: 1 1 auto; min-width: 0; width: auto; max-width: 300px; height: 92px; }
.viz-trade .cdl path { stroke: var(--faint); stroke-width: 1.25; }
.viz-trade .cdl--up rect { fill: var(--primary-bright); }
.viz-trade .cdl--up path { stroke: var(--primary-bright); }
.viz-trade .cdl--down rect { fill: var(--surface); stroke: var(--faint); stroke-width: 1.25; }
.viz-trade .cdl__level { stroke: var(--primary-bright); stroke-width: 1; stroke-dasharray: 2 3; }
.viz-trade__tag {
  flex: none; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center;
  padding: 8px 12px; border: 1px solid var(--primary-bright); border-radius: 2px;
  font-family: var(--sans); font-size: 12px; line-height: 1.35; color: var(--muted);
}
.viz-trade__tag i { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); animation: pulse 2s ease-in-out infinite; }
.viz-trade__tag b { font-weight: 500; color: var(--accent); }

.tile__viz svg { width: 100%; max-width: 200px; height: 80px; fill: none; }
.tile__viz .g { stroke: var(--faint); stroke-width: 2; stroke-dasharray: 3 5; }
.tile__viz .b { stroke: var(--primary-bright); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 0; }
.tile__viz .bf { fill: var(--primary-bright); }
.tile:hover .tile__viz .b { animation: redraw 1.2s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 160; } }

.viz-mm { gap: 6px; align-items: flex-end; }
.viz-mm i { width: 14px; border-radius: 3px; background: var(--primary-soft); height: 30%; transition: height .5s var(--ease); }
.viz-mm i:nth-child(2) { height: 55%; }
.viz-mm i:nth-child(3) { height: 40%; background: var(--primary-bright); }
.viz-mm i:nth-child(4) { height: 70%; }
.viz-mm i:nth-child(5) { height: 50%; }
.viz-mm i:nth-child(6) { height: 85%; background: var(--primary-bright); }
.tile:hover .viz-mm i:nth-child(odd) { height: 75%; }

/* Trading bots: a slow, continuous feed; new lines push older ones up */
.viz-term {
  position: relative; display: block; overflow: hidden;
  font-family: var(--mono); font-size: 13px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 70%);
}
.viz-term__feed { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; flex-direction: column; gap: 4px; }
.viz-term code { display: block; font-family: inherit; line-height: 18px; color: #d6d7e3; white-space: nowrap; }
.viz-term code.is-new { animation: feedIn .7s var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.viz-term .p { color: #9a9cad; } .viz-term .h { color: #6f7390; } .viz-term .a { color: #555769; } .viz-term .b { color: #7c83ff; }
.viz-term .c { display: inline-block; width: 7px; height: 14px; background: var(--primary-bright); margin-left: 6px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.viz-switch { gap: 14px; }
.viz-switch .lbl { font-size: 14px; font-weight: 500; }
/* Wallet: starts off. JS switches private mode on after 5s (and on hover, only when it is off) */
.viz-switch .sw { width: 52px; height: 30px; border-radius: 999px; background: var(--faint); position: relative; transition: background-color .35s ease; }
.viz-switch .sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.viz-switch .sw.is-on { background: var(--primary-bright); }
.viz-switch .sw.is-on i { left: 25px; }

/* DEX: a swap with a public/private route choice */
.viz-swap { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; width: 100%; max-width: 240px; font-family: var(--sans); }
.swap__pair { position: relative; display: grid; gap: 4px; }
.swap__row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper);
  font-size: 13px; line-height: 20px;
}
.swap__row b { font-weight: 500; }
.swap__row span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.tok { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.tok--a { background: var(--primary-bright); }
.tok--b { background: #2f8fd8; }
.swap__flip {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--rule);
  transition: transform .5s var(--ease);
}
.swap__flip svg { width: 10px; height: 10px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .swap__flip { transform: rotate(180deg); }
.swap__route { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.swap__route span { margin-right: auto; }
.swap__route em { padding: 2px 8px; border-radius: 2px; border: 1px solid var(--rule); }
.swap__route em.on { background: var(--primary-bright); border-color: var(--primary-bright); color: #fff; }

/* DeFi protocols: protocol actions converging on the private RPC */
.viz-defi svg { width: 100%; max-width: 320px; height: 84px; fill: none; }
.viz-defi .ln { stroke: var(--primary-soft); stroke-width: 2; }
.viz-defi .pk { fill: var(--primary-bright); }
.viz-defi .mod rect { fill: var(--surface); stroke: var(--rule); }
.viz-defi .mod text { fill: var(--ink-2); font-family: var(--sans); font-size: 11px; text-anchor: middle; }
.viz-defi .core rect { fill: var(--surface); stroke: var(--primary-bright); stroke-width: 1.25; }
.viz-defi .core text { fill: var(--accent); font-family: var(--sans); font-size: 11.5px; font-weight: 500; text-anchor: middle; }
.viz-defi .settle { fill: var(--primary); }

.viz-inst { gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; flex-wrap: wrap; }
.viz-inst span { padding: 6px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,.3); }
.viz-inst span:last-child { background: #fff; color: var(--polygon); border-color: #fff; }
.inst-pg { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.inst-pg .pg__logo { width: 18px; height: 18px; margin: -3px 0; vertical-align: 0; }
.viz-inst b { width: 28px; height: 1px; background: rgba(255,255,255,.5); position: relative; }
.viz-inst b::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  opacity: 0; animation: instA 3s linear infinite;
}
/* a single transaction: crosses the first link, passes through Private RPC, then crosses the second */
.viz-inst b:nth-of-type(2)::after { animation-name: instB; }
@keyframes instA {
  0%   { left: 0; opacity: 0; }
  4%   { opacity: 1; }
  32%  { left: calc(100% - 5px); opacity: 1; }
  33%, 100% { left: calc(100% - 5px); opacity: 0; }
}
@keyframes instB {
  0%, 56% { left: 0; opacity: 0; }
  57%  { left: 0; opacity: 1; }
  86%  { left: calc(100% - 5px); opacity: 1; }
  90%, 100% { left: calc(100% - 5px); opacity: 0; }
}

/* ------------------------------------------------------------------
   13. ARCHITECTURE — horizontal, solid routes (concept 1 §06 reworked)
   ------------------------------------------------------------------ */
.arch-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.arch { width: 100%; min-width: 860px; height: auto; max-width: 1200px; margin-inline: auto; overflow: visible; }
.arch__labels text { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.arch__labels path { stroke: var(--accent); stroke-width: 1; fill: none; opacity: .35; }
.arch__links path { stroke: var(--primary-soft); stroke-width: 6; fill: none; stroke-linecap: round; }
.arch__active path { stroke: var(--primary-bright); stroke-width: 1.5; fill: none; opacity: .55; stroke-linecap: round; }

.arch__app rect { fill: var(--surface); stroke: var(--primary-bright); stroke-width: 1.25; }
.arch__app text, .arch__core text { font-family: var(--sans); font-size: 15px; text-anchor: middle; fill: var(--ink); }
.arch__core rect { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 1; }
.arch__core text { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.arch__core--settle rect { fill: var(--surface); stroke: var(--primary); stroke-width: 1.5; }
.arch__core--settle text { fill: var(--polygon); }
.arch__hint { display: none; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------
   14. DESIGN / PERFORMANCE TARGETS (concept 1 §07 + concept 2 bars)
   ------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 2px;
  border: 1px solid var(--rule);
  font-size: 13px; color: var(--muted);
  justify-self: end;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.metric {
  padding: 32px 28px 8px 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}
.metric + .metric { padding-left: 28px; }
.metric:last-child { border-right: 0; }
.metric dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metric dd {
  font-weight: 500;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric__pre, .metric__unit { font-size: .45em; letter-spacing: -0.02em; color: var(--accent-strong); }
.metric__slash { color: var(--faint); margin: 0 .04em; }
.metric__pg .pg { display: inline-flex; align-items: center; gap: .16em; }
.metric__pg .pg__logo { width: .84em; height: .84em; margin: .06em 0 0; vertical-align: 0; }
.metric__bar { display: block; height: 4px; border-radius: 4px; background: var(--primary-soft); position: relative; overflow: hidden; margin-top: 4px; }
.metric__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--primary-bright);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s;
}
.metric.is-visible .metric__bar::after { transform: scaleX(var(--v)); }
.footnote { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------
   14b. PRICING
   ------------------------------------------------------------------ */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); background: var(--surface); }
.tier { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px); }
.tier + .tier { border-left: 1px solid var(--rule); }
/* volume meter: how far up the monthly ladder this tier sits */
.tier__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 28px; }
.tier__meter i { display: block; height: 4px; border-radius: 2px; background: var(--primary-soft); position: relative; overflow: hidden; }
.tier__meter i.on::after {
  content: ""; position: absolute; inset: 0; background: var(--primary-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.tier.is-visible .tier__meter i.on::after { transform: scaleX(1); }
.tier.is-visible .tier__meter i.on:nth-child(2)::after { transition-delay: .25s; }
.tier.is-visible .tier__meter i.on:nth-child(3)::after { transition-delay: .5s; }
.tier.is-visible .tier__meter i.on:nth-child(4)::after { transition-delay: .75s; }
.tier__head h3 { font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.tier__range { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tier__range strong { font-weight: 500; color: var(--ink); }
.tier__prices { margin-top: 32px; display: grid; gap: 22px; }
.tier__price { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.tier__price dt { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tier__price dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.tier__amount { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier__price--landed .tier__amount { font-size: clamp(40px, 3.6vw, 56px); color: var(--accent); }
.tier__per { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.tier__note { margin-top: auto; padding-top: 24px; font-family: var(--sans); font-size: 14px; color: var(--accent); }
/* Scale: a quiet shine to reward the highest-volume tier.
   One 6s timeline shared by every part: first a glint runs along the whole meter,
   and as it finishes, the sheen crosses the card and the price. */
.tier--scale { --shine-dur: 6s; --shine-delay: 1s; position: relative; overflow: hidden; isolation: isolate; }
.tier--scale .tier__meter { position: relative; overflow: hidden; border-radius: 2px; }
.tier--scale .tier__meter::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9) 50%, rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: meterGlint var(--shine-dur) linear var(--shine-delay) infinite;
}
@keyframes meterGlint {
  0%        { transform: translateX(-100%); }
  25%, 100% { transform: translateX(360%); }
}
.tier--scale::after {
  content: ""; position: absolute; inset: -10% -60%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(52,64,255,.06) 47%, rgba(255,255,255,.75) 50%, rgba(52,64,255,.06) 53%, transparent 58%);
  transform: translateX(-70%);
  animation: tierSheen var(--shine-dur) ease-in-out var(--shine-delay) infinite;
}
@keyframes tierSheen {
  0%, 25%   { transform: translateX(-70%); }
  55%, 100% { transform: translateX(70%); }
}
.tier--scale .tier__price--landed .tier__amount {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 42%, #8d93ff 50%, var(--accent) 58%, var(--accent) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: priceShine var(--shine-dur) ease-in-out var(--shine-delay) infinite;
}
@keyframes priceShine {
  0%, 25%   { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tier--scale::after, .tier--scale .tier__meter::after { display: none; }
  .tier--scale .tier__price--landed .tier__amount { animation: none; color: var(--accent); background: none; }
}

.tiers__custom { margin-top: 10px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tiers__custom .btn--link { font-size: 15px; }
@media (max-width: 1200px) and (min-width: 961px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.tiers__how { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 72ch; }

.pricing-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(64px, 7vw, 96px); }
.pricing-detail__title { font-weight: 500; font-size: clamp(24px, 2vw, 28px); letter-spacing: -0.03em; margin-bottom: 28px; }

/* estimator */
.estimator__field { display: grid; gap: 10px; margin-bottom: 24px; }
.estimator__label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--sans); font-size: 15px; }
.estimator__label output { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.estimator__number {
  width: 8.5em; height: 40px; padding: 0 12px; text-align: right;
  font: 500 16px var(--sans); color: var(--accent); font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 2px;
  -webkit-appearance: none; appearance: none; -moz-appearance: textfield;
  transition: border-color .25s, box-shadow .25s;
}
.estimator__number::-webkit-outer-spin-button,
.estimator__number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.estimator__number:hover { border-color: var(--faint); }
.estimator__number:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 3px var(--primary-soft); }
.estimator input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0;
  --fill: 50%;
}
.estimator input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-bright) var(--fill), var(--primary-soft) var(--fill));
}
.estimator input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--primary-soft); }
.estimator input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--primary-bright); }
.estimator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--primary-bright); box-shadow: 0 2px 8px rgba(18,26,180,.2);
}
.estimator input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary-bright);
}
.estimator__result { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--rule-strong); }
.estimator__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.estimator__total span { font-family: var(--sans); font-weight: 500; font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.estimator__total small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.estimator__avg { margin-top: 10px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.estimator__avg span { color: var(--ink); font-weight: 500; }
.estimator__table { width: 100%; margin-top: 24px; border-collapse: collapse; font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }
.estimator__table th, .estimator__table td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.estimator__table th:first-child { text-align: left; }
.estimator__table thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.estimator__table tbody th { font-weight: 500; }
.estimator__table tr.is-zero { color: var(--faint); }
.estimator__note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* settlement explainer */
.settle__intro { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.settle__rows { display: grid; gap: 22px; }
.settle__row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.settle__name { font-family: var(--sans); font-weight: 500; font-size: 15px; }
.settle__bar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; background: var(--paper); }
.settle__bar i { display: block; width: var(--w); height: 100%; transform-origin: left; }
.settle__bar i + i { border-left: 2px solid var(--surface); }
.is-reserved { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary-bright); }
.is-settled { background: var(--primary-bright); }
.is-released { background: var(--primary-soft); }
.settle__value { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.settle__foot { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 52ch; }

.pricing-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px clamp(32px, 5vw, 80px); margin-top: clamp(56px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--rule); }
.pricing-terms li { font-size: 15px; color: var(--muted); max-width: 56ch; }
.pricing-terms strong { display: block; margin-bottom: 4px; font-family: var(--sans); font-weight: 500; color: var(--ink); }

@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--rule); }
  .pricing-detail, .pricing-terms { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   15. DEVELOPERS (concept 1 §09)
   ------------------------------------------------------------------ */
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 40px; max-width: 440px; }
.stack li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--rule); background: var(--surface); transition: border-color .3s, color .3s; }
.stack li:hover { border-color: var(--accent); color: var(--accent); }

.codebook { background: var(--surface); border: 1px solid var(--rule); }
.codebook__tabs {
  display: flex; border-bottom: 1px solid var(--rule);
  overflow-x: auto; overflow-y: hidden;          /* still swipeable on narrow screens */
  scrollbar-width: none; -ms-overflow-style: none;
}
.codebook__tabs::-webkit-scrollbar { display: none; }
.codebook__tabs button {
  position: relative; padding: 18px 24px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .3s;
}
.codebook__tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease);
}
.codebook__tabs button:hover { color: var(--ink); }
.codebook__tabs button[aria-selected="true"] { color: var(--accent); }
.codebook__tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.codebook__panel {
  margin: 0; padding: 32px 28px; min-height: 360px;
  font-family: var(--mono); font-size: 14px; line-height: 1.8; color: var(--ink-2);
  overflow-x: auto;
  background: linear-gradient(90deg, var(--primary-pale) 0 4px, transparent 4px) no-repeat;
  animation: fadeIn .5s var(--ease);
}
.codebook__panel .k { color: var(--accent-strong); font-weight: 500; }
.codebook__panel .s { color: var(--accent); }
.codebook__panel .m { color: var(--accent); background: var(--primary-soft); padding: 0 3px; }
.codebook__panel .n { color: var(--primary-bright); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
   16. FAQ (concept 1)
   ------------------------------------------------------------------ */
.faq { display: grid; gap: clamp(40px, 5vw, 64px); }
.faq__group { border-top: 1px solid var(--rule-strong); }
.faq__group-title {
  padding-top: 18px; margin-bottom: 4px;
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.faq__help { margin-top: 28px; font-size: 16px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.faq__help .btn--link { font-size: 16px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 28px 56px 28px 0;
  font-weight: 500; font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -0.02em; line-height: 1.3;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 16px; height: 1.5px; background: var(--accent);
  transition: transform .45s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 56px 32px 0; color: var(--muted); max-width: 60ch; animation: fadeIn .5s var(--ease); }
.faq details p a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq details p a:hover { color: var(--accent-strong); }

/* ------------------------------------------------------------------
   17. CLOSING CTA (concept 1 layout + ChatGPT 3 headline)
   ------------------------------------------------------------------ */
.closing {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--primary-deep), #0c1040);
  color: #fff;
  padding: clamp(112px, 14vw, 200px) 0 clamp(96px, 11vw, 160px);
}
.closing__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.closing__lines .is-lit {
  stroke: var(--primary-bright); stroke-width: 1.5;
  stroke-dasharray: 160 1400;
  animation: sweep 7s var(--ease-io) infinite;
  filter: drop-shadow(0 0 6px rgba(52, 64, 255, .8));
}
@keyframes sweep { from { stroke-dashoffset: 1560; } to { stroke-dashoffset: 0; } }
.closing__inner { position: relative; }
.closing__title {
  font-weight: 500;
  font-size: clamp(54px, 9.2vw, 144px);
  line-height: .97;
  letter-spacing: -0.045em;
}
.closing__title em { color: #a9adff; }
.closing__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.closing__row p { font-size: 19px; color: rgba(255,255,255,.75); max-width: 36ch; }
.closing__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.closing .btn--primary:hover { background: var(--primary-bright); }

/* ------------------------------------------------------------------
   18. FOOTER (concept 1)
   ------------------------------------------------------------------ */
.footer { padding: 96px 0 48px; background: var(--paper); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.footer__tag { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.footer__tag em { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0 72px; }
.footer__cols h3, .footer__heading { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.footer__cols a { position: relative; display: table; padding: 5px 0; font-size: 15px; color: var(--ink-2); transition: color .3s; }
.footer__cols a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.footer__cols a:hover { color: var(--accent); }
.footer__cols a:hover::after { transform: scaleX(1); }
.footer__bottom { display: grid; grid-template-columns: auto 1fr; gap: 48px; padding-top: 32px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.footer__disclaimer { max-width: 80ch; justify-self: end; text-align: right; }

/* ------------------------------------------------------------------
   18b. INNER PAGES (contact, terms, privacy, posts)
   ------------------------------------------------------------------ */
.page-shell { padding: clamp(56px, 8vw, 120px) 0 var(--section); }
.page-shell .chapter { margin-bottom: 20px; }
.entry { max-width: 760px; }
.entry + .entry { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.entry__title { font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 20px; }
.entry__title a:hover { color: var(--accent); }
.entry__meta { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.entry-content { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin-top: 1.9em; }
.entry-content h2 { font-size: 28px; } .entry-content h3 { font-size: 22px; } .entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--primary-bright); color: var(--ink); }
.entry-content pre, .entry-content code { font-family: var(--mono); font-size: .88em; }
.entry-content pre { padding: 20px; background: var(--surface); border: 1px solid var(--rule); overflow-x: auto; }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; }
.legal-note { padding: 14px 18px; background: #fff7e6; border: 1px solid #f3d9a4; color: #6b4600; font-family: var(--sans); font-size: 14px; }

/* contact page */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__lede { margin-top: 24px; color: var(--muted); font-size: 18px; max-width: 40ch; }
.contact__details { margin-top: 40px; border-top: 1px solid var(--rule-strong); }
.contact__details div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 15px; }
.contact__details dt { color: var(--muted); }
.contact__details a { color: var(--accent); }
.contact-form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--rule); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; font: 16px var(--text); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 3px var(--primary-soft); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-form__foot small { color: var(--muted); font-size: 13px; max-width: 40ch; }
.contact-form__foot small a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contact-form select { font-family: var(--sans); font-size: 15px; }
.notice { padding: 14px 18px; font-family: var(--sans); font-size: 15px; border: 1px solid; }
.notice--ok { background: #ecfbf3; border-color: #a6e3c4; color: #135c37; }
.notice--error { background: #fff1f1; border-color: #f2b8b8; color: #8a1c1c; }
.page-shell--contact > :not(.hs-section) { max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto 0; padding-inline: var(--gutter); }
.contact-form__label em { font-style: normal; color: var(--muted); }
.contact-form [aria-invalid="true"] { border-color: #d64545; background: #fff8f8; }
.contact-form__error { font-size: 13px; color: #a12121; }
.contact-form .notice { margin: 0; }
.contact-form--sent { justify-items: start; align-content: start; gap: 14px; min-height: 360px; outline: none; }
.contact-form--sent p { color: var(--muted); max-width: 46ch; }
.contact-form__title { font-family: var(--sans); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.contact-form__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-pale); border: 1px solid var(--border); }
.contact-form__check svg { width: 26px; height: 26px; fill: none; stroke: var(--primary-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-form .row { grid-template-columns: 1fr; } .contact-form__foot .btn { width: 100%; } }

/* ------------------------------------------------------------------
   19. SCROLL REVEAL
   ------------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .nav__docs { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__actions .btn { display: none; }
  body.menu-open { overflow: hidden; }

  .hero__stage { min-height: 0; }
  .hero__veil { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--paper) 55%, transparent) 45%, var(--paper) 100%); }
  .hero__grid, .split, .api, .dev { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
  .section-head { grid-template-columns: 1fr; row-gap: 24px; }
  .section-head__aside, .badge { justify-self: start; }

  .flow--h { display: none; }
  .flow--v { display: block; }
  .plate__legend { display: none; }

  .ledger { grid-template-columns: 1fr; }
  .ledger__col--private { border-left: 0; border-top: 1px solid var(--rule); }

  .arch__hint { display: block; }

  .closing__row { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { grid-template-columns: 1fr; gap: 16px; }
  .footer__disclaimer { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__cta .btn--link { align-self: flex-start; }
  .plate { margin-inline: calc(var(--gutter) * -0.5); }
  .plate__head span:nth-child(2) { display: none; }
  .console__code { font-size: 11.5px; padding: 18px 16px; }
  .console__code--req, .console__code--res { min-height: calc(11.5px * 1.7 * 10 + 36px); }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle button { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .lifecycle button i { margin: 0; }
  .lifecycle button::after { top: auto; bottom: -1px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 28px 0 8px; border-right: 0; }
  .metric + .metric { border-top: 1px solid var(--rule); margin-top: 24px; }
  .codebook__panel { font-size: 12.5px; padding: 24px 18px; min-height: 0; }
  .closing__cta { width: 100%; flex-direction: column; }
  .closing__cta .btn { width: 100%; }
  .faq summary { padding-right: 40px; }
  .faq details p { padding-right: 0; }
}

/* Exposure step on narrow layouts: the label is aligned like every other step;
   when the warning lights, it slides up and the tag appears underneath, inside the same row */
@media (max-width: 960px) {
  .route-list li.is-exposed { white-space: nowrap; }
  .exp__label { display: inline-block; transition: transform .45s var(--ease); }
  .route-list li.is-exposed .warn__tag {
    position: absolute; left: 34px; top: calc(50% + 2px); margin: 0;
    padding: 1px 7px; font-size: 11px; line-height: 16px;
    transform: translateY(6px);
  }
  .route-list li.is-exposed.is-lit .exp__label { transform: translateY(-10px); }
  .route-list li.is-exposed.is-lit .warn__tag { transform: translateY(0); }
}
@media (max-width: 380px) { .route-list li.is-exposed { white-space: normal; } }

/* ------------------------------------------------------------------
   20b. TABLET + PHONE REFINEMENTS
   ------------------------------------------------------------------ */
/* touch screens: no sticky hover lifts after a tap */
@media (hover: none) {
  .tile:hover { transform: none; box-shadow: none; border-color: var(--rule); }
  .tile--dark:hover { border-color: #0b0c14; }
  .tile--blue:hover { border-color: var(--primary); }
  .tile:hover::before { opacity: 0; }
}

/* tablets: keep two columns where there is room */
@media (min-width: 641px) and (max-width: 960px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger__col--private { border-left: 1px solid var(--rule); border-top: 0; }
  .ledger__col { padding: 28px 24px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier + .tier { border-top: 0; }
  .tier:nth-child(2n) { border-left: 1px solid var(--rule); }
  .tier:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pricing-terms { grid-template-columns: 1fr 1fr; }
  .hero__stage { padding-bottom: 72px; }
  .lede { max-width: 46ch; }
}

/* phones */
@media (max-width: 640px) {
  :root { --section: 72px; --gutter: 20px; }
  .section-head { margin-bottom: 40px; }
  .h2 { font-size: clamp(34px, 9.6vw, 44px); }
  .chapter { margin-bottom: 18px; }

  .hero__stage { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero__eyebrow { margin-bottom: 22px; font-size: 13px; }
  .hero__grid { margin-top: 32px; }

  .benefit { grid-template-columns: 40px 1fr; padding: 24px 0 28px; }
  .benefits { margin-top: 36px; }
  .plate { padding: 18px 16px; margin-top: 40px; }
  .plate figcaption { font-size: 15px; }

  .ledger__col { padding: 24px 20px; }
  .ledger__head { margin-bottom: 24px; }
  .route-list li { font-size: 15px; }

  .tile { min-height: 0; padding: 20px; }
  .tile__viz { margin-bottom: 18px; }

  /* design targets: 2 × 2 instead of one tall column */
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric, .metric + .metric { padding: 22px 12px 8px 0; border-right: 0; margin-top: 0; border-top: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--rule); }
  .metric:nth-child(even) { padding-left: 16px; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .metric dd { font-size: clamp(34px, 10vw, 44px); }
  .metric dt { font-size: 11px; letter-spacing: .1em; }

  /* code tabs: all four fit without scrolling */
  .codebook__tabs button { flex: 1 1 0; padding: 14px 4px; font-size: 12px; }
  .stack { margin: 28px 0 32px; }

  .tier { padding: 24px 20px; }
  .tier__prices { margin-top: 22px; gap: 16px; }
  .estimator__table th, .estimator__table td { padding: 9px 0; font-size: 14px; }

  .faq summary { font-size: 19px; padding-top: 22px; padding-bottom: 22px; }
  .faq { gap: 36px; }

  .closing { padding: 88px 0 72px; }
  .closing__row { margin-top: 40px; padding-top: 28px; }
  .footer { padding: 64px 0 40px; }
  .footer__top { padding-bottom: 36px; }
  .footer__cols { padding: 36px 0 44px; gap: 28px 20px; }
  .footer__cols a { padding: 7px 0; }
}

/* ------------------------------------------------------------------
   21. REDUCED MOTION
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .route-dot, .viz-defi .pk { display: none; }

  .is-exposed .warn { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ------------------------------------------------------------------
   WORDPRESS
   ------------------------------------------------------------------ */
/* keep the sticky header below the admin toolbar when logged in */
.admin-bar .nav { top: 32px; }
.admin-bar .mobile-menu { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .mobile-menu { top: calc(var(--nav-h) + 46px); }
}
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

.alignwide { max-width: 1100px; } .alignfull { max-width: none; }
.pagination { margin-top: 56px; display: flex; gap: 12px; font-family: var(--sans); }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--rule); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.not-found .btn { margin-top: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* regular editor blocks placed between Hyperstrate sections on the home page */
.hs-main > :not(.hs-section) { max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto; padding-inline: var(--gutter); }
.hs-main > .alignfull:not(.hs-section) { max-width: none; padding-inline: 0; }

/* ------------------------------------------------------------------
   ARTICLE CARDS (blog, related articles, home page "Latest insights")
   ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__media { display: block; aspect-ratio: 40 / 21; overflow: hidden; border: 1px solid var(--rule); border-radius: 2px; background: var(--primary-pale); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; padding-top: 22px; flex: 1; }
.post-card__cat {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.post-card__cat:hover { color: var(--accent-strong); }
.post-card__title { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.post-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .45s var(--ease); }
.post-card__title a:hover { color: var(--accent); background-size: 100% 1px; }
.post-card__excerpt { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.post-card__meta { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.insights .section-head__aside p { margin-bottom: 18px; }
.insights__all { font-size: 15px; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .insights .post-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .insights .post-card:nth-child(3) { display: flex; } }
/* Eight header links (with Blog): a little less space between them on small laptops */
@media (min-width: 961px) and (max-width: 1060px) { .nav__links { gap: 18px; } }
