/* =========================================================================
   Bible Captions — marketing site, "3a" theme
   White and airy · Plus Jakarta Sans · ink type · one teal-highlighted phrase.
   ========================================================================= */

:root {
  --bg:        #FFFFFF;   /* page, nav, hero, footer */
  --band:      #F5F5F7;   /* features section */
  --ink:       #1D1D1F;   /* headlines, App Store + Download buttons */
  --grey:      #6E6E73;   /* sub-lines, feature body, footer links */
  --grey-2:    #8E8E93;   /* "Coming soon on", scroll arrow */
  --line:      #E5E5EA;   /* Android outline, footer rule */
  --teal:      #BFE6E2;   /* highlighter, feature checks, right glow */
  --pink-soft: #F4DADF;   /* left glow, "light" highlight */
  --rose:      #A34F5D;   /* "light" highlight text */
  --read:      #3A3A3C;   /* long-form reading text */
  --chip:      #F2F2F4;   /* phone chips + light bezel */
  --faded:     #B5B5BA;   /* past and next caption words */
  --muted:     #A1A1A6;   /* upcoming caption words */
  --ac-rose:   #CA7683;   /* pink caption colour (accent) */

  --hl: linear-gradient(transparent 56%, var(--teal) 56%, var(--teal) 93%, transparent 93%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --pad: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------- Base --------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, video { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* Teal highlighter: covers the lower part of the letters */
.hl {
  background: var(--hl); padding: 0 .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------------------------------- Nav --------------------------------- */
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__icon { width: 38px; height: 38px; border-radius: 10px;   /* lifted like an app icon, so the white icon reads on white */
  box-shadow: 0 1px 2px rgba(29,29,31,.08), 0 4px 12px rgba(29,29,31,.14); }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }

.pill-btn {
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; font-size: 15px; font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pill-btn:hover { background: #000; transform: translateY(-1px); }

/* ---------------------------- Store buttons ----------------------------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row--center { justify-content: center; }
.store {
  height: 60px; padding: 0 26px; border-radius: 999px; text-decoration: none; text-align: left;
  display: inline-flex; flex-direction: column; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.store__small { font-size: 12px; font-weight: 500; line-height: 1.25; }
.store__big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.store--apple { background: var(--ink); color: #fff; }
.store--apple .store__small { opacity: .8; }
.store--apple:hover { background: #000; transform: translateY(-1px); }
.store--android { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); cursor: default; }
.store--android .store__small { color: var(--grey-2); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 10.4vw, 150px) 24px clamp(56px, 7.6vw, 110px);
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--pink { left: 8%; top: 10%; width: 520px; height: 520px; opacity: .8;
  background: radial-gradient(circle, var(--pink-soft) 0%, rgba(255,255,255,0) 65%); }
.hero__glow--teal { right: 6%; top: 24%; width: 560px; height: 560px; opacity: .7;
  background: radial-gradient(circle, var(--teal) 0%, rgba(255,255,255,0) 65%); }
.hero > :not(.hero__glow) { position: relative; }

.hero__title {
  margin: 0 auto; max-width: 1100px;
  font-size: clamp(56px, 9vw, 136px); font-weight: 800; line-height: 1; letter-spacing: -.055em;
}
.hero__note {   /* "*and we mean the entire Bible" — fine print under the headline */
  margin: 34px auto 0; max-width: 640px;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.45; font-weight: 500; color: var(--grey);
}
.hero .store-row { margin-top: 36px; }
.hero__arrow { display: inline-flex; margin-top: clamp(48px, 5.8vw, 84px); color: var(--grey-2); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Spotlight caption (enabled by JS): the teal band jumps word to word */
.hero__title.cap-on { display: flex; align-items: center; justify-content: center; isolation: isolate; transition: opacity .26s ease-in-out; }
.hero__title.cap-fading { opacity: 0; }
.cap-line { display: block; max-width: 100%; text-wrap: balance; }
.cap-word {
  padding: 0 .04em; margin: 0 -.04em;   /* band overhang without shifting layout */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Caption styles — the hero rotates through these, one per sentence.
   All share the same layout so switching never moves the page. */
.cap-word { transition: color .12s linear, opacity .15s linear; }

/* Spotlight — the teal band jumps to the word being read (no slide) */
.hero__title[data-style="spotlight"] .cap-word.on { background: var(--hl); }

/* Karaoke — upcoming words are muted and fill with ink word by word */
.hero__title[data-style="karaoke"] .cap-word { color: var(--muted); }
.hero__title[data-style="karaoke"] .cap-word.read,
.hero__title[data-style="karaoke"] .cap-word.on { color: var(--ink); }

/* Focus — only the word being read is in ink; the rest of the phrase is faded */
.hero__title[data-style="focus"] .cap-word { color: var(--faded); }
.hero__title[data-style="focus"] .cap-word.on { color: var(--ink); }

/* Pop — words pop in one at a time; the newest in the pink caption colour */
.hero__title[data-style="pop"] .cap-word {
  display: inline-block; opacity: 0; transform: translateY(.08em) scale(.86);
  color: var(--ac-rose);   /* hidden words wait in pink, so each one appears already lit */
  transition: opacity .16s ease-out, transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s linear;
}
.hero__title[data-style="pop"] .cap-word.shown { opacity: 1; transform: none; color: var(--ink); }
.hero__title[data-style="pop"] .cap-word.on { color: var(--ac-rose); }

/* Underline — a rounded pink bar sits under the word being read, just below
   the baseline (.05–.135em) and behind the glyphs so descenders cross it */
.hero__title[data-style="underline"] .cap-word { position: relative; }
.hero__title[data-style="underline"] .cap-word.on::after {
  content: ""; position: absolute; z-index: -1; left: .06em; right: .06em; bottom: .085em;
  height: .085em; border-radius: 999px; background: var(--ac-rose);
}

/* Optical punctuation tightening for display headlines (tight tracking) */
.tp { margin-inline: -.05em; }   /* mid-word apostrophe: God’s, couldn’t */
.tq { margin-left: -.05em; }     /* closing ? . , ! : ; */

/* ------------------------------- Features ------------------------------- */
.features { background: var(--band); }
.features__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-block: clamp(64px, 8.3vw, 120px);
}
.features__copy { flex: 1 1 440px; min-width: 0; }
.features__title { font-size: clamp(40px, 5.4vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.features__sub { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 500; color: var(--grey); }
.features__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature__head { display: flex; align-items: center; gap: 10px; }
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.feature p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--grey); }
.features .store-row { margin-top: 40px; }
.features__art { flex: 0 1 460px; min-width: 300px; display: flex; justify-content: center; }

/* -------------------------------- Phones -------------------------------- */
/* Both phones are drawn at iPhone size (393 × 852) and scaled, as in the spec. */
.phones { position: relative; width: 460px; max-width: 100%; height: 560px; }
.phone { position: absolute; width: 393px; height: 852px; border-radius: 56px; overflow: hidden; }
.phone--back {
  left: 0; top: 60px; transform: scale(.56); transform-origin: top left; background: #fff;
  box-shadow: 0 0 0 10px var(--chip), 0 0 0 11px var(--line), 0 50px 90px -40px rgba(0,0,0,.35);
}
.phone--front {
  right: 0; top: 0; z-index: 2; transform: scale(.62); transform-origin: top right; background: #131316;
  box-shadow: 0 0 0 10px var(--ink), 0 60px 100px -40px rgba(0,0,0,.5);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 5; }
.phone__status {
  position: relative; z-index: 6; height: 54px; padding: 4px 30px 0 44px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.phone__battery { width: 25px; height: 12px; border-radius: 4px; border: 1px solid var(--ink); opacity: .6; }
.reader { padding: 18px 28px 0; }
.reader__head { display: flex; align-items: center; justify-content: space-between; }
.reader__ref { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.reader__pct { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--grey-2); }
.reader__v { margin-top: 26px; display: flex; gap: 12px; font-size: 19px; line-height: 1.55; color: var(--read); }
.reader__n { font-size: 13px; font-weight: 700; color: var(--grey-2); padding-top: 5px; }
.reader__hl { background: var(--pink-soft); color: var(--rose); border-radius: 6px; padding: 0 4px; }

/* -------------------------------- Footer -------------------------------- */
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 36px 48px; border-top: 1px solid var(--line);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer__brand img { width: 28px; height: 28px; border-radius: 7px;
  box-shadow: 0 1px 2px rgba(29,29,31,.08), 0 3px 9px rgba(29,29,31,.13); }
.footer__brand span { font-size: 15px; font-weight: 700; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--grey); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }

/* ===================== LEGAL / SIMPLE CONTENT PAGES ===================== */
.page { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 104px); }
.page__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); }
.page__title { margin-top: 10px; font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.page__updated { margin-top: 14px; color: var(--grey); font-size: 15px; }
.page__rule { height: 8px; width: 64px; background: var(--teal); border-radius: 4px; margin: 26px 0 34px; }
.page h2 { margin: 40px 0 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.page h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.page p, .page li { color: var(--read); font-size: 1rem; line-height: 1.7; }
.page p + p { margin-top: 14px; }
.page ul { margin: 12px 0; padding-left: 22px; }
.page li { margin: 8px 0; }
.page li::marker { color: var(--grey-2); }
.page strong { color: var(--ink); }
.page a.inline, .contact__alt a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal);
  text-decoration-thickness: 3px; text-underline-offset: 3px;
}
.page__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; color: var(--grey); font-weight: 700; font-size: 15px; text-decoration: none; }
.page__back:hover { color: var(--ink); }

/* -------------------------------- Guides -------------------------------- */
.crumbs { font-size: 14px; font-weight: 600; color: var(--grey-2); }
.page nav.crumbs a { color: var(--grey); text-decoration: none; }   /* beats the in-text link underline below */
.page nav.crumbs a:hover { color: var(--ink); }
.crumbs__sep { margin: 0 8px; }
.page__lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; font-weight: 500; color: var(--grey); }
.page ol { margin: 12px 0; padding-left: 24px; }
.page ol > li::marker { font-weight: 800; color: var(--ink); }
.page a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal);
  text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* A quoted verse: teal rule, verse in ink, reference below */
