/* ============================================================
   Recur Commerce — Premium Editorial Design System
   Font: Source Serif 4 (400/600/italic) / Source Sans 3 (400/600)
   Primary: Deep teal hsl(175, 45%, 30%)
   Accent: Warm gold hsl(42, 80%, 55%)
   ============================================================ */

/* --- Color Palette --- */
:root {
  --primary:        hsl(175, 45%, 30%);
  --primary-dark:   hsl(175, 45%, 22%);
  --primary-light:  hsl(175, 40%, 42%);
  --primary-muted:  hsla(175, 45%, 30%, 0.6);
  --primary-subtle: hsl(175, 30%, 90%);
  --brand-900:      hsl(175, 50%, 12%);

  --accent:         hsl(42, 80%, 55%);
  --accent-dark:    hsl(42, 75%, 42%);
  --accent-light:   hsl(42, 85%, 70%);
  --accent-subtle:  hsl(42, 60%, 92%);
  --accent-glow:    hsla(42, 80%, 55%, 0.15);

  --warm-cream:     hsl(40, 30%, 97%);
  --warm-blush:     hsl(0, 30%, 98%);
  --grey-bg:        hsl(40, 8%, 96%);
  --grey-100:       hsl(40, 6%, 92%);
  --grey-200:       hsl(40, 5%, 85%);
  --grey-300:       hsl(40, 4%, 70%);
  --grey-400:       hsl(40, 3%, 55%);
  --grey-500:       hsl(40, 2%, 40%);
  --grey-600:       hsl(40, 2%, 30%);
  --grey-700:       hsl(40, 2%, 20%);

  --text-body:      hsl(40, 5%, 18%);
  --text-heading:   hsl(175, 40%, 15%);
  --text-muted:     hsl(40, 4%, 45%);
  --text-inverse:   hsl(0, 0%, 100%);

  --white:          hsl(0, 0%, 100%);
  --error:          hsl(0, 70%, 55%);
  --error-light:    hsl(0, 70%, 96%);
  --success:        hsl(145, 55%, 40%);

  /* --- Typography Scale --- */
  --font-heading:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:      'Source Sans 3', 'Segoe UI', Roboto, sans-serif;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */

  /* --- Spacing Scale --- */
  --space-xs:   0.25rem;  /* 4px */
  --space-sm:   0.5rem;   /* 8px */
  --space-md:   1rem;     /* 16px */
  --space-lg:   1.5rem;   /* 24px */
  --space-xl:   2rem;     /* 32px */
  --space-2xl:  3rem;     /* 48px */
  --space-3xl:  4rem;     /* 64px */
  --space-4xl:  6rem;     /* 96px */

  /* --- Layout --- */
  --content-width:  720px;
  --reading-width:  680px;
  --wide-width:     900px;
  --radius:         6px;
  --shadow-soft:    0 2px 12px hsla(40, 10%, 20%, 0.06);
  --shadow:         0 1px 3px hsla(40, 10%, 20%, 0.08);
  --shadow-md:      0 4px 16px hsla(40, 10%, 20%, 0.1);
  --shadow-lg:      0 8px 30px hsla(40, 10%, 20%, 0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-subtle);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

/* --- Premium Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-lg);
  max-width: 65ch;
}

strong {
  font-weight: 600;
}

/* --- Layout Containers --- */
.page-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.editorial-column {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.wide-column {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background-color: var(--grey-bg);
}

/* --- Gold Gradient Divider --- */
.section-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-light) 20%,
    var(--accent) 50%,
    var(--accent-light) 80%,
    transparent 100%
  );
  opacity: 0.5;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Gold Highlight on Key Words --- */
.gold-highlight {
  position: relative;
  display: inline;
}

.gold-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 0.35em;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
  border-radius: 2px;
}

/* ============================================================
   SCROLL REVEAL — Gentle fade-up
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for items within sections */
.reveal-stagger-1 { transition-delay: 0.1s; }
.reveal-stagger-2 { transition-delay: 0.22s; }
.reveal-stagger-3 { transition-delay: 0.34s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Navigation / Header --- */
.site-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--grey-100);
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: hsla(0, 0%, 100%, 0.92);
}

