/* =========================================================
   Radius Wealth 401(k) — single stylesheet
   Brand restraint: white bg, black text, green for action only.
   Mobile-first; layered up at 768 / 1024.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-gray: #F5F5F5;
  --text: #1A1A1A;
  --text-soft: #555;
  --text-muted: #888;
  --green: #0F5F2E;
  --green-hover: #0A4A22;
  --green-tint: rgba(15, 95, 46, 0.08);
  --line: #E6E6E6;

  --serif: "Fraunces", "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --radius: 6px;
  --radius-lg: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);

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

/* ---------- reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; }

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
a:hover, a:focus-visible { color: var(--green-hover); border-bottom-color: currentColor; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: var(--text); padding: 8px 12px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 12px; z-index: 100; }

/* ---------- typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.12;
  margin: 0 0 var(--space-5);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
}
h1.display { font-size: clamp(2.25rem, 6vw, 3.75rem); }

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--text);
}

h2, h3, h4 { color: var(--text); }
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-4); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 var(--space-4);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 var(--space-6);
  max-width: 720px;
}
.lede--narrow { max-width: 640px; }

.muted { color: var(--text-soft); font-size: 0.9375rem; margin: var(--space-3) 0 0; }
.disclosure { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; margin: var(--space-5) 0 0; }
.footnote { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--line); }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 100px;
  margin: 0 0 var(--space-4);
}

/* ---------- layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
}
.section--gray { background: var(--bg-gray); border-top-color: transparent; }
.section--gray + .section--gray { border-top: 1px solid var(--line); }

@media (min-width: 768px) {
  .section { padding: var(--space-9) 0; }
}

.section-cta {
  margin-top: var(--space-7);
  text-align: left;
}
.section-cta .muted { margin-top: var(--space-3); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  gap: var(--space-4);
}
.site-header__brand { display: inline-flex; border: 0; }
.site-header__brand img { height: 36px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-5); }
.site-header__nav a {
  color: var(--text); border: 0;
  font-size: 0.9375rem; font-weight: 500;
}
.site-header__nav a:hover { color: var(--green); border: 0; }

@media (max-width: 640px) {
  .site-header__nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease),
              background-color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline-offset: 4px; }

.btn--primary {
  background: var(--green); color: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #fff;
}

.btn--secondary {
  background: transparent; color: var(--text);
  border-color: var(--text);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--text); color: #fff; border-color: var(--text);
}

.btn--sm { padding: 10px 16px; font-size: 0.875rem; }
.btn--full { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-5);
}
.cta-row--center { justify-content: center; }

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

.hero {
  padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(1200px 400px at 80% -20%, var(--green-tint), transparent 60%),
    var(--bg);
}
.hero__inner { max-width: 880px; }
.hero .lede { font-size: 1.1875rem; max-width: 760px; }

@media (min-width: 768px) {
  .hero { padding: var(--space-9) 0; }
}

.proof-points {
  list-style: none; padding: 0; margin: var(--space-6) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  font-size: 0.9375rem; color: var(--text-soft);
}
.proof-points li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------- problem grid ---------- */