.page .verse { margin: 20px 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--teal); }
.page .verse p { color: var(--ink); font-size: 1.08rem; line-height: 1.6; font-weight: 600; }
.page cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--grey); }

/* Compact verse list (caption lists) */
.page .verse-list { list-style: none; margin: 14px 0 0; padding: 0; }
.page .verse-list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page .verse-list li:last-child { border-bottom: 0; }
.page .verse-list q { quotes: "\201C" "\201D"; color: var(--ink); font-weight: 600; }
.page .verse-list cite { margin-top: 4px; }

/* Data tables */
.table-wrap { margin: 18px 0; overflow-x: auto; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page th, .page td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.page th { background: var(--band); font-weight: 700; color: var(--ink); }
.page td { color: var(--read); }
.page .table-note { margin-top: 8px; font-size: 14px; color: var(--grey); }

/* Reading-time calculator */
.calc { margin: 22px 0; padding: clamp(18px, 3vw, 26px); border-radius: 22px; background: var(--band); }
.calc__row { display: grid; gap: 8px; }
.calc__row + .calc__row { margin-top: 16px; }
.calc label { font-weight: 700; color: var(--ink); }
.calc__speed { font-weight: 800; }
.calc input[type=range] { width: 100%; accent-color: var(--ink); }
.calc select { font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.calc__out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.calc__stat { padding: 14px 16px; border-radius: 16px; background: #fff; }
.calc__stat b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.calc__stat span { font-size: 13px; font-weight: 600; color: var(--grey); }

/* App Store call to action, related guides, sources */
.cta { margin-top: 48px; padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: var(--band); }
.page .cta h2 { margin-top: 0; }
.cta .store-row { margin-top: 18px; }
.related { margin-top: 36px; }
.page .related h2 { font-size: 1.1rem; }
.page .related ul { list-style: none; padding: 0; }
.related a { font-weight: 700; }
.page .sources h2 { font-size: 1.1rem; }
.page .sources p, .page .sources li { font-size: 14px; color: var(--grey); }

/* Guides index */
.page .guides-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.page .guides-list li { margin: 0; }
.guide-card { display: block; padding: 22px 24px; border-radius: 22px; background: var(--band); color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,29,31,.08); }
.page .guide-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.page .guide-card p { color: var(--grey); }

/* -------------------------------- Contact ------------------------------- */
.contact {
  max-width: 720px; margin-inline: auto; text-align: center;
  min-height: min(70vh, 700px); padding: clamp(56px, 9vh, 112px) var(--pad);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.contact .page__title { margin-top: 0; }
.contact__lead { margin: 26px auto 0; max-width: 40ch; color: var(--grey); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; font-weight: 500; }
.contact__btn { margin-top: 40px; }
.contact__glyph { color: #fff; }
.contact__alt { margin-top: 28px; color: var(--grey); font-size: 15px; }
.contact .page__back { margin-top: 52px; }

/* ---------------------------------- 404 --------------------------------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 72px var(--pad); }
.notfound__code { font-size: clamp(88px, 16vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.notfound__msg { margin-top: 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.notfound__sub { margin-top: 10px; color: var(--grey); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 360px) {
  :root { --pad: 20px; }
  .brand__name { font-size: 17px; }
  .pill-btn { padding: 0 16px; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__arrow { animation: none; }
  .hero__title { transition: none; }
}
