/* =====================================================
   Funnel Clone — Monochrome, Apple-level Design System
   Light + Dark themes. Off-white calm palette.
   ===================================================== */

/* ------- THEME TOKENS ------- */
:root,
[data-theme="light"] {
  /* Off-white surface stack */
  --bg: #F5F3EE;              /* Warm off-white (paper) */
  --bg-alt: #EDEAE3;          /* Slightly deeper surface */
  --bg-elevated: #FFFFFF;     /* Cards / elevated */
  --bg-inverse: #111111;      /* Dark section within light theme */

  /* Text */
  --text: #111111;            /* Near-black */
  --text-secondary: #4A4A48;  /* Warm gray */
  --text-muted: #7A7873;      /* Muted secondary */
  --text-inverse: #F5F3EE;    /* Text on dark surfaces */

  /* Lines & subtle */
  --line: rgba(17, 17, 17, 0.10);
  --line-strong: rgba(17, 17, 17, 0.20);
  --hairline: rgba(17, 17, 17, 0.06);

  /* Interactive */
  --btn-bg: #111111;
  --btn-fg: #F5F3EE;
  --btn-bg-alt: transparent;
  --btn-fg-alt: #111111;
  --btn-border-alt: rgba(17,17,17,0.20);

  /* Focus */
  --focus: rgba(17,17,17,0.35);

  /* Icons */
  --icon-bg: #111111;
  --icon-fg: #F5F3EE;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(17,17,17,0.05), 0 1px 1px rgba(17,17,17,0.04);
  --shadow-md: 0 4px 24px rgba(17,17,17,0.06), 0 2px 6px rgba(17,17,17,0.04);
  --shadow-lg: 0 24px 64px rgba(17,17,17,0.10), 0 4px 12px rgba(17,17,17,0.04);
}

[data-theme="dark"] {
  --bg: #0E0E0E;              /* True near-black with warmth */
  --bg-alt: #171717;
  --bg-elevated: #1D1D1D;
  --bg-inverse: #F5F3EE;

  --text: #F0EEE8;
  --text-secondary: #B8B6B0;
  --text-muted: #8A8880;
  --text-inverse: #111111;

  --line: rgba(240, 238, 232, 0.10);
  --line-strong: rgba(240, 238, 232, 0.22);
  --hairline: rgba(240, 238, 232, 0.06);

  --btn-bg: #F0EEE8;
  --btn-fg: #0E0E0E;
  --btn-bg-alt: transparent;
  --btn-fg-alt: #F0EEE8;
  --btn-border-alt: rgba(240,238,232,0.22);

  --focus: rgba(240,238,232,0.35);

  --icon-bg: #F0EEE8;
  --icon-fg: #0E0E0E;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
}

/* System preference fallback (only if user hasn't toggled) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0E0E0E;
    --bg-alt: #171717;
    --bg-elevated: #1D1D1D;
    --bg-inverse: #F5F3EE;
    --text: #F0EEE8;
    --text-secondary: #B8B6B0;
    --text-muted: #8A8880;
    --text-inverse: #111111;
    --line: rgba(240, 238, 232, 0.10);
    --line-strong: rgba(240, 238, 232, 0.22);
    --hairline: rgba(240, 238, 232, 0.06);
    --btn-bg: #F0EEE8;
    --btn-fg: #0E0E0E;
    --btn-fg-alt: #F0EEE8;
    --btn-border-alt: rgba(240,238,232,0.22);
    --focus: rgba(240,238,232,0.35);
    --icon-bg: #F0EEE8;
    --icon-fg: #0E0E0E;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.35);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  }
}

/* ------- RESET ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------- TYPOGRAPHY ------- */
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.025em; }
h4 { font-size: 20px; letter-spacing: -0.015em; }
p { margin-bottom: 16px; color: var(--text-secondary); font-size: 17px; }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.subheadline {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 28px;
  max-width: 640px;
  font-weight: 400;
}
.center .subheadline { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt-md { margin-top: 32px; } .mt-lg { margin-top: 56px; } .mb-md { margin-bottom: 32px; }

/* ------- LAYOUT ------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

.section-tone-alt { background: var(--bg-alt); }
.section-tone-inverse { background: var(--bg-inverse); color: var(--text-inverse); }

/* ============================================================
   SIGNATURE BACKGROUND SYSTEM
   Monochrome, editorial, off-white/ink. All CSS + inline SVG.
   Sits behind content (z-index: 0), content above (z-index: 1).
   ============================================================ */

.section > .container { position: relative; z-index: 2; }

/* Base film grain — very subtle, always-on for tactility */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .section::before {
  opacity: 0.28;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Variant A: HERO — radial vignette + faint blueprint grid */
.bg-hero {
  position: relative;
  isolation: isolate;
}
.bg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--text) 6%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, color-mix(in srgb, var(--text) 4%, transparent) 0%, transparent 60%),
    linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px) 0 0 / 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
}

