/* ==========================================================================
   Design system
   White background throughout. One blue accent, used with restraint.
   Strict 8px spacing scale. 1px borders and soft shadows instead of heavy cards.
   Tokens mirror lib/config.js -> tokens.
   ========================================================================== */

:root {
  /* --- ink & neutrals --- */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;

  /* --- accent --- */
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;

  /* --- data-visual only --- */
  --positive: #047857;
  --warn: #b45309;
  --danger: #b91c1c;

  /* --- spacing: strict 8px scale --- */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 80px;
  --s9: 96px;
  --s10: 128px;

  /* --- layout --- */
  --wrap: 1200px;
  --wrap-narrow: 720px;
  --gutter: var(--s4);

  /* --- radii --- */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* --- shadows: very soft --- */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-2: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px -14px rgba(15, 23, 42, 0.12);
  --sh-3: 0 2px 4px rgba(15, 23, 42, 0.04), 0 28px 64px -34px rgba(15, 23, 42, 0.26);

  /* --- type --- */
  --ff: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.625rem, 1.55rem + 3.45vw, 4.125rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.1vw, 3.125rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.35vw, 2.375rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.32vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1;
}
body[data-nav-open] { overflow: hidden; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 var(--s3);
  letter-spacing: -0.021em;
  line-height: 1.18;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.032em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; line-height: 1.12; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.018em; }
h4 { font-size: 1rem; letter-spacing: -0.012em; }

p { margin: 0 0 var(--s3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.25em; }
li { margin-bottom: var(--s2); }
li:last-child { margin-bottom: 0; }
strong { color: var(--ink-2); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

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

.skip {
  position: absolute;
  left: var(--s3);
  top: var(--s2);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  transform: translateY(-300%);
  transition: transform 0.16s var(--ease);
}
.skip:focus { transform: none; }

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.wrap--mid { max-width: calc(960px + var(--gutter) * 2); }

.section { padding-block: clamp(var(--s7), 5vw, var(--s9)); }
.section--tight { padding-block: clamp(var(--s6), 4vw, var(--s7)); }
.section--soft { background: var(--surface-2); }
.section--ruled { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--s3); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure--tight { max-width: 52ch; }
.center .measure, .center .measure--tight { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.kicker {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 var(--s3);
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--body); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-deep);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 10px;
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 550;
  letter-spacing: -0.006em;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--sh-1);
}
.btn--primary:hover { background: var(--accent-deep); box-shadow: var(--sh-2); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
.btn--secondary:hover { border-color: #cbd5e1; background: var(--surface-2); }

.btn--ghost { background: transparent; color: var(--accent-deep); padding-inline: 4px; }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover svg { transform: translateX(2px); }
.btn--ghost svg { transition: transform 0.16s var(--ease); }

.btn--sm { padding: 9px 14px; font-size: var(--fs-xs); }
.btn--lg { padding: 15px 26px; font-size: var(--fs-body); }
.btn--full { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s5);
}
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.024em;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 24px; height: 24px; flex: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.006em;
}
.nav__item > a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav__item[data-current] > a { color: var(--accent-deep); }
.caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.5;
}

.subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 258px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--s2);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.subnav a:hover { background: var(--accent-50); color: var(--accent-deep); text-decoration: none; }

.site-header__cta { display: flex; align-items: center; gap: var(--s2); flex: none; }

.burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  margin: 3.5px auto;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: var(--s3) 0 var(--s5);
}
.mobile-nav[data-open] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0 var(--gutter); }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line-soft); padding: var(--s1) 0; }
.mobile-nav li:last-child { border: 0; padding-top: var(--s4); }
.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-body);
}
.mobile-nav a.sub { padding: 7px 0 7px var(--s3); color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(var(--s7), 6vw, var(--s9)) 0; position: relative; overflow: hidden; }
.hero::before {
  /* Faint grid. Decorative only. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero__inner { max-width: 800px; }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s4); }
/* The A and the I of "Attributed Intelligence", so the headline reads as AI.
   Uses accent-strong (4.5:1) rather than accent (3.1:1) so it passes AA at
   any size, not only as large text. */
.ai-mark { color: var(--accent-strong); }
.hero .lead { max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); }
.hero__note {
  margin-top: var(--s4);
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.hero__note svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.hero__visual { margin-top: clamp(var(--s6), 5vw, var(--s8)); }

/* --------------------------------------------------------------------------
   Page head (inner pages)
   -------------------------------------------------------------------------- */
.pagehead { padding-block: clamp(var(--s7), 5vw, var(--s8)) var(--s6); border-bottom: 1px solid var(--line); }
.pagehead__inner { max-width: 780px; }
.pagehead .lead { max-width: 58ch; }

.crumbs {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s4);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.6; }

/* --------------------------------------------------------------------------
   Answer block (AEO) — short quotable answer near the top of every page
   -------------------------------------------------------------------------- */
.answer {
  border: 1px solid var(--accent-100);
  background: var(--accent-50);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  max-width: 74ch;
}
.answer__q {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s2);
}
.answer p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Section heading block
   -------------------------------------------------------------------------- */
.sec-head { max-width: 720px; margin-bottom: var(--s6); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); margin-bottom: 0; }
.sec-head h2 + p { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--sh-1);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent-200); box-shadow: var(--sh-2); transform: translateY(-2px); }
a.card:hover h3 { color: var(--accent-deep); }

.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-deep);
  font-size: var(--fs-xs); font-weight: 600;
  margin-bottom: var(--s3);
}
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s4);
  font-size: var(--fs-sm); font-weight: 550; color: var(--accent-deep);
}
.card__link svg { width: 14px; height: 14px; transition: transform 0.16s var(--ease); }
a.card:hover .card__link svg { transform: translateX(3px); }
.card__meta { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s3); }
.card__kicker {
  display: block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: var(--s2);
}

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-deep);
  margin-bottom: var(--s4);
}
.icon-badge svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Split (copy + visual)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--s5), 4vw, var(--s8));
  align-items: center;
}
.split--reverse .split__copy { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .split--reverse .split__copy { order: 0; }
}
.split + .split { margin-top: clamp(var(--s7), 5vw, var(--s9)); }

/* --------------------------------------------------------------------------
   Findings list (savings page): copy left, same-shape card right
   -------------------------------------------------------------------------- */
.findings { display: grid; gap: var(--s6); }
.finding {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(var(--s4), 3vw, var(--s7));
  align-items: start;
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}
.finding:first-child { padding-top: 0; border-top: 0; }
.finding h3 { margin-bottom: var(--s3); }
.finding p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
@media (max-width: 900px) {
  .finding { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--s3);
  color: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-deep);
  border-bottom: 1.5px solid var(--accent-deep);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Stat row
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: var(--s5); }
.stat__figure { display: block; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: var(--s2); font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
.step { position: relative; padding-top: var(--s5); border-top: 2px solid var(--line); }
.step[data-active] { border-top-color: var(--accent); }
.step__n { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: var(--s2); }
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Compare table
   -------------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--fs-sm); }
.compare th, .compare td { text-align: left; padding: var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 550; color: var(--ink-2); width: 26%; }
.compare td { color: var(--muted); }
.compare .is-us { background: var(--accent-50); color: var(--ink-2); }
.compare thead .is-us { background: var(--accent-100); color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   Pricing tiers
   -------------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
@media (max-width: 980px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s5);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.tier--featured {
  border-color: var(--accent-200);
  box-shadow: var(--sh-2);
  background: linear-gradient(180deg, var(--accent-50) 0%, var(--surface) 180px);
}
.tier__flag {
  position: absolute; top: -11px; left: var(--s5);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--accent-strong);
  border-radius: var(--r-pill); padding: 4px 11px;
}
.tier__name { font-size: 1.125rem; margin-bottom: var(--s3); }
.tier__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.tier__figure { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.tier__unit { font-size: var(--fs-sm); color: var(--muted); }
.tier__ph { font-size: var(--fs-xs); color: var(--faint); margin-bottom: var(--s4); }
.tier__for { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.tier__line { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; margin-bottom: var(--s4); }
.tier__list { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.tier__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-sm); color: var(--body); line-height: 1.55; margin-bottom: var(--s3);
}
.tier__list svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s4) var(--s6) var(--s4) 0;
  position: relative;
  color: var(--ink);
  font-weight: 550;
  font-size: 1.0625rem;
  letter-spacing: -0.014em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }
