/* ==========================================================================
   VERONA AI — veronaai.co
   Light editorial UI · deep violet accent · Fraunces / Inter / IBM Plex Mono
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F4F2EE;
  --ink: #17151F;
  --ink-2: #514D5E;
  --ink-3: #8B8798;
  --line: #E7E4DE;
  --line-strong: #D8D4CC;
  --accent-700: #38288F;
  --accent-600: #4534B8;
  --accent-500: #5B49D6;
  --accent-100: #ECE9FA;
  --accent-050: #F5F3FC;
  --copper: #B0672E;
  --success: #1E7F4F;
  --shadow-color: 250 20% 20%;

  --shadow-1: 0 1px 2px hsl(var(--shadow-color)/.05), 0 1px 1px hsl(var(--shadow-color)/.03);
  --shadow-2: 0 1px 2px hsl(var(--shadow-color)/.05), 0 4px 12px hsl(var(--shadow-color)/.06);
  --shadow-3: 0 2px 4px hsl(var(--shadow-color)/.05), 0 12px 32px hsl(var(--shadow-color)/.08);

  --fs-display: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1140px;
  --container-narrow: 880px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --section-pad: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

::selection { background: var(--accent-100); }

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  font-variation-settings: "opsz" 144;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  font-variation-settings: "opsz" 100;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lede {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-600);
  display: block;
  margin-bottom: 1rem;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.small { font-size: var(--fs-small); }
.muted { color: var(--ink-2); }
.caption { font-size: var(--fs-small); color: var(--ink-3); }

p a, .prose a, .body-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-500);
  transition: color 160ms var(--ease);
}
p a:hover, .prose a:hover, .body-link:hover { color: var(--accent-600); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.section { padding-block: var(--section-pad); }
.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .section, .section + .band { border-top: 0; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1.25rem; }
.section-head.centered .lede { margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .625rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  font-size: var(--fs-small);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 12px 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn-primary {
  background: var(--accent-600);
  color: #fff;
  border: 1px solid var(--accent-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow-2);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(23, 21, 31, .03); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 550;
  font-size: 0.9375rem;
  color: var(--accent-600);
  text-decoration: none;
}
.arrow-link .arrow { transition: transform 160ms var(--ease); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              backdrop-filter 200ms var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 250, 248, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 24px; height: 24px; flex: none; }
.wordmark {
  font-family: var(--font-body);
  font-weight: 640;
  font-size: 1.3125rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  transform: translateY(-1px); /* optical alignment to mark */
}
.wordmark .wm-ai { margin-left: 0.28em; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn { padding: 10px 20px; font-size: 0.875rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 1.125rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--accent-600); }
.mobile-nav .mobile-cta { margin-top: 2rem; border-bottom: 0; }
.mobile-nav .mobile-cta .btn { width: 100%; justify-content: center; padding: 14px 24px; }
body.nav-locked { overflow: hidden; }

@media (max-width: 900px) {
  .site-header { height: 60px; }
  .primary-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-copy .display { max-width: 15ch; }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }

.hero-verticals {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--line);
}
.hero-verticals .caption { margin-bottom: .75rem; }
.vertical-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .75;
}

/* Hero background plate — decorative, sits behind all hero content */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/hero-orchestration-field.webp") right center / cover no-repeat;
  opacity: .5;
  z-index: 0;
  pointer-events: none;
  /* Left column stays on clean paper so the h1/lede keep full contrast */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 50%, #000 80%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 50%, #000 80%);
}
.hero > .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
  /* Stacked layout: fade the plate downward instead, away from the headline */
  .hero::before {
    opacity: .38;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 26%, #000 62%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 26%, #000 62%);
  }
}

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-arcs {
  position: absolute;
  inset: -20% -30%;
  width: 160%;
  height: 140%;
  color: var(--accent-600);
  opacity: .06;
  pointer-events: none;
}