.site-header .editorial-column {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

.header-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  background-color: var(--primary);
  color: var(--text-inverse);
  text-decoration: none;
  box-shadow: 0 2px 12px hsla(175, 45%, 30%, 0.2);
}

/* ============================================================
   HERO — White + subtle teal radial glow
   ============================================================ */
.hero {
  padding: var(--space-4xl) 0;
  text-align: center;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    hsla(175, 45%, 50%, 0.07) 0%,
    hsla(175, 45%, 50%, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .editorial-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: var(--text-4xl);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  max-width: 16ch;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 52ch;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-inverse);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 48px;
  line-height: 1.4;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow), 0 2px 8px hsla(175, 45%, 30%, 0.15);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary);
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: calc(var(--space-md) - 2px) var(--space-xl);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
  line-height: 1.4;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-inverse);
  text-decoration: none;
}

/* ============================================================
   TEACHING ARTICLE — Warm cream background, editorial feel
   ============================================================ */
.article-opener {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background-color: var(--warm-cream);
  position: relative;
}

/* Decorative circle behind teaching section */
.article-opener::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: hsla(175, 45%, 50%, 0.04);
  pointer-events: none;
}

.article-opener .editorial-column {
  max-width: var(--reading-width);
  position: relative;
  z-index: 1;
}

.article-opener .article-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(135deg, hsla(42, 80%, 55%, 0.12), hsla(42, 80%, 55%, 0.06));
  border-radius: 3px;
}

.article-opener .article-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  max-width: 100%;
}

.article-opener p {
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* Drop cap on first paragraph */
.drop-cap-paragraph::first-letter {
  font-family: var(--font-heading);
  font-weight: 600;
  float: left;
  font-size: 3.6em;
  line-height: 0.8;
  padding-right: 0.08em;
  padding-top: 0.06em;
  color: var(--primary);
}

/* --- Editorial callouts (gold-bordered pull quotes) --- */
.editorial-callout {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--primary);
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: 50ch;
  line-height: 1.5;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  position: relative;
}

/* ============================================================
   STAKES — Warm-tinted background (urgency)
   ============================================================ */
.stakes {
  padding: var(--space-4xl) 0;
  background-color: var(--warm-blush);
}

.stakes p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-body);
}

.stakes .stakes-lead {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.45;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   VALUE PROP — Clean white with teal icon accents
   ============================================================ */
.value-section {
  padding: var(--space-4xl) 0;
  background-color: var(--white);
  position: relative;
}

/* Decorative circle */
.value-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: hsla(175, 45%, 50%, 0.04);
  pointer-events: none;
}

.value-section h2 {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.flow-description {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  max-width: var(--content-width);
  position: relative;
  z-index: 1;
}

.flow-description:last-child {
  margin-bottom: 0;
}

.flow-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-subtle);
  border-radius: 12px;
  color: var(--primary);
  margin-top: 2px;
  transition: box-shadow 0.3s ease;
}

.flow-description:hover .flow-icon {
  box-shadow: 0 4px 12px hsla(175, 45%, 30%, 0.12);
}

.flow-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.flow-content p {
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 55ch;
  line-height: 1.7;
}

/* ============================================================
   ABOUT — Warm cream background
   ============================================================ */
.about {
  padding: var(--space-4xl) 0;
  background-color: var(--warm-cream);
}

.about-intro {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.about-initials {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-light);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px hsla(175, 45%, 30%, 0.2);
}

.about-text p {
  font-size: var(--text-base);
  line-height: 1.8;
}

.about-text .about-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.about-text .about-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ============================================================
   PROOF — White with gold-bordered testimonial cards
   ============================================================ */
.proof {
  padding: var(--space-4xl) 0;
  background-color: var(--white);
}

.proof h2 {
  margin-bottom: var(--space-3xl);
}

.insight-block {
  background-color: var(--warm-cream);
  border-left: 3px solid var(--accent);
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-2xl);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-soft);
}

.insight-block:last-child {
  margin-bottom: 0;
}

.insight-block .result-highlight {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.insight-block p {
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Testimonial card with decorative quote mark */
.testimonial-callout {
  position: relative;
  border-left: 3px solid var(--accent);
  background-color: var(--white);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--text-heading);
  line-height: 1.55;
  max-width: 55ch;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-md);
}

