/* faithvoice.app landing page. Brand colors from the app's asset catalog. */
:root {
  --navy: #1e2b47;
  --night: #141c2e;
  --parchment: #f4ecdd;
  --surface: #fbf7f0;
  --gold: #b8862f;
  --gold-light: #d4b06a;
  --ink: #1e2b47;
  --ink-2: #5a6275;
  --accent: #8a6420;        /* gold text on parchment, 4.6:1 */
  --line: #ddd0b8;
  --highlight: #33405c;      /* the app's dark VerseHighlight */

  --bg: var(--parchment);
  --card: var(--surface);
  --listen-bg: var(--navy);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4ecdd;
    --ink-2: #b9b3a6;
    --accent: #d4b06a;
    --line: #2f3d5a;
    --bg: var(--night);
    --card: var(--navy);
    --listen-bg: #0d1322;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Navy page edges so the status bar and overscroll match the header. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 48rem) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 20; background: var(--surface); color: var(--navy); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; margin: 0 0 1.5rem; max-width: 22ch; }
h3 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.5rem; }
section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.6rem 1.4rem; border-radius: 999px; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-gold { background: var(--gold-light); color: var(--night); }
.btn-gold:hover { background: #e0c07f; }
.btn-ghost { color: var(--parchment); border-color: rgb(244 236 221 / 0.45); }
.btn-ghost:hover { border-color: var(--parchment); }

/* Header + hero share the navy field */
.top { background: var(--navy); color: var(--parchment); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font: 500 1.4rem var(--serif); margin: 0; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a { color: rgb(244 236 221 / 0.85); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--parchment); text-decoration: underline; }
.top nav .nav-link-cta { color: var(--gold-light); }
@media (max-width: 40rem) { .top nav a:not(.nav-link-cta) { display: none; } }

.hero { background: var(--navy); color: var(--parchment); padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 5vw, 7rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 1.5rem; max-width: 16ch; font-variation-settings: "opsz" 72;
}
.lede { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: rgb(244 236 221 / 0.82); max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.store-soon { margin: 0; color: rgb(244 236 221 / 0.75); font-size: 0.95rem; flex-basis: 100%; order: 2; }

/* The read-along demo: the page's one moving element */
.readalong {
  margin: 0; background: var(--night); border: 1px solid rgb(212 176 106 / 0.25);
  border-radius: 28px; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.readalong-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.readalong figcaption { flex: 1; color: rgb(244 236 221 / 0.75); font-size: 0.95rem; }
.readalong figcaption strong { color: var(--parchment); font-weight: 600; }
.demo-toggle {
  font: 600 0.9rem var(--sans); color: var(--gold-light); background: transparent; cursor: pointer;
  border: 1.5px solid rgb(212 176 106 / 0.5); border-radius: 999px; padding: 0.35rem 0.9rem; min-height: 2.25rem;
}
.voice { display: flex; align-items: center; gap: 3px; height: 1.5rem; }
.voice span { width: 4px; height: 40%; border-radius: 2px; background: var(--gold-light); }
.playing .voice span { animation: voice 1.1s ease-in-out infinite; }
.playing .voice span:nth-child(2) { animation-delay: -0.9s; }
.playing .voice span:nth-child(3) { animation-delay: -0.5s; }
.playing .voice span:nth-child(4) { animation-delay: -0.7s; }
.playing .voice span:nth-child(5) { animation-delay: -0.2s; }
@keyframes voice { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.verses { list-style: none; margin: 0; padding: 0; counter-reset: none; font-family: var(--serif); }
.verses li {
  position: relative; padding: 0.55rem 0.8rem 0.55rem 2.6rem; border-radius: 12px;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.5; color: rgb(244 236 221 / 0.55);
  transition: background-color 0.5s, color 0.5s;
}
.verses li::before {
  content: attr(value); position: absolute; left: 0.9rem; top: 0.8rem;
  font: 600 0.8rem var(--sans); color: rgb(212 176 106 / 0.6);
}
.verses li.now { background: var(--highlight); color: var(--parchment); box-shadow: inset 3px 0 0 var(--gold-light); }
.verses li.now::before { color: var(--gold-light); }
.demo-progress { height: 3px; border-radius: 2px; background: rgb(244 236 221 / 0.12); margin-top: 1.25rem; overflow: hidden; }
.demo-progress span { display: block; height: 100%; width: 0; background: var(--gold-light); }

.steps, .features, .faq { background: var(--bg); }

/* Steps: a real sequence, so numbered */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: step; }
@media (min-width: 52rem) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.step-list li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 1.25rem; }
.step-list li::before {
  content: counter(step); display: block; font: 500 3rem/1 var(--serif); color: var(--accent); margin-bottom: 0.75rem;
}
.step-list p { margin: 0; color: var(--ink-2); max-width: 34ch; }

/* Story + screenshots */
.story { background: var(--card); }
.story-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .story-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.story-copy p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 33rem; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; max-width: 33rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.9rem; height: 0.45rem;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}
.phones { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; max-width: 30rem; margin-inline: auto; }
.phone { border-radius: 2rem; border: 6px solid var(--navy); box-shadow: 0 24px 48px -24px rgb(30 43 71 / 0.45); background: var(--navy); }
.phone-back { transform: translate(18%, -6%) rotate(-4deg); opacity: 0.92; }
.phone-front { position: relative; z-index: 1; transform: translateX(-6%); }

/* Features */
.feature-list { margin: 0; display: grid; gap: 2rem 4rem; }
@media (min-width: 48rem) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list dt { font: 500 1.4rem/1.25 var(--serif); margin-bottom: 0.4rem; }
.feature-list dd { margin: 0; color: var(--ink-2); max-width: 38ch; }

/* Pricing */
.pricing { background: var(--card); }
.section-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; margin: -0.5rem 0 2.5rem; }
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .plans { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.plan { border: 1.5px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); background: var(--bg); }
.plan-legacy { border-color: var(--gold); }
.plan h3 { font-size: 2rem; margin: 0; }
.plan-for { color: var(--ink-2); margin: 0.25rem 0 1.25rem; }
.plan-includes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.4rem; }
.plan-includes li { padding-left: 1.4rem; position: relative; }
.plan-includes li::before { content: ""; position: absolute; left: 0.2rem; top: 0.7em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold); }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 0.75rem 0; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.prices td { text-align: right; font: 500 1.25rem var(--serif); font-variant-numeric: tabular-nums; }
.trial {
  display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: var(--gold); color: var(--night); font-size: 0.8rem; font-weight: 700; vertical-align: 0.1em;
}
.fine { color: var(--ink-2); font-size: 0.9rem; margin: 1.5rem 0 0; }

