:root {
  color-scheme: light;
  /* Refined warm-paper + warm-ink palette. Inspired by Ramp's cream + ink
     restraint and Stripe's confident neutral system. Single chromatic accent. */
  --ink: #0a0a0a;
  --ink-soft: #1f1d1a;
  --muted: #6b665d;
  --muted-soft: #8d877d;
  --line: #e6e1d6;
  --line-soft: #f0ebde;
  --paper: #fbfaf6;
  --paper-soft: #f5f1e6;
  --band: #f5f1e6;
  --white: #ffffff;
  --accent: #0a3d2e;            /* deeper, more sophisticated than the old #116149 */
  --accent-ink: #052920;
  --accent-soft: #d6e4dd;
  --signal: #d97706;            /* warm rust, used sparingly for badges */
  --signal-soft: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 4px 16px rgba(10,10,10,0.06);
  --shadow-lg: 0 12px 36px rgba(10,10,10,0.08);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Type scale (1.250 minor third on tight side, generous on display) */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Charter", "Source Serif Pro", Cambria, Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration-color: rgba(10,61,46,0.25); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251,250,246,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 5px;
  display: inline-block;
  background-image: linear-gradient(135deg, var(--accent) 0%, #1a6e51 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: color 120ms; }
nav a:hover { color: var(--accent); text-decoration: none; }

.utility-band {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.content-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: center;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.018em; color: var(--ink); }
h1 {
  font-family: var(--font-serif);
  font-weight: 450;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 14ch;
}
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 10px; }

.lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Tabular figures for prices, percentages, table cells */
.pricing-table, .requirements-table, .signal-panel, .signal-strip,
.trust-strip strong, table, output, .price-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
}

.search-panel {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 620px;
}

.search-panel label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

input, button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input {
  padding: 0 14px;
  background: var(--white);
  transition: border-color 120ms, box-shadow 120ms;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,61,46,0.12);
}
button {
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 120ms, transform 80ms;
}
button:hover { background: var(--accent); }
button:active { transform: translateY(1px); }

.signal-panel, .signal-strip {
  display: grid;
  gap: 12px;
}

.signal-panel > div, .signal-strip > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.signal-panel strong, .signal-strip strong {
  display: block;
  font-size: 30px;
}

.signal-panel span, .signal-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 48px);
}

.compact { padding-top: 28px; padding-bottom: 28px; }

.section-heading {
  margin-bottom: 22px;
}

.score-table, .requirements-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr 0.7fr 0.7fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.requirements-table .table-row {
  grid-template-columns: 0.7fr 2fr;
}

.validation-table .table-row {
  grid-template-columns: 0.8fr 1.2fr 1.6fr;
}

.pricing-table .table-row {
  grid-template-columns: 0.8fr 0.8fr 1fr 2fr;
}

.table-row:first-child { border-top: 0; }
.table-head { background: #f5f7f4; font-weight: 800; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.page-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.page-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}
.page-card h3 a { color: var(--ink); text-decoration: none; }
.page-card h3 a:hover { color: var(--accent); }
.page-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin: 0 0 12px; }
.page-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* TL;DR / Short answer callout — refined, no AI-doc thick left border */
.answer-box, .aeo-tldr {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  margin: 8px 0 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.answer-box::before, .aeo-tldr::before {
  content: "TL;DR";
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.answer-box strong, .aeo-tldr strong {
  display: none; /* the ::before pseudo handles the label */
}
.answer-box p, .aeo-tldr p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-strip span,
.comparison-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 14px;
}

.calculator-panel {
  background: #f5f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
}

.pricing-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.pricing-calculator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  padding: 0 10px;
}

output {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* Tool pages override the default output styling for richer layouts. */
.tool-article output,
.comparison-article output {
  display: block;
  background: var(--white);
  color: var(--ink);
  font-weight: normal;
  white-space: normal;
  padding: 16px 20px;
  border: 1px solid var(--line);
  margin-top: 16px;
}

.stack-calculator,
.per-user-calculator,
.annual-monthly-calculator,
.comparison-calculator {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--muted);
  font-size: 14px;
}

.tool-selector {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--white);
}

.tool-selector legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--ink);
}

