/* ============ Design tokens ============ */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #122b4d;
  --navy-700: #1a3a66;
  --green-500: #10b981;
  --green-600: #059669;
  --blue-500: #2563eb;
  --blue-600: #1d4ed8;
  --amber-500: #f59e0b;
  --ink: #15233b;
  --ink-soft: #51607a;
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --line: #dde5f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --shadow-sm: 0 3px 12px rgba(11, 31, 58, 0.08);
  --max-w: 1180px;
}

* { box-sizing: border-box; }
/* The [hidden] attribute must always win over component display rules
   (e.g. .signup-success/.panel-content use display:flex when shown). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-600); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ Countdown strip ============ */
.cd-strip {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(90deg, #0e2a4d, #10331f);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 7px 16px;
  font-size: 13px; color: #d7e2f2;
}
.cd-strip .cd-label { font-weight: 700; }
.cd-strip .cd-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 800; color: var(--green-500); letter-spacing: .5px;
}
.cd-sep { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.cd-more { color: #9fd9c2; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.cd-more:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .cd-sep, #cd-next { display: none; } }

.nav-active { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
.page-h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }

/* ============ Key Dates page ============ */
.dates-group { font-size: 20px; margin: 40px 0 14px; }
.refreshed-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--green-600); background: rgba(16,185,129,.12);
  padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px;
}
.date-list { display: flex; flex-direction: column; gap: 10px; }
.date-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 18px;
}
.date-cal {
  font-weight: 800; font-size: 14px; color: var(--navy-700);
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 4px; text-align: center; white-space: nowrap;
}
.date-main { font-size: 14.5px; }
.date-main a { font-size: 13px; white-space: nowrap; }
.date-chip {
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.chip-live { background: rgba(16,185,129,.14); color: var(--green-600); }
.chip-passed { background: rgba(107,114,128,.12); color: #6b7280; }
.chip-period { background: rgba(37,99,235,.1); color: var(--blue-600); }
.row-passed { opacity: .55; }
.dates-note { font-size: 13.5px; color: var(--ink-soft); margin: 14px 2px 0; }
@media (max-width: 560px) {
  .date-row { grid-template-columns: 1fr; gap: 6px; }
  .date-cal { justify-self: start; }
}

/* ============ FAQ page ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq-list details {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 20px;
}
.faq-list details[open] { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16px; padding: 16px 0;
  list-style: none; position: relative; padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--green-600);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* ============ QOZ Calculator ============ */
.calc-card {
  max-width: 880px; margin: 0 auto;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 38px;
}
.calc-collapsed { opacity: .65; }
.calc-h { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-600); margin: 20px 0 14px; }
.calc-h:first-child { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-card .field { display: flex; flex-direction: column; gap: 6px; }
.calc-card label { font-size: 13px; font-weight: 700; }
.calc-card label .opt { color: var(--ink-soft); font-weight: 500; }
.calc-card input, .calc-card select {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.calc-card input:focus, .calc-card select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.dollar-wrap { position: relative; }
.dollar-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-soft); }
.dollar-wrap input { padding-left: 26px; }
.calc-cta { margin-top: 22px; font-size: 16px; padding: 14px; }

/* report */
.calc-report { max-width: 880px; margin: 34px auto 0; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 3px solid var(--navy-900); padding-bottom: 16px; margin-bottom: 20px; }
.report-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy-700); margin-bottom: 8px; }
.report-head h2 { margin: 0 0 6px; font-size: 26px; }
.report-meta { margin: 0; font-size: 13px; color: var(--ink-soft); }
.report-sec { font-size: 18px; margin: 30px 0 12px; }
.report-p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.calc-flag { border-radius: 12px; padding: 14px 18px; font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.flag-green { background: rgba(16,185,129,.1); border: 1.5px solid rgba(16,185,129,.45); }
.flag-amber { background: rgba(245,158,11,.1); border: 1.5px solid rgba(217,119,6,.45); }
.flag-red { background: rgba(220,38,38,.08); border: 1.5px solid rgba(220,38,38,.4); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--paper); }
.compare-rural { border-color: #d97706; background: rgba(245,158,11,.05); }
.compare-card h4 { margin: 0 0 2px; font-size: 17px; }
.compare-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-soft); }
.compare-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.compare-line span:last-child { font-weight: 700; white-space: nowrap; }
.compare-line.big { font-size: 15px; }
.compare-line.big span:last-child { font-size: 18px; font-weight: 800; }
.compare-line.save { border-bottom: none; color: var(--green-600); }
.compare-line.save span:last-child { color: var(--green-600); font-weight: 800; }
.report-disclaimer { margin-top: 26px; font-size: 11.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.6; }

