/* ==========================================================================
   Paynexis — visual system
   Dark base, warm orange accent, large grotesk type with serif italic accents.
   Sections change tone (ink, deep, paper, ember) so pages keep a rhythm instead of
   one long dark scroll; every tone re-maps the same tokens, so components adapt.
   Contents: 1 fonts · 2 tokens · 3 base · 4 layout · 4b tones · 5 type · 6 buttons & links
   7 header & nav · 8 footer · 9 components · 10 illustrations · 11 home
   12 inner pages · 12b patterns · 13 forms · 14 application · 15 motion & print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Inter (SIL OFL 1.1), self-hosted variable font, Latin subset. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Instrument Serif (SIL OFL 1.1), italic only: accent words in headlines. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallback keeps text from shifting when Inter loads. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour. Contrast on --bg: text 17.3:1, text-2 7.3:1, text-3 5.6:1, accent 6.2:1. */
  --bg: #111113;
  --bg-soft: #141416;
  --surface: #19191c;
  --surface-2: #202024;
  --surface-3: #26262b;
  --border: #2a2a2e;
  --border-strong: #3a3a40;
  --border-input: #74747e; /* 4.1:1 on --bg (3.8:1 on --surface) for form control boundaries */
  --text: #f5f5f7;
  --text-2: #a0a0a9;
  --text-3: #8b8b95;
  --accent: #f26a44;
  --accent-hover: #ff7d59;
  --accent-press: #e05a35;
  --accent-ink: #111113; /* text on accent: 6.2:1 */
  --accent-text: var(--accent); /* accent used as text colour; darker on light tones */
  --ph-text: #ffb39c;
  --accent-soft: rgb(242 106 68 / 0.12);
  --accent-line: rgb(242 106 68 / 0.38);
  --success: #5bd69a;
  --success-soft: rgb(91 214 154 / 0.12);
  --danger: #ff7a70;
  --danger-soft: rgb(255 122 112 / 0.1);
  --info: #8fb4ff;
  --info-soft: rgb(143 180 255 / 0.1);
  --focus: #ffb59e;
  /* Light and accent surfaces used by .tone-paper and .tone-ember */
  --paper: #f3efe8;
  --deep: #0b0b0d;

  /* Type */
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fs-giant: clamp(3rem, 1rem + 7.4vw, 8.5rem);
  --fs-display: clamp(2.75rem, 1.2rem + 5.4vw, 6.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3.125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section: clamp(72px, 5rem + 4vw, 144px);

  /* Shape & depth */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.65);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 420ms;
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
a {
  color: inherit;
}
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
strong {
  font-weight: 620;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-3);
}

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
  position: relative;
}
.section-tight {
  padding-block: calc(var(--section) * 0.6);
}
.section.has-rule {
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-soft);
}
.section-head {
  display: grid;
  gap: var(--s-4);
  max-width: 820px;
  margin-bottom: clamp(var(--s-7), 4vw, var(--s-8));
}
.section-head.is-split {
  max-width: none;
}
@media (min-width: 960px) {
  .section-head.is-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--s-8);
  }
  .section-head.is-split .eyebrow {
    grid-column: 1 / -1;
  }
  .section-head.is-split.is-top {
    align-items: start;
  }
}
.grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.split {
  display: grid;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split.is-reversed > :first-child {
    order: 2;
  }
  .split.is-top {
    align-items: start;
  }
}
.stack {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.stack-lg {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}

/* 4b. Tones ---------------------------------------------------------------- */
/* A tone re-maps the colour tokens for everything inside it, so cards, lists, tables,
   FAQ items and buttons adapt without their own variants. Use on sections or on tiles. */
.tone-deep {
  --bg: var(--deep);
  --bg-soft: #0f0f12;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  background-color: var(--bg);
  color: var(--text);
}
.tone-paper {
  color-scheme: light;
  --bg: var(--paper);
  --bg-soft: #ece7de;
  --surface: #fbf9f5;
  --surface-2: #f6f2ec;
  --surface-3: #e7e0d4;
  --border: #ddd5c8;
  --border-strong: #c3b9a8;
  --border-input: #8a8378;
  --text: #141416; /* 16:1 */
  --text-2: #4a4741; /* 8.1:1 */
  --text-3: #5c5850; /* 6.2:1 */
  --accent-text: #a8391a; /* 5.6:1 */
  --accent-soft: rgb(242 106 68 / 0.14);
  --accent-line: rgb(168 57 26 / 0.38);
  --ph-text: #9a3412;
  --focus: #a8391a;
  --info: #2f5fc4;
  --info-soft: rgb(47 95 196 / 0.08);
  --shadow: 0 24px 60px -30px rgb(60 40 20 / 0.35);
  background-color: var(--bg);
  color: var(--text);
}
.tone-ember {
  --bg: var(--accent);
  --bg-soft: #f47b58;
  --surface: #f57d5b;
  --surface-2: #f78a6a;
  --surface-3: #f99777;
  --border: rgb(17 17 19 / 0.16);
  --border-strong: rgb(17 17 19 / 0.32);
  --text: #111113; /* 6.2:1 */
  --text-2: #2a1209; /* 5.8:1 */
  --text-3: #3b1a0e; /* 5.2:1 */
  --accent-text: #111113;
  --accent-soft: rgb(17 17 19 / 0.08);
  --accent-line: rgb(17 17 19 / 0.4);
  --ph-text: #111113;
  --focus: #111113;
  background-color: var(--bg);
  color: var(--text);
}
.tone-glow {
  background:
    radial-gradient(60% 70% at 85% 0%, rgb(242 106 68 / 0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(242 106 68 / 0.08), transparent 70%),
    var(--bg);
}
/* Faint drafting grid behind a section, fading toward the edges. */
.has-grid {
  position: relative;
  isolation: isolate;
}
.has-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.tone-paper.has-grid::before {
  background-image: linear-gradient(rgb(20 20 22 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(20 20 22 / 0.05) 1px, transparent 1px);
}
/* Film grain: a tiny SVG noise tile, so large flat colour fields do not look plastic. */
.has-grain {
  position: relative;
  isolation: isolate;
}
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.tone-paper .btn-secondary:hover {
  --btn-bg: var(--surface);
  --btn-border: var(--text-3);
}
.tone-ember .btn-primary {
  --btn-bg: #111113;
  --btn-fg: #f5f5f7;
  --btn-border: #111113;
}
.tone-ember .btn-primary:hover {
  --btn-bg: #26262b;
  --btn-border: #26262b;
}
.tone-ember .btn-secondary {
  --btn-border: rgb(17 17 19 / 0.5);
}
.tone-ember .btn-secondary:hover {
  --btn-bg: rgb(17 17 19 / 0.08);
  --btn-border: #111113;
}
.tone-ember ::selection {
  background: #111113;
  color: var(--accent);
}
.tone-paper .faq-item summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.tone-paper .check-list li::before,
.tone-ember .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
}
.tone-paper .check-list li::before {
  background-color: rgb(242 106 68 / 0.28);
}

/* 5. Type ----------------------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 640;
}
.h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.h2,
.section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.032em;
  line-height: 1.06;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  /* Instrument Serif runs small next to Inter: lift it to the same visual size. */
  font-size: 1.08em;
  line-height: 0.9;
}
.serif-accent {
  color: var(--accent-text);
}
.h-giant {
  font-size: var(--fs-giant);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 640;
}
.h-xl {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}
.mono {
  font-family: var(--font-mono);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 62ch;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: var(--fs-small);
}
.xs {
  font-size: var(--fs-xs);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.accent {
  color: var(--accent-text);
}
.prose {
  max-width: 72ch;
  color: var(--text-2);
}
.prose > * + * {
  margin-top: var(--s-4);
}
.prose h2 {
  color: var(--text);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  margin-top: var(--s-7);
}
.prose h3 {
  color: var(--text);
  font-size: 1.1875rem;
  margin-top: var(--s-6);
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: var(--s-2);
}
.prose a {
  color: var(--accent-text);
}
.prose strong {
  color: var(--text);
}

/* 6. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-5);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--t) var(--ease);
}
.btn:hover .icon-arrow,
.btn:focus-visible .icon-arrow {
  transform: translateX(3px);
}
.btn:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
}
.btn-primary:active {
  --btn-bg: var(--accent-press);
}
.btn-secondary:hover {
  --btn-border: var(--text-2);
  --btn-bg: var(--surface);
}
.btn-ghost {
  --btn-border: transparent;
  padding-inline: var(--s-3);
}
.btn-ghost:hover {
  --btn-bg: var(--surface-2);
}
.btn-sm {
  min-height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--fs-small);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
@media (max-width: 479px) {
  .btn-row.is-stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row.is-stack-mobile .btn {
    width: 100%;
    white-space: normal;
  }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.link-arrow .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
  transition: transform var(--t) var(--ease);
}
.link-arrow:hover {
  border-color: var(--accent-text);
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}
.text-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--accent-hover);
}

/* 7. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
/* The frosted background sits on a layer of its own. A backdrop-filter on the header itself
   would make the header the box that the fixed mobile menu is measured against, and the
   open menu would shrink to the height of the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(17 17 19 / 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  flex: none;
}
.brand-mark {
  /* Reserved slot for {{LOGO_ASSET}}; a neutral geometric mark until the logo arrives. */
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), #ff9a74, var(--accent));
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 6px, #000 6.5px);
  mask: radial-gradient(circle at 50% 50%, transparent 6px, #000 6.5px);
}
.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.035em;
}
.brand-logo {
  height: 28px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 520;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface-2);
}
.nav-link.is-active,
.nav-trigger.is-active,
.nav-link[aria-current="page"] {
  color: var(--text);
}
.nav-link.is-active::after,
.nav-trigger.is-active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
}
.nav-chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease);
}
.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}
.nav-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.nav-sub-link {
  display: grid;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-sub-link:hover,
.nav-sub-link:focus-visible {
  background: var(--surface-3);
}
.nav-sub-link[aria-current="page"] .nav-sub-title {
  color: var(--accent-text);
}
.nav-sub-title {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
}
.nav-sub-desc {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle .icon {
  width: 20px;
  height: 20px;
}
.nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

/* Desktop dropdowns */
@media (min-width: 1024px) {
  .nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 300px;
    padding: var(--s-2);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  }
  .nav-sub::before {
    /* Hover bridge between trigger and panel */
    content: "";
    position: absolute;
    inset: -12px 0 auto 0;
    height: 12px;
  }
  .js .nav-trigger[aria-expanded="true"] + .nav-sub,
  .no-js .has-sub:hover > .nav-sub,
  .no-js .has-sub:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
}

/* Mobile navigation */
@media (max-width: 1023px) {
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .site-nav {
    position: fixed;
    /* Below the header and its 1px border, down to the bottom of the screen. */
    inset: calc(var(--header-h) + 1px) 0 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-5);
    margin: 0;
    padding: var(--s-5) var(--gutter) var(--s-7);
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav .nav-item {
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-link,
  .site-nav .nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 60px;
    padding: 0;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
  }
  .site-nav .nav-link.is-active::after,
  .site-nav .nav-trigger.is-active::after {
    display: none;
  }
  .site-nav .nav-chevron {
    width: 22px;
    height: 22px;
    margin-left: auto;
  }
  .js .site-nav .nav-sub {
    display: none;
    padding-bottom: var(--s-4);
  }
  .js .site-nav .nav-trigger[aria-expanded="true"] + .nav-sub {
    display: block;
  }
  .site-nav .nav-sub-link {
    padding: var(--s-3) 0 var(--s-3) var(--s-4);
    border-left: 1px solid var(--border-strong);
    border-radius: 0;
  }
  .site-nav .nav-sub-link:hover {
    background: transparent;
    border-left-color: var(--accent-text);
  }
  .nav-cta {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }
  /* Without JavaScript the navigation is shown as a plain list under the brand. */
  .no-js .header-inner {
    flex-wrap: wrap;
    padding-block: var(--s-3);
  }
  .no-js .site-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .no-js .site-nav .nav-trigger {
    min-height: 48px;
    font-size: 1rem;
    cursor: default;
  }
  .no-js .site-nav .nav-chevron {
    display: none;
  }
  .no-js .site-header {
    position: static;
  }
}
body.nav-open {
  overflow: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-top: var(--s-5);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}
.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
  padding-block: 6px;
}
.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--text);
}

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: var(--s-9) 0 0;
  background: var(--deep);
}
.footer-mark {
  margin-top: var(--s-7);
  line-height: 0.74;
  height: 0.62em;
  font-size: clamp(5rem, 1rem + 19.5vw, 19rem);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.footer-mark::before {
  content: "Paynexis";
  display: block;
  font-weight: 700;
  letter-spacing: -0.075em;
  text-align: center;
  background: linear-gradient(180deg, rgb(242 106 68 / 0.85), rgb(242 106 68 / 0.05) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-top {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    gap: var(--s-8);
  }
}
.footer-brand {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  max-width: 380px;
}
.footer-tagline {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.footer-nav {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.footer-col a {
  display: inline-block;
  padding-block: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.footer-bottom a {
  color: var(--text-2);
}

/* 9. Components ----------------------------------------------------------- */
/* Placeholder label for facts that are not confirmed yet. */
.ph {
  display: inline;
  padding: 1px 6px;
  border: 1px dashed var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ph-text);
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 560;
  color: var(--text-2);
  background: var(--surface);
  white-space: nowrap;
}
.tag-accent {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.tag-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.card {
  position: relative;
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-link {
  text-decoration: none;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.card-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
}
.icon-badge .icon {
  width: 24px;
  height: 24px;
}

/* Open feature grid with hairlines */
.feature-grid {
  display: grid;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .feature-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .feature {
    padding: var(--s-6) var(--s-6) var(--s-7) 0;
  }
  .feature-grid > .feature:not(:nth-child(2n + 1)) {
    padding-left: var(--s-6);
    border-left: 1px solid var(--border);
  }
}
@media (min-width: 1024px) {
  .feature-grid.cols-3 > .feature {
    padding-left: var(--s-6);
    border-left: 1px solid var(--border);
  }
  .feature-grid.cols-3 > .feature:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
}
.feature h3 {
  font-size: var(--fs-h3);
}
.feature p {
  color: var(--text-2);
}
.feature .link-arrow {
  justify-self: start;
  margin-top: var(--s-2);
}
.feature-task {
  font-size: var(--fs-small);
  color: var(--text-3);
}
.feature-task strong {
  color: var(--text-2);
  font-weight: 600;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26A44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.check-list strong {
  color: var(--text);
}
.dash-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.dash-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* Numbered steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps.is-row {
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    gap: 0;
  }
}
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--border-strong);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent-text);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 900px) {
  .steps.is-row .step {
    padding-right: var(--s-6);
  }
}
.step h3 {
  font-size: 1.25rem;
}
.step p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

/* Notices */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-small);
}
.notice > .icon {
  margin-top: 2px;
  color: var(--text-2);
}
.notice strong {
  color: var(--text);
}
.notice-info {
  border-color: rgb(143 180 255 / 0.35);
  background: var(--info-soft);
}
.notice-info > .icon {
  color: var(--info);
}
.notice-warning {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.notice-warning > .icon {
  color: var(--accent-text);
}
.notice-success {
  border-color: rgb(91 214 154 / 0.4);
  background: var(--success-soft);
}
.notice-success > .icon {
  color: var(--success);
}
.notice-error {
  border-color: rgb(255 122 112 / 0.45);
  background: var(--danger-soft);
}
.notice-error > .icon {
  color: var(--danger);
}
.notice-body {
  display: grid;
  gap: var(--s-2);
}

/* Status dot used in notices that scripts build (they cannot use the SVG icon set). */
.notice > .icon-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text-2);
}
.notice-info > .icon-dot {
  background: var(--info);
}
.notice-error > .icon-dot {
  background: var(--danger);
}
.notice-success > .icon-dot {
  background: var(--success);
}
.notice-warning > .icon-dot {
  background: var(--accent);
}