.tool-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.tool-checkbox {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.tool-checkbox input {
  width: 16px;
  height: 16px;
}

.tool-checkbox .tier-select {
  font-size: 13px;
  min-height: 32px;
  padding: 0 6px;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.estimate-line:last-of-type {
  border-bottom: none;
}

.estimate-label {
  color: var(--muted);
}

.estimate-line strong {
  color: var(--accent);
  font-size: 18px;
}

.stack-breakdown,
.tier-breakdown,
.avm-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.stack-breakdown th,
.stack-breakdown td,
.tier-breakdown th,
.tier-breakdown td,
.avm-table th,
.avm-table td,
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.stack-breakdown th,
.tier-breakdown th,
.avm-table th,
.comparison-table th {
  background: var(--band);
  color: var(--muted);
  font-weight: 600;
}

.savings-row td {
  font-weight: 700;
  background: var(--band);
}

.cheapest-tier,
.payback-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--band);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.decision-axes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.decision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--paper);
}

.tool-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tool-card,
.comparison-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.tool-card:hover,
.comparison-card:hover {
  border-color: var(--accent);
}

.tool-card h2,
.comparison-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--accent);
}

.tool-card p,
.comparison-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 780px) {
  .side-by-side,
  .decision-axes {
    grid-template-columns: 1fr;
  }
  .tool-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.rule-list {
  padding-left: 22px;
}

.rule-list li { margin-bottom: 10px; }

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.small { color: var(--muted); font-size: 14px; }

.comparison-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-list {
  padding-left: 20px;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.city-group { margin-top: 32px; }

.site-footer {
  padding: 24px clamp(16px, 4vw, 48px);
  background: var(--ink);
  color: #e8eee9;
}

/* Section spacing — more generous, Stripe/Ramp-grade */
.section {
  padding: clamp(56px, 6vw, 88px) clamp(16px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 450;
  letter-spacing: -0.024em;
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.1;
  margin: 0 0 10px;
  max-width: 22ch;
}
.section-heading p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* Tool grid + compare grid — same treatment as page cards */
.tool-card, .comparison-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}
.tool-card:hover, .comparison-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.tool-card h3, .comparison-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.tool-card p, .comparison-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tool-grid, .comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* Footer — multi-column refined */
.site-footer {
  background: var(--ink);
  color: #c8c1b0;
  padding: clamp(56px, 5vw, 80px) clamp(16px, 5vw, 56px) 32px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
}
.footer-brand .brand { color: var(--paper); font-size: 1.125rem; }
.footer-brand .brand::before { background-image: linear-gradient(135deg, var(--paper) 0%, #d6e4dd 100%); }
.footer-brand .footer-tagline {
  margin-top: 14px;
  color: #b3ad9c;
  font-size: 0.875rem;
  max-width: 36ch;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: #c8c1b0;
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9375rem;
  transition: color 120ms;
}
.footer-col a:hover { color: var(--paper); text-decoration: none; }
.footer-meta {
  max-width: 1240px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: #908a7a;
}
.footer-meta a { color: #908a7a; text-decoration: none; }
.footer-meta a:hover { color: var(--paper); text-decoration: none; }

/* Meta strip pills on pricing pages — refined */
.meta-strip span, .meta-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 120ms;
}
.meta-strip span:hover, .meta-strip a:hover { border-color: var(--ink); text-decoration: none; }

/* Pricing-page header — drop eyebrow on legacy pages too */
.pricing-article header.answer-header { padding-top: 8px; }
.pricing-article h1 {
  font-family: var(--font-serif);
  font-weight: 450;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.024em;
  line-height: 1.08;
  margin: 12px 0 24px;
  max-width: 20ch;
}

/* Calculator + pricing tables — cleaner table treatment */
.score-table, .requirements-table, .pricing-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-row {
  border-top: 1px solid var(--line-soft);
  padding: 16px 20px;
  align-items: center;
}
.table-head {
  background: var(--paper-soft);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.calculator-panel {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 28px;
}
.calculator-panel h2 { margin-top: 0; }

/* Mobile: stack hero, reduce padding */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-snapshot { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 780px) {
  .content-grid, .two-column { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .pricing-calculator { grid-template-columns: 1fr; }
  .search-panel { padding: 6px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Reading progress bar (guides only) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
  transition: transform 80ms linear;
}

/* Sticky TOC on guides (desktop only) */
.guide-article .aeo-toc {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}
.guide-article .aeo-toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.guide-article .aeo-toc strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
@media (min-width: 980px) {
  .guide-article .aeo-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

/* Related-content block (cross-links) */
.related-block {
  border-top: 2px solid var(--line);
  padding: 32px 0 16px;
  margin-top: 32px;
}
.related-block > h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}
.related-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.related-group h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.related-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms, transform 120ms;
}
.related-list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.related-list a strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-3);
  margin-bottom: 4px;
}
.related-list a span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 780px) {
  .related-groups {
    grid-template-columns: 1fr;
  }
}

/* Homepage hero — two-column with live snapshot card on the right */
.hero-band {
  padding: clamp(56px, 8vw, 120px) clamp(16px, 5vw, 80px) clamp(48px, 6vw, 96px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  /* Subtle warm radial gradient in upper-right corner — the only "signature moment" */
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(10,61,46,0.08) 0%, rgba(10,61,46,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 640px; }
.hero-content h1 {
  font-family: var(--font-serif);
  font-weight: 450;
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero-content h1 em {
  color: var(--accent);
  font-style: normal;
  font-feature-settings: "ss01";
}
.hero-content .lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 54ch;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  align-items: center;
}
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 140ms, color 140ms, border-color 140ms, transform 80ms;
  white-space: nowrap;
}
.cta-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.cta-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); text-decoration: none; }
.cta-primary::after { content: "→"; margin-left: 4px; transition: transform 140ms; }
.cta-primary:hover::after { transform: translateX(2px); }
.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.cta-secondary:hover { background: var(--white); border-color: var(--ink); text-decoration: none; }
.cta-primary:active, .cta-secondary:active { transform: translateY(1px); }

.hero-content .search-panel {
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  transition: border-color 160ms, box-shadow 160ms;
}
.hero-content .search-panel:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}
.hero-content .search-panel input {
  flex: 1;
  border: none;
  background: transparent;
  min-height: 40px;
  padding: 0;
  font-size: 0.9375rem;
}
.hero-content .search-panel input:focus { outline: none; box-shadow: none; }
.hero-content .search-panel button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.875rem;
}

