/* Bible Out Loud website styles.
   Colors match the app: terracotta on cream, charcoal text. */
:root {
  --primary: #C1652F;
  --primary-dark: #A4521F;
  --primary-soft: #F4E3D6;
  --background: #FAF6F0;
  --band: #F3ECE2;
  --card: #FFFFFF;
  --text: #2B2521;
  --muted: #6B625B;
  --line: rgba(43, 37, 33, 0.12);
  --on-primary: #FFFFFF;
  --frame: #2B2521;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #E08A55;
    --primary-dark: #EBA070;
    --primary-soft: #3A2A20;
    --background: #1E1A17;
    --band: #25201C;
    --card: #2A2420;
    --text: #F3ECE4;
    --muted: #B9AEA4;
    --line: rgba(243, 236, 228, 0.14);
    --on-primary: #1E1A17;
    --frame: #0F0D0B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav a.nav-cta { white-space: nowrap; background: var(--primary); color: var(--on-primary); font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--primary-dark); color: var(--on-primary); }

/* Buttons */
.store-button {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--background); text-decoration: none;
  padding: 11px 22px 11px 18px; border-radius: 14px; line-height: 1.15; text-align: left;
}
.store-button:hover { opacity: 0.88; }
.store-button svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-button small { display: block; font-size: 0.72rem; opacity: 0.85; }
.store-button strong { display: block; font-size: 1.2rem; font-weight: 600; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.tagline { font-family: var(--serif); color: var(--primary); font-style: italic; font-size: 1.45rem; margin: 0 0 20px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.note { color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }

/* Phone frame around screenshots */
.phone { width: 100%; max-width: 290px; margin: 0 auto; background: var(--frame); padding: 9px; border-radius: 44px; box-shadow: 0 24px 60px rgba(43, 37, 33, 0.22); }
.phone img { width: 100%; border-radius: 36px; }
.hero .phone { max-width: 310px; transform: rotate(2deg); }

/* Sections */
.section { padding: 80px 0; }
.band { background: var(--band); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2, .feature h2, .closing h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 16px;
}
.steps h3, .card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.steps p, .card p { margin: 0; color: var(--muted); }

/* Feature rows */
.features { display: grid; gap: 88px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature p { color: var(--muted); font-size: 1.1rem; margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 21px; height: 21px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }

/* Verse quote */
.verse { text-align: center; padding: 72px 0; }
.verse blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-style: italic; line-height: 1.4; margin: 0 auto 14px; max-width: 760px; text-wrap: balance; }
.verse cite { color: var(--primary); font-style: normal; font-weight: 600; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.price.featured { border: 2px solid var(--primary); }
.price h3 { font-size: 1.25rem; margin: 0 0 6px; }
.price .amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin: 0; }
.price .amount span { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Closing call to action */
.closing { background: var(--primary); color: #fff; text-align: center; padding: 80px 0; }
.closing h2 { color: #fff; }
.closing p { margin: 0 auto 28px; max-width: 520px; font-size: 1.15rem; }
.closing .cta-row { justify-content: center; }
.closing .store-button { background: #FAF6F0; color: #2B2521; }
.qr { display: flex; align-items: center; gap: 14px; text-align: left; font-size: 0.95rem; }
.qr img { width: 92px; height: 92px; border-radius: 12px; background: #fff; padding: 6px; }
@media (prefers-color-scheme: dark) { .closing { background: #A4521F; } }

/* Text pages (privacy, support) */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; margin: 0 0 6px; }
.updated { color: var(--muted); font-size: 0.95rem; margin: 0 0 40px; }
.page h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 8px; }
.page p { margin: 0 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer .brand { margin-bottom: 6px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .section { padding: 60px 0; }
  .steps, .cards, .pricing { grid-template-columns: 1fr; }
  .features { gap: 64px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .nav { gap: 14px; }
  .nav a.hide-small { display: none; }
  .qr { display: none; }
}
@media (max-width: 480px) {
  .nav a:not(.nav-cta) { display: none; }
  .site-header .wrap { padding: 0 16px; }
}
