/* ==========================================================================
   EqualSites marketing site — design system
   Patterns: see ../PATTERNS.md (AM teardown brief).
   Every fg/bg pair in here passes WCAG AA — we are an accessibility product.
   ========================================================================== */

:root {
  /* Brand (matches app dashboard: warm paper + petrol teal) */
  --teal: #0e5e68;          /* links, brand accents — 6.9:1 on white */
  --teal-dark: #0a454d;
  --teal-deep: #0b3038;     /* dark CTA band background */
  --teal-tint: #eaf3f2;     /* tinted cards / menu promo */

  /* CTA — AM orange energy, but AA-compliant with white text (4.6:1) */
  --cta: #c2410c;
  --cta-dark: #9a3412;

  /* Neutrals (slightly warm, like the app) */
  --ink: #1a2b32;           /* headings */
  --body: #3d4a51;          /* body text — 8.6:1 on white */
  --muted: #5c6b72;         /* secondary text — 5.6:1 on white */
  --faint: #8a969c;         /* kickers on white only, 3:1+ large/bold */
  --border: #e5e7eb;
  --border-warm: #e9e2d3;

  /* Surfaces */
  --white: #ffffff;
  --paper: #faf6ef;         /* warm cream alternating sections */

  /* Semantic */
  --good: #15803d;          /* pass/fixed green — 4.9:1 on white */
  --good-tint: #e8f5ec;
  --bad: #b91c1c;
  --bad-tint: #fdecec;
  --savings-bg: #fff2a8;    /* yellow savings chip, ink text */
  --new-tag: #cdeec4;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 12px;
  --radius-pill: 40px;
  --shadow-card: 0 1px 2px rgba(26, 43, 50, 0.05), 0 8px 24px rgba(26, 43, 50, 0.07);
  --shadow-menu: 0 12px 40px rgba(26, 43, 50, 0.16);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.19rem; }

p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

