:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-alt: #f3ede0;
  --text: #1f2a26;
  --muted: #5b6862;
  --primary: #2f5d50;
  --primary-ink: #ffffff;
  --accent: #b38a2e;
  --border: #e4dccb;
  --shadow: 0 10px 30px rgba(31, 42, 38, 0.08);
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121816;
    --surface: #1a2320;
    --surface-alt: #18201d;
    --text: #ece7db;
    --muted: #a6b0ab;
    --primary: #7fb8a4;
    --primary-ink: #0f1513;
    --accent: #d9b65e;
    --border: #2a3531;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--primary); }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2em;
}
.verse {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  color: var(--muted);
  max-width: 560px;
  margin: 2.5em auto 0;
}
.verse cite { display: block; font-style: normal; font-size: 0.9rem; margin-top: 6px; color: var(--accent); }

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { color: var(--primary-ink); opacity: 0.92; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

/* App feature block */
.app-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.app-feature ul { padding-left: 1.2em; color: var(--muted); }
.app-feature li { margin-bottom: 0.4em; }
.phone {
  justify-self: center;
  width: 260px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  background: var(--text);
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: var(--surface);
  padding: 34px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
}
.phone-title { font-family: "Lora", Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; }
.progress span { display: block; height: 100%; width: 42%; background: var(--primary); border-radius: inherit; }
.reading-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.check.done { background: var(--primary); }
.streak { margin-top: auto; text-align: center; color: var(--accent); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.contact-card { text-align: center; max-width: 680px; margin: 0 auto; }
.contact-card p { margin-bottom: 1.2em; }
.contact-email { font-size: 1.15rem; font-weight: 600; }

/* Prose pages */
.prose { max-width: 760px; padding: 64px 20px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .app-feature { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  section { padding: 56px 0; }
  .nav { gap: 14px; }
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
}

/* Real app screenshots */
.shot {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 34px;
  border: 8px solid #1f2a26;
  background: #1f2a26;
  box-shadow: var(--shadow);
}
.app-feature .shot { justify-self: center; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero .app-icon { margin-left: auto; margin-right: auto; display: block; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .shot { max-width: none; border-width: 6px; border-radius: 28px; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { position: relative; padding-top: 54px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 20px; left: 26px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 600; font-size: 0.85rem;
}
.note { color: var(--muted); font-size: 0.95rem; }