/* Variant B: DOT GRID — editorial texture for content-heavy sections */
.bg-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  opacity: 0.55;
}

/* Variant C: HAIRLINES — vertical guide lines like an architect's plan */
.bg-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,
      transparent 0,
      transparent calc(50% - 585px),
      color-mix(in srgb, var(--text) 8%, transparent) calc(50% - 585px),
      color-mix(in srgb, var(--text) 8%, transparent) calc(50% - 584px),
      transparent calc(50% - 584px),
      transparent calc(50% + 584px),
      color-mix(in srgb, var(--text) 8%, transparent) calc(50% + 584px),
      color-mix(in srgb, var(--text) 8%, transparent) calc(50% + 585px),
      transparent calc(50% + 585px)),
    linear-gradient(to right,
      transparent 0,
      transparent calc(50% - 1px),
      color-mix(in srgb, var(--text) 5%, transparent) calc(50% - 1px),
      color-mix(in srgb, var(--text) 5%, transparent) 50%,
      transparent 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Variant D: DIAGONAL — subtle scanline diagonals for the inverse (dark) sections */
.bg-diagonal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -35deg,
    transparent 0,
    transparent 6px,
    color-mix(in srgb, var(--text-inverse) 3%, transparent) 6px,
    color-mix(in srgb, var(--text-inverse) 3%, transparent) 7px);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 50%, black 20%, transparent 100%);
}

/* Variant E: RADIAL SPOTLIGHT — center-focus, used for CTAs & seals */
.bg-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--text) 8%, transparent) 0%, transparent 45%);
}

/* Section-top hairline divider — signature editorial cue */
.bg-divider-top {
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.section-tone-inverse.bg-divider-top {
  border-top-color: color-mix(in srgb, var(--text-inverse) 12%, transparent);
}

/* Ensure content sits above background layers everywhere */
.section > *:not(.container) { position: relative; z-index: 2; }
.section-tone-inverse h1, .section-tone-inverse h2, .section-tone-inverse h3, .section-tone-inverse h4 { color: var(--text-inverse); }
.section-tone-inverse p, .section-tone-inverse .subheadline { color: color-mix(in srgb, var(--text-inverse) 70%, transparent); }
.section-tone-inverse .eyebrow { color: color-mix(in srgb, var(--text-inverse) 55%, transparent); }

/* ------- HEADER ------- */
.header {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600; font-size: 18px; letter-spacing: -0.03em;
  color: var(--text);
}
.logo-mark {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--text);
  display: inline-block;
  transition: background .3s ease;
}
.header-support {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.header-support:hover { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 14px; right: 20px;
  z-index: 200;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .3s ease, border-color .3s ease;
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .sun { display: block; }
  :root:not([data-theme]) .theme-toggle .moon { display: none; }
}

/* ------- BUTTONS ------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform .18s ease, filter .18s ease, background .3s ease;
  line-height: 1.2;
  min-width: 200px;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--btn-fg-alt);
  border: 1px solid var(--btn-border-alt);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.section-tone-inverse .btn { background: var(--text-inverse); color: var(--bg-inverse); }
.section-tone-inverse .btn-ghost { background: transparent; color: var(--text-inverse); border-color: color-mix(in srgb, var(--text-inverse) 25%, transparent); }
.section-tone-inverse .btn-ghost:hover { background: color-mix(in srgb, var(--text-inverse) 8%, transparent); }

/* CTA cluster */
.cta-cluster {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 32px 0;
}
.payment-icons { display: inline-flex; gap: 8px; align-items: center; color: var(--text-muted); }
.payment-icons img { height: 22px; display: none; } /* legacy hidden */
.payment-icons .pay-chip {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.guarantee-line {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.decline-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
}
.decline-link:hover { color: var(--text); }
.microcopy { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.01em; }

/* Price */
.price-line { font-size: 18px; color: var(--text-secondary); margin: 16px 0; }
.strike { text-decoration: line-through; opacity: 0.5; }
.price-hero {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.035em;
  display: inline-block;
}

/* ------- CARDS ------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: background .3s ease, border-color .3s ease;
}
@media (max-width: 700px) { .card { padding: 28px; border-radius: 16px; } }

.card-dark {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: 20px;
  padding: 48px;
}
.card-dark h1, .card-dark h2, .card-dark h3 { color: var(--text-inverse); }
.card-dark p { color: color-mix(in srgb, var(--text-inverse) 70%, transparent); }

/* ------- CHECKLIST ------- */
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li {
  padding: 10px 0 10px 34px;
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--line-strong) border-box;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 20px;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(-45deg);
}
.section-tone-inverse .checklist li { color: color-mix(in srgb, var(--text-inverse) 75%, transparent); border-bottom-color: color-mix(in srgb, var(--text-inverse) 8%, transparent); }
.section-tone-inverse .checklist li::before { border-color: color-mix(in srgb, var(--text-inverse) 25%, transparent); background: transparent; }
.section-tone-inverse .checklist li::after { border-color: var(--text-inverse); }

/* Neutral X (was "red") */
.checklist.negative li::after {
  content: "";
  left: 5px; top: 15px;
  width: 10px; height: 10px;
  border: none;
  transform: none;
  background:
    linear-gradient(45deg, transparent 45%, var(--text-muted) 45%, var(--text-muted) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--text-muted) 45%, var(--text-muted) 55%, transparent 55%);
}
.checklist.negative li { color: var(--text-muted); }