/* Chat mockup */
.chat-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 5px; flex: none; }
.window-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.chat-agent-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.chat-agent-name .agent-role { font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.chat-demo-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  flex: none;
}
.chat-body { padding: 1.125rem; display: flex; flex-direction: column; gap: .625rem; }
.bubble {
  max-width: 85%;
  padding: .625rem .875rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.bubble-agent {
  align-self: flex-start;
  background: var(--surface-2);
  border-radius: 14px 14px 14px 4px;
  color: var(--ink);
}
.bubble-user {
  align-self: flex-end;
  background: var(--accent-100);
  border-radius: 14px 14px 4px 14px;
  color: var(--ink);
}
.bubble-table {
  margin-top: .5rem;
  padding: .625rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: nowrap;
  overflow-x: auto;
}
.bubble-table .row { display: flex; justify-content: space-between; gap: 1.5rem; }
.bubble-table .row strong { color: var(--ink); font-weight: 500; }
.bubble-table .confirm { color: var(--success); }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-body .bubble {
  opacity: 0;
  animation: bubble-in 420ms var(--ease) forwards;
}
.chat-body .bubble:nth-child(1) { animation-delay: 160ms; }
.chat-body .bubble:nth-child(2) { animation-delay: 280ms; }
.chat-body .bubble:nth-child(3) { animation-delay: 400ms; }
.chat-body .bubble:nth-child(4) { animation-delay: 520ms; }
.chat-body .bubble:nth-child(5) { animation-delay: 640ms; }
@media (prefers-reduced-motion: reduce) {
  .chat-body .bubble { opacity: 1; animation: none; }
}
.mockup-caption { margin-top: .875rem; text-align: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-start; }
  .hero-verticals { padding-bottom: 4rem; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-1);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid, .card-grid-2 { grid-template-columns: 1fr; } }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-050);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-tile svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: .5rem; }
.card .card-desc { color: var(--ink-2); font-size: 0.9375rem; }
.card .arrow-link { margin-top: 1.25rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: var(--surface);
}
.status-badge.early { border-color: var(--accent-600); color: var(--accent-600); background: var(--accent-050); }
.card .status-badge { margin-bottom: 1rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: .25rem; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--copper);
  display: block;
  margin-bottom: .875rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: 0.9375rem; }
.step + .step { border-left: 1px solid var(--line); padding-left: 1.5rem; }
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; }
}

