/* Cash Flow Owner public website
   Font: Inter (SIL Open Font License), subset to the characters this site uses.
   Design tokens first, then base, layout, components and pages.
   Reuse: a new brand changes the tokens in :root and the mark in src/icons.mjs. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-opsz.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AE, U+00B7, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC, U+2122;
}

:root {
  /* Color */
  --ink: #0b1726;
  --ink-2: #1f2a38;
  --text: #2a3441;
  --muted: #5a6573;
  --subtle: #687079;
  --line: #e5e6e1;
  --line-strong: #d3d6cf;
  --paper: #ffffff;
  --canvas: #f6f6f2;
  --canvas-2: #efefe9;
  --accent: #0e6b50;
  --accent-strong: #0a5540;
  --accent-soft: #e6f1ec;
  --dark: #0b1726;
  --dark-2: #13223a;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-text: rgba(255, 255, 255, 0.72);
  --focus: #1c64d4;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(3rem, 1.6rem + 6vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space and shape */
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(11, 23, 38, 0.05), 0 12px 32px -12px rgba(11, 23, 38, 0.14);
  --shadow-lg: 0 1px 2px rgba(11, 23, 38, 0.06), 0 32px 64px -24px rgba(11, 23, 38, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
strong { font-weight: 620; color: var(--ink); }

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

main:focus { outline: none; }

.sr-only {
  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: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- Layout */

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap-narrow { max-width: calc(800px + var(--gutter) * 2); }

.section { padding: var(--section) 0; }
.section-tight { padding-top: clamp(40px, 5vw, 64px); }
.tone-canvas { background: var(--canvas); }
.tone-dark {
  background: var(--dark);
  color: var(--dark-text);
}
.tone-dark h2, .tone-dark h3, .tone-dark strong { color: #fff; }
.tone-dark .eyebrow { color: #7fd1b1; }
.tone-dark .lead { color: var(--dark-text); }
.tone-dark :focus-visible { outline-color: #fff; }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-even { grid-template-columns: 1fr 1fr; }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ------------------------------------------------------------ Typography */

.display {
  font-size: var(--fs-display);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.page-hero h1, .article-head h1, .not-found h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.section-head h2, .cta-band h2, .statement h2, .doc-request h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
}
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.split .section-head { margin-bottom: 28px; }
.list-title { font-size: var(--fs-h3); margin-bottom: 20px; }

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: var(--fs-small); border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-inverse { background: #fff; color: var(--ink); }
.btn-inverse:hover { background: #e9ece8; }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover { color: var(--accent); }
.tone-dark .text-link { color: #fff; }
.tone-dark .text-link:hover { color: #7fd1b1; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.split .actions { margin-top: 0; }

/* ---------------------------------------------------------------- Header */

/* The translucent backdrop lives on a pseudo element. A backdrop filter on
   the header itself would become the containing block for the fixed mobile
   menu and clip it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.menu-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled, .menu-open .site-header { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.brand-dot { fill: var(--accent); }
.brand-name { font-size: 1.0625rem; font-weight: 660; letter-spacing: -0.025em; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: var(--canvas); }
.primary-nav a[aria-current='page'] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-login {
  padding: 8px 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.header-login:hover { background: var(--canvas); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 0 max(32px, env(safe-area-inset-bottom));
}
.mobile-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-actions { display: grid; gap: 12px; margin-top: 32px; }

@media (max-width: 1079px) {
  .primary-nav, .header-login { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .header-actions .btn-sm { display: none; }
}
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ Hero */

.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-lead { margin-top: 28px; max-width: 34em; }
.hero-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-products a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.hero-products a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

/* Vignette */
.vignette { margin: 0; display: flex; justify-content: center; }
.vignette-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.vignette-top { display: flex; justify-content: space-between; align-items: center; }
.vignette-label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.vignette-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
.vignette-amount {
  margin-top: 24px;
  font-size: 2.5rem;
  font-weight: 640;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vignette-amount span { color: var(--subtle); }
.vignette-sub { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }
.vignette-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}
.vignette-track li { position: relative; display: grid; gap: 10px; justify-items: start; }
.vignette-track li::before {
  content: '';
  position: absolute;
  top: 11px; left: 24px; right: 0;
  height: 2px;
  background: var(--line);
}
.vignette-track li.is-done::before { background: var(--accent); }
.vignette-track li:last-child::before { display: none; }
.vignette-track .dot {
  position: relative;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: #fff;
}
.vignette-track .is-done .dot { background: var(--accent); border-color: var(--accent); }
.vignette-track .is-active .dot { border-color: var(--accent); }
.vignette-track .is-active .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.vignette-track .is-done, .vignette-track .is-active { color: var(--ink); }
.vignette-ava {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  background: var(--canvas);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text);
}
.vignette-ava strong { display: block; font-size: var(--fs-xs); margin-bottom: 2px; }
.ava-avatar {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------------ Principles */

.principles { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.principles .features { gap: 32px; }
.principles .feature h3 { font-size: 1.0625rem; }
.principles .feature p { font-size: var(--fs-small); }
.principles .feature-icon { width: 40px; height: 40px; margin-bottom: 14px; }

/* -------------------------------------------------------------- Features */

.features { display: grid; gap: 40px 32px; }
@media (min-width: 640px) {
  .features-2, .features-3, .features-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features-3 { grid-template-columns: repeat(3, 1fr); }
  .features-4 { grid-template-columns: repeat(4, 1fr); }
}
.feature h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.3; }
.feature p { margin-top: 10px; color: var(--muted); }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tone-canvas .feature-icon { background: var(--paper); }
.tone-dark .feature-icon { background: rgba(255, 255, 255, 0.08); color: #7fd1b1; }
.tone-dark .feature p { color: var(--dark-text); }

/* ------------------------------------------------------------- Link rows */

.link-rows { border-top: 1px solid var(--line); }
.link-rows li { border-bottom: 1px solid var(--line); }
.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  padding: 28px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s var(--ease);
}
.link-row-title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.link-row-meta {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}
.link-row-text { grid-column: 1; color: var(--muted); }
.link-row-arrow {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 22px; height: 22px;
  color: var(--subtle);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.link-row:hover .link-row-arrow { transform: translateX(4px); color: var(--ink); }
.link-row:hover .link-row-title { color: var(--accent); }
@media (min-width: 900px) {
  .link-row { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; padding: 32px 4px; align-items: center; }
  .link-row-text { grid-column: 2; }
  .link-row-arrow { grid-column: 3; grid-row: 1; }
}
.split .link-row { grid-template-columns: 1fr auto; }
.split .link-row-text { grid-column: 1; }
.split .link-row-arrow { grid-column: 2; grid-row: 1 / span 2; }

/* ----------------------------------------------------------------- Tiles */

.tiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles-3, .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
/* On phones, a scrolling tile set becomes a horizontal, snapping row. */
@media (max-width: 639px) {
  .tiles-scroll {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tiles-scroll::-webkit-scrollbar { display: none; }
  .tiles-scroll > li { scroll-snap-align: start; }
  .tile { padding: 24px; }
  .features { gap: 32px; }
}
@media (min-width: 1000px) {
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
}
.tiles li { display: flex; }
.tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-icon { color: var(--accent); margin-bottom: 20px; }
.tile-meta { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.tile-icon .icon { width: 28px; height: 28px; }
.tile-title { font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.015em; color: var(--ink); line-height: 1.3; }
.tile-text { margin-top: 8px; color: var(--muted); font-size: var(--fs-small); flex: 1; }
.tile-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}
.tile-more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.tile:hover .tile-more .icon, .guide-card:hover .tile-more .icon { transform: translateX(3px); }

/* ----------------------------------------------------------------- Steps */

.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.step h3 { font-size: 1.3125rem; letter-spacing: -0.018em; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--muted); max-width: 36em; }
.steps-compact .step { padding: 20px 0; }
.steps-compact .step h3 { font-size: 1.0625rem; }
.steps-compact .step p { margin-top: 4px; font-size: var(--fs-small); }
@media (min-width: 900px) {
  .steps:not(.steps-compact) .step { grid-template-columns: 120px minmax(0, 4fr) ; padding: 36px 0; }
  .steps:not(.steps-compact) .step > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 32px; }
  .steps:not(.steps-compact) .step p { margin-top: 0; }
}
.split .steps:not(.steps-compact) .step { grid-template-columns: 56px 1fr; }
.split .steps:not(.steps-compact) .step > div { display: block; }
.split .steps:not(.steps-compact) .step p { margin-top: 8px; }

/* ---------------------------------------------------------------- Checks */

.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.check-icon { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* ----------------------------------------------------- Definition lists */

.understand div, .moments div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.understand, .moments { margin: 0; border-top: 1px solid var(--line); }
.understand dt, .moments dt { font-weight: 620; color: var(--ink); letter-spacing: -0.01em; }
.understand dd, .moments dd { margin: 6px 0 0; color: var(--muted); }
@media (min-width: 640px) {
  .moments div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; }
  .moments dd { margin: 0; }
}

/* ------------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 16px; height: 16px; flex: none; }
.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-body { padding: 0 40px 28px 0; color: var(--muted); }
.faq-body a { color: var(--ink); }
.aside-link { margin-top: 40px; }

/* ----------------------------------------------------------------- Table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--fs-small); }
.compare th, .compare td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--canvas); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 620; color: var(--ink); }
.compare tbody th a { text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.compare td { color: var(--muted); }

/* ------------------------------------------------------------- Page hero */

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 24px; }
.page-hero-copy { max-width: 880px; }
.page-hero-dark { background: var(--dark); border-bottom: 0; color: var(--dark-text); }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lead { color: var(--dark-text); }
.page-hero-dark .eyebrow { color: #7fd1b1; }
.page-hero-dark .crumbs a, .page-hero-dark .crumbs span { color: rgba(255, 255, 255, 0.6); }
.page-hero-dark .btn-primary { background: #fff; color: var(--ink); }
.page-hero-dark .btn-primary:hover { background: #e9ece8; }
.page-hero-dark :focus-visible { outline-color: #fff; }

.crumbs { margin-bottom: 32px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-xs); color: var(--subtle); }
.crumbs li { display: flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: '/'; color: var(--line-strong); margin-right: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* -------------------------------------------------------------- CTA band */

.cta-band { background: var(--paper); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.tone-canvas + .cta-band, .tone-dark + .cta-band { border-top-color: transparent; }
.cta-inner { display: grid; gap: 32px; align-items: end; }
.cta-inner .lead { margin-top: 16px; }
.cta-inner .actions { margin-top: 0; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 64px; } }

/* ------------------------------------------------------ Industry gap */

.gap h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.08; }
.gap-text {
  margin-top: 24px;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  max-width: 30em;
}

/* ---------------------------------------------------------- Statement */

.statement { max-width: 880px; }
.statement .lead { margin-top: 24px; }

/* -------------------------------------------------------------- Security */

.topics { display: grid; gap: 16px; }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, 1fr); } }
.topic {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tone-canvas .topic { border-color: var(--line); }
.topic-icon { display: inline-grid; color: var(--accent); margin-bottom: 20px; }
.topic-icon .icon { width: 28px; height: 28px; }
.topic h3 { font-size: 1.3125rem; letter-spacing: -0.018em; }
.topic p { margin-top: 10px; color: var(--muted); }
@media (max-width: 639px) { .topic { padding: 24px; } }
.topic-statement { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.topic-statement p { margin: 0; color: var(--ink); }

.doc-request { display: grid; gap: 40px; align-items: end; }
.doc-request .lead { margin-top: 20px; }
@media (min-width: 900px) { .doc-request { grid-template-columns: 1fr auto; gap: 80px; } }
.doc-request-action { display: grid; gap: 16px; justify-items: start; }

.integration-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--canvas);
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.integration-notice[hidden] { display: none; }
.integration-notice .icon { margin-top: 1px; color: var(--accent); }
.tone-dark .integration-notice { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tone-dark .integration-notice .icon { color: #7fd1b1; }

/* ----------------------------------------------------------------- Apply */

.apply-hero { border-bottom: 0; padding-bottom: clamp(64px, 8vw, 112px); }
.apply-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .apply-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; } }
.apply-steps { margin-top: 48px; border-top: 1px solid var(--line); }
.apply-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.apply-steps li > span {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--canvas);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink);
}
.apply-steps h2 { font-size: 1.125rem; letter-spacing: -0.012em; line-height: 1.4; }
.apply-steps p { margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
.apply-panel {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1000px) { .apply-panel { position: sticky; top: calc(var(--header-h) + 32px); } }
.apply-panel h2 { font-size: 1.625rem; letter-spacing: -0.025em; }
.apply-panel > p { color: var(--muted); }
.apply-panel .btn { width: 100%; }
.apply-assurances { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.apply-assurances li { display: flex; gap: 10px; align-items: center; }
.apply-assurances .icon { color: var(--accent); }
.apply-login { font-size: var(--fs-small); color: var(--muted); }
.apply-login a { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------- Login */

.login {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 112px) var(--gutter);
  background: var(--canvas);
}
.login-card {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.login-mark .brand-mark { width: 44px; height: 44px; }
.login-card h1 { font-size: 2rem; letter-spacing: -0.03em; }
.login-card .lead { font-size: 1.0625rem; }
.login-card .btn { width: 100%; }
.login-card .btn, .apply-panel .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; text-align: center; }
.login-card .integration-notice { text-align: left; }
.login-safety { display: flex; gap: 10px; text-align: left; font-size: var(--fs-small); color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.login-safety .icon { color: var(--accent); margin-top: 2px; }
.login-new { font-size: var(--fs-small); color: var(--muted); }
.login-new a { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- Resources */

.guides { display: grid; gap: 16px; }
@media (min-width: 900px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guides li { display: flex; }
.guide-card {
  display: flex; flex-direction: column;
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.guide-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-meta { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.guide-title { margin-top: 16px; font-size: 1.375rem; font-weight: 640; letter-spacing: -0.022em; line-height: 1.25; color: var(--ink); }
.guide-text { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); flex: 1; }

.article-head { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.article-head .lead { margin-top: 24px; }
.article { padding-bottom: var(--section); }

.prose { font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); font-weight: 560; }
.prose-page { max-width: 760px; }

.glossary { margin: 0; border-top: 1px solid var(--line); }
.glossary div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-size: 1.125rem; font-weight: 620; color: var(--ink); letter-spacing: -0.012em; }
.glossary dd { margin: 6px 0 0; color: var(--muted); }
@media (min-width: 720px) {
  .glossary div { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
  .glossary dd { margin: 0; }
}

/* ------------------------------------------------------------------- 404 */

.not-found { padding: clamp(64px, 10vw, 140px) 0; }
.not-found .lead { margin-top: 24px; }
.not-found .link-rows { margin-top: 64px; }
.not-found .link-row { grid-template-columns: 1fr auto; }
.not-found .link-row-text { grid-column: 1; }
.not-found .link-row-arrow { grid-column: 2; grid-row: 1 / span 2; }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 40px; font-size: var(--fs-small); }
.tone-dark + .site-footer, .cta-band + .site-footer { border-top-color: var(--line); }
.footer-top { display: grid; gap: 48px; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.footer-brand p { margin-top: 20px; max-width: 26em; color: var(--muted); }
.footer-contact { margin-top: 20px; display: grid; gap: 6px; }
.footer-contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 720px) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-heading { font-size: var(--fs-xs); font-weight: 650; color: var(--ink); letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-strong); display: grid; gap: 20px; color: var(--subtle); font-size: var(--fs-xs); }
.disclosure { max-width: 60em; }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.legal-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-row a { color: var(--muted); text-decoration: none; }
.legal-row a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------- Ava launcher (Phase 2) */

.ava-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------- Motion */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------------ Print */

@media print {
  .site-header, .site-footer, .cta-band, .ava-slot, .ava-launcher { display: none; }
  body { font-size: 11pt; }
  .section { padding: 24px 0; }
}