.problem-grid {
  display: grid; gap: var(--space-5);
  margin-top: var(--space-7);
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.problem-card {
  background: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.problem-card h3 { font-size: 1.1875rem; margin-bottom: var(--space-3); }
.problem-card p { margin: 0; color: var(--text-soft); }
.problem-card sup { font-size: 0.7em; vertical-align: super; line-height: 1; }
.problem-card sup a { color: var(--text-muted); border: 0; }

/* ---------- two-col blocks (why now) ---------- */

.two-col {
  display: grid; gap: var(--space-6);
  margin-top: var(--space-6);
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }

.block h3 {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 500; line-height: 1.25;
  margin: 0 0 var(--space-4);
}
.block p { color: var(--text-soft); }

/* ---------- credits table ---------- */

.credits-table-wrap { overflow-x: auto; margin-top: var(--space-6); }
.credits-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.credits-table th, .credits-table td {
  text-align: left; padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.credits-table thead th {
  background: var(--bg-gray);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
}
.credits-table tbody tr:last-child th, .credits-table tbody tr:last-child td { border-bottom: 0; }
.credits-table th[scope="row"] { font-weight: 600; color: var(--text); width: 28%; }
.credits-table td:nth-child(2) { width: 24%; color: var(--green); font-weight: 600; }

@media (max-width: 640px) {
  .credits-table th, .credits-table td { padding: var(--space-3) var(--space-4); }
}

.callout {
  margin-top: var(--space-7);
  padding: var(--space-7) var(--space-6);
  background: var(--bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  text-align: center;
}
.callout__small { color: var(--text-soft); font-size: 0.875rem; margin: 0 auto var(--space-3); max-width: 540px; }
.callout__big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 500; line-height: 1.2;
  color: var(--text);
  max-width: 760px; margin: 0 auto var(--space-3);
}
.callout__big strong { color: var(--green); }

/* ---------- service grid ---------- */

.service-grid {
  display: grid; gap: var(--space-5);
  margin-top: var(--space-7);
}
@media (min-width: 768px) { .service-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  padding: var(--space-6);
  border-top: 2px solid var(--green);
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card__num {
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-3);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.service-card p { color: var(--text-soft); margin: 0; }

/* ---------- calculator ---------- */

.calculator {
  position: relative;
  margin-top: var(--space-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
}

.calculator__lock {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  max-width: 560px; margin: 0 auto;
}
.calculator__lock-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 var(--space-3);
}
.calculator__lock-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500; line-height: 1.2;
  margin: 0 0 var(--space-4);
}
.calculator__lock-body { color: var(--text-soft); margin: 0 0 var(--space-5); }

.calculator__inner { display: none; padding: var(--space-6); }
.calculator__cap { padding: var(--space-8) var(--space-6); text-align: center; }

.gate-cleared .calculator__lock,
html.gate-cleared .calculator__lock { display: none; }
.gate-cleared .calculator__inner,
html.gate-cleared .calculator__inner { display: block; }
.gate-cleared .calculator__inner[aria-hidden="true"] { aria-hidden: false; }

/* When sessionStorage has lead but calc is locked due to cap, JS handles. */

.calc-grid {
  display: grid; gap: var(--space-7);
}
@media (min-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.calc-inputs { display: grid; gap: var(--space-5); }

.field { display: grid; gap: var(--space-2); }
.field label, .field__label {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
}
.field input[type="number"], .field input[type="text"], .field input[type="email"] {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  font-variant-numeric: tabular-nums;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.field__currency {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.field__currency-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-gray);
  color: var(--text-soft);
  font-weight: 600;
}
.field__currency input {
  flex: 1 1 0;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-variant-numeric: tabular-nums;
}
.field__currency:focus-within .field__currency-prefix {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--green);
}
.field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.field__hint { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.field--toggle { gap: var(--space-3); }
.field--advanced { background: var(--bg-gray); padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.field--advanced > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-soft); }
.field--advanced[open] > summary { color: var(--text); }

.toggle-group { display: inline-flex; padding: 4px; background: var(--bg-gray); border-radius: 100px; gap: 4px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-soft);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.toggle input:checked + span { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.toggle:focus-within span { box-shadow: 0 0 0 3px var(--green-tint); }

.calc-results {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.calc-results__eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 var(--space-2);
}
.calc-results__big {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 500; line-height: 1;
  color: var(--green);
  margin: 0 0 var(--space-3);
  font-variant-numeric: tabular-nums;
}
.calc-results__sub { color: var(--text-soft); font-size: 0.9375rem; margin: 0 0 var(--space-5); }

.stat-cards {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
  margin: var(--space-5) 0;
}
@media (min-width: 520px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid var(--line);
}
.stat-card__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 var(--space-2); }
.stat-card__value {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--text); margin: 0 0 var(--space-2);
  font-variant-numeric: tabular-nums;
}
.stat-card__note { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* Empty state — when no results have been computed yet. */
.calc-results[data-state="empty"] .calc-results__big { color: var(--text-muted); font-size: clamp(1.5rem, 3vw, 2rem); }
.calc-results[data-state="empty"] .stat-card__value { color: var(--text-muted); }

.calc-results__convenience {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) var(--space-5);
  background: var(--green-tint);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.calc-results__cta { margin-top: var(--space-5); }
.calc-results__cta .btn { width: 100%; }
.calc-results__cta .muted { font-size: 0.8125rem; margin-top: var(--space-3); }

.below-calc { max-width: 760px; margin: var(--space-7) auto 0; color: var(--text-soft); }

/* ---------- about ---------- */

.about-intro { max-width: 760px; margin-bottom: var(--space-7); color: var(--text); }
.about-intro p:last-child { margin-bottom: 0; }

.team-grid {
  display: grid; gap: var(--space-6);
  margin-top: var(--space-6);
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

.team-card { display: grid; gap: var(--space-3); }
.team-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  /* Anchor portrait sources to the top so faces don't sit at the very top edge
     of the cropped square — keeps faces near upper-third, aligned with the
     already-square Nancy headshot. */
  object-position: center top;
  border-radius: var(--radius-lg);
  background: var(--bg-gray);
  transition: transform 0.3s var(--ease);
}
.team-card:hover img { transform: scale(1.02); }
.team-card h3 { margin: var(--space-3) 0 0; font-size: 1.125rem; }
.team-card__role { color: var(--green); font-size: 0.875rem; font-weight: 500; margin: 0 0 var(--space-3); font-style: italic; }
.team-card p { color: var(--text-soft); font-size: 0.9375rem; margin: 0; }

.trust-signals {
  list-style: none; padding: 0;
  margin: var(--space-7) 0 0;
  display: grid; gap: var(--space-3);
  font-size: 0.875rem; color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}
@media (min-width: 768px) { .trust-signals { grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-6); } }
@media (min-width: 1024px) { .trust-signals { grid-template-columns: repeat(3, 1fr); } }
.trust-signals li::before {
  content: "✓";
  display: inline-block;
  margin-right: 8px;
  color: var(--green);
  font-weight: 600;
}

/* ---------- final cta ---------- */

.final-cta { background: var(--text); color: #fff; border-top: 0; }
.final-cta .display { color: #fff; }
.final-cta .display em { color: #fff; }
.final-cta .eyebrow { color: rgba(255, 255, 255, 0.7); }
.final-cta .lede { color: rgba(255, 255, 255, 0.85); }
.final-cta .muted { color: rgba(255, 255, 255, 0.6); }
.final-cta__inner { text-align: center; }
.final-cta__inner .lede { margin-left: auto; margin-right: auto; }
.final-cta .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.final-cta .btn--secondary:hover { background: #fff; color: var(--text); border-color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--space-7) 0 var(--space-6);
  color: var(--text-soft);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); } }

.footer-brand { font-family: var(--serif); font-weight: 500; color: var(--text); font-size: 1rem; margin: 0 0 var(--space-3); }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-grid a { color: var(--text-soft); border: 0; }
.footer-grid a:hover { color: var(--green); }
.footer-heading { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin: 0 0 var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-link {
  background: none; border: 0; padding: 0; color: var(--text-soft); cursor: pointer;
  font: inherit; text-align: left;
}
.footer-link:hover { color: var(--green); }

.legal { margin-top: var(--space-6); font-size: 0.75rem; line-height: 1.6; color: var(--text-muted); }
.legal p { margin: 0 0 var(--space-3); }

/* ---------- gate form (inline-expand) ---------- */

.gate-form {
  display: grid; gap: var(--space-4);
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 540px;
  animation: gate-in 0.28s var(--ease);
}
.gate-form__title { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0; color: var(--text); }
.gate-form__sub { color: var(--text-soft); margin: 0 0 var(--space-2); font-size: 0.9375rem; }
.gate-form__row { display: grid; gap: var(--space-3); }
.gate-form__row--two { grid-template-columns: 1fr; }
@media (min-width: 480px) { .gate-form__row--two { grid-template-columns: 1fr 1fr; } }

.gate-form label > span {
  display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-soft); margin-bottom: 4px;
}
.gate-form input[type="text"], .gate-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.gate-form input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.gate-form__honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.gate-form__actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.gate-form__cancel {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--text-soft); font: inherit; font-size: 0.875rem;
}
.gate-form__cancel:hover { color: var(--text); text-decoration: underline; }

.gate-form__error {
  margin: 0; padding: 10px 12px;
  background: #FBE9E7; color: #B71C1C; border-radius: var(--radius);
  font-size: 0.875rem;
}

.gate-form__legal { font-size: 0.75rem; color: var(--text-muted); margin: var(--space-2) 0 0; line-height: 1.5; }

@keyframes gate-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When a button is replaced by a gate form, give the wrapper a bit of breathing room. */
.gate-host {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: var(--space-3) 0;
}

.gate-form .btn[disabled] { position: relative; }
.gate-form .btn[disabled]::after {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal animations ---------- */

/* Reveal animations only when JS has marked the document ready and the
   user hasn't requested reduced motion. If JS doesn't run (or the user
   prefers reduced motion), content stays visible — no fade-in lock. */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

  html.js-ready .reveal-stagger > * {
    opacity: 0; transform: translateY(10px);
    animation: reveal-up 0.7s var(--ease) forwards;
  }
  html.js-ready .reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
  html.js-ready .reveal-stagger > *:nth-child(2) { animation-delay: 0.18s; }
  html.js-ready .reveal-stagger > *:nth-child(3) { animation-delay: 0.32s; }
  html.js-ready .reveal-stagger > *:nth-child(4) { animation-delay: 0.46s; }
  html.js-ready .reveal-stagger > *:nth-child(5) { animation-delay: 0.6s; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calc results enter softly when populated. */
.calc-results.is-fresh .calc-results__big { animation: pop-num 0.5s var(--ease); }
@keyframes pop-num {
  from { transform: scale(0.96); opacity: 0.6; }
  to   { transform: scale(1); opacity: 1; }
}
