/* ==========================================================================
   Sage Spencer — shared styles
   ========================================================================== */

:root {
  --cream: #FBF6F1;
  --cream-deep: #EFE3DA;
  --blush: #E8D3CC;
  --blush-deep: #C89A96;
  --rose: #A96F6E;
  --rose-deep: #945C61;
  --plum: #3B252B;
  --plum-soft: #6A4D52;
  --gold: #C7A76B;
  --gold-soft: #E8D9B8;
  --white: #FFFFFF;
  --card: #FCFAF6;
  --ink: #332226;
  --shadow: 0 20px 50px rgba(59, 37, 43, 0.10);
  --radius: 22px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--plum);
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--plum-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 14px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }

.section--soft { background: var(--cream-deep); }
.section--blush { background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); }

.center { text-align: center; }

.lede {
  font-size: 1.15rem;
  max-width: 620px;
}

.lede.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--blush-deep));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(169, 111, 110, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(169, 111, 110, 0.45);
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
}

.btn--ghost:hover { background: var(--plum); color: var(--white); }

.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 37, 43, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
}

.nav__cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, var(--cream-deep) 0%, var(--cream) 62%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--rose);
}

/* Mobile gets a shorter eyebrow; desktop keeps the full line */
.hero__eyebrow--mobile { display: none; }

.hero__sub {
  font-size: 1.15rem;
  margin-bottom: 0;
  max-width: 480px;
}

/* Quiet, understated benefit lines — no bullets, reads like a quiet confession, not a checklist.
   One small rose accent mark introduces the whole block (not per-line, so it never reads as a list). */
.hero__benefits {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.hero__benefits::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--rose);
  opacity: 0.65;
  margin-bottom: 14px;
}

.hero__benefits li {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #4A363B;
}

.hero__ctaRow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--plum-soft);
  opacity: 0.8;
  margin-top: 22px;
}

/* Mobile shows a shorter headline; desktop keeps the full line */
.hero__title--mobile { display: none; }

/* Sage avatar placeholder */
.sage-avatar {
  position: relative;
  border-radius: 32px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--blush-deep) 0%, var(--rose) 45%, var(--gold-soft) 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sage-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%);
}

.sage-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.18);
  transform-origin: 50% 18%;
  border-radius: inherit;
}

.sage-avatar__mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* Bottom vignette instead of a floating card — the caption fades into the photo,
   it never reads as a separate box sitting on her face */
.sage-avatar__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(180deg, rgba(59,37,43,0) 0%, rgba(59,37,43,0.56) 55%, rgba(59,37,43,0.78) 100%);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 48px 26px 22px;
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Problem section quote block */
.quote-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.quote-block p {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--plum);
  font-style: italic;
  margin-bottom: 0.6em;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}

.step__num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--blush-deep));
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* Difference list */
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.diff__col {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.diff__col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.diff__col--no h4 { color: var(--rose); }
.diff__col--yes h4 { color: var(--gold); }

.diff ul { margin: 0; padding-left: 20px; color: var(--plum-soft); }
.diff li { margin-bottom: 10px; }

/* Quiz */
.quiz-shell {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  padding: 44px;
  position: relative;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
}

.quiz-progress__bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

.quiz-progress__bar.is-active,
.quiz-progress__bar.is-done { background: var(--rose); }

.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fadeIn 0.4s ease; }

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

.quiz-question {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--plum);
  margin-bottom: 24px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-option {
  text-align: left;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--cream-deep);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--plum);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.quiz-option:hover { border-color: var(--blush-deep); transform: translateY(-1px); }

.quiz-option.is-selected {
  border-color: var(--rose);
  background: var(--blush);
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-back {
  background: none;
  border: none;
  color: var(--plum-soft);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.quiz-back:disabled { opacity: 0; pointer-events: none; }

/* Email step */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-form input[type="email"],
.email-form input[type="text"] {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--cream-deep);
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}

.email-form input:focus { outline: none; border-color: var(--rose); }

.consent-line {
  font-size: 0.8rem;
  color: var(--plum-soft);
  opacity: 0.85;
}

/* Result / thank you */
.result-path {
  display: inline-block;
  background: var(--blush);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Disclaimer */
.disclaimer {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 30px 36px;
  font-size: 0.88rem;
  color: var(--plum-soft);
  max-width: 780px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--plum);
  color: var(--cream);
  padding: 56px 0 32px;
}

.footer a { color: var(--cream); opacity: 0.8; text-decoration: none; }
.footer a:hover { opacity: 1; text-decoration: underline; }

.footer__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }

.footer__tagline { opacity: 0.75; }

.footer__bottom {
  border-top: 1px solid rgba(251, 246, 241, 0.15);
  padding-top: 22px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Simple static page layout (privacy/terms/contact) */
.doc-page { padding: 64px 0 96px; }
.doc-page h2 { margin-top: 1.4em; }
.doc-page p, .doc-page li { color: var(--plum-soft); }

/* Mobile-only hero art: hidden on desktop by default */
.hero__art--mobile { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .nav__inner { padding: 11px 20px; }
  .hero { padding: 16px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; }

  /* Center the whole hero copy column so nothing pulls the eye to one side */
  .hero__copy {
    text-align: center;
  }

  .hero__eyebrow {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    margin-bottom: 10px;
  }

  /* Mobile swaps in the shorter eyebrow line */
  .hero__eyebrow--desktop { display: none; }
  .hero__eyebrow--mobile { display: block; }

  /* Mobile gets its own shorter headline; desktop's stays hidden here */
  .hero__title--desktop { display: none; }
  /* Large and dominant over the eyebrow again — breaks at a chosen point (via <br>
     in the markup) instead of shrinking to force a single line */
  .hero__title--mobile {
    display: block;
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.75rem, 8vw, 2.3rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  /* Show the mobile Sage image right after the headline, hide the desktop column */
  .hero__art--desktop { display: none; }
  .hero__art--mobile {
    display: block;
    max-width: 245px;
    margin: 8px auto 10px;
  }
  .hero__art--mobile .sage-avatar { aspect-ratio: 4 / 5; border-radius: 26px; }

  /* Same bottom vignette treatment, scaled down for the smaller mobile photo */
  .hero__art--mobile .sage-avatar__caption {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, rgba(59,37,43,0) 0%, rgba(59,37,43,0.46) 55%, rgba(59,37,43,0.64) 100%);
    padding: 30px 16px 14px;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(0.95rem, 4.3vw, 1.2rem);
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
  }


  /* Only one clear action on mobile — hide the secondary hero CTA, not the quiz's own ghost button */
  .hero__ctaRow .btn--ghost { display: none; }

  /* Slightly tighter buttons so the mobile hero doesn't feel too tall */
  .hero__ctaRow .btn { padding: 15px 26px; }

  /* Stack CTAs so the primary action isn't pushed down or competing for width */
  .hero__ctaRow { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 10px; }
  .hero__ctaRow .btn { width: 100%; }

  .hero__note {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 14px;
  }

  /* Reorder the hero visually on mobile without touching the desktop DOM order:
     eyebrow → mobile headline → image → benefit lines → CTA → reassurance note */
  .hero__copy { display: flex; flex-direction: column; }
  .hero__eyebrow { order: 1; }
  .hero__title--mobile { order: 2; }
  .hero__art--mobile { order: 3; }
  .hero__sub { display: none; }
  /* Wide enough (matches the container's usable width) and a font that scales
     down on narrow phones so each line stays on a single row, never wraps */
  .hero__benefits {
    order: 4;
    margin: 12px auto 12px;
    max-width: 100%;
    text-align: center;
    gap: 9px;
  }
  .hero__benefits::before {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
  }
  .hero__benefits li {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.82rem, 3.7vw, 1rem);
    line-height: 1.55;
    white-space: nowrap;
  }
  .hero__ctaRow { order: 5; }
  .hero__note { order: 6; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .diff { grid-template-columns: 1fr; }
  .quiz-shell { padding: 30px 22px; }
  .section { padding: 52px 0; }
  .lede { font-size: 1rem; }
  .card { padding: 26px; }
  .step { padding: 20px 22px; }
  .quote-block { padding: 38px 30px; }
  .footer__grid { flex-direction: column; }
  .footer__tagline { opacity: 0.9; }
}