/* Decorative serif quote mark */
.testimonial-callout::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.1;
  pointer-events: none;
}

.testimonial-callout cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process {
  padding: var(--space-4xl) 0;
  background-color: var(--white);
}

.process h2 {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.process-steps {
  display: flex;
  gap: var(--space-xl);
  counter-reset: step;
}

.step-item {
  flex: 1;
  text-align: center;
  counter-increment: step;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius);
  background-color: var(--warm-cream);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px hsla(175, 45%, 30%, 0.2);
}

.step-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.step-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   LEAD MAGNET — Calculator as interactive widget
   ============================================================ */
.lead-magnet {
  padding: var(--space-4xl) 0;
  background-color: var(--white);
}

.lead-magnet h2 {
  margin-bottom: var(--space-md);
}

.lead-magnet > .editorial-column > p {
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.calculator-widget {
  background-color: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: 12px;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.calculator-widget:hover,
.calculator-widget:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 4px 24px hsla(175, 45%, 30%, 0.1), 0 0 0 1px hsla(175, 45%, 30%, 0.05);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.input-group input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-md);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  color: var(--text-body);
  background-color: var(--white);
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px var(--accent-glow);
}

.input-group .input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.calculator-action {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.calculator-result {
  display: none;
  background: linear-gradient(135deg, var(--accent-subtle), hsla(42, 60%, 92%, 0.6));
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  padding: var(--space-xl);
  text-align: center;
}

.calculator-result.visible {
  display: block;
  animation: resultReveal 0.4s ease;
}

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

.result-amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.result-label {
  font-size: var(--text-base);
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.result-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.calculator-followup {
  display: none;
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--grey-200);
}

.calculator-followup.visible {
  display: block;
  animation: resultReveal 0.4s ease 0.15s both;
}

.calculator-followup p {
  color: var(--text-body);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

/* Spreadsheet fallback (noscript) */
.spreadsheet-fallback {
  display: none;
}

noscript .spreadsheet-fallback {
  display: block;
}

noscript .calculator-widget {
  display: none;
}

/* ============================================================
   FINAL CTA — Dark teal bookend
   ============================================================ */
.final-cta {
  padding: var(--space-4xl) 0;
  text-align: center;
  background-color: var(--brand-900);
  color: var(--text-inverse);
}

.final-cta .editorial-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loss-line {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: hsla(0, 0%, 100%, 0.7);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  line-height: 1.6;
}

.final-cta .reassurance {
  font-size: var(--text-sm);
  color: hsla(0, 0%, 100%, 0.5);
  margin-top: var(--space-md);
  margin-bottom: 0;
}

/* Form labels and inputs in dark CTA */
.final-cta .form-field label {
  color: hsla(0, 0%, 100%, 0.8);
}

.final-cta .form-field input {
  background-color: hsla(0, 0%, 100%, 0.1);
  border-color: hsla(0, 0%, 100%, 0.2);
  color: var(--text-inverse);
}

.final-cta .form-field input::placeholder {
  color: hsla(0, 0%, 100%, 0.4);
}

.final-cta .form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: hsla(0, 0%, 100%, 0.15);
}

.final-cta .form-field input.field-error {
  border-color: hsl(0, 70%, 65%);
  box-shadow: 0 0 0 3px hsla(0, 70%, 55%, 0.2);
}

.final-cta .btn-primary {
  background-color: var(--accent);
  color: var(--brand-900);
}

.final-cta .btn-primary:hover {
  background-color: var(--accent-light);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.final-cta .form-thankyou {
  background-color: hsla(175, 40%, 30%, 0.3);
}

.final-cta .form-thankyou p {
  color: var(--text-inverse);
}

/* ============================================================
   FORMS (CTA + Lead Magnet)
   ============================================================ */
.cta-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.form-field input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-md);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  color: var(--text-body);
  background-color: var(--white);
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-field input.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-field .error-message {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-xs);
  display: none;
}

.form-field .error-message.visible {
  display: block;
}