/* Secondary: open a shared link */
.listen { background: var(--listen-bg); color: var(--parchment); }
.listen-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .listen-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.listen h2 { margin-bottom: 1rem; }
.listen p { color: rgb(244 236 221 / 0.8); margin: 0; max-width: 34rem; }
.open-link label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.open-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.open-row input {
  flex: 1 1 14rem; min-height: 3.25rem; padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 2px solid rgb(244 236 221 / 0.55); background: var(--night); color: var(--parchment); font: 1.05rem var(--sans);
}
.open-row input::placeholder { color: rgb(244 236 221 / 0.5); }
.open-row input[aria-invalid="true"] { border-color: #f2675d; }
.open-row .btn { min-height: 3.25rem; padding-inline: 1.8rem; }
.help { font-size: 0.9rem; margin-top: 0.6rem !important; }
.error { color: #f6a49d !important; font-weight: 600; margin-top: 0.4rem !important; }

/* FAQ */
.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); max-width: 46rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font: 500 1.3rem/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-2); max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .verses li { transition: none; } }

/* Privacy and terms */
.legal { background: var(--bg); padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.legal-body { max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem); line-height: 1.05; margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.6rem; margin: 2.75rem 0 0.75rem; max-width: none; }
.legal h3 { font: 600 1.05rem var(--sans); margin: 1.5rem 0 0.35rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.5rem; }
.effective { color: var(--ink-2); margin: 0 0 2rem; }
.summary { background: var(--card); border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; padding: 0.5rem 1.5rem 1rem; margin: 2rem 0; }
.summary h2 { margin-top: 1rem; }

/* Footer */
.foot { background: var(--night); border-top: 1px solid rgb(212 176 106 / 0.2); color: rgb(244 236 221 / 0.75); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.foot-inner p { margin: 0; }
.logo-foot { color: var(--parchment); font-size: 1.2rem; }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { color: rgb(244 236 221 / 0.85); }
.foot-links a:hover { color: var(--parchment); }
.copy { margin-left: auto !important; }
@media (max-width: 40rem) { .copy { margin-left: 0 !important; } }
