/* Landing-page components. Loaded after style.css (tokens, nav, footer, base
   type live there). Everything here is namespaced to the landing sections and
   .vg-* vignettes so the legal pages can never be affected. */

/* ── Layout & rhythm ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 680px; }

main section, .hero-l { padding: clamp(72px, 12vh, 140px) 0; }

.section-title {
  font-size: clamp(30px, 4.5vw, 40px);
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 56px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-cta { color: var(--terracotta) !important; font-weight: 600; }

/* Real phones: the four nav items overflow and wrap into stacked lines.
   Keep brand + CTA, drop the anchor links (the page is one scroll anyway). */
nav { flex-wrap: nowrap; }
.brand, .nav-links a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Hero ── */
.hero-l { padding-top: clamp(40px, 8vh, 96px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-l h1 {
  font-size: clamp(40px, 7.5vw, 68px);
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 18px auto 22px;
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 auto 40px;
}

/* ── Waitlist form ── */
.waitlist { width: 100%; max-width: 520px; margin: 0 auto; }

.waitlist-row { display: flex; gap: 10px; }

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font: 400 16px 'Instrument Sans', sans-serif;
}
.waitlist input[type="email"]::placeholder { color: var(--text-faint); }

.btn-primary {
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 16px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font: 600 16px 'Instrument Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 12px rgba(148, 85, 39, 0.32);
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-msg { min-height: 1.4em; margin-top: 10px; font-size: 14.5px; color: var(--terracotta); }
.form-msg.is-success { color: var(--text); font-family: 'Newsreader', Georgia, serif; font-size: 17px; }
.form-note { margin-top: 4px; font-size: 14px; color: var(--text-faint); }

@media (max-width: 560px) {
  .waitlist-row { flex-direction: column; }
  .waitlist input[type="email"] { text-align: center; }
}

/* Desktop: hero becomes a two-column split — copy left, phone right —
   so wide screens read as a website, not a scaled-up phone page. */
@media (min-width: 1024px) {
  .hero-l { text-align: left; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(48px, 6vw, 96px);
  }
  .hero-copy {
    flex: 1;
    max-width: 560px;
  }
  .hero-l h1 { margin-left: 0; max-width: none; }
  .hero-sub { margin: 0 0 40px; }
  .hero-copy .waitlist { margin: 0; }
  .hero-l .phone { margin: 0; flex-shrink: 0; }
}

/* ── Phone frame ── */
.phone {
  width: min(340px, 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 44px;
  padding: 30px 24px 34px;
  box-shadow: 0 24px 60px rgba(43, 38, 32, 0.16);
  text-align: left;
}
.hero-l .phone { margin-top: clamp(48px, 8vh, 80px); }

/* ── Vignette shared bits ── */
.vg-eyebrow {
  font: 600 10.5px 'Instrument Sans', sans-serif;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.vg-label {
  font: 600 10.5px 'Instrument Sans', sans-serif;
  letter-spacing: 0.09em;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.vg-ainote {
  font: 400 11.5px/1.45 'Instrument Sans', sans-serif;
  color: var(--text-faint);
  margin-top: 12px;
}
.vg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font: 600 14.5px 'Instrument Sans', sans-serif;
  box-shadow: 0 10px 12px rgba(148, 85, 39, 0.32);
}
.vg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  color: var(--outline-text, var(--text-soft));
  font: 600 14px 'Instrument Sans', sans-serif;
}
.vg-btn-block { width: 100%; margin-top: 18px; }

/* ── Scripture vignette (hero) ── */
.vg-scripture .vg-verse {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px;
}
.vg-ref {
  font: 600 13px 'Instrument Sans', sans-serif;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.vg-rule { border: none; border-top: 1px solid var(--divider); margin: 0 0 16px; }
.vg-prayer-card {
  background: var(--card-warm);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 17px;
}
.vg-prayer {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft, var(--text-soft));
}
.vg-cta-row { display: flex; gap: 10px; margin-top: 18px; }
.vg-cta-row .vg-btn-primary { flex: 1.2; }
.vg-cta-row .vg-btn-outline { flex: 1; }

/* Hero staged reveal — plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .vg-scripture .stage-1, .vg-scripture .stage-2,
  .vg-scripture .stage-3, .vg-scripture .stage-4 {
    opacity: 0;
    transform: translateY(8px);
    animation: vg-stage 0.7s ease forwards;
  }
  .vg-scripture .stage-1 { animation-delay: 0.35s; }
  .vg-scripture .stage-2 { animation-delay: 0.85s; }
  .vg-scripture .stage-3 { animation-delay: 1.35s; }
  .vg-scripture .stage-4 { animation-delay: 1.85s; }
}
@keyframes vg-stage { to { opacity: 1; transform: none; } }

/* ── Record vignette ── */
.vg-record { text-align: center; }
.vg-record .vg-eyebrow { letter-spacing: 0.14em; }
.vg-orb-wrap {
  position: relative;
  width: 190px; height: 190px;
  margin: 18px auto 0;
}
.vg-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(176, 112, 60, 0.22);
}
.vg-ring-2 { inset: 22px; background: rgba(176, 112, 60, 0.2); }
.vg-orb-core {
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: linear-gradient(117deg, #DDA163, #A9632F);
  box-shadow: 0 12px 20px rgba(169, 99, 47, 0.42);
}
@media (prefers-reduced-motion: no-preference) {
  .vg-ring { animation: vg-pulse 4s ease-in-out infinite; }
  .vg-ring-2 { animation-delay: 0.8s; }
  .vg-orb-core { animation: vg-breathe 4s ease-in-out infinite; }
}
@keyframes vg-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.15; }
}
@keyframes vg-breathe {
  0%, 100% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
}
.vg-timer {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 26px;
}
.vg-hint { font: 400 13.5px 'Instrument Sans', sans-serif; color: var(--text-soft); margin-top: 4px; }
.vg-wave {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-top: 20px;
}
.vg-wave span {
  width: 3px; height: 34px;
  border-radius: 3px;
  background: #C79A6A;
  transform-origin: bottom;
  transform: scaleY(0.5);
}
.vg-wave span:nth-child(odd) { background: var(--terracotta); }
.vg-wave span:nth-child(1) { transform: scaleY(0.4); }
.vg-wave span:nth-child(2) { transform: scaleY(0.7); }
.vg-wave span:nth-child(3) { transform: scaleY(0.5); }
.vg-wave span:nth-child(4) { transform: scaleY(0.9); }
.vg-wave span:nth-child(5) { transform: scaleY(0.6); }
.vg-wave span:nth-child(6) { transform: scaleY(1); }
.vg-wave span:nth-child(7) { transform: scaleY(0.45); }
.vg-wave span:nth-child(8) { transform: scaleY(0.8); }
.vg-wave span:nth-child(9) { transform: scaleY(0.55); }
.vg-wave span:nth-child(10) { transform: scaleY(0.85); }
.vg-wave span:nth-child(11) { transform: scaleY(0.5); }
.vg-wave span:nth-child(12) { transform: scaleY(0.65); }
@media (prefers-reduced-motion: no-preference) {
  .vg-wave span { animation: vg-bar 1.6s ease-in-out infinite alternate; }
  .vg-wave span:nth-child(2n) { animation-delay: 0.2s; }
  .vg-wave span:nth-child(3n) { animation-delay: 0.45s; }
  .vg-wave span:nth-child(4n) { animation-delay: 0.65s; }
}
@keyframes vg-bar {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}
.vg-controls {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-top: 24px;
}
.vg-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: 400 11px 'Instrument Sans', sans-serif;
  color: var(--text-faint);
}
.vg-ctrl strong { font: 600 11px 'Instrument Sans', sans-serif; color: var(--terracotta); }
.vg-ctrl-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-soft);
}
.vg-finish {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 10px rgba(43, 38, 32, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-finish span {
  width: 25px; height: 25px;
  border-radius: 7px;
  background: var(--cta-bg);
}

/* ── Emotion vignette ── */
.vg-step { font: 400 13px 'Instrument Sans', sans-serif; color: var(--text-soft); margin-bottom: 20px; }
.vg-question {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.vg-question-sub { font: 400 13px 'Instrument Sans', sans-serif; color: var(--text-soft); margin-bottom: 18px; }
.vg-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vg-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  font: 500 14px 'Instrument Sans', sans-serif;
  color: var(--text);
}
.vg-chip i { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.vg-chip-on {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  box-shadow: 0 8px 9px rgba(148, 85, 39, 0.28);
}
.vg-chip-on i { background: var(--cream); }

/* ── Prayer solo card (feature 3) ── */
.vg-prayer-solo {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card-warm);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 18px 44px rgba(43, 38, 32, 0.12);
}
.vg-prayer-solo .vg-prayer { font-size: 18px; line-height: 1.65; }

/* ── Home vignette ── */
.vg-greeting { font: 400 13px 'Instrument Sans', sans-serif; color: var(--text-soft); }
.vg-home-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.vg-home-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.vg-home-icons { display: flex; gap: 8px; }
.vg-home-icons > span {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-home-icons svg { width: 17px; height: 17px; }
.vg-count { font: 400 12.5px 'Instrument Sans', sans-serif; color: var(--text-faint); margin: 4px 0 16px; }
.vg-dream-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(43, 38, 32, 0.05);
}
.vg-dream-card + .vg-dream-card { margin-top: 12px; }
.vg-home .vg-dream-card { background: var(--bg); }
.vg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vg-card-date {
  font: 600 10.5px 'Instrument Sans', sans-serif;
  letter-spacing: 0.07em;
  color: var(--terracotta);
}
.vg-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  font: 600 11px 'Instrument Sans', sans-serif;
  color: var(--terracotta);
  white-space: nowrap;
}
.vg-pill i { width: 7px; height: 7px; border-radius: 50%; }
.vg-card-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}
.vg-card-excerpt { font: 400 12.5px/1.5 'Instrument Sans', sans-serif; color: var(--text-soft); }
.vg-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--divider);
}
.vg-mini-wave { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.vg-mini-wave span { width: 2px; border-radius: 2px; background: var(--wave, #CBB79B); }
.vg-mini-wave span:nth-child(1) { height: 6px; }
.vg-mini-wave span:nth-child(2) { height: 12px; }
.vg-mini-wave span:nth-child(3) { height: 16px; }
.vg-mini-wave span:nth-child(4) { height: 9px; }
.vg-mini-wave span:nth-child(5) { height: 14px; }
.vg-mini-wave span:nth-child(6) { height: 7px; }
.vg-mini-wave span:nth-child(7) { height: 11px; }
.vg-mini-wave span:nth-child(8) { height: 15px; }
.vg-dur { font: 400 12px 'Instrument Sans', sans-serif; color: var(--text-faint); }
.vg-card-ref {
  margin-left: auto;
  font: 600 12px 'Instrument Sans', sans-serif;
  color: var(--terracotta);
}

/* ── Problem ── */
.problem { padding-top: clamp(48px, 8vh, 96px); }
.problem-text {
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.55;
  text-align: center;
  color: var(--text);
  max-width: 30em;
  margin: 0 auto;
}
.problem-text em { color: var(--terracotta); }

/* ── Features ── */
.feature {
  display: grid;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 14vh, 160px); }
.feature-copy h2 {
  font-size: clamp(27px, 3.6vw, 36px);
  text-align: left;
  margin-bottom: 14px;
}
.feature-copy p {
  font-size: 17.5px;
  color: var(--text-soft);
  max-width: 32em;
}
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature-copy { order: 2; }
}

/* ── How it works ── */
.steps-l {
  list-style: none;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vh, 44px);
}
.steps-l li { display: flex; gap: 20px; align-items: flex-start; }
.step-n {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--terracotta);
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-l h3 { font-size: 21px; margin-bottom: 4px; }
.steps-l p { color: var(--text-soft); font-size: 16px; }

