/* Transform Bible — marketing site stylesheet.
   Tokens first (PRD §8), then base, then components in page order.
   Plain CSS, no build step. */

/* ─────────────────────────────────────────────────────────────────────────
   1. Design tokens
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --cream:      #f0ebe0;  /* ground */
  --ink:        #1a1a1a;  /* type, rules, solid buttons */
  --brick:      #c23b28;  /* accent: display type, chrome, primary recite action */
  --brick-deep: #a02f1f;  /* brick at label/paragraph sizes — 6:1 on cream */
  --muted:      #6b6560;  /* secondary labels, footer — 4.8:1 on cream */
  --body:       #2b2825;  /* paragraph text on cream */
  --dark:       #111010;  /* recite / inverted panels */
  --sand:       #ddd3c0;  /* photo placeholder ground, Gospels covers */
  --white:      #ffffff;  /* type on brick */
  --ghost:      .18;      /* opacity of an unspoken word in recite mode */

  /* Type */
  --font-ui:        "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-scripture: "Literata", Georgia, "Times New Roman", serif;

  --display-xl:     clamp(48px, 7vw, 104px);   /* hero h1 */
  --display-banner: clamp(40px, 6.4vw, 96px);  /* brick banner statement */
  --display-cta:    clamp(40px, 6vw, 88px);    /* closing h2 */
  --display-lg:     clamp(34px, 4.6vw, 64px);  /* section h2 */
  --display-md:     clamp(30px, 3.6vw, 48px);  /* smaller section h2 */
  --display-sm:     26px;                      /* step h3 */
  --text-lg:        18px;                      /* hero paragraph */
  --text-md:        17px;                      /* section paragraphs */
  --text-base:      16px;
  --text-sm:        14px;
  --text-xs:        12px;
  --text-label:     11px;                      /* section kickers */
  --text-micro:     10px;                      /* quote references, screen captions */

  --track-display: -.03em;
  --track-heading: -.025em;
  --track-tight:   -.02em;
  --track-caps:    .12em;
  --track-label:   .16em;
  --track-nav:     .1em;

  --leading-display: .94;
  --leading-heading: .96;
  --leading-body:    1.6;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-12: 48px;

  --gutter:     clamp(20px, 5vw, 72px);
  --measure:    1200px;
  --section:    clamp(56px, 7vw, 96px);
  --section-lg: clamp(64px, 8vw, 120px);
  --section-xl: clamp(64px, 9vw, 140px);

  /* Shape */
  --rule: 2px solid var(--ink);
  --radius: 0;

  /* Device renders are the one place the site shows a curve and a shadow:
     the screenshots are iPhone frames, so they keep the phone's corner. */
  --phone-radius: 30px;
  --phone-shadow: 0 20px 44px rgba(26, 26, 26, .16);
  --phone-shadow-hero: 0 30px 60px rgba(26, 26, 26, .22);
  --icon-radius: 16px;
  --icon-shadow: 0 10px 24px rgba(26, 26, 26, .18);
}

/* Self-hosted variable fonts (latin subsets from Google Fonts). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-variable-italic-latin.woff2") format("woff2");
}

/* ─────────────────────────────────────────────────────────────────────────
   2. Base
   ───────────────────────────────────────────────────────────────────────── */
*, *::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(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-ui); font-weight: 800; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brick-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.on-dark :focus-visible, .banner :focus-visible { outline-color: var(--cream); }

::selection { background: rgba(194, 59, 40, .3); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--cream);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--track-nav);
  padding: 11px 14px; z-index: 10;
}
.skip-link:focus { top: var(--space-4); text-decoration: none; }

/* Kickers: small letterspaced caps in deep brick. */
.kicker {
  display: block;
  font-size: var(--text-label); font-weight: 800; letter-spacing: var(--track-label);
  color: var(--brick-deep);
}
.kicker--micro { font-size: var(--text-micro); }

.scripture { font-family: var(--font-scripture); font-weight: 400; }