/* Override error color for dark CTA */
.final-cta .form-field .error-message {
  color: hsl(0, 70%, 70%);
}

.form-submit {
  margin-top: var(--space-md);
  text-align: center;
}

.form-submit .btn-primary {
  width: 100%;
}

.form-thankyou {
  display: none;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--primary-subtle);
  border-radius: var(--radius);
}

.form-thankyou.visible {
  display: block;
}

.form-thankyou p {
  font-size: var(--text-base);
  color: var(--primary-dark);
  margin: 0 auto;
  max-width: 45ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--grey-100);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-heading);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.footer-right a {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-right a:hover {
  color: var(--primary);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--primary);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  box-shadow: 0 -2px 8px hsla(40, 10%, 20%, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.active {
  transform: translateY(0);
}

.sticky-cta-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-inverse);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 44px);
}

.sticky-cta-link:hover {
  color: var(--text-inverse);
  text-decoration: none;
}

.sticky-cta-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: var(--text-lg);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sticky-cta-close:hover {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — Tablet (768px - 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .editorial-column,
  .wide-column {
    padding: 0 var(--space-lg);
  }

  .process-steps {
    gap: var(--space-md);
  }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;    /* 32px */
    --text-3xl: 1.75rem; /* 28px */
    --text-2xl: 1.5rem;  /* 24px */
    --text-xl:  1.25rem; /* 20px */
    --text-base: 1rem;   /* 16px — stays readable */
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .editorial-column,
  .wide-column {
    padding: 0 var(--space-md);
  }

  /* Header */
  .header-cta {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  /* Article opener */
  .article-opener {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .article-opener .article-title {
    font-size: var(--text-2xl);
  }

  .article-opener .editorial-column {
    max-width: 100%;
  }

  /* Drop cap smaller on mobile */
  .drop-cap-paragraph::first-letter {
    font-size: 2.8em;
  }

  /* Hero */
  .hero-headline {
    font-size: var(--text-3xl);
    max-width: 100%;
  }

  .hero-subheadline {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero .btn-primary {
    width: 100%;
  }

  .hero-bg-glow {
    width: 500px;
    height: 500px;
  }

  /* Buttons go full-width */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Value prop rows stack */
  .flow-description {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* About */
  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text p {
    text-align: left;
  }

  .about-text .about-name,
  .about-text .about-role {
    text-align: center;
  }

  /* Process steps stack */
  .process-steps {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .step-item {
    padding: var(--space-lg) var(--space-md);
  }

  .step-item p {
    max-width: 100%;
  }

  /* Calculator inputs stack */
  .calculator-inputs {
    grid-template-columns: 1fr;
  }

  .calculator-widget {
    border-radius: var(--radius);
  }

  /* Forms */
  .form-row {
    flex-direction: column;
  }

  .cta-form {
    max-width: 100%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  /* Sticky CTA visible on mobile */
  .sticky-cta {
    display: flex;
  }

  /* Editorial callouts */
  .editorial-callout {
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-lg);
  }

  .testimonial-callout {
    font-size: var(--text-base);
    padding: var(--space-lg);
    padding-left: var(--space-xl);
  }

  /* Section dividers smaller on mobile */
  .section-divider {
    max-width: 200px;
  }

  /* Decorative circles hidden on mobile to prevent overflow */
  .article-opener::before,
  .value-section::after {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --text-4xl: 1.75rem;  /* 28px */
    --text-3xl: 1.5rem;   /* 24px */
    --text-2xl: 1.375rem; /* 22px */
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .article-opener {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .calculator-widget {
    padding: var(--space-lg);
  }

  .result-amount {
    font-size: var(--text-2xl);
  }

  .insight-block {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sticky-cta,
  .site-header .header-cta,
  .section-divider,
  .hero-bg-glow {
    display: none;
  }

  .section {
    padding: 24pt 0;
    break-inside: avoid;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .final-cta {
    background-color: var(--grey-bg);
    color: var(--text-body);
  }
}

/* Real photo avatar */
.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary, hsl(175, 45%, 30%));
  box-shadow: 0 4px 20px hsla(175, 45%, 30%, 0.15);
}
@media (max-width: 768px) { .about-photo { width: 140px; height: 140px; } }