.faq summary::after {
  content: "";
  position: absolute;
  right: var(--s3); top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__a { padding: 0 var(--s6) var(--s5) 0; color: var(--body); font-size: var(--fs-sm); line-height: 1.7; max-width: 68ch; }
.faq__a p { margin-bottom: var(--s3); }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: clamp(var(--s7), 5vw, var(--s8)); }
.cta-banner__inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-banner h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.cta-banner p { font-size: var(--fs-lead); color: var(--muted); }
.cta-banner .btn-row { justify-content: center; }
.cta-banner__note { margin-top: var(--s4); font-size: var(--fs-xs); color: var(--muted); }

.cta-inline {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--s5), 4vw, var(--s7));
  background:
    linear-gradient(180deg, var(--accent-50) 0%, var(--surface) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.cta-inline__copy { max-width: 52ch; }
.cta-inline h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: var(--s2); }
.cta-inline p { color: var(--muted); margin: 0; }
.cta-inline .btn-row { margin-top: 0; }
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Logo / integration wall
   -------------------------------------------------------------------------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.wall__cell {
  background: var(--surface);
  padding: var(--s4) var(--s3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  min-height: 68px;
  transition: background-color 0.16s var(--ease);
}
a.wall__cell:hover { background: var(--accent-50); color: var(--accent-deep); text-decoration: none; }
.wall__band {
  grid-column: 1 / -1;
  background: var(--surface-2);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.wall__band em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent-deep); font-size: var(--fs-xs); }

/* Provider marks. Real brand logos render monochrome in currentColor rather
   than in 28 competing brand colors, so a wall mixing logos, category glyphs
   and monogram fallbacks reads as one family. See lib/logos.js. */
.pmark {
  width: 28px; height: 28px; flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--muted);
}
.pmark svg { width: 17px; height: 17px; display: block; }
.pmark--logo { color: var(--ink-2); }
a.wall__cell:hover .pmark { border-color: var(--accent-200); background: var(--surface); color: var(--accent-deep); }

/* The same mark, enlarged, at the top of a single provider page. */
.pagehead__mark { display: block; margin-bottom: var(--s4); }
.pagehead__mark .pmark { width: 48px; height: 48px; border-radius: var(--r); }
.pagehead__mark .pmark svg { width: 27px; height: 27px; }
.pagehead__mark .pmark--text { font-size: 16px; }

/* --------------------------------------------------------------------------
   Integrations index: filter chips + card grid
   -------------------------------------------------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: #cbd5e1; background: var(--surface-2); }
.chip[aria-pressed="true"] {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.intgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: var(--s3); }
.intcard {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  color: inherit;
  background: var(--surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.intcard:hover {
  text-decoration: none;
  border-color: var(--accent-200);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.intcard[hidden] { display: none; }
.intcard__head { display: flex; align-items: center; gap: 10px; }
.intcard__name { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); letter-spacing: -0.012em; }
.intcard:hover .intcard__name { color: var(--accent-deep); }
.intcard__blurb { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; flex: 1; }
.intcard__group {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Persona strip
   -------------------------------------------------------------------------- */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); }