/* Buttons: flush-left labels, solid fills, no radius. */
.btn {
  display: inline-block;
  font-family: var(--font-ui); font-weight: 800;
  font-size: 13px; letter-spacing: var(--track-caps); line-height: 1.2;
  text-align: left; text-decoration: none;
  padding: 16px 20px; border: 0; border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--brick { background: var(--brick); color: var(--white); }
.btn--brick:hover { background: var(--brick-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 14px 20px; }
.btn--outline:hover { background: rgba(26, 26, 26, .07); }
.btn--nav { font-size: var(--text-xs); letter-spacing: var(--track-nav); padding: 11px 14px; white-space: nowrap; }
.btn--tall { padding: 18px 20px; }

/* ─────────────────────────────────────────────────────────────────────────
   3. Header
   ───────────────────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 22px 0; border-bottom: var(--rule);
}
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-nav a:not(.btn) {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--track-nav);
  color: var(--ink); white-space: nowrap;
}
@media (max-width: 600px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   4. Hero
   ───────────────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: var(--section-lg) 0 clamp(40px, 6vw, 96px);
}
.hero__copy { display: flex; flex-direction: column; gap: var(--space-7); }
.hero__title {
  margin-left: -.05em;
  font-size: var(--display-xl); line-height: var(--leading-display);
  letter-spacing: var(--track-display); text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--brick); }
.hero__lede { max-width: 54ch; font-size: var(--text-lg); line-height: var(--leading-body); color: var(--body); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__note { font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; color: var(--muted); }

.hero__visual {
  justify-self: end; width: 100%; max-width: 440px;
  position: relative; aspect-ratio: 440 / 620;
}
.hero__visual img { position: absolute; width: auto; }
.hero__visual .phone--back { left: 0; top: 0; height: 88%; border-radius: 34px; box-shadow: var(--phone-shadow-hero); }
.hero__visual .phone--front { right: 0; bottom: 0; height: 80%; border-radius: var(--phone-radius); box-shadow: 0 24px 50px rgba(26, 26, 26, .2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-self: start; }
}

/* ─────────────────────────────────────────────────────────────────────────
   5. Pull quotes
   ───────────────────────────────────────────────────────────────────────── */
.quotes {
  border-top: var(--rule); border-bottom: var(--rule);
  padding: var(--space-9) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-7);
}
.quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.quote p { font-size: 20px; line-height: 1.45; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────────
   6. Section heads
   ───────────────────────────────────────────────────────────────────────── */
.section-head { padding: var(--section) 0 var(--space-6); display: flex; flex-direction: column; gap: 14px; }
.section-head h2, .h-display {
  margin-left: -.04em;
  font-size: var(--display-lg); line-height: var(--leading-heading);
  letter-spacing: var(--track-heading); text-transform: uppercase;
}
.section-head h2 { max-width: 16ch; }
.h-display--md { font-size: var(--display-md); line-height: .98; }

/* ─────────────────────────────────────────────────────────────────────────
   7. How it works
   ───────────────────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 420px) minmax(0, 1fr);
  gap: var(--space-5) clamp(20px, 4vw, 64px); align-items: start;
  padding: var(--space-9) 0; border-top: var(--rule);
}
.step:last-child { border-bottom: var(--rule); }
.step__n { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: var(--space-3); }
.step__n::before { content: ""; width: 10px; height: 10px; background: var(--brick); flex: none; }
.step h3 {
  font-size: var(--display-sm); line-height: 1.05;
  letter-spacing: var(--track-tight); text-transform: uppercase;
}
.step p { font-size: var(--text-md); line-height: var(--leading-body); color: var(--body); }
@media (max-width: 720px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}

/* ─────────────────────────────────────────────────────────────────────────
   8. Screens
   ───────────────────────────────────────────────────────────────────────── */
.screens {
  padding: var(--section) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 40px); align-items: end;
}
.screen { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.screen img { width: 100%; border-radius: var(--phone-radius); box-shadow: var(--phone-shadow); }
.screen figcaption { display: flex; flex-direction: column; gap: var(--space-1); border-top: var(--rule); padding-top: var(--space-3); }
.screen figcaption span:last-child { font-size: var(--text-sm); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────────────
   9. By heart
   ───────────────────────────────────────────────────────────────────────── */
.heart {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: var(--section-lg) 0;
}
.heart__copy { display: flex; flex-direction: column; gap: var(--space-6); }
.heart__copy p { font-size: var(--text-md); line-height: var(--leading-body); color: var(--body); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule); }
.tier { padding: var(--space-4) 0; border-bottom: var(--rule); }
.tier:nth-child(odd) { border-right: var(--rule); padding-right: var(--space-4); }
.tier:nth-child(even) { padding-left: var(--space-4); }
.tier__name { display: block; font-size: 28px; font-weight: 800; line-height: 1; color: var(--ink); }
.tier__name--brick { color: var(--brick); }
.tier__note { display: block; margin-top: 6px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 800px) {
  .heart { grid-template-columns: minmax(0, 1fr); }
}

/* The live recite panel: the app's recite session, on the dark surface.
   Fills the 4:5 slot the design reserved for a black-and-white photograph. */
.recite {
  width: 100%; aspect-ratio: 4 / 5;
  background: var(--dark); color: var(--cream);
  display: flex; flex-direction: column;
  padding: clamp(20px, 3vw, 32px);
}
.recite__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-4); border-bottom: 2px solid rgba(240, 235, 224, .12);
}
.recite__ref { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.recite__mode { font-size: var(--text-micro); font-weight: 700; letter-spacing: var(--track-label); color: rgba(240, 235, 224, .6); text-align: right; }
.recite__stats {
  display: flex; gap: clamp(24px, 4vw, 40px);
  padding: var(--space-4) 0; border-bottom: 2px solid rgba(240, 235, 224, .12);
}
.recite__stat { display: flex; flex-direction: column; gap: var(--space-1); }
.recite__stat-v { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.recite__stat-v--brick { color: #e0563f; }
.recite__stat-k { font-size: var(--text-micro); font-weight: 700; letter-spacing: var(--track-label); color: rgba(240, 235, 224, .6); }
.recite__words {
  flex: 1; padding-top: clamp(20px, 3vw, 32px);
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.38; letter-spacing: -.01em;
}
.recite__word {
  display: inline-block; margin-right: .28em;
  opacity: var(--o, 1); filter: blur(var(--b, 0px));
  transition: opacity .18s linear, filter .18s linear;
}
.recite__hint { font-size: var(--text-micro); font-weight: 700; letter-spacing: var(--track-label); color: rgba(240, 235, 224, .45); }
@media (prefers-reduced-motion: reduce) {
  .recite__word { transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   10. Your Bible
   ───────────────────────────────────────────────────────────────────────── */
.bible {
  border-top: var(--rule); padding: clamp(48px, 6vw, 80px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.bible__head { display: flex; flex-direction: column; gap: 14px; }
.bible__copy { display: flex; flex-direction: column; gap: 18px; font-size: var(--text-md); line-height: var(--leading-body); color: var(--body); }
@media (max-width: 720px) {
  .bible { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────────
   11. Brick banner
   ───────────────────────────────────────────────────────────────────────── */
.banner { background: var(--brick); color: var(--white); padding: var(--section-xl) 0; }
.banner .wrap { display: flex; flex-direction: column; gap: var(--space-8); }
.banner__mark { height: clamp(40px, 5vw, 72px); width: auto; align-self: flex-start; }
.banner__statement {
  margin-left: -.05em; max-width: 14ch;
  font-size: var(--display-banner); font-weight: 800; line-height: var(--leading-display);
  letter-spacing: var(--track-display); text-transform: uppercase; color: var(--white);
}
.banner__verse { max-width: 52ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--white); }

/* ─────────────────────────────────────────────────────────────────────────
   12. FAQ
   ───────────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: var(--rule); }
.faq__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-4) clamp(20px, 4vw, 64px);
  padding: 26px 0; border-bottom: var(--rule);
}
.faq__item h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.faq__item p { font-size: var(--text-base); line-height: var(--leading-body); color: var(--body); }
@media (max-width: 640px) {
  .faq__item { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
}

/* ─────────────────────────────────────────────────────────────────────────
   13. Get the app / email capture
   ───────────────────────────────────────────────────────────────────────── */
.get {
  padding: var(--section-lg) 0;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.get h2 {
  margin-left: -.05em;
  font-size: var(--display-cta); line-height: var(--leading-display);
  letter-spacing: var(--track-display); text-transform: uppercase;
}
.get__side { display: flex; flex-direction: column; gap: 14px; }
.app-card { display: flex; align-items: center; gap: var(--space-4); }
.app-card img { width: 72px; height: 72px; border-radius: var(--icon-radius); box-shadow: var(--icon-shadow); }
.app-card__name { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.app-card__meta { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.get__note { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }

.capture { display: flex; flex-direction: column; gap: var(--space-2); }
.capture__label { font-size: var(--text-micro); font-weight: 800; letter-spacing: var(--track-label); color: var(--muted); }
.capture__row { display: flex; flex-wrap: wrap; gap: 10px; }
.capture input[type="email"] {
  flex: 1 1 200px; min-width: 0; min-height: 52px;
  font: 600 15px/1.2 var(--font-ui); color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; caret-color: var(--brick);
}
.capture input::placeholder { color: var(--muted); font-weight: 400; }
.capture .btn { flex: 1 1 auto; }
.capture__hp { display: none; }
@media (max-width: 800px) {
  .get { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ─────────────────────────────────────────────────────────────────────────
   14. Footer
   ───────────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: var(--rule); padding: var(--space-7) 0 var(--space-12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-label); font-weight: 700; letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { height: 18px; width: auto; opacity: .8; }
.site-footer__links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────────
   15. Document pages (privacy, terms, thanks)
   ───────────────────────────────────────────────────────────────────────── */
.doc { max-width: 72ch; padding: var(--section) 0 var(--section-lg); }
.doc__kicker { margin-bottom: var(--space-3); }
.doc h1 {
  margin-left: -.04em;
  font-size: var(--display-md); line-height: .98;
  letter-spacing: var(--track-heading); text-transform: uppercase;
}
.doc__meta { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.doc__lede { margin-top: var(--space-6); font-size: var(--text-lg); line-height: var(--leading-body); color: var(--body); }
.doc h2 {
  margin: var(--space-12) 0 var(--space-3);
  padding-top: var(--space-3); border-top: var(--rule);
  font-size: 17px; letter-spacing: .02em; text-transform: uppercase;
}
.doc h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brick-deep);
}
.doc p, .doc li { font-size: var(--text-md); line-height: var(--leading-body); color: var(--body); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: var(--space-3); }
.doc ul { padding-left: 20px; list-style: square; }
.doc li { margin-bottom: var(--space-2); }
.doc li::marker { color: var(--brick); }
.doc .scripture { font-size: 20px; line-height: 1.45; color: var(--ink); }
.doc--thanks { min-height: 50vh; }
.doc--thanks h1 { font-size: var(--display-lg); }
.doc__actions { margin-top: var(--space-8); display: flex; gap: 10px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────────────
   16. Contact form
   ───────────────────────────────────────────────────────────────────────── */
.form { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.form__field { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.form__label { font-size: var(--text-micro); font-weight: 800; letter-spacing: var(--track-label); color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 52px;
  font: 600 15px/1.4 var(--font-ui); color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; caret-color: var(--brick);
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 180px; font-weight: 400; }
.form input::placeholder { color: var(--muted); font-weight: 400; }
.form__note { font-size: var(--text-sm); color: var(--muted); }
.form__hp { display: none; }
