/* Brand palette (--leaf, --leaf-strong, --sky, --cream, --pill, --ink, --ink-soft, ...) is
   injected from the app's src/constants/brand.json, so the site matches the app. */
:root {
  --line: #e4dccb;
  --card: rgba(255, 252, 245, 0.88);
  --radius: 28px;
  --shadow: 0 18px 50px -20px rgba(28, 42, 51, 0.35);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px: comfortable for older readers */
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: var(--leaf-dark);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--leaf-dark);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.container-narrow {
  width: min(820px, 100%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

.logo {
  width: 44px;
  height: 44px;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
}

.site-nav {
  display: none;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

/* Hero: morning sky */
.hero {
  position: relative;
  padding: 120px 0 150px;
  background:
    radial-gradient(circle at 82% 78%, rgba(255, 214, 140, 0.95) 0, rgba(255, 214, 140, 0) 32%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, var(--sky) 0%, #e9eef0 45%, #f8e5c8 80%, #f6d6a8 100%);
  overflow: hidden;
}

.hills {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: 120px;
}

.hero-inner > * {
  min-width: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--leaf-dark);
  font-weight: 700;
}

.eyebrow-logo {
  width: 26px;
  height: 26px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.cta-note {
  color: var(--ink-soft);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-play {
  background: var(--leaf-dark);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(63, 102, 52, 0.8);
}

.btn-play:hover {
  background: #33552a;
}

.btn-play.is-soon {
  background: rgba(255, 255, 255, 0.85);
  color: var(--leaf-dark);
  box-shadow: none;
  border: 2px dashed var(--leaf);
  cursor: default;
}

.btn-light {
  background: #fff;
  color: var(--leaf-dark);
}

.btn-light:hover {
  background: var(--cream);
}

/* Verse card (mirrors the app's home screen) */
.verse-card {
  --verse-scale: 1;
  margin: 0;
  padding: 32px 20px 24px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: center;
  touch-action: pan-y;
}

@media (min-width: 640px) {
  .verse-card {
    padding: 40px 36px 32px;
  }
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ornament span {
  width: 36px;
  height: 1.5px;
  background: var(--ornament);
  opacity: 0.6;
}

.ornament-logo {
  width: 30px;
  height: 30px;
  opacity: 0.75;
}

.verse-text {
  margin: 0;
  min-height: 6.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(clamp(1.5rem, 3.6vw, 1.95rem) * var(--verse-scale));
  line-height: 1.35;
  text-wrap: pretty;
}

.verse-ref {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.streak {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--pill);
  font-weight: 600;
  font-size: 1rem;
}

.flame {
  color: var(--flame);
}

.verse-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px;
}

.verse-nav .pill {
  padding: 6px 8px;
  gap: 4px;
  line-height: 1.2;
}

@media (max-width: 420px) {
  .verse-nav .pill {
    font-size: 1rem;
  }

  .verse-nav .pill .icon {
    width: 1.1em;
    height: 1.1em;
  }
}

.verse-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.verse-tools {
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  box-shadow: 0 2px 8px -2px rgba(91, 74, 46, 0.2);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pill:active {
  transform: scale(0.97);
}

.pill:hover {
  background: #fffaf2;
}

.pill-sky {
  background: var(--sky);
  color: var(--sky-ink);
}

.pill-sky:hover {
  background: #bdd7ef;
}

.verse-card[data-is-today='true'] .pill-sky {
  opacity: 0.55;
}

.pill-round {
  width: 56px;
  padding: 0;
  font-size: 1.15rem;
}

.pill-leaf {
  background: var(--leaf-strong);
  color: #fff;
}

.pill-leaf:hover {
  background: var(--leaf-dark);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-tint {
  background: #f4eedf;
}

.section-sky {
  background: linear-gradient(180deg, #eaf2f9 0%, var(--cream) 100%);
}

.section-lead {
  max-width: 40em;
  margin: 0 auto 44px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 28px 24px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--leaf-strong);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.step p,
.feature p {
  color: var(--ink-soft);
  margin: 0;
}

.feature-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid-premium {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #e9f1e3;
  color: var(--leaf-dark);
}

.feature-grid-premium .feature-icon {
  background: var(--sky);
  color: var(--sky-ink);
}

/* Verse list */
.verse-list {
  columns: 1;
  column-gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .verse-list {
    columns: 2;
  }
}

@media (min-width: 1040px) {
  .verse-list {
    columns: 3;
  }
}

.verse-item {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.verse-item blockquote {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.45;
}

.verse-item-ref {
  color: var(--ink-soft);
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e9f1e3;
  color: var(--leaf-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.tag-anxiety,
.tag-peace {
  background: #e3eef8;
  color: #2f5877;
}

.tag-hope,
.tag-gratitude,
.tag-love,
.tag-forgiveness {
  background: #fdeedb;
  color: #8a4b0f;
}

.link-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 700;
  text-decoration: none;
}

.link-share:hover {
  text-decoration: underline;
}

/* Plans */
.plans {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 800px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.plan-premium {
  border: 2px solid var(--leaf);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -18px;
  right: 24px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--leaf-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.price {
  margin-bottom: 4px;
}

.price strong {
  font-family: var(--serif);
  font-size: 2.4rem;
}

.price span,
.price-alt,
.plan-note {
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  color: var(--leaf);
  margin-top: 0.1em;
}

.plan-note {
  margin: 0;
  font-size: 1rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.faq details {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--leaf-dark);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

/* Final CTA */
.final-cta {
  padding: 88px 0;
  background: linear-gradient(160deg, var(--leaf-strong) 0%, var(--leaf-dark) 100%);
  color: #fff;
  text-align: center;
}

.final-cta p {
  font-size: 1.25rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.final-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  --leaf: #cfe6bf;
  --leaf-dark: #fff;
}

/* Footer */
.site-footer {
  padding: 48px 0 40px;
  background: var(--ink);
  color: #dfe5e8;
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand .logo {
  --leaf: #9cc48a;
  --leaf-dark: #cfe6bf;
}

.developers {
  font-size: 1.1rem;
}

.developers strong,
.developers a {
  color: #fff;
  font-weight: 700;
}

.bible-credit,
.small {
  color: #b5c0c6;
}

.small {
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

/* Translator-added words (BLIVRE [brackets]) in italics, as in the app. */
.verse-text em,
.verse-item blockquote em {
  font-style: italic;
}