.persona {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  color: inherit;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.persona:hover { text-decoration: none; border-color: var(--accent-200); background: var(--accent-50); }
.persona strong { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; }
.persona span { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Product mockups (HTML/CSS/SVG — no stock photos anywhere on this site)
   -------------------------------------------------------------------------- */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.mock--flat { box-shadow: var(--sh-2); }
.mock--plain { box-shadow: var(--sh-1); }

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 11px var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock__dots { display: flex; gap: 5px; flex: none; }
.mock__dots i { width: 8px; height: 8px; border-radius: 50%; background: #dbe1e9; display: block; }
.mock__title { font-size: var(--fs-xs); font-weight: 550; color: var(--muted); letter-spacing: -0.005em; }
.mock__chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 550;
  color: var(--accent-deep);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  flex: none;
}
.mock__body { padding: var(--s5); }
.mock__body--tight { padding: var(--s4); }

.mock__caption {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--s3);
  text-align: center;
}

.mock-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.mock-kpi__label { display: block; font-size: 11px; font-weight: 550; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.mock-kpi__value { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.mock-kpi__delta { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.mock-kpi__delta[data-dir="up"] { color: var(--warn); }
.mock-kpi__delta[data-dir="down"] { color: var(--positive); }
.mock-kpi__delta[data-dir="flat"] { color: var(--muted); }

.mock-legend { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.mock-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.mock-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; flex: none; }

.mock-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.mock-table th, .mock-table td { padding: 10px var(--s3); text-align: left; border-bottom: 1px solid var(--line-soft); }
.mock-table thead th { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 600; border-bottom-color: var(--line); }
.mock-table td { color: var(--body); }
.mock-table td:first-child, .mock-table th:first-child { padding-left: 0; }
.mock-table td:last-child, .mock-table th:last-child { padding-right: 0; text-align: right; }
.mock-table .t-name { color: var(--ink); font-weight: 550; }
.mock-table tbody tr:last-child td { border-bottom: 0; }
.mock-table .t-up { color: var(--warn); font-weight: 550; }
.mock-table .t-down { color: var(--positive); font-weight: 550; }

/* A mockup is a picture of the product, not a data grid. It must always fit
   its frame: text columns wrap, figure columns stay on one line, and the
   secondary columns drop out on narrow screens. Never a horizontal scrollbar. */
/* Keyed off the CONTAINER, not the viewport. A mockup inside a split() sits in
   a ~560px column even on a 1280px screen, so a viewport media query drops the
   wrong columns at the wrong time. */
.mock-scroll { overflow-x: clip; container-type: inline-size; }
/* Figures stay on one line. Headings always wrap: an uppercase heading like
   "Spent on retries" is otherwise the widest thing in its column, and it is
   what pushed these tables past their frame. */
.mock-table td.num-col, .mock-table td:last-child { white-space: nowrap; }

@container (max-width: 620px) {
  .mock-table { font-size: 11px; }
  .mock-table th, .mock-table td { padding: 9px 6px; }
  .mock-table thead th { letter-spacing: 0.03em; }
  .mock-table .col-opt { display: none; }
  /* At this width a trailing "$61,800 a month" is wider than its column, so
     the last column wraps too. */
  .mock-table td:last-child { white-space: normal; }
}
/* Fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
  @media (max-width: 700px) {
    .mock-table { font-size: 11px; }
    .mock-table th, .mock-table td { padding: 9px 6px; }
    .mock-table .col-opt { display: none; }
    .mock-table td:last-child { white-space: normal; }
  }
}

.mock-bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; min-width: 60px; }
.mock-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }

.pill {
  display: inline-block;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
  border-radius: var(--r-pill); padding: 3px 9px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill.s-done { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.pill.s-prog { color: var(--accent-deep); background: var(--accent-50); border-color: var(--accent-100); }
.pill.s-plan { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.pill.s-rev { color: var(--warn); background: #fffbeb; border-color: #fde68a; }

/* Opportunity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: start;
  padding: var(--s4);
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}
.feed__row:last-child { border-bottom: 0; }
.feed__meta { display: flex; flex-direction: column; gap: 5px; }
.feed__tag {
  display: inline-block; width: fit-content;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-50);
  border: 1px solid var(--accent-100); border-radius: var(--r-pill); padding: 3px 9px;
}
.feed__when { font-size: 11px; color: var(--faint); }
.feed__title { margin: 0 0 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.45; }
.feed__body { margin: 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.feed__value { text-align: right; white-space: nowrap; }
.feed__value b { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--positive); font-variant-numeric: tabular-nums; }
.feed__value span { display: block; font-size: 10.5px; color: var(--muted); }
@media (max-width: 620px) {
  .feed__row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); }
  .feed__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--s2); }
}

/* Slack-style alert */
.slackmsg { display: flex; gap: 11px; padding: var(--s4); }
.slackmsg__avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
}
.slackmsg__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.slackmsg__name { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.slackmsg__app { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; background: var(--line-soft); color: var(--muted); border-radius: 3px; padding: 1px 5px; }
.slackmsg__time { font-size: 11px; color: var(--faint); }
.slackmsg__body { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.slackmsg__attach {
  border-left: 3px solid var(--warn);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  padding: 11px var(--s3);
  margin-top: 10px;
}
.slackmsg__attach dl { display: grid; grid-template-columns: auto 1fr; gap: 3px var(--s3); margin: 0; font-size: var(--fs-xs); }
.slackmsg__attach dt { color: var(--muted); }
.slackmsg__attach dd { margin: 0; color: var(--ink-2); font-weight: 550; font-variant-numeric: tabular-nums; }
.slackmsg__actions { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.slackmsg__actions span {
  font-size: var(--fs-xs); font-weight: 550; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 11px; background: var(--surface);
}
.slackmsg__actions span:first-child { border-color: var(--accent-200); color: var(--accent-deep); background: var(--accent-50); }

/* Savings recommendation card */
.rec { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.rec__top { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--line-soft); }
.rec__tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-50); border: 1px solid var(--accent-100);
  border-radius: var(--r-pill); padding: 3px 9px; flex: none;
}
.rec__save { margin-left: auto; text-align: right; flex: none; }
.rec__save b { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; color: var(--positive); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rec__save span { display: block; font-size: 10.5px; color: var(--muted); }
.rec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rec__cell { padding: var(--s4); border-right: 1px solid var(--line-soft); }
.rec__cell:last-child { border-right: 0; }
.rec__cell dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.rec__cell dd { margin: 0; font-size: var(--fs-xs); color: var(--body); line-height: 1.6; }
.rec__foot { padding: var(--s3) var(--s4); background: var(--surface-2); border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Prose (blog)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { margin-bottom: var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose blockquote {
  margin: var(--s5) 0;
  padding: var(--s2) 0 var(--s2) var(--s4);
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.prose code { font-family: var(--ff-mono); font-size: 0.875em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); margin-bottom: 7px; }
.field .req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px var(--s3);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--danger); }
.field__error { display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); }
.field[data-invalid] .field__error { display: block; }
.field__hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }

.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: var(--s2); }
.checkgrid label {
  display: flex; align-items: center; gap: 9px;
  font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px var(--s3); margin: 0; cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.checkgrid label:hover { border-color: var(--accent-200); background: var(--accent-50); }
.checkgrid input { accent-color: var(--accent-strong); width: 16px; height: 16px; flex: none; margin: 0; }

fieldset.field { border: 0; padding: 0; margin-inline: 0; }
fieldset.field legend { font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); padding: 0; margin-bottom: 7px; }
.checkgrid label span { line-height: 1.35; }
fieldset.field[data-invalid] .checkgrid label { border-color: #fecaca; }
fieldset.field[data-invalid] .field__error { display: block; }

.form-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: var(--s3); font-size: var(--fs-xs); color: var(--muted);
}
.form-note svg { width: 13px; height: 13px; color: var(--accent); flex: none; }

.form-status { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r); font-size: var(--fs-sm); }
.form-status[data-ok] { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-status[data-err] { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* --------------------------------------------------------------------------
   Demo page layout
   -------------------------------------------------------------------------- */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(var(--s5), 4vw, var(--s7));
  align-items: start;
}
@media (max-width: 900px) { .demo-layout { grid-template-columns: minmax(0, 1fr); } }
.demo-form {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--s4), 3vw, var(--s6));
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.demo-aside { display: grid; gap: var(--s3); }
.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  background: var(--surface-2);
}
.aside-card h2 { font-size: 1rem; margin-bottom: var(--s2); }
.aside-card p { margin-bottom: var(--s2); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card .checklist { margin-top: var(--s3); }
.aside-card .checklist li { font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   Savings calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc__form { padding: clamp(var(--s4), 3vw, var(--s6)); }
.calc__form .field:last-child { margin-bottom: 0; }
.calc__result {
  padding: clamp(var(--s4), 3vw, var(--s6));
  background: linear-gradient(180deg, var(--accent-50) 0%, var(--surface) 100%);
  border-left: 1px solid var(--line);
}
@media (max-width: 860px) { .calc__result { border-left: 0; border-top: 1px solid var(--line); } }
.calc__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: var(--s2); }
.calc__figure {
  font-size: clamp(1.625rem, 1.1rem + 2.1vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.035em; color: var(--ink);
  line-height: 1.1; margin-bottom: var(--s3);
}
.calc__sub { font-size: var(--fs-sm); color: var(--body); margin-bottom: var(--s4); }
.calc__bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: var(--line); margin-bottom: var(--s3);
}
.calc__bar i { display: block; height: 100%; transition: width 0.25s var(--ease); }
.calc__bar i:first-child { background: var(--accent-strong); }
.calc__bar i:last-child { background: var(--accent-200); }
.calc__note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.55;
}
.calc__note svg { width: 13px; height: 13px; color: var(--warn); flex: none; margin-top: 3px; }
.calc__range-out { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.calc__range-out strong { color: var(--ink); }
input[type="range"] {
  width: 100%; accent-color: var(--accent-strong);
  height: 24px; margin: 0;
}

/* --------------------------------------------------------------------------
   Legal / prose-only pages
   -------------------------------------------------------------------------- */
.legal { max-width: 68ch; }
.legal h2 { margin-top: var(--s7); font-size: 1.375rem; }
.legal h3 { margin-top: var(--s5); font-size: 1.0625rem; }
.legal ul { margin-bottom: var(--s4); }
.legal .updated { font-size: var(--fs-xs); color: var(--muted); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: var(--s4);
  margin: var(--s5) 0;
}
.callout p { font-size: var(--fs-sm); margin-bottom: var(--s2); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(var(--s7), 5vw, var(--s8)) var(--s5); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: var(--s6) var(--s5);
}
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer__brand p { font-size: var(--fs-sm); color: var(--muted); max-width: 34ch; margin-top: var(--s3); }
.site-footer__brand .brand { margin-bottom: var(--s2); }
.site-footer__col h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s3); }
.site-footer__col a { display: block; font-size: var(--fs-sm); color: var(--muted); padding: 4px 0; }
.site-footer__col a:hover { color: var(--accent-deep); text-decoration: none; }
.site-footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--muted);
}
.site-footer__bar p { margin: 0; }
.site-footer__bar a { color: var(--muted); }
.site-footer__bar a:hover { color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   Motion — fade and slight rise on scroll. Subtle only.
   -------------------------------------------------------------------------- */
/* Scoped to .js so content is never hidden when scripting is off or fails. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   SCANNABILITY LAYER
   Bold lead-ins, short lines, big numbers, contrast blocks. Built because
   visitors skim: the page has to make its argument without being read.
   ========================================================================== */

/* Lead paragraph in a split block: slightly larger, darker, so the eye lands. */
.lead-p { font-size: 1.0625rem; color: var(--ink-2); }
.split__copy p + p { font-size: var(--fs-sm); color: var(--muted); }
.split__copy p { max-width: 46ch; }

/* Body copy generally: shorter measure, more air between lines. */
.sec-head p { max-width: 56ch; }

/* --------------------------------------------------------------------------
   The short version
   -------------------------------------------------------------------------- */
.tldr {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--surface);
  box-shadow: var(--sh-1);
  padding: var(--s4) var(--s5);
}
.tldr__title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s3);
}
.tldr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3) var(--s5);
}
@media (max-width: 760px) { .tldr__list { grid-template-columns: minmax(0, 1fr); } }
.tldr__list li {
  position: relative;
  padding-left: 24px;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}