/* loss-harvesting callout */
.harvest-box {
  margin-top: 26px;
  background: linear-gradient(135deg, rgba(16,185,129,.07), rgba(37,99,235,.05));
  border: 2px solid var(--green-500);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.harvest-box h4 { margin: 0 0 10px; font-size: 17px; }
.harvest-box p { font-size: 14px; color: var(--ink); line-height: 1.65; margin: 0 0 12px; }
.harvest-math {
  display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap;
  margin: 16px 0; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.harvest-stat { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.harvest-stat .hnum { font-size: 22px; font-weight: 800; color: var(--green-600); }
.harvest-stat .hlabel { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.harvest-arrow { align-self: center; color: var(--green-600); font-size: 22px; font-weight: 800; }
.harvest-caveats { font-size: 12px !important; color: var(--ink-soft) !important; border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 0 !important; }
.harvest-muted { border-color: #d97706; background: rgba(245,158,11,.06); }
@media (max-width: 640px) { .harvest-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 60px; } }
.faq-highlight { border-color: var(--green-500) !important; background: rgba(16,185,129,.04) !important; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; } .compare-grid { grid-template-columns: 1fr; } }

/* print: report only */
@media print {
  .no-print, .nav, .cd-strip, .footer, .calc-card { display: none !important; }
  .calc-report { margin: 0; max-width: none; }
  .section { padding: 0; }
  body { background: #fff; }
  .date-row, .compare-card, .calc-flag { break-inside: avoid; }
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 31, 58, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-name { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #d7e2f2; font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* QWOZ brand marks. The wordmark sits on a white chip so it stays legible
   on the dark nav regardless of the SVG's own palette — remove the
   background/padding here if the mark is already light-on-transparent.
   The nav now uses QWOZ-Logo-Header-White.svg, so it has neither. */
.brand-wordmark { height: 38px; width: auto; display: block; }
.brand-logo-sm {
  width: 34px; height: 34px; display: block;
  background: #fff; padding: 3px; border-radius: 8px; object-fit: contain;
}
.report-brand-img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }

/* Logo placeholder — replace with your real logo image */
.logo-placeholder {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px dashed rgba(255,255,255,.5);
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  user-select: none;
}
.logo-placeholder-sm { width: 34px; height: 34px; font-size: 8px; border-color: #9fb0c8; color: #9fb0c8; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(16,185,129,.25), transparent 60%),
    radial-gradient(900px 480px at 10% 110%, rgba(37,99,235,.28), transparent 55%),
    var(--navy-900);
  color: #fff;
  padding: 92px 24px 72px;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 12.5px;
  color: var(--green-500); font-weight: 800; margin: 0 0 14px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 720px; }
.hero .accent { color: var(--green-500); }
.hero-sub { max-width: 620px; font-size: 18px; color: #c6d3e6; margin: 18px 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 46px; flex-wrap: wrap; margin-top: 54px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 30px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13.5px; color: #9fb0c8; }

/* ============ Signup ============ */
.signup { padding: 64px 24px; background: var(--paper-soft); }
.signup-card {
  position: relative;
  max-width: 880px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.signup-copy h2 { font-size: 27px; }
.signup-copy p { color: var(--ink-soft); }
#lead-form .field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
#lead-form label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
#lead-form input, #lead-form select {
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
#lead-form input:focus, #lead-form select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.form-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }
.form-error { color: #dc2626; font-size: 13.5px; font-weight: 600; text-align: center; margin: 10px 0 0; }
.signup-success {
  position: absolute; inset: 0;
  background: var(--paper);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px;
}
.success-check {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-500); color: #fff;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800; margin-bottom: 16px;
}

/* ============ Map section ============ */
.map-section { padding: 64px 24px; max-width: var(--max-w); margin: 0 auto; }
.map-header h2 { font-size: 30px; }
.map-header p { color: var(--ink-soft); max-width: 760px; margin-top: 0; }

.map-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin: 22px 0 14px;
}
.layer-toggles { display: flex; gap: 18px; flex-wrap: wrap; }
.toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer; user-select: none;
  padding: 8px 14px;
  background: var(--paper-soft);
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.toggle input { accent-color: var(--green-600); width: 16px; height: 16px; }
.toggle-hint { color: var(--ink-soft); font-weight: 500; font-size: 13px; }
.swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
}
.swatch-qoz1 { background: rgba(37, 99, 235, .55); border: 1.5px solid var(--blue-600); }
.swatch-qoz2 { background: rgba(16, 185, 129, .55); border: 1.5px solid var(--green-600); }
.swatch-rural { background: rgba(245, 158, 11, .55); border: 1.5px solid #d97706; }
.swatch-prospective { background: rgba(139, 92, 246, .55); border: 1.5px solid #6d28d9; }

.map-search { display: flex; gap: 8px; }
.map-search input {
  width: 280px; max-width: 60vw;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 14.5px;
  font-family: inherit;
}
.map-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}
.map-view {
  position: relative;
  height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper-soft);
}
.map-loading {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  color: var(--ink-soft); font-weight: 600;
  background: var(--paper-soft);
}

/* ============ Listings panel ============ */
.listings-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  height: 620px;
  overflow-y: auto;
}
.panel-empty { text-align: center; color: var(--ink-soft); padding-top: 120px; }
.panel-empty-icon { font-size: 42px; margin-bottom: 10px; }
.panel-empty h3 { color: var(--ink); }

.panel-badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.panel-badge.badge-1 { background: rgba(37,99,235,.12); color: var(--blue-600); }
.panel-badge.badge-2 { background: rgba(16,185,129,.14); color: var(--green-600); }
.panel-badge.badge-3 {
  background: linear-gradient(90deg, rgba(37,99,235,.12), rgba(16,185,129,.16));
  color: var(--navy-700);
}
#panel-title { font-size: 21px; margin-bottom: 12px; }

.panel-meta { margin: 0 0 18px; padding: 0; }
.panel-meta > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.panel-meta dt { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.panel-meta dd { margin: 0; font-size: 13.5px; font-weight: 700; text-align: right; word-break: break-word; }

.panel-subhead { font-size: 16px; margin: 18px 0 4px; }
.panel-hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }

.listing-tabs {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0 12px;
}
.listing-tab {
  flex: 1;
  padding: 9px 10px;
  background: var(--paper-soft);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.listing-tab + .listing-tab { border-left: 1.5px solid var(--line); }
.listing-tab:not(.active):hover { color: var(--ink); }
.listing-tab.active { background: var(--green-500); color: #fff; }

.zip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.zip-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper-soft);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: all .1s ease;
}
.zip-chip:hover { border-color: var(--green-500); }
.zip-chip.active { background: var(--green-500); border-color: var(--green-500); color: #fff; }

.listing-links { display: flex; flex-direction: column; gap: 9px; }
.listing-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: all .12s ease;
}
.listing-link:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.listing-link .arrow { color: var(--green-600); font-size: 17px; }
.listing-link .provider { display: flex; flex-direction: column; }
.listing-link .provider small { color: var(--ink-soft); font-weight: 500; font-size: 12px; }

.listing-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.listing-card {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.listing-card h5 { margin: 0 0 4px; font-size: 14.5px; }
.listing-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }

.panel-disclaimer {
  margin-top: 18px;
  font-size: 11.5px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.panel-disclaimer code { background: var(--paper-soft); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.map-legend-note {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  margin-top: 14px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
.map-legend-note > span { display: flex; align-items: center; gap: 7px; }
.legend-overlap { font-style: italic; font-weight: 500; }

/* ============ Footer ============ */
.footer { background: var(--navy-900); color: #9fb0c8; padding: 40px 24px; margin-top: 30px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #d7e2f2; font-weight: 700; margin-bottom: 14px; }
.footer-disclaimer { font-size: 12.5px; max-width: 860px; line-height: 1.6; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .map-layout { grid-template-columns: 1fr; }
  .listings-panel { height: auto; max-height: 540px; }
  .signup-card { grid-template-columns: 1fr; padding: 30px 26px; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 20px 52px; }
  .hero-stats { gap: 26px; }
  .nav-links a:not(.btn) { display: none; }
  .map-view { height: 460px; }
  .map-search input { width: 100%; }
  .map-toolbar { flex-direction: column; align-items: stretch; }
}

/* ============ Shared section scaffolding ============ */
.section { max-width: var(--max-w); margin: 0 auto; padding: 76px 24px; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow, .eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px;
  color: var(--green-600); font-weight: 800; margin: 0 0 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; }
.section-sub { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* ============ How it works / capabilities ============ */
.capabilities { padding-top: 84px; }
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.cap-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 28px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cap-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(37,99,235,.12));
}
.cap-card h3 { font-size: 19px; margin: 0 0 8px; }
.cap-card p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

.pipeline {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-top: 40px;
}
.pipeline-step {
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
}
.pipeline-arrow { color: var(--green-600); font-weight: 800; font-size: 18px; }

/* ============ Data engine (secret sauce) ============ */
.data-sources { background: var(--paper-soft); max-width: none; }
.data-sources .section-head, .data-sources .source-grid, .data-sources .engine-footnote { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.accent-dark { color: var(--green-600); }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
  border-left: 4px solid var(--green-500);
}
.source-name { font-weight: 800; font-size: 16px; color: var(--ink); }
.source-desc { font-size: 13.5px; color: var(--ink-soft); }
.source-card-sauce {
  background: var(--navy-900); border-color: var(--navy-900);
  border-left-color: var(--green-500);
}
.source-card-sauce .source-name { color: #fff; }
.source-card-sauce .source-desc { color: #c6d3e6; }
.engine-footnote {
  display: block; text-align: center; margin-top: 22px;
  font-size: 13px; font-style: italic; color: var(--ink-soft);
}

/* ============ Pricing ============ */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 17px; margin: 0 0 10px; }
.price-num { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1; }
.price-mo { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.price-per { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li {
  font-size: 13.5px; padding: 6px 0 6px 22px; position: relative; color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }
.price-featured { border-color: var(--green-500); border-width: 2px; box-shadow: var(--shadow); transform: scale(1.02); }
.price-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green-500); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.btn-ghost-dark {
  background: transparent; color: var(--navy-700); border: 1.5px solid var(--line);
}
.btn-ghost-dark:hover { border-color: var(--green-500); color: var(--green-600); }
.pricing-banner {
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(16,185,129,.1), rgba(37,99,235,.08));
  border: 1.5px solid rgba(16,185,129,.4);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 14.5px;
}
.pricing-banner a { font-weight: 700; }
.pricing-note { margin-top: 14px; font-size: 12px; color: var(--ink-soft); text-align: center; }

@media (max-width: 1080px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-featured { transform: none; }
}
@media (max-width: 860px) {
  .cap-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .source-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .pipeline-arrow { transform: rotate(90deg); }
}

/* ============ Enterprise ============ */
.enterprise { background: var(--paper-soft); max-width: none; }
.enterprise .section-head, .enterprise .cap-grid, .enterprise .pipeline,
.enterprise .enterprise-cta { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.enterprise-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.enterprise .enterprise-note { max-width: 760px; margin: 18px auto 0; font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.6; }
.lead-context { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; color: var(--green-600); text-transform: uppercase; letter-spacing: .5px; }

/* ============ Legal pages ============ */
.legal-page .section-head { margin-bottom: 28px; }
.legal-body { max-width: 760px; margin: 0 auto; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.legal-body h2 { font-size: 19px; margin: 30px 0 8px; color: var(--navy-900); }
.legal-body p, .legal-body ul { margin: 0 0 12px; }
.legal-body ul { padding-left: 22px; }
.footer-links { margin: 10px 0 0; font-size: 12.5px; }
.footer-links a { color: #9fd9c2; }

/* Nav buttons keep one line; below 1000px the platform link is hidden and "Get Access" carries the CTA (the nav has no room for both). */
.nav-links .btn { white-space: nowrap; }
@media (max-width: 1000px) { .nav-links .btn-ghost { display: none; } }