/* ------- GRIDS ------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ------- STATS ------- */
.stats { padding: 80px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat-num {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------- LOGO STRIP ------- */
.logo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  align-items: center; margin-top: 40px;
}
.placeholder-logo {
  height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.6;
}
@media (max-width: 700px) { .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ------- COMPARE (Old vs New) ------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .card { padding: 40px 32px; }
.compare h3 { color: var(--text); margin-bottom: 20px; }
.compare .negative-col { background: var(--bg-alt); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

/* ------- TESTIMONIALS ------- */
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.section-tone-inverse .testimonial-card {
  background: color-mix(in srgb, var(--text-inverse) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-inverse) 10%, transparent);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.section-tone-inverse .avatar {
  background: color-mix(in srgb, var(--text-inverse) 10%, transparent);
  border-color: color-mix(in srgb, var(--text-inverse) 15%, transparent);
}
.stars { color: var(--text); letter-spacing: 3px; margin-top: 16px; font-size: 14px; opacity: 0.7; }
.section-tone-inverse .stars { color: var(--text-inverse); }
.testimonial-card h4 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.02em; }
.testimonial-card p { font-size: 15px; line-height: 1.6; }

/* ------- PILL GRID (who this is for) ------- */
.pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pill {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}
.pill:hover { border-color: var(--line-strong); }
@media (max-width: 700px) { .pill-grid { grid-template-columns: repeat(2, 1fr); } }

/* ------- FAQ ------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s ease;
  margin-top: -4px;
  opacity: 0.5;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq details p { margin-top: 16px; color: var(--text-secondary); font-size: 16px; }

/* ------- SEAL ------- */
.seal {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  margin: 0 auto 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.section-tone-inverse .seal {
  background: transparent;
  color: var(--text-inverse);
  border-color: color-mix(in srgb, var(--text-inverse) 25%, transparent);
}

/* ------- FOOTER ------- */
.footer {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--hairline);
}
.footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }
.footer p { margin-bottom: 12px; font-size: 12px; line-height: 1.6; max-width: 800px; margin-left: auto; margin-right: auto; color: var(--text-muted); }

/* ------- WARN + PROGRESS (Step 2) ------- */
.warn-bar {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  text-align: center;
  padding: 14px 60px 14px 20px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 100%;
}
.progress-bar {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 14px 60px 14px 20px;
  text-align: center;
  font-weight: 500;
  position: relative; overflow: hidden;
  font-size: 14px;
  width: 100%;
  border-bottom: 1px solid var(--hairline);
}
.progress-bar::before {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 100%; width: 90%;
  background: var(--text);
  opacity: 0.08;
  z-index: 0;
}
.progress-bar span { position: relative; z-index: 1; }
.progress-bar strong { color: var(--text); font-weight: 600; }

/* ------- VIDEO ------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 32px auto;
}
.video-wrap > iframe, .video-wrap > video, .video-wrap > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--text) 6%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-alt), var(--bg-elevated));
  background-size: cover;
  background-position: center;
}
[data-theme="dark"] .video-placeholder {
  filter: brightness(0.78) contrast(1.05);
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.5);
}
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #111;
  margin-left: 4px;
}

/* ------- CONFIRMATION HERO ------- */
.confirm-hero { text-align: center; padding: 40px 0 40px; }
.confirm-hero h1 { max-width: 940px; margin: 24px auto 32px; }
.confirm-hero p { max-width: 640px; margin: 0 auto 16px; font-size: 18px; }

/* ------- PORTFOLIO STRIP ------- */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
  color: transparent;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.portfolio-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .portfolio-tile { filter: brightness(0.78) contrast(1.05); }
.section-tone-inverse .portfolio-tile {
  background: color-mix(in srgb, var(--text-inverse) 4%, transparent);
  border-color: color-mix(in srgb, var(--text-inverse) 10%, transparent);
  color: color-mix(in srgb, var(--text-inverse) 55%, transparent);
}
@media (max-width: 700px) { .portfolio { grid-template-columns: 1fr 1fr; } }

/* ------- RESOURCE CARD ------- */
.resource-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.resource-card .thumb {
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  aspect-ratio: 4/3;
  color: transparent;
  overflow: hidden;
}
[data-theme="dark"] .resource-card .thumb { filter: brightness(0.82) contrast(1.05); }
.resource-card .value {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
  margin-top: 12px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.resource-card .eyebrow { margin-bottom: 8px; }
@media (max-width: 700px) { .resource-card { grid-template-columns: 1fr; padding: 24px; } }

/* ------- BIO IMAGE ------- */
.bio-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 30%, var(--bg-elevated), var(--bg-alt) 70%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: var(--text-muted);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bio-img > span { display: none; }
.bio-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  text-transform: none;
  letter-spacing: 0;
}

/* ------- MOCKUP GRAPHIC (image-backed) ------- */
.mockup-graphic {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .mockup-graphic {
  filter: brightness(0.82) contrast(1.05);
}
[data-theme="dark"] .mockup-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* Confirmation page mockup (bigger) */
.mockup-confirm {
  max-width: 720px;
  margin: 40px auto 0;
}

/* Badge tag */
.badge-tag {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ------- STEP NAV ------- */
.step-nav {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 100px;
  display: flex;
  gap: 2px;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.step-nav a {
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease;
}
.step-nav a.active { color: var(--btn-fg); background: var(--btn-bg); }
.step-nav a:hover:not(.active) { color: var(--text); background: var(--bg-alt); }

/* ============================================================
   MOBILE — Comprehensive responsive pass
   Breakpoints:
     - 900px: tablet down (multi-col → single-col shifts)
     - 700px: phone landscape
     - 480px: small phone
   ============================================================ */

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  h1 { font-size: clamp(34px, 8vw, 48px); }
  h2 { font-size: clamp(28px, 6vw, 40px); }
  h3 { font-size: clamp(20px, 4vw, 26px); }
  .subheadline { font-size: 17px; margin-top: 16px; margin-bottom: 24px; }
  p { font-size: 16px; }
  body { font-size: 16px; }
}

@media (max-width: 700px) {
  /* Rhythm */
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Typography — punchier and tighter */
  h1 { font-size: 36px; line-height: 1.06; letter-spacing: -0.03em; }
  h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
  p { font-size: 16px; line-height: 1.6; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .subheadline { font-size: 16px; line-height: 1.55; margin-top: 14px; margin-bottom: 20px; }

  /* Header — hide support email, keep header tidy */
  .header { padding: 14px 0; }
  .header-inner { padding-right: 52px; }  /* clear theme toggle */
  .header-support { display: none; }
  .logo { font-size: 16px; }
  .logo-mark { width: 22px; height: 22px; }

  /* Theme toggle — smaller, farther from edge */
  .theme-toggle { top: 10px; right: 12px; width: 36px; height: 36px; }
  .theme-toggle svg { width: 16px; height: 16px; }

  /* Buttons */
  .btn { min-width: 100%; padding: 15px 28px; font-size: 15px; }
  .cta-cluster { gap: 12px; margin: 24px 0; }

  /* Cards */
  .card { padding: 24px; border-radius: 16px; }
  .card-dark { padding: 28px 22px; border-radius: 16px; }

  /* Price */
  .price-line { font-size: 16px; }
  .price-hero { font-size: 40px; }

  /* Stats */
  .stats { padding: 48px 0; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 11px; margin-top: 6px; }

  /* Seal / guarantee */
  .seal { width: 110px; height: 110px; font-size: 10px; margin-bottom: 24px; padding: 16px; }

  /* Video */
  .video-wrap { border-radius: 12px; margin: 20px auto; }
  .play-btn { width: 60px; height: 60px; }
  .play-btn::after { border-width: 9px 0 9px 14px; }

  /* Bio (instructor / founder) */
  .bio-img { aspect-ratio: 4/5; border-radius: 16px; }
  .bio-badge { bottom: 14px; left: 14px; padding: 8px 12px; font-size: 11px; }

  /* Mockup graphics */
  .mockup-graphic { border-radius: 16px; }

  /* Grids */
  .grid-2 { gap: 32px; }
  .grid-3 { gap: 20px; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }

  /* Testimonials */
  .testimonial-card { padding: 24px; border-radius: 16px; }
  .testimonial-card h4 { font-size: 17px; }
  .testimonial-card p { font-size: 14px; }

  /* Compare */
  .compare .card { padding: 24px; }

  /* Portfolio — 2 columns feels right, tighter gap */
  .portfolio { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portfolio-tile { border-radius: 12px; aspect-ratio: 4/3; }

  /* Resource card */
  .resource-card { grid-template-columns: 1fr; padding: 20px; gap: 16px; border-radius: 16px; margin-bottom: 12px; }
  .resource-card .thumb { aspect-ratio: 16/10; }

  /* Pill grid — better for small screens */
  .pill-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pill { padding: 10px 14px; font-size: 12px; }

  /* Logo strip */
  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
  .placeholder-logo { height: 26px; font-size: 12px; }

  /* Checklist */
  .checklist li { padding: 8px 0 8px 30px; font-size: 15px; }
  .checklist li::before { top: 12px; }
  .checklist li::after { top: 18px; }

  /* FAQ */
  .faq summary { font-size: 16px; }
  .faq details { padding: 20px 0; }
  .faq details p { font-size: 15px; }

  /* Step nav — smaller & lower */
  .step-nav {
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 5px;
  }
  .step-nav a { font-size: 11px; padding: 7px 12px; }

  /* Bottom padding on sections to clear sticky step-nav */
  body { padding-bottom: 72px; }

  /* Confirm page */
  .confirm-hero { padding: 24px 0; }
  .confirm-hero h1 { margin: 16px auto 20px; }
  .confirm-hero p { font-size: 16px; }
  .mockup-confirm { margin: 24px auto 0; }

  /* Progress + warn bars — pad right for theme toggle */
  .warn-bar, .progress-bar {
    padding: 12px 60px 12px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  /* Footer */
  .footer { padding: 32px 0; font-size: 12px; }
  .footer p { font-size: 11px; }

  /* Payment chips */
  .payment-icons { flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* Section-specific background tweaks — quieter on mobile */
  .section::before { opacity: 0.12; }
  [data-theme="dark"] .section::before { opacity: 0.22; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .price-hero { font-size: 36px; }

  /* Header — even tighter */
  .logo { font-size: 15px; }

  /* Portfolio can stay 2-col but tighter */
  .portfolio { gap: 10px; }

  /* Testimonials */
  .testimonial-card { padding: 20px; }

  /* Step nav shrinks to fit */
  .step-nav a { padding: 6px 10px; font-size: 10.5px; }
}

/* Section dividers */
.divider-top { border-top: 1px solid var(--hairline); }
.divider-bottom { border-bottom: 1px solid var(--hairline); }