.tldr__list li strong { color: var(--ink); font-weight: 600; }
.tldr__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Big-number strip
   -------------------------------------------------------------------------- */
.statstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statstrip__item { text-align: left; }
.statstrip__fig {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-deep);
}
.statstrip__label {
  display: block;
  margin-top: var(--s2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
  max-width: 26ch;
}
.statstrip__label strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Before / after contrast
   -------------------------------------------------------------------------- */
.ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .ba { grid-template-columns: minmax(0, 1fr); } }
.ba__col { background: var(--surface); padding: var(--s5); }
.ba__col--after { background: var(--accent-50); }
.ba__head {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
  color: var(--muted);
}
.ba__col--after .ba__head { color: var(--accent-deep); }
.ba__col ul { list-style: none; margin: 0; padding: 0; }
.ba__col li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}
.ba__col li:last-child { margin-bottom: 0; }
.ba__col li strong { color: var(--ink); font-weight: 600; }
.ba__col--before li::before {
  content: "";
  position: absolute;
  left: 3px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
}
.ba__col--after li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 4px;
  border-left: 1.75px solid var(--accent-deep);
  border-bottom: 1.75px solid var(--accent-deep);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Pull statement
   -------------------------------------------------------------------------- */
.pull { max-width: 46ch; margin-block: var(--s5); }
.pull__text {
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.pull__text strong { color: var(--accent-deep); font-weight: 600; }
.pull__sub { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.center .pull { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Icon row
   -------------------------------------------------------------------------- */
.iconrow { display: grid; gap: var(--s5) var(--s4); }
.iconrow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.iconrow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iconrow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .iconrow--3, .iconrow--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .iconrow { grid-template-columns: minmax(0, 1fr) !important; } }
.iconrow__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-deep);
  margin-bottom: var(--s3);
}
.iconrow__icon svg { width: 16px; height: 16px; }
.iconrow__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.iconrow__body { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; margin: 0; max-width: 34ch; }