/* Editorial serif for feature-section H2s (SeedProd pattern) */
.h-serif { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper { background: var(--paper); }
.section--head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section--head p { font-size: 1.09rem; color: var(--muted); }

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.center { text-align: center; }

/* --------------------------------------------------------------------------
   Buttons — pill, bold, trailing arrow, lift on hover (SeedProd/WPForms)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--cta-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.28);
}

.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-tint); color: var(--teal-dark); }

.btn--white { background: #fff; color: var(--teal-deep); }
.btn--white:hover { background: var(--paper); color: var(--teal-deep); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.btn--lg { font-size: 1.13rem; padding: 18px 42px; }

.btn .arrow { margin-left: 8px; }

/* Risk-reversal microcopy row under CTAs (all four sites) */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-line li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.trust-line--center { justify-content: center; }
.trust-line--dark { color: #cfdcda; }

/* --------------------------------------------------------------------------
   Header + mega menu
   -------------------------------------------------------------------------- */
.announce {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 9px 16px;
}
.announce a { color: #ffd9a8; font-weight: 600; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  position: relative; /* anchors the wide mega panel so it can't overflow the viewport */
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo:hover { color: var(--teal); }
.logo-mark { width: 30px; height: 30px; display: inline-block; }
.logo em { font-style: normal; color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }
.nav-item--mega { position: static; } /* wide panel centers under the header container instead */
.nav-link, .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover { color: var(--teal); background: var(--teal-tint); }
.nav-trigger .chev { transition: transform 0.15s ease; font-size: 0.7em; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Mega panel */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-menu);
  padding: 32px;
  display: none;
  gap: 36px;
  width: min(920px, calc(100vw - 48px));
}
.mega.is-open { display: flex; }
.mega--slim { width: min(420px, calc(100vw - 48px)); flex-direction: column; gap: 4px; padding: 18px; }

.mega-col { flex: 1; min-width: 0; }
.mega-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li + li { margin-top: 2px; }
.mega-col a {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.mega-col a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.mega-col a span {
  display: block;
  font-weight: 400;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 1px;
}
.mega-view-all {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cta) !important;
}
.mega-view-all:hover { color: var(--cta-dark) !important; background: none !important; }

/* Highlighted promo card inside the mega menu (WPVibe/WPForms "What's New") */
.mega-promo {
  flex: 0 0 250px;
  background: var(--teal-tint);
  border: 1px solid #cfe3e1;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: block;
}
.mega-promo .kicker { margin-bottom: 8px; }
.mega-promo strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.35; margin-bottom: 8px; }
.mega-promo span { color: var(--muted); font-size: 0.88rem; display: block; margin-bottom: 12px; }
.mega-promo b { color: var(--teal); font-size: 0.92rem; }
.mega-promo:hover strong { color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.login-link { font-weight: 600; font-size: 0.98rem; color: var(--ink); text-decoration: none; }
.login-link:hover { color: var(--teal); }
.header-actions .btn { padding: 11px 24px; font-size: 0.95rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-actions .login-link { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 0.85rem; }
  .site-header .container { gap: 12px; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.15rem; gap: 6px; }
  .logo-mark { width: 24px; height: 24px; font-size: 0.85rem; }
  .nav-toggle { font-size: 1.35rem; padding: 6px; }
  .header-actions .btn { padding: 8px 11px; font-size: 0.8rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-menu);
    padding: 12px 24px 24px;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { width: 100%; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .mega {
    position: static;
    transform: none;
    display: none;
    flex-direction: column;
    gap: 18px;
    border: 0;
    box-shadow: none;
    padding: 12px 6px 18px;
    width: 100%;
  }
  .mega.is-open { display: flex; }
  .mega-promo { flex: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 76px 0 84px; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hero p.lede { font-size: 1.15rem; color: var(--body); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }

.hero--center { text-align: center; }
.hero--center .container { display: block; max-width: 860px; }
.hero--center .hero-ctas, .hero--center .trust-line { justify-content: center; }
.hero--center p.lede { margin-left: auto; margin-right: auto; }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* Animated scan-card mockup (pure CSS/JS, ActiveLayer-inbox pattern) */
.scan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  font-size: 0.92rem;
}
.scan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fdfcf9;
}
.scan-card-head .site { font-weight: 700; color: var(--ink); }
.scan-card-head .site span { font-weight: 400; color: var(--muted); font-size: 0.85rem; display: block; }
.scan-score {
  text-align: right;
}
.scan-score .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.scan-score .lbl { font-size: 0.75rem; color: var(--muted); }
.scan-rows { padding: 8px 0; }
.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
}
.scan-row + .scan-row { border-top: 1px solid #f1efe9; }
.scan-row .what { color: var(--ink); font-weight: 600; }
.scan-row .what small { display: block; font-weight: 400; color: var(--muted); }
.scan-pill {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  min-width: 84px;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.scan-pill--found { background: var(--bad-tint); color: var(--bad); }
.scan-pill--fixed { background: var(--good-tint); color: #116634; } /* --good is 4.46:1 on the tint — just under AA */
.scan-card-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: #fdfcf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.scan-card-foot .stamp { color: var(--good); font-weight: 700; }

/* --------------------------------------------------------------------------
   Halo / trust bar
   -------------------------------------------------------------------------- */
.halo { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.halo .container { text-align: center; }
.halo p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.halo-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.halo-marks span {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* Stats strip (WPVibe honest-numbers pattern) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stats .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--teal); line-height: 1.1; }
.stats .lbl { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; gap: 22px; } }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(26, 43, 50, 0.04);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card p a { font-weight: 600; }

.card--danger .icon { background: var(--bad-tint); color: var(--bad); }

.tag-new {
  display: inline-block;
  background: var(--new-tag);
  color: #14531f;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Numbered how-it-works steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: left; }
.step .n {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Alternating benefit rows */
.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.benefit + .benefit { border-top: 1px solid var(--border-warm); }
.benefit:nth-child(even) .benefit-media { order: -1; }
.benefit h3 { font-size: 1.5rem; }
.benefit p { color: var(--body); }
.benefit ul { list-style: none; padding: 0; margin: 16px 0 0; }
.benefit li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--body); }
.benefit li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.benefit-media {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 26px;
}
@media (max-width: 920px) {
  .benefit { grid-template-columns: 1fr; gap: 26px; }
  .benefit:nth-child(even) .benefit-media { order: 0; }
}

/* Small illustrative widgets used inside .benefit-media */
.mini-diff { font-size: 0.88rem; }
.mini-diff .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; margin-bottom: 8px; }
.mini-diff .row.bad { background: var(--bad-tint); color: #7c1d1d; }
.mini-diff .row.good { background: var(--good-tint); color: #14531f; }
.mini-diff code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

/* Before/after score bars */
.score-compare { display: grid; gap: 18px; }
.score-compare .site-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
.score-bars { display: grid; gap: 6px; }
.score-bar { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.score-bar .track { flex: 1; height: 14px; border-radius: 999px; background: #efece4; overflow: hidden; }
.score-bar .fill { height: 100%; border-radius: 999px; }
.score-bar.before .fill { background: #c9c2b2; }
.score-bar.after .fill { background: var(--good); }
.score-bar .val { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.quote .stars { color: #b45309; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.quote blockquote { margin: 0 0 18px; color: var(--body); font-size: 0.98rem; flex: 1; }
.quote footer { font-size: 0.88rem; color: var(--muted); }
.quote footer strong { color: var(--ink); display: block; }
.quote .verified { color: var(--good); font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  padding: 18px 28px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--body); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Final CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--teal-deep); color: #d7e4e2; padding: 88px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.cta-band p { color: #b9cdca; font-size: 1.1rem; max-width: 40em; margin: 0 auto 30px; }
.cta-band .trust-line { justify-content: center; color: #b9cdca; }
.cta-band .trust-line li::before { color: #6ecb8f; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.pricing-head p { font-size: 1.1rem; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(26, 43, 50, 0.04);
}
.plan--popular {
  border: 2px solid var(--cta);
  background: #fffdf8;
  box-shadow: var(--shadow-card);
}
.plan-banner {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.plan .persona { font-size: 0.88rem; color: var(--muted); min-height: 2.6em; margin-bottom: 14px; }
.plan .was { color: var(--muted); font-size: 0.95rem; }
.plan .was s { text-decoration-color: var(--bad); }
.plan .price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.plan .price .cur { font-size: 0.5em; vertical-align: 0.7em; margin-right: 2px; }
.plan .price .per { font-family: var(--font-body); font-size: 0.35em; font-weight: 500; color: var(--muted); }
.plan .save {
  display: inline-block;
  background: var(--savings-bg);
  color: #574b00;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 9px;
  margin: 8px 0 16px;
}
.plan .save--placeholder { visibility: hidden; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; font-size: 0.92rem; border-bottom: 1px solid #f3f1ea; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—"; color: var(--muted); font-weight: 400; }
.plan .btn { width: 100%; text-align: center; padding: 13px 18px; }
.plan .compare-jump { display: block; text-align: center; font-size: 0.85rem; margin-top: 12px; }

.pricing-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 26px; }

/* Comparison table — most expensive first, repeated CTAs (SeedProd) */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.compare {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--white);
}
.compare th, .compare td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; width: 30%; }
.compare thead th { vertical-align: top; padding-top: 24px; background: #fdfcf9; }
.compare thead .plan-name { font-size: 1.15rem; font-weight: 800; color: var(--ink); display: block; }
.compare thead .plan-was { font-weight: 400; color: var(--muted); font-size: 0.85rem; display: block; margin-top: 4px; }
.compare thead .plan-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); display: block; margin: 2px 0 10px; }
.compare thead .btn { padding: 9px 20px; font-size: 0.85rem; }
.compare thead th.is-popular { border-top: 3px solid var(--cta); background: #fffdf8; }
.compare td.is-popular { background: #fffdf8; }
.compare .group td {
  background: var(--paper);
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare .yes { color: var(--good); font-weight: 800; }
.compare .no { color: var(--muted); }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare td:first-child small { display: block; font-weight: 400; color: var(--muted); }

/* Guarantee (founder-signed, shown twice) */
.guarantee {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.guarantee-badge {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 4px double #fff;
  outline: 3px solid var(--teal);
}
.guarantee-badge .big { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0; text-transform: none; }
.guarantee h2 { font-size: 1.4rem; }
.guarantee .sig { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.guarantee .sig strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; display: block; }
@media (max-width: 640px) { .guarantee { grid-template-columns: 1fr; text-align: center; } .guarantee-badge { margin: 0 auto; } }

/* --------------------------------------------------------------------------
   Editorial (why-overlays-fail)
   -------------------------------------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.06rem; }
.prose h2 { font-family: var(--font-display); font-weight: 600; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5em 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.prose .note {
  background: var(--paper);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.95rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }

.article-hero { background: var(--paper); padding: 64px 0 56px; text-align: center; }
.article-hero .meta { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--teal-deep); color: #b9cdca; padding: 64px 0 0; font-size: 0.93rem; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 920px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo em { color: #8fd0c6; }
.site-footer h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfdedb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9db6b2;
}
.footer-legal ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