/* Template banner for legal drafts */
.template-banner {
  margin-bottom: var(--s-7);
}

/* FAQ (native details/summary: works without JavaScript) */
.faq-list {
  border-top: 1px solid var(--border);
  counter-reset: faq;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item {
  counter-increment: faq;
}
.faq-item summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color var(--t-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-3);
  align-self: baseline;
  padding-top: 0.2em;
}
.faq-item[open] summary::before {
  color: var(--accent-text);
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F5F7' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--accent-text);
  border-color: var(--accent-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.faq-item summary:hover {
  color: var(--accent-text);
}
.faq-item summary:focus-visible {
  outline-offset: 4px;
}
.faq-answer {
  padding: 0 calc(36px + var(--s-5)) var(--s-5) calc(34px + var(--s-4));
  color: var(--text-2);
  max-width: 78ch;
}
.faq-answer p + p {
  margin-top: var(--s-3);
}
.faq-answer a {
  color: var(--accent-text);
}
.faq-group + .faq-group {
  margin-top: var(--s-8);
}
.faq-group-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-4);
}
@media (min-width: 960px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }
  .faq-toc {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
  }
}
.faq-toc ul {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
@media (min-width: 960px) {
  .faq-toc ul {
    display: grid;
    gap: 2px;
  }
}
.faq-toc a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
}
@media (min-width: 960px) {
  .faq-toc a {
    border: 0;
    border-left: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 8px 14px;
  }
}
.faq-toc a:hover {
  color: var(--text);
  border-color: var(--accent-text);
}