/* --------------------------------------------------------------------------
   Key points: term on the left, one line on the right
   -------------------------------------------------------------------------- */
.keypoints { margin: 0; border-top: 1px solid var(--line); }
.keypoints__row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .keypoints__row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.keypoints dt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.5; }
.keypoints dd { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Blog: key points box and tighter prose
   -------------------------------------------------------------------------- */
.post-key {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--surface-2);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
}
.post-key p.post-key__title {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: var(--s3);
}
.post-key ul { list-style: none; margin: 0; padding: 0; }
.post-key li {
  position: relative; padding-left: 22px; margin-bottom: var(--s2);
  font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2);
}
.post-key li:last-child { margin-bottom: 0; }
.post-key li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* Blog prose: bold lead-ins read as sub-signposts. */
.prose p strong:first-child { color: var(--ink); }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.1875rem; }

/* --------------------------------------------------------------------------
   Denser split blocks: visual carries more weight than the copy
   -------------------------------------------------------------------------- */
.split { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Summary row: "the short version" beside the quotable answer. */
.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
@media (max-width: 900px) { .summary-row { grid-template-columns: minmax(0, 1fr); } }
.summary-row .tldr__list { grid-template-columns: minmax(0, 1fr); }
.summary-row .answer { max-width: none; }
.summary-row .answer p { font-size: var(--fs-sm); line-height: 1.65; }

/* Two-column bullet lists. */
.cols2 .checklist { columns: 2; column-gap: var(--s6); max-width: 900px; }
.cols2 .checklist li { break-inside: avoid; }
@media (max-width: 720px) { .cols2 .checklist { columns: 1; } }

/* "More detail" disclosure inside split blocks. */
.more { margin: var(--s3) 0 0; }
.more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--accent-deep);
  padding: 4px 0;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.18s var(--ease);
}
.more[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.more > summary:hover { color: var(--ink); }
.more__body { padding-top: var(--s2); }
.more__body p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s2); }
.more__body p:last-child { margin-bottom: 0; }
