/* =====================================================================
   CALLRECOVER — MAIN STYLESHEET
   Builds on css/tokens.css (the locked design contract — load it first).
   Section order mirrors the page: nav → hero → how-it-works →
   calculator → why-us → pricing → founder/trust → audit CTA → footer.
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], footer[id] { scroll-margin-top: 90px; } /* sticky nav clearance for anchor jumps */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); }

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: 4px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--dur-hover) ease, box-shadow var(--dur-hover) ease, filter var(--dur-hover) ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--violet); background: var(--violet-tint-soft); }

/* ================= NAV ================= */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo span {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: var(--font-size-ui);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-weight: 700; color: var(--text-primary); font-size: var(--font-size-ui); white-space: nowrap; }

.btn-nav { padding: 12px 22px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
}
@media (max-width: 480px) {
  .logo { font-size: 19px; }
  .btn-nav { padding: 10px 16px; font-size: 14px; }
}

/* ================= HERO ================= */
.hero {
  padding: 72px 0 var(--pad-section);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
  top: -140px; right: -100px;
}
.hero::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--glow-coral), transparent 70%);
  bottom: -120px; left: -80px;
}

/* centered copy with the animation as a full-width cinematic band below —
   the sequence is the product demo, so it gets the widescreen treatment */
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: var(--font-size-fine);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--violet-light);
  background: var(--violet-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: 1.08;
  margin-bottom: 22px;
}
h1 .accent {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--font-size-sub);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  margin: 28px auto 0;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  max-width: 56ch;
}
.hero-stat strong { color: var(--coral-light); font-weight: 700; }
.hero-stat cite { font-style: normal; color: var(--text-muted); }

/* the cinematic stage — full container width */
.hero-visual {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  margin-top: 56px;
}
.phone-mock {
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.missed-call {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: var(--font-size-fine);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.missed-call .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.bubble {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: var(--font-size-fine);
  max-width: 88%;
  line-height: 1.5;
}
.bubble-cr {
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 600;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble-cust {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.booked-chip {
  align-self: center;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-light);
  background: var(--violet-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.mock-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= SECTION SHELL ================= */
section { padding: var(--pad-section) 0; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-head h2 { font-size: var(--font-size-h2); margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: var(--font-size-body); }

/* ================= HOW IT WORKS ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.2s ease;
}
.step-card:hover { border-color: var(--border-strong); }
/* flow arrows between steps — desktop only (grid wraps below 900px) */
@media (min-width: 901px) {
  .step-card:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -21px;
    top: 34px;
    font-size: 22px;
    font-weight: 800;
    color: var(--violet-light);
    opacity: 0.7;
  }
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-card h3 { font-size: var(--font-size-h3); margin-bottom: 10px; }
.step-card p { font-size: var(--font-size-ui); color: var(--text-secondary); }

/* ================= CALCULATOR ================= */
.calc-panel {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .calc-panel { grid-template-columns: 1fr; padding: 32px 24px; } }

.calc-field { margin-bottom: 28px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: var(--font-size-ui);
  font-weight: 700;
  margin-bottom: 10px;
}
.calc-field output {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--violet-light);
  white-space: nowrap;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--violet);
  height: 32px;
  cursor: pointer;
}
.calc-field select {
  width: 100%;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: var(--font-size-ui);
}
.trade-stat {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--violet-tint-soft);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
  font-size: var(--font-size-small);
  color: var(--text-secondary);
}
.trade-stat strong { color: var(--text-primary); }

.calc-output { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.calc-output .lead-label {
  font-size: var(--font-size-ui);
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.lost-annual {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lost-monthly {
  font-size: var(--font-size-ui);
  color: var(--text-secondary);
  margin: 8px 0 30px;
}
.lost-monthly strong { color: var(--text-primary); }

.bars { text-align: left; display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.bar-row .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: 6px;
  gap: 12px;
}
.bar-row .bar-label strong { color: var(--text-primary); white-space: nowrap; }
.bar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  height: 18px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width var(--dur-reveal) var(--ease-out);
}
.bar-fill.today { background: var(--text-muted); }
.bar-fill.with-cr { background: var(--gradient-cta); }

.calc-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 24px;
}
.calc-output .btn { align-self: center; }

.calc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 720px) { .calc-stats { grid-template-columns: 1fr; } }
.stat-chip {
  text-align: center;
  padding: 22px 16px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-chip .big {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--violet-light);
}
.stat-chip p { font-size: var(--font-size-small); color: var(--text-secondary); margin-top: 4px; }
.stats-source {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ================= WHY US ================= */
section#why-us { background: var(--bg-surface-1); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  text-align: center;
  padding: 12px;
}
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--violet-tint);
  color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: var(--font-size-small); color: var(--text-secondary); }

/* ================= PRICING ================= */
.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-surface-2);
  border: 2px solid var(--violet);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--glow-price);
}
.price-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--gradient-cta);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.price-amount { font-family: var(--font-display); font-size: 44px; font-weight: 800; }
.price-amount span { font-size: 17px; font-weight: 600; color: var(--text-secondary); font-family: var(--font-body); }
.price-setup { color: var(--text-secondary); margin: 8px 0 16px; }
.price-lock {
  font-size: var(--font-size-small);
  color: var(--violet-light);
  background: var(--violet-tint-soft);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
}
.price-list { list-style: none; text-align: left; margin-bottom: 28px; }
.price-list li { padding: 8px 0; font-size: var(--font-size-ui); color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.price-list li:last-child { border-bottom: none; }

/* ================= FOUNDER / TRUST ================= */
section#about { background: var(--bg-surface-1); }

.founder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }

.founder-story {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.founder-story > p {
  font-size: var(--font-size-body);
  color: var(--text-primary);
  line-height: 1.7;
}
.founder-sign {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--violet-light);
}
.founder-story details { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; }
.founder-story summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--coral-light);
  font-size: var(--font-size-ui);
  list-style: none;
}
.founder-story summary::-webkit-details-marker { display: none; }
.founder-story summary:hover { color: var(--coral); }
.full-story { margin-top: 18px; color: var(--text-secondary); font-size: var(--font-size-ui); }
.full-story h3 { color: var(--text-primary); font-size: var(--font-size-h3); margin-bottom: 12px; }
.full-story p { margin-bottom: 14px; }
.full-story p:last-child { margin-bottom: 0; }

.trust-col h3 { font-size: var(--font-size-h3); margin-bottom: 18px; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--font-size-ui);
  color: var(--text-secondary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.trust-list .tick {
  color: var(--coral);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1.6;
}

/* honest empty slot — fills with real client results when they exist */
.results-slot {
  margin-top: 48px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}
.results-slot h3 { font-size: var(--font-size-h3); margin: 10px 0 8px; }
.results-slot p { color: var(--text-secondary); font-size: var(--font-size-ui); max-width: 60ch; margin: 0 auto; }

/* ================= FAQ ================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 26px;
  color: var(--coral);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--dur-hover) ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: var(--font-size-ui);
}

/* ================= AUDIT CTA + FORM ================= */
.audit-band {
  background: var(--gradient-hero);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .audit-band { grid-template-columns: 1fr; padding: 40px 24px; } }

.audit-copy h2 { font-size: var(--font-size-h2); margin-bottom: 16px; }
.audit-copy p { color: var(--text-secondary); font-size: var(--font-size-body); margin-bottom: 12px; }

.audit-form {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audit-form label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 700;
  margin-bottom: 6px;
}
.audit-form label .opt { color: var(--text-muted); font-weight: 400; }
.audit-form input[type="text"],
.audit-form input[type="tel"],
.audit-form input[type="email"],
.audit-form select {
  width: 100%;
  background: var(--bg-surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: var(--font-size-ui);
}
.audit-form input:focus, .audit-form select:focus {
  outline: none;
  border-color: var(--violet);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  accent-color: var(--violet);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.consent a { color: var(--violet-light); text-decoration: underline; }
.form-microcopy { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ================= FOOTER ================= */
footer {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: var(--font-size-fine);
  color: var(--text-secondary);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-primary); }
.footer-fine { color: var(--text-muted); }

/* ================= LEGAL + CONFIRMATION PAGES ================= */
.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.page-narrow h1 { font-size: var(--font-size-h2); margin-bottom: 8px; }
.page-narrow .effective { color: var(--text-muted); font-size: var(--font-size-fine); margin-bottom: 36px; }
.page-narrow h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 90px; }
.page-narrow p, .page-narrow li { color: var(--text-secondary); font-size: var(--font-size-ui); margin-bottom: 12px; }
.page-narrow ul { padding-left: 22px; margin-bottom: 12px; }
.page-narrow a { color: var(--violet-light); text-decoration: underline; }
.page-narrow strong { color: var(--text-primary); }

.thanks-card {
  max-width: 620px;
  margin: 96px auto;
  padding: 48px 40px;
  text-align: center;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.thanks-card .big-tick {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-card h1 { font-size: var(--font-size-h2); margin-bottom: 16px; }
.thanks-card p { color: var(--text-secondary); margin-bottom: 14px; }
.thanks-card .sign { font-family: var(--font-display); font-weight: 700; color: var(--violet-light); margin-bottom: 28px; }

/* ================= REVEALS (template baseline — expanded in stage 4) ================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