/* Horizontal accordion (advantages) */
.hacc {
  display: grid;
  gap: var(--s-3);
}
.hacc-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.hacc {
  counter-reset: hacc;
}
.hacc-panel {
  counter-increment: hacc;
}
.hacc-panel.is-open {
  border-color: var(--accent-line);
  background: radial-gradient(90% 70% at 100% 100%, rgb(242 106 68 / 0.22), transparent 60%),
    linear-gradient(180deg, rgb(242 106 68 / 0.08), transparent 55%), var(--surface);
}
@media (min-width: 1024px) {
  .js .hacc-panel.is-open::after {
    content: counter(hacc, decimal-leading-zero);
    position: absolute;
    right: 28px;
    bottom: -0.12em;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15rem;
    line-height: 1;
    color: rgb(242 106 68 / 0.22);
    pointer-events: none;
    animation: hacc-in var(--t-slow) var(--ease);
  }
}
.hacc-heading {
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
}
.hacc-trigger {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  min-height: 72px;
  padding: var(--s-4) var(--s-5);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.hacc-trigger:focus-visible {
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}
.hacc-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent-text);
  min-width: 2ch;
}
.hacc-title {
  flex: 1;
}
.hacc-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  flex: none;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.hacc-icon .icon {
  width: 16px;
  height: 16px;
}
.hacc-trigger[aria-expanded="true"] .hacc-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent-text);
  color: var(--accent-ink);
}
.hacc-content {
  padding: 0 var(--s-5) var(--s-6);
  display: grid;
  gap: var(--s-4);
  color: var(--text-2);
}
.hacc-content .hacc-lead {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.5;
}
.hacc-art {
  color: var(--accent-text);
  opacity: 0.9;
}
.js .hacc-panel:not(.is-open) .hacc-content {
  display: none;
}
@media (min-width: 1024px) {
  .js .hacc {
    display: flex;
    gap: var(--s-3);
    min-height: 460px;
  }
  .js .hacc-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: flex-grow var(--t-slow) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
  }
  .js .hacc-panel.is-open {
    flex-grow: 4.2;
  }
  .js .hacc-panel:not(.is-open) .hacc-trigger {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--s-5) var(--s-4);
  }
  .js .hacc-panel:not(.is-open) .hacc-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    flex: none;
    white-space: nowrap;
    font-size: 1rem;
    color: var(--text-2);
  }
  .js .hacc-panel:not(.is-open):hover .hacc-title {
    color: var(--text);
  }
  .js .hacc-panel.is-open .hacc-trigger {
    padding: var(--s-6) var(--s-6) var(--s-4);
    font-size: 1.5rem;
  }
  .js .hacc-panel.is-open .hacc-content {
    padding: 0 var(--s-6) var(--s-6);
    flex: 1;
    align-content: space-between;
    animation: hacc-in var(--t-slow) var(--ease);
  }
}
@keyframes hacc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Tables */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.table caption {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  color: var(--text-3);
  font-size: var(--fs-xs);
  caption-side: bottom;
  border-top: 1px solid var(--border);
}
.table th,
.table td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-soft);
}
.table tbody th {
  color: var(--text);
  font-weight: 600;
  width: 26%;
}
.table td {
  color: var(--text-2);
}
.table tbody tr:last-child > * {
  border-bottom: 0;
}
@media (max-width: 719px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-stack tr {
    display: block;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--border);
  }
  .table-stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table-stack th,
  .table-stack td {
    display: block;
    width: auto !important;
    padding: var(--s-1) 0;
    border: 0;
  }
  .table-stack tbody th {
    padding-bottom: var(--s-2);
    font-size: 1rem;
  }
  .table-stack td::before {
    content: attr(data-label) ": ";
    color: var(--text);
    font-weight: 600;
  }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-5), 5vw, var(--s-9));
  border: 1px solid var(--accent-line);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(242 106 68 / 0.28), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgb(242 106 68 / 0.1), transparent 60%),
    var(--surface);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .cta-band {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
  }
}
.cta-band h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.032em;
}
.cta-band p {
  color: var(--text-2);
  max-width: 58ch;
  margin-top: var(--s-4);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 0 40px rgb(242 106 68 / 0.04), 0 0 0 80px rgb(242 106 68 / 0.03);
  pointer-events: none;
}

/* Info list / definition rows */
.def-list {
  display: grid;
  border-top: 1px solid var(--border);
}
.def-row {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .def-row {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--s-5);
  }
}
.def-row dt {
  color: var(--text-3);
  font-size: var(--fs-small);
}
.def-row dd {
  margin: 0;
  color: var(--text);
}

/* Callout with placeholder facts */
.facts {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.facts-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.facts dl {
  display: grid;
  gap: var(--s-3);
}
.facts dt {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.facts dd {
  margin: 2px 0 0;
}

/* 10. Illustrations ------------------------------------------------------- */
.illustration {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(160deg, var(--border-strong), var(--border) 40%) border-box;
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  overflow: hidden;
}
.illustration::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.illustration > * {
  position: relative;
}
.illus-tag {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--bg);
}
.illus-caption {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.illus-svg {
  width: 100%;
  height: auto;
}

/* Flow card (hero) */
.flow {
  list-style: none;
  margin: 0;
  padding: var(--s-6) 0 0;
  display: grid;
  gap: 28px;
}
.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.flow-node + .flow-node::before {
  /* connector */
  content: "";
  position: absolute;
  left: calc(var(--s-5) + 23px);
  top: -29px;
  width: 2px;
  height: 28px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px);
  background-size: 2px 8px;
  animation: flow-dash 1.2s linear infinite;
}
@keyframes flow-dash {
  to {
    background-position: 0 8px;
  }
}
.flow-node .icon-badge {
  width: 48px;
  height: 48px;
}
.flow-body {
  display: grid;
  gap: var(--s-2);
  min-width: 0;
}
.flow-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-weight: 620;
  font-size: 1.0625rem;
}
.flow-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.flow-desc {
  font-size: var(--fs-small);
  color: var(--text-2);
  line-height: 1.45;
}
.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-1);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  font-size: var(--fs-xs);
  color: var(--text);
  white-space: nowrap;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.chip .dot.is-ring {
  background: transparent;
  border: 1.5px solid var(--accent);
}
.chip-arrow {
  color: var(--accent-text);
  font-weight: 700;
}
.fan {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-1);
}
.fan-src {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.fan-lines {
  width: 46px;
  height: 46px;
  color: var(--accent-text);
}
.fan-dsts {
  display: grid;
  gap: 4px;
}
.fan-dsts span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
}
.fan-dsts span:nth-child(1) { width: 64px; }
.fan-dsts span:nth-child(2) { width: 48px; }
.fan-dsts span:nth-child(3) { width: 72px; }
.fan-dsts span:nth-child(4) { width: 40px; }
.fan-dsts span:nth-child(5) { width: 56px; }