/* Desktop: the three steps sit side by side */
@media (min-width: 1024px) {
  .how .container.narrow { max-width: 1080px; }
  .steps-l {
    max-width: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .steps-l li { flex-direction: column; gap: 16px; }
}

.mid-cta { text-align: center; margin-top: clamp(56px, 9vh, 88px); }
.mid-cta-lead { font-size: 22px; margin-bottom: 20px; }

/* ── Testimonials (hidden until real) ── */
.quotes { display: grid; gap: 18px; }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
}
.quote-card blockquote { font-size: 19px; margin-bottom: 12px; }
.quote-card figcaption { font-size: 14px; color: var(--text-faint); }
.logo-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
}
.logo-slot {
  width: 120px; height: 44px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 0;
  font: 600 16.5px 'Instrument Sans', sans-serif;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  color: var(--terracotta);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding-bottom: 20px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ── Closing ── */
.closing { text-align: center; }
.closing-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: radial-gradient(circle at 38% 35%, var(--orb-core) 0%, var(--orb-mid) 52%, var(--orb-edge) 100%);
  box-shadow: 0 0 40px rgba(197, 122, 69, 0.45);
}
.closing-line { font-size: clamp(26px, 4vw, 34px); margin-bottom: 26px; }

/* ── Scroll reveal (subtle; no-JS and reduced-motion safe) ── */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ── Dark-mode adjustments ── */
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
  .vg-home .vg-dream-card { background: var(--card-warm); }
  .vg-mini-wave span { background: #8A7A5F; }
}