/* ---------- Product deep-dive rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy .status-badge { margin-bottom: 1rem; }
.feature-copy h3, .feature-copy .h2 { margin-bottom: .75rem; }
.feature-copy p { color: var(--ink-2); max-width: 46ch; }
.feature-copy ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .625rem; }
.feature-copy li { display: flex; gap: .625rem; align-items: flex-start; color: var(--ink-2); font-size: 0.9375rem; }
.feature-copy li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--success); }
.feature-visual { display: flex; justify-content: center; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
}

/* Doc-extract mockup */
.doc-card {
  width: 380px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
}
.doc-card .chat-titlebar .file-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-fields { padding: 1.125rem; }
.doc-fields table { width: 100%; font-family: var(--font-mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.doc-fields th, .doc-fields td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--line); }
.doc-fields th { font-weight: 500; color: var(--ink-3); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-fields td { color: var(--ink); }
.doc-fields tr:last-child td { border-bottom: 0; }
.doc-fields .field-ok { color: var(--success); }
.doc-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.doc-status .presence-dot { background: var(--success); }

/* Workflow mockup */
.flow-card {
  width: 380px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
}
.flow-steps { padding: 1.125rem; display: flex; flex-direction: column; }
.flow-step {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem .25rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.flow-step .flow-state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.flow-step.done .flow-state { color: var(--success); }
.flow-step.running .flow-state { color: var(--accent-600); }
.flow-dot {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.flow-step.done .flow-dot { border-color: var(--success); }
.flow-step.running .flow-dot { border-color: var(--accent-600); }
.flow-dot svg { width: 11px; height: 11px; }

/* ---------- Stats band ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
}
.stat:first-child .stat-value { color: var(--copper); }
.stat-label { margin-top: .5rem; font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-note {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 1px solid var(--accent-600); box-shadow: var(--shadow-2); position: relative; }
.tier-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-600);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.tier-name { font-weight: 600; font-size: 1.0625rem; margin-bottom: .25rem; }
.tier-for { font-size: var(--fs-small); color: var(--ink-3); min-height: 2.6em; }
.tier-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 1.25rem 0 .25rem;
}
.tier-price .per { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tier-cadence { font-size: 0.75rem; color: var(--ink-3); font-family: var(--font-mono); }
.tier-features { list-style: none; margin: 1.5rem 0 2rem; padding: 0; flex: 1; }
.tier-features li {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  padding: .625rem 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.tier-features li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--success); }
.price-card .btn { justify-content: center; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 550;
  font-size: 1.0625rem;
  color: var(--ink);
}
.faq-question .plus {
  flex: none;
  width: 20px; height: 20px;
  color: var(--ink-3);
  transition: transform 240ms var(--ease);
}
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p { color: var(--ink-2); padding-bottom: 1.25rem; max-width: 65ch; }
.faq-answer p + p { padding-top: 0; margin-top: -0.25rem; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: 1.25rem auto 0; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2rem; }
.cta-band .caption { margin-top: 1.25rem; }

/* ---------- Editorial image plates ---------- */
.plate { margin: 0 auto; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero + .plate { padding-top: 0; }
.plate-img {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.plate-img img { width: 100%; height: auto; display: block; }
.plate--shadow .plate-img { box-shadow: var(--shadow-2); }
.plate figcaption { margin-top: .875rem; }

/* ---------- Prose / legal ---------- */
.page-hero { padding-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.page-hero .display { max-width: 18ch; }
.page-hero .lede { margin-top: 1.25rem; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-1);
}
.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 1rem;
}
.legal-toc ol {
  margin: 0;
  padding: 0 0 0 1.5rem;
  columns: 2;
  column-gap: 3rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.legal-toc li { padding: .25rem 0; break-inside: avoid; }
.legal-toc a { text-decoration: none; color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

.prose { color: var(--ink-2); }
.prose h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.0625rem; color: var(--ink); margin: 1.75rem 0 .625rem; scroll-margin-top: 96px; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; font-size: var(--fs-small); background: var(--surface); min-width: 560px; }
.prose th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose tr:last-child td { border-bottom: 0; }
.callout {
  background: var(--accent-050);
  border: 1px solid var(--accent-100);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.callout strong { color: var(--ink); }

/* Definition-style fact list (about, contact) */
.fact-list { margin: 0; display: grid; gap: 0; }
.fact-list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.fact-list > div:last-child { border-bottom: 1px solid var(--line); }
.fact-list dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: .25rem;
}
.fact-list dd { margin: 0; color: var(--ink); }
@media (max-width: 620px) {
  .fact-list > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card .mono-addr {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-600);
  word-break: break-all;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 250, 248, .7);
  font-size: var(--fs-small);
}
.footer-inner { padding-block: clamp(3.5rem, 3rem + 2vw, 5rem) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-mark { width: 28px; height: 28px; color: var(--paper); margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer-col a { color: rgba(251, 250, 248, .7); text-decoration: none; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-legal {
  border-top: 1px solid rgba(251, 250, 248, .12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-legal .footer-reg { max-width: 62ch; font-size: 0.8125rem; line-height: 1.6; }
.footer-legal a { color: rgba(251, 250, 248, .7); }
.footer-legal a:hover { color: var(--paper); }
.footer-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 250, 248, .25);
  border-radius: 999px;
  padding: 5px 12px;
  color: rgba(251, 250, 248, .7);
  white-space: nowrap;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Anchor offset ---------- */
[id] { scroll-margin-top: 96px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