/* Live snapshot card on the right of the hero */
.hero-snapshot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
}
.hero-snapshot h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-snapshot .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-snapshot .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.snapshot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  gap: 10px;
}
.snapshot-row:first-of-type { border-top: 0; padding-top: 6px; }
.snapshot-row a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.snapshot-row a:hover { color: var(--accent); text-decoration: none; }
.snapshot-row .tier {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 2px;
  font-weight: 400;
}
.snapshot-row .price {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
}
.snapshot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--muted);
}
.snapshot-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* Trust strip — numbers-first, no word in number slot */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.trust-strip div {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-strip strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-strip span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Section-alt — subtle band switch for visual rhythm (no harsh contrast) */
.section-alt { background: var(--paper-soft); }

/* CTA band at bottom of homepage */
.cta-band {
  background: var(--ink);
  color: #ddd6c4;
  padding: clamp(56px, 6vw, 88px) clamp(16px, 5vw, 80px);
  margin-top: 0;
  border-top: 1px solid var(--ink);
}
.cta-band h2 {
  color: var(--white);
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 450;
  letter-spacing: -0.02em;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
}
.cta-band p { margin: 0; color: #c8c1b0; max-width: 56ch; font-size: 1rem; }
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cta-band .cta-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-band .cta-primary:hover { background: var(--white); color: var(--accent); }

.guide-card { background: var(--white); }
.guide-card h3 a { color: var(--ink); }
.section-cta { margin-top: 20px; font-size: 0.9375rem; }
.section-cta a { color: var(--accent); font-weight: 500; }
.byline-section { padding-top: 8px; }
.footer-tagline { font-size: 0.875rem; opacity: 0.7; margin-top: 16px; max-width: 56ch; }

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

/* Smoother card hover */
.page-card, .tool-card, .comparison-card {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.page-card:hover, .tool-card:hover, .comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23,32,28,0.08);
}

/* Body prose readability */
.guide-article p, .article-shell p {
  max-width: 70ch;
  line-height: 1.65;
}
.guide-article .related-block p,
.article-shell .related-block p { max-width: none; }