/* Address visual */
.addr-visual {
  display: grid;
  gap: var(--s-5);
}
.addr-svg {
  width: 100%;
  height: auto;
  color: var(--accent-text);
}
.addr-svg .muted-stroke {
  stroke: var(--border-strong);
}
.addr-svg .soft-fill {
  fill: var(--surface-3);
}
.addr-svg .accent-fill {
  fill: var(--accent);
}
.addr-svg .accent-stroke {
  stroke: var(--accent);
}
.addr-svg .bg-fill {
  fill: var(--surface);
}
.addr-svg .line-fill {
  fill: var(--border-strong);
}
.addr-svg .flow-path {
  stroke-dasharray: 4 6;
  animation: dash-move 1.6s linear infinite;
}
@keyframes dash-move {
  to {
    stroke-dashoffset: -20;
  }
}

/* Skeleton UI fragments */
.ui-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  font-size: var(--fs-xs);
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ui-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.ui-bar span {
  margin-left: 8px;
  color: var(--text-3);
}
.ui-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 220px;
}
@media (max-width: 479px) {
  .ui-body {
    grid-template-columns: 1fr;
  }
  .ui-side {
    display: none !important;
  }
}
.ui-side {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 10px;
  border-right: 1px solid var(--border);
}
.ui-side span {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-3);
}
.ui-side span.is-on {
  background: var(--surface-2);
  color: var(--text);
}
.ui-main {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.ui-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.ui-row.is-head {
  background: transparent;
  border-color: transparent;
  color: var(--text-3);
  padding-block: 0;
}
.sk {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
}
.sk.w-40 { width: 40%; }
.sk.w-60 { width: 60%; }
.sk.w-80 { width: 80%; }
.sk.is-accent {
  background: var(--accent-line);
}
.status-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.status-pill.is-accent::before {
  background: var(--accent);
}

.ui-pane {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.seg {
  display: inline-flex;
  justify-self: start;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.seg span {
  padding: 5px 12px;
  border-radius: 7px;
  color: var(--text-3);
}
.seg span.is-on {
  background: var(--surface-3);
  color: var(--text);
}
.ui-field {
  display: grid;
  gap: 6px;
}
.ui-label {
  color: var(--text-3);
  font-size: 11px;
}
.ui-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}
.ui-input .sk {
  flex: 0 1 auto;
}
.ui-input.mono,
.addr-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.ui-hint {
  color: var(--text-3);
  font-size: 11px;
}
.addr-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.addr-box-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.dot-matrix {
  width: 96px;
  height: 96px;
}
@media (max-width: 379px) {
  .addr-box {
    grid-template-columns: 1fr;
  }
}
.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.balance-row > div {
  display: grid;
  gap: 8px;
  flex: 1 1 160px;
}
.balance-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}
.balance-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.batch-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 2px 4px;
}
.conv-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.flow-node.is-highlight {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent), var(--surface);
}

/* Sequence (API) */
.sequence {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  font-size: var(--fs-xs);
}
.seq-actor {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}
.seq-msg {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 0;
}
.seq-line {
  position: relative;
  height: 2px;
  background: var(--border-strong);
}
.seq-line::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -1px;
  border: 5px solid transparent;
  border-left: 8px solid var(--border-strong);
  border-right: 0;
}
.seq-msg.is-back .seq-line::after {
  right: auto;
  left: -1px;
  border-left: 0;
  border-right: 8px solid var(--accent);
}
.seq-msg.is-back .seq-line {
  background: var(--accent);
}
.seq-label {
  color: var(--text-2);
  font-family: var(--font-mono);
}
.seq-msg.is-back .seq-label {
  text-align: right;
  color: var(--accent-text);
}

/* 11. Home ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0 var(--section);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  max-width: 980px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(242 106 68 / 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(var(--s-7), 5vw, var(--s-8));
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}
.hero-copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.hero-copy .lead {
  max-width: 56ch;
}
.hero-note {
  font-size: var(--fs-small);
  color: var(--text-3);
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Address comparison */
.addr-compare {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .addr-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.addr-card {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.addr-card h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
.addr-card .kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
}
.addr-card dl {
  display: grid;
  gap: var(--s-4);
}
.addr-card dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.addr-card dd {
  margin: 4px 0 0;
  color: var(--text-2);
}

/* Segment panels */
.segment {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  padding: clamp(var(--s-5), 3.4vw, var(--s-7));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.segment h3 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  letter-spacing: -0.03em;
}
.scenario-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--border);
}
.scenario-list li {
  display: grid;
  gap: 4px;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 560px) {
  .scenario-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: var(--s-4);
  }
}
.scenario-list strong {
  font-weight: 560;
}
.scenario-list .tag {
  justify-self: start;
}

/* Money flow */
.money-flow {
  display: grid;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 960px) {
  .money-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
}
.mf-stage {
  position: relative;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
@media (min-width: 960px) {
  .mf-stage {
    border-radius: 0;
  }
  .mf-stage:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .mf-stage:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .mf-stage + .mf-stage {
    border-left: 0;
  }
  .mf-stage + .mf-stage::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
      center / 14px no-repeat;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--bg);
  }
}
.mf-label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.mf-label h3 {
  font-size: 1.5rem;
}
.mf-stage p {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.mf-stage .dash-list li {
  font-size: var(--fs-small);
}
.mf-meta {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Ways of working */
.way {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}
.way h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

/* 12. Inner pages --------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(var(--s-6), 4vw, var(--s-8)) 0 var(--section);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -15%;
  top: -40%;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(242 106 68 / 0.14), transparent 70%);
  pointer-events: none;
}
.page-hero .hero-grid {
  align-items: center;
}
.page-hero-copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
  max-width: 760px;
}
.page-hero-copy h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.4vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.page-hero-copy h1 .serif {
  color: var(--accent-text);
}
.on-this-page {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.on-this-page a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--fs-xs);
  text-decoration: none;
}
.on-this-page a:hover {
  color: var(--text);
  border-color: var(--text-3);
}
.related {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .related {
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  }
}
.related-card {
  display: grid;
  gap: var(--s-3);
  align-content: space-between;
  min-height: 168px;
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease),
    transform var(--t-slow) var(--ease-out);
}
.related-card:hover,
.related-card:focus-visible {
  --text-2: #2a1209;
  --accent-text: #111113;
  border-color: var(--accent);
  background: var(--accent);
  color: #111113;
  transform: translateY(-4px);
}
.related-card .h3 .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.related-card:hover .h3 .icon {
  border-color: rgb(17 17 19 / 0.35);
  transform: rotate(45deg);
}
.related-card .h3 {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 1.1875rem;
}
.related-card .icon {
  color: var(--accent-text);
}
.related-card p {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.legal-layout {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--s-8);
  }
  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    align-self: start;
  }
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--text-3);
  font-size: var(--fs-small);
  display: grid;
  gap: var(--s-2);
}
.legal-toc a {
  color: var(--text-2);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--text);
  text-decoration: underline;
}
.legal-body h2 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.contact-card {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-card .icon-badge {
  margin-bottom: var(--s-2);
}
.contact-card p {
  color: var(--text-2);
}
.contact-card.is-primary {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, rgb(242 106 68 / 0.1), transparent 60%), var(--surface);
}
.contact-value {
  font-size: 1.125rem;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.contact-value a {
  color: var(--text);
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
}
.error-hero {
  padding: var(--s-10) 0 var(--section);
  text-align: left;
}
.error-code {
  font-size: clamp(7rem, 3rem + 20vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.error-code .serif {
  font-weight: 400;
  color: var(--accent);
  -webkit-text-stroke: 0;
  letter-spacing: 0;
}

/* FAQ page: numbered topic groups and index */
.faq-layout {
  counter-reset: faqg faqt;
}
.faq-group {
  counter-increment: faqg;
}
.faq-group-title {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-strong);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  letter-spacing: -0.03em;
}
.faq-group-title::before {
  content: counter(faqg, decimal-leading-zero);
  content: counter(faqg, decimal-leading-zero) / ""; /* decorative: keep it out of the accessible name */
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
  color: var(--accent-text);
}
.faq-toc a {
  counter-increment: faqt;
}
.faq-toc a::before {
  content: counter(faqt, decimal-leading-zero);
  content: counter(faqt, decimal-leading-zero) / ""; /* decorative: keep it out of the accessible name */
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-text);
}

/* 12b. Patterns ------------------------------------------------------------ */
/* Section heads: editorial index (label column + large heading) and centred. */
.eyebrow-num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}
.section-head.is-index {
  max-width: none;
}
@media (min-width: 960px) {
  .section-head.is-index {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: var(--s-8);
    align-items: start;
  }
  .section-head.is-index > .eyebrow {
    grid-row: 1 / span 3;
    padding-top: 1.1em;
  }
  .section-head.is-index > :not(.eyebrow) {
    grid-column: 2;
  }
}
.section-head.is-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
  max-width: 900px;
}
.section-head.is-center .lead {
  margin-inline: auto;
}
.section-head .h-xl,
.section-head .h-giant {
  max-width: 18ch;
}
.section-head.is-center .h-xl,
.section-head.is-center .h-giant {
  max-width: 21ch;
}

/* Pill eyebrow with a live dot (home hero) */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 540;
  letter-spacing: 0.01em;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Home hero ----------------------------------------------------------------- */
.hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 104px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: -34%;
  width: min(1500px, 170vw);
  aspect-ratio: 1.7;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(242 106 68 / 0.34), rgb(242 106 68 / 0.08) 52%, transparent 74%);
}
.hero-rings {
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(1180px, 190vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--accent);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero-rings svg {
  width: 100%;
  height: 100%;
}
.hero-rings .ring-a {
  transform-origin: 500px 500px;
  animation: spin 140s linear infinite;
}
.hero-rings .ring-b {
  transform-origin: 500px 500px;
  animation: spin 90s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -6%;
  height: 46%;
  background-image: linear-gradient(rgb(242 106 68 / 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgb(242 106 68 / 0.22) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center bottom;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
  mask-image: linear-gradient(to top, #000, transparent 80%);
  opacity: 0.55;
}
.hero-center {
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  text-align: center;
}
.hero-center .display {
  max-width: 15ch;
}
.hero-center .lead {
  max-width: 60ch;
  margin-inline: auto;
}
.hero-center .btn-row {
  justify-content: center;
}
.display .serif {
  color: var(--accent-text);
  padding-right: 0.04em;
}
.hero-in {
  animation: hero-in 1s var(--ease-out) both;
}
.hero-in.d1 {
  animation-delay: 80ms;
}
.hero-in.d2 {
  animation-delay: 160ms;
}
.hero-in.d3 {
  animation-delay: 240ms;
}
.hero-in.d4 {
  animation-delay: 320ms;
}
/* Transform only: text keeps full contrast at every frame of the entrance. */
@keyframes hero-in {
  from {
    transform: translateY(26px);
  }
}

/* Pipeline: receive -> convert -> pay out */
.pipeline {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  background: linear-gradient(180deg, rgb(25 25 28 / 0.86), rgb(17 17 19 / 0.92));
  box-shadow: 0 50px 140px -50px rgb(242 106 68 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pipeline .illus-tag {
  top: -13px;
  right: 28px;
}
.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .pipe {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px;
  }
}
.pipe-node {
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.pipe-node::after {
  /* light that travels across the three stages in turn */
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: stage-light 4.5s ease-in-out infinite;
}
.pipe-node:nth-child(2)::after {
  animation-delay: 1.5s;
}
.pipe-node:nth-child(3)::after {
  animation-delay: 3s;
}
@keyframes stage-light {
  0%,
  45%,
  100% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
}
.pipe-node.is-core {
  border-color: var(--accent-line);
  background: radial-gradient(120% 90% at 50% 0%, rgb(242 106 68 / 0.18), transparent 60%), var(--surface);
}
.pipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.pipe-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.pipe-title {
  font-size: 1.625rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pipe-desc {
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.pipe-node + .pipe-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -27px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translateX(-50%) rotate(90deg);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  box-shadow: 0 0 0 5px #151518, 0 0 26px rgb(242 106 68 / 0.6);
}
@media (min-width: 960px) {
  .pipe-node + .pipe-node::before {
    left: -43px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    background-size: 15px;
  }
}
.pipe-beam {
  display: none;
}
@media (min-width: 960px) {
  .pipe-beam {
    display: block;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 2px;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, var(--accent-line) 12%, var(--accent-line) 88%, transparent);
  }
  .pipe-beam span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 82%, rgb(242 106 68 / 0.9) 96%, #fff 100%);
    animation: beam 3s linear infinite;
  }
}
@keyframes beam {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.term-fig {
  position: relative;
}
.term-fig .illus-tag {
  top: 8px;
  right: 10px;
  background: #0e0e10;
  border-color: #2c2c32;
  color: #8b8b95;
}
.center {
  text-align: center;
}
.pipeline .illus-caption {
  text-align: center;
  margin-top: var(--s-5);
}

/* Marquee ---------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: clamp(18px, 2vw, 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
  line-height: 1.1;
}
.marquee-item:nth-child(even) {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-text);
}
.marquee-item::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Bento grid -------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento > .md-wide {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto);
  }
  .bento > .md-wide {
    grid-column: auto;
  }
  .bento > .c-3 { grid-column: span 3; }
  .bento > .c-4 { grid-column: span 4; }
  .bento > .c-5 { grid-column: span 5; }
  .bento > .c-6 { grid-column: span 6; }
  .bento > .c-7 { grid-column: span 7; }
  .bento > .c-8 { grid-column: span 8; }
  .bento > .c-12 { grid-column: span 12; }
  .bento > .r-2 { grid-row: span 2; }
  .bento.is-compact {
    grid-auto-rows: auto;
  }
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t) var(--ease), transform var(--t-slow) var(--ease-out);
}
.tile::before {
  /* pointer-following glow; position comes from main.js (--mx, --my) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgb(242 106 68 / 0.16), transparent 45%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.tile:hover::before {
  opacity: 1;
}
.tile:hover {
  border-color: var(--border-strong);
}
.tile.tone-ember,
.segment.tone-ember {
  background: var(--accent);
  border-color: transparent;
}
.tile.tone-paper {
  background: var(--paper);
  border-color: transparent;
}
.tone-ember.tile::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgb(255 255 255 / 0.28), transparent 45%);
}
.tone-paper.tile::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgb(242 106 68 / 0.14), transparent 45%);
}
.tile h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}
.tile.is-feature h3 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.875rem);
  max-width: 14ch;
}
.tile p {
  color: var(--text-2);
}
.tile .feature-task {
  font-size: var(--fs-small);
  color: var(--text-3);
}
.tile .feature-task strong {
  color: var(--text-2);
}
.tile > .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.tile-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.tile-art {
  position: relative;
  margin-block: var(--s-3);
  color: var(--accent);
}
.tile.is-feature .tile-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.tone-ember .icon-badge,
.tone-ember.icon-badge {
  background: rgb(17 17 19 / 0.1);
  border-color: rgb(17 17 19 / 0.28);
  color: #111113;
}
.tone-ember .link-arrow {
  border-bottom-color: rgb(17 17 19 / 0.4);
}
.tone-ember .link-arrow:hover {
  border-bottom-color: #111113;
}
.tone-ember .tag {
  color: #111113;
  border-color: rgb(17 17 19 / 0.3);
  background: rgb(255 255 255 / 0.16);
}

/* Address orb used in the products bento */
.addr-orb {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.addr-orb::before,
.addr-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
}
.addr-orb::after {
  inset: 16%;
  border-style: solid;
  border-color: var(--accent-line);
  box-shadow: 0 0 80px rgb(242 106 68 / 0.25) inset;
}
.addr-orb .dot-matrix {
  position: relative;
  z-index: 1;
  width: 46%;
  height: auto;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.orb-chip {
  position: absolute;
  z-index: 2;
}
.orb-chip.is-a {
  top: 8%;
  left: -2%;
}
.orb-chip.is-b {
  bottom: 10%;
  right: -4%;
}
.orb-planet {
  position: absolute;
  inset: 0;
  animation: spin 18s linear infinite;
}
.orb-planet::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

/* A/B swap mark for conversion */
.swap {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.swap-asset {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 0.55em;
}
.swap-asset.is-b {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.swap-arrows {
  width: 1em;
  height: 1em;
  color: var(--accent-text);
}

/* Fan of payout lines for the mass-payouts tile */
.fan-art {
  width: 100%;
  height: auto;
  color: currentColor;
}
.fan-art .fan-path {
  stroke-dasharray: 3 7;
  animation: dash-move 1.6s linear infinite;
}

/* Versus: two options with an "or" between them */
.versus {
  position: relative;
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 960px) {
  .versus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }
}
.vs-card {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.vs-card h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.035em;
}
.vs-card .kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
}
.vs-card dl {
  display: grid;
  gap: var(--s-4);
}
.vs-card dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.vs-card dd {
  margin: 4px 0 0;
  color: var(--text-2);
}
.vs-badge {
  z-index: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  /* centred on the gap between stacked cards, overlapping only their padding */
  margin-block: -34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 0 0 10px var(--bg);
}
@media (min-width: 960px) {
  .vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}
.vs-card .addr-svg {
  border-radius: 18px;
  background: var(--bg-soft);
  padding: 8px;
}

/* Segment duo with oversized background words */
.seg-duo {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 960px) {
  .seg-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.seg-duo .segment {
  isolation: isolate;
  border-radius: 32px;
  padding: clamp(24px, 3.4vw, 48px);
  padding-bottom: clamp(96px, 12vw, 160px);
}
.seg-duo .segment::after {
  content: attr(data-word);
  position: absolute;
  z-index: -1;
  left: clamp(16px, 2.6vw, 40px);
  bottom: -0.16em;
  font-size: clamp(5.5rem, 3rem + 8vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--border-strong);
  pointer-events: none;
}
.seg-duo .segment.tone-ember::after {
  -webkit-text-stroke-color: rgb(17 17 19 / 0.3);
}
.seg-duo .segment.tone-ember {
  border-color: transparent;
}
.seg-duo .segment.tone-ember .scenario-list li,
.seg-duo .segment.tone-ember .scenario-list {
  border-color: rgb(17 17 19 / 0.2);
}

/* Sticky story: an aside that stays while numbered stages scroll past */
.story {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1024px) {
  .story {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--s-9);
    align-items: start;
  }
  .story-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s-7));
  }
}
.story-aside {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}
.story-meter {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
}
.story-meter li {
  flex: 1;
  display: grid;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--t) var(--ease);
}
.story-meter li::before {
  content: "";
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
  transition: background-color var(--t-slow) var(--ease);
}
.story[data-active="0"] .story-meter li:nth-child(1),
.story[data-active="1"] .story-meter li:nth-child(-n + 2),
.story[data-active="2"] .story-meter li {
  color: var(--text);
}
.story[data-active="0"] .story-meter li:nth-child(1)::before,
.story[data-active="1"] .story-meter li:nth-child(-n + 2)::before,
.story[data-active="2"] .story-meter li::before {
  background: var(--accent);
}
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: story;
}
.story-step {
  counter-increment: story;
  display: grid;
  gap: var(--s-4) var(--s-6);
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--border);
}
.story-step:last-child {
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .story-step {
    grid-template-columns: 1.6em minmax(0, 1fr);
    font-size: clamp(3.5rem, 2rem + 4vw, 6rem);
  }
  .story-step > * {
    font-size: var(--fs-body);
  }
}
.story-step::before {
  content: counter(story, decimal-leading-zero);
  font-size: clamp(3.5rem, 2rem + 4vw, 6rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.065em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  transition: color var(--t-slow) var(--ease), -webkit-text-stroke-color var(--t-slow) var(--ease);
}
.story-step.is-active::before {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.story-body {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.story-body h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  letter-spacing: -0.035em;
}
.story-body > p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.story-meta {
  margin-top: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* Big numbers band (facts from the site itself, never metrics) */
.bignums {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
@media (min-width: 960px) {
  .bignums {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.bignum {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding-top: var(--s-4);
  border-top: 2px solid currentColor;
}
.bignum-n {
  font-size: clamp(4.5rem, 2.5rem + 7vw, 10rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.075em;
}
.bignum-l {
  max-width: 22ch;
  font-size: var(--fs-small);
  font-weight: 560;
  color: var(--text-2);
}
.band {
  padding-block: clamp(56px, 7vw, 112px);
}
.band-title {
  margin-bottom: clamp(32px, 4vw, 56px);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Duo of contrasting "way of working" cards */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
@media (min-width: 960px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.way-card {
  display: grid;
  /* minmax(0) so a no-wrap terminal line cannot widen the card past a phone screen */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-content: start;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  overflow: hidden;
}
.way-card h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.035em;
}
.way-card .illustration {
  margin-top: var(--s-2);
}
.way-card.is-code {
  background: radial-gradient(90% 60% at 100% 0%, rgb(242 106 68 / 0.14), transparent 60%), #0c0c0e;
  border-color: #26262b;
}

/* Terminal-style illustration */
.terminal {
  position: relative;
  border: 1px solid #2c2c32;
  border-radius: 18px;
  background: #070708;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.9);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #1f1f24;
  background: #0e0e10;
  color: #8b8b95;
  font-size: 12px;
}
.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2c2c32;
}
.term-bar i:first-child {
  background: var(--accent);
}
.term-bar span {
  min-width: 0;
  margin-left: 8px;
  padding-right: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.term-body {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  color: #a0a0a9;
}
.term-line {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-line .t-dir {
  flex: none;
  width: 1.5ch;
  color: #8b8b95;
}
.term-line.is-back {
  color: #f5f5f7;
}
.term-line.is-back .t-dir {
  color: var(--accent);
}
.term-line .t-note {
  color: #8b8b95;
}
.term-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Track: numbered steps on a line that fills as you scroll */
.track-wrap {
  position: relative;
}
.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-6);
  counter-reset: track;
}
@media (min-width: 960px) {
  .track-wrap {
    padding-top: var(--s-6);
  }
  .track {
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    gap: var(--s-5);
  }
}
.track-line {
  display: none;
}
@media (min-width: 960px) {
  .track-line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-strong);
    overflow: hidden;
  }
  .track-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
  }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .track-line::after {
        animation: track-fill linear both;
        animation-timeline: view();
        animation-range: entry 40% cover 55%;
      }
    }
  }
}
@keyframes track-fill {
  from {
    transform: scaleX(0);
  }
}
.track-step {
  counter-increment: track;
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding-left: var(--s-6);
  border-left: 2px solid var(--border-strong);
}
@media (min-width: 960px) {
  .track-step {
    padding-left: 0;
    padding-right: var(--s-4);
    border-left: 0;
  }
  .track-step::after {
    content: "";
    position: absolute;
    top: calc(var(--s-6) * -1 - 6px);
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
  }
}
.track-step::before {
  content: counter(track, decimal-leading-zero);
  font-size: clamp(3rem, 2rem + 2.6vw, 4.75rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--accent-text);
}
.track-step h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.track-step p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

/* Typographic statement */
.statement {
  font-size: var(--fs-giant);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.statement .op {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
  letter-spacing: 0;
}
.statement-sub {
  margin-top: var(--s-6);
}

/* Large numbered principles / reasons */
.numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: num;
  display: grid;
}
.numbered > li {
  counter-increment: num;
  display: grid;
  gap: var(--s-3) var(--s-6);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--border-strong);
}
.numbered > li:last-child {
  border-bottom: 1px solid var(--border-strong);
}
@media (min-width: 860px) {
  .numbered > li {
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.numbered > li::before {
  content: counter(num, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  line-height: 0.85;
  color: var(--accent-text);
}
.numbered h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  letter-spacing: -0.03em;
}
.numbered p {
  color: var(--text-2);
}
.numbered .link-arrow {
  margin-top: var(--s-3);
}

/* Columns of reasons with oversized numerals */
.cols-num {
  display: grid;
  gap: var(--s-6);
  counter-reset: colnum;
}
@media (min-width: 900px) {
  .cols-num {
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: var(--s-6);
  }
}
.cols-num > * {
  counter-increment: colnum;
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.cols-num > *::before {
  content: counter(colnum, decimal-leading-zero);
  font-size: clamp(4rem, 2.6rem + 4vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-text);
  margin-bottom: var(--s-3);
}
.cols-num h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  letter-spacing: -0.025em;
}
.cols-num p {
  color: var(--text-2);
}
@media (min-width: 900px) {
  .cols-num.is-4 {
    --cols: 2;
    row-gap: var(--s-8);
  }
}
@media (min-width: 1200px) {
  .cols-num.is-4 {
    --cols: 4;
  }
}

/* One-to-one versus one-to-many diagrams (payouts) */
.ratio {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: clamp(3.5rem, 2rem + 5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}
.ratio .serif {
  font-size: 0.9em;
  color: var(--accent-text);
}

/* CTA mega band ------------------------------------------------------------------ */
.cta-mega {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 152px);
}
.cta-mega-inner {
  position: relative;
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .cta-mega-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--s-8);
  }
}
.cta-mega h2 {
  font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.cta-mega-side {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.cta-mega-side p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  max-width: 44ch;
}
.cta-mega-art {
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: 50%;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 38px, rgb(17 17 19 / 0.12) 38px 39px);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  pointer-events: none;
}
.cta-mega.tone-deep .cta-mega-art,
.cta-mega.tone-glow .cta-mega-art {
  background: repeating-radial-gradient(circle at center, transparent 0 38px, rgb(242 106 68 / 0.16) 38px 39px);
}
.cta-mega .btn {
  min-height: 56px;
  padding-inline: var(--s-6);
}

/* Index of "on this page" links in inner heroes */
.on-this-page {
  counter-reset: otp;
}
.on-this-page a {
  counter-increment: otp;
  gap: 8px;
  background: rgb(255 255 255 / 0.025);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.on-this-page a::before {
  content: counter(otp, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-text);
}
.on-this-page a:hover {
  background: var(--surface-2);
}

/* Per-page hero art: each inner page gets its own background motif. */
.page-hero {
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero-dots::after {
  right: -8%;
  top: -10%;
  width: 62%;
  height: 120%;
  background-image: radial-gradient(rgb(242 106 68 / 0.5) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 65%);
  opacity: 0.55;
}
.hero-orbits::after {
  right: -18%;
  top: -40%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  background: repeating-radial-gradient(circle at center, transparent 0 46px, rgb(242 106 68 / 0.18) 46px 47px);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.hero-rays::after {
  right: -20%;
  top: -30%;
  width: min(1200px, 130vw);
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgb(242 106 68 / 0.16) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 80%);
  mask-image: radial-gradient(closest-side, #000 10%, transparent 80%);
}
.hero-squares::after {
  right: -6%;
  top: 0;
  width: 66%;
  height: 100%;
  background-image: linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 70%);
}
.hero-stripes::after {
  inset: -20% -20% auto 30%;
  height: 140%;
  background: repeating-linear-gradient(-55deg, rgb(242 106 68 / 0.13) 0 2px, transparent 2px 26px);
  -webkit-mask-image: radial-gradient(ellipse at 55% 40%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 55% 40%, #000 0%, transparent 62%);
}
.hero-code::after {
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}
.hero-glyph::after {
  content: attr(data-glyph);
  right: 4%;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14rem, 8rem + 20vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(242 106 68 / 0.45);
}

/* 3D tilt for hero illustrations on wide screens */
@media (min-width: 1024px) {
  .page-hero .illustration.is-tilt {
    transform: perspective(1600px) rotateY(-11deg) rotateX(5deg);
    transform-origin: 30% 50%;
    box-shadow: -50px 70px 140px -50px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.03);
    transition: transform 1s var(--ease-out);
  }
  .page-hero .illustration.is-tilt:hover {
    transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
  }
}

/* Floating chips around hero illustrations */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(32 32 36 / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--fs-xs);
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.8);
  animation: bob 6s ease-in-out infinite;
}
.float-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.float-chip.is-tl {
  top: -16px;
  left: 24px;
}
.float-chip.is-br {
  /* sits on the mock-up, clear of the caption below it */
  top: 46%;
  right: -16px;
  animation-delay: -3s;
}
@media (max-width: 719px) {
  /* phones: keep hero text clear of decoration */
  .float-chip,
  .hero-glyph::after {
    display: none;
  }
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
.hero-figure-wrap {
  position: relative;
}
/* Components on the accent tone */
.tone-ember .notice {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(17 17 19 / 0.25);
  color: var(--text-2);
}
.tone-ember .notice > .icon {
  color: #111113;
}
.tone-ember .track-line {
  background: rgb(17 17 19 / 0.22);
}
.tone-ember .track-line::after {
  background: #111113;
}
.tone-ember .track-step {
  border-left-color: rgb(17 17 19 / 0.3);
}
.tone-ember .track-step::after {
  background: var(--accent);
  border-color: #111113;
}
.tone-ember .step::after {
  background: #111113;
}
.tone-ember .facts {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(17 17 19 / 0.3);
}
.tone-ember .bignum-n {
  color: #111113;
}
/* Big single number next to a list (e.g. "7 steps in the application") */
.count-hero {
  display: grid;
  gap: var(--s-2);
}
.count-hero .bignum-n {
  font-size: clamp(7rem, 4rem + 10vw, 14rem);
}
.ratio-caption {
  font-size: var(--fs-small);
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* 13. Forms --------------------------------------------------------------- */
.field {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  min-width: 0;
}
.field-label,
.field legend,
.group-legend {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.4;
}
.req-mark {
  color: var(--accent);
  margin-left: 2px;
}
.opt-mark {
  margin-left: 6px;
  font-weight: 450;
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.field-hint {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.5;
}
.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  font-weight: 560;
  color: var(--danger);
  line-height: 1.4;
}
.field-error:empty {
  display: none;
}
.field-error::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A70' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5h.01'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #9a9aa3;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(242 106 68 / 0.28);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgb(255 122 112 / 0.28);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
}
.select option {
  background: var(--surface);
  color: var(--text);
}
input[type="date"].input {
  color-scheme: dark;
}
.input-affix {
  display: flex;
  align-items: stretch;
}
.input-affix .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
}
.affix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.form-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
}
.choice-group {
  display: grid;
  gap: var(--s-3);
}
.choice-group > legend {
  margin-bottom: var(--s-3);
}
.choice-group .field-hint {
  margin-top: calc(var(--s-1) * -2);
}
.choices {
  display: grid;
  gap: var(--s-2);
}
@media (min-width: 600px) {
  .choices.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choices.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.choice:hover {
  border-color: var(--border-input);
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.choice input {
  appearance: none;
  -webkit-appearance: none;
  margin: 2px 0 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-input);
  background: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.choice input:focus-visible {
  outline: none;
}
.choice input[type="radio"] {
  border-radius: 50%;
}
.choice input[type="checkbox"] {
  border-radius: 5px;
}
.choice input:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.choice input[type="radio"]:checked {
  background: var(--bg);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--accent);
}
.choice input[type="checkbox"]:checked {
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.choice-text {
  display: grid;
  gap: 2px;
  font-size: var(--fs-small);
  line-height: 1.45;
}
.choice-title {
  font-weight: 560;
  color: var(--text);
}
.choice-desc {
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.choices[aria-invalid="true"] .choice,
.choice-group.is-invalid .choice {
  border-color: rgb(255 122 112 / 0.6);
}
.check-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4) 0;
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--text-2);
  line-height: 1.5;
}
.check-line input {
  appearance: none;
  -webkit-appearance: none;
  margin: 1px 0 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
}
.check-line input:checked {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}
.check-line input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.check-line input[aria-invalid="true"] {
  border-color: var(--danger);
}
.check-line strong {
  color: var(--text);
}
.check-line a {
  color: var(--accent);
}

/* 14. Application --------------------------------------------------------- */
.apply-hero {
  padding: clamp(var(--s-5), 3vw, var(--s-7)) 0 var(--s-7);
}
.apply-hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.035em;
}
.apply-layout {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--section);
  align-items: start;
}
@media (min-width: 1024px) {
  .apply-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--s-8);
  }
  .apply-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
  }
}
.apply-aside {
  display: grid;
  gap: var(--s-5);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: var(--s-2);
}
.progress-meta strong {
  color: var(--text);
  font-weight: 600;
}
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  width: var(--progress, 14.28%);
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: s;
}
@media (max-width: 1023px) {
  .stepper {
    display: none;
  }
  .stepper.is-open {
    display: grid;
    padding: var(--s-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
}
.stepper-toggle {
  display: none;
}
@media (max-width: 1023px) {
  .js .stepper-toggle {
    display: inline-flex;
  }
}
.stepper li {
  counter-increment: s;
}
.stepper-btn {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: var(--fs-small);
  text-align: left;
  cursor: pointer;
}
.stepper-btn::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-mono);
}
.stepper-btn:disabled {
  cursor: default;
}
.stepper-btn:not(:disabled):hover {
  background: var(--surface-2);
  color: var(--text);
}
.stepper-btn.is-done {
  color: var(--text-2);
}
.stepper-btn.is-done::before {
  content: "";
  border-color: var(--accent-line);
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26A44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.stepper-btn[aria-current="step"] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
}
.stepper-btn[aria-current="step"]::before {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.apply-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  min-width: 0;
}
.apply-step {
  display: grid;
  gap: var(--s-6);
}
.no-js .apply-step + .apply-step {
  margin-top: var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.step-head {
  display: grid;
  gap: var(--s-2);
}
.step-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}
.step-title {
  font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  letter-spacing: -0.03em;
}
.step-title:focus {
  outline: none;
}
.step-title:focus-visible {
  outline: 2px solid var(--focus);
}
.step-intro {
  color: var(--text-2);
  font-size: var(--fs-small);
  max-width: 64ch;
}
.req-legend {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.form-section {
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.form-section-title {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.conditional {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border-left: 2px solid var(--accent-line);
  background: rgb(255 255 255 / 0.015);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.repeater {
  display: grid;
  gap: var(--s-4);
}
.repeater-item {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.repeater-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.repeater-item-head legend,
.repeater-item-title {
  font-weight: 620;
  font-size: 1rem;
}
.repeater-item > legend {
  float: left;
  width: 100%;
  margin-bottom: var(--s-2);
}
.repeater-item > legend + * {
  clear: both;
}
.btn-remove {
  color: var(--text-2);
}
.btn-remove:hover {
  color: var(--danger);
}
.url-list {
  display: grid;
  gap: var(--s-3);
}
.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-2);
  align-items: start;
}
.url-row .btn {
  min-height: 52px;
}
.form-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.form-nav-end {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-left: auto;
}
@media (max-width: 479px) {
  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .form-nav .btn,
  .form-nav-end {
    width: 100%;
  }
  .form-nav-end {
    flex-direction: column-reverse;
  }
}
.error-summary {
  padding: var(--s-5);
  border: 1px solid rgb(255 122 112 / 0.5);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
}
.error-summary:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.error-summary h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-3);
}
.error-summary ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--s-2);
  font-size: var(--fs-small);
}
.error-summary a,
.error-summary button.linklike {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.review-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.review-head h3 {
  font-size: 1rem;
}
.review-list {
  display: grid;
  margin: 0;
  padding: var(--s-2) var(--s-5);
}
.review-row {
  display: grid;
  gap: 2px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
}
.review-row:last-child {
  border-bottom: 0;
}
@media (min-width: 720px) {
  .review-row {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--s-5);
  }
}
.review-row dt {
  color: var(--text-3);
}
.review-row dd {
  margin: 0;
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review-sub {
  margin: var(--s-2) var(--s-5) 0;
  padding: var(--s-3) 0 var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.review-empty {
  color: var(--text-3);
  font-style: italic;
}
.declarations {
  border-top: 1px solid var(--border);
}
.declarations .check-line {
  border-bottom: 1px solid var(--border);
}
.declarations .field-error {
  margin: -8px 0 var(--s-3) 34px;
}
.submit-status {
  display: grid;
  gap: var(--s-3);
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.apply-done {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.apply-done h2:focus {
  outline: none;
}
.honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.side-note {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.side-note h2 {
  font-size: var(--fs-small);
  color: var(--text);
  letter-spacing: 0;
}
.side-note .icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}
.char-count {
  font-size: var(--fs-xs);
  color: var(--text-3);
  justify-self: end;
}

/* Scroll reveal: main.js adds .rv to blocks below the fold and .is-in when they enter.
   Nothing is hidden without JavaScript or when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--rv-i, 0) * 90ms);
  }
  .rv:not(.is-in) {
    opacity: 0;
    transform: translateY(32px);
  }
  .rv.rv-now {
    transition: none;
  }
}
/* 15. Motion & print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .cta-band,
  .cta-mega,
  .marquee,
  .float-chip,
  .form-nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  /* Tones set light text on dark fields; paper gets dark text on white instead. */
  body,
  .tone-deep,
  .tone-glow,
  .tone-paper,
  .tone-ember {
    --text: #000;
    --text-2: #333;
    --text-3: #444;
    --accent-text: #a8391a;
    --bg: #fff;
    --bg-soft: #f6f6f6;
    --surface: #fff;
    --surface-2: #f4f4f4;
    --surface-3: #ececec;
    --border: #d4d4d4;
    --border-strong: #a3a3a3;
    background: #fff !important;
    color: #000;
  }
  /* Blocks that never scrolled into view must still print. */
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Utilities (no inline styles anywhere, so a strict CSP can forbid them) */
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; }
.pt-6 { padding-top: var(--s-6); }
.steps-3 { --steps: 3; }
.steps-4 { --steps: 4; }
.grid.gap-lg { gap: var(--s-7); }
.cols-2-rel { --cols: 2; }
.cols-3-rel { --cols: 3; }
.maxw-prose { max-width: 72ch; }
.pt-0 { padding-top: 0 !important; }
.no-js .form-nav { display: none; }
.review-sub + .review-list { padding-top: 0; }
#apply-status-banner:empty { display: none; }
.no-js [data-banner="not-configured"] { display: none; }
/* Shown only in `npm run build:preview` output. */
.preview-ribbon {
  margin: 0;
  padding: 6px var(--gutter);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-xs);
  text-align: center;
}
