/* Bible & You — site styles.
   Fluid type/spacing with clamp(); layout from auto-fit grids, so it adapts
   without breakpoints. Fonts are self-hosted: the site makes no third-party
   requests, matching the privacy policy. */

@font-face { font-family: "Lora"; src: url("../fonts/Lora-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #FBF6EF;
  --bg-2: #F3EADD;
  --surface: rgba(255, 253, 249, .72);
  --surface-solid: #FFFDF9;
  --text: #24211D;
  --muted: #6B5D4D;
  --faint: #9A8B78;
  --gold: #C9A96E;
  --gold-deep: #8B6A3A;
  --rule: #E6DACA;
  --ring: rgba(201, 169, 110, .45);
  --shadow-sm: 0 1px 2px rgba(60, 40, 10, .06);
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 18px 50px -20px rgba(60, 40, 10, .28);
  --glow-1: rgba(233, 196, 126, .42);
  --glow-2: rgba(242, 218, 196, .65);

  /* Fluid scale, 360px → 1280px */
  --step--1: clamp(.84rem, .81rem + .14vw, .93rem);
  --step-0: clamp(1rem, .97rem + .18vw, 1.11rem);
  --step-1: clamp(1.16rem, 1.08rem + .4vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.22rem + .85vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.9vw, 3rem);
  --step-4: clamp(2.45rem, 1.7rem + 3.5vw, 4.6rem);
  --space-2xs: clamp(.4rem, .36rem + .2vw, .55rem);
  --space-xs: clamp(.6rem, .54rem + .3vw, .8rem);
  --space-s: clamp(.85rem, .74rem + .5vw, 1.15rem);
  --space-m: clamp(1.25rem, 1.02rem + 1.1vw, 2rem);
  --space-l: clamp(2rem, 1.45rem + 2.7vw, 4rem);
  --space-xl: clamp(3.25rem, 2.2rem + 5vw, 7rem);
  --radius: clamp(16px, 13px + .9vw, 24px);
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(1160px, 100% - 2 * var(--gutter));

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion tokens (strong custom curves; never ease-in for UI) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  color-scheme: light dark;
}
/* Dark theme: follows the device unless the visitor picks one with the
   header toggle (stored as data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210;
    --bg-2: #1B1916;
    --surface: rgba(33, 31, 28, .66);
    --surface-solid: #1F1D1A;
    --text: #EFE8DF;
    --muted: #B5A68F;
    --faint: #857761;
    --gold: #D4B47A;
    --gold-deep: #E2C690;
    --rule: #34302A;
    --ring: rgba(212, 180, 122, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 20px 56px -22px rgba(0, 0, 0, .8);
    --glow-1: rgba(201, 169, 110, .18);
    --glow-2: rgba(139, 115, 85, .2);
  }
}
:root[data-theme="dark"] {
  --bg: #131210;
  --bg-2: #1B1916;
  --surface: rgba(33, 31, 28, .66);
  --surface-solid: #1F1D1A;
  --text: #EFE8DF;
  --muted: #B5A68F;
  --faint: #857761;
  --gold: #D4B47A;
  --gold-deep: #E2C690;
  --rule: #34302A;
  --ring: rgba(212, 180, 122, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 20px 56px -22px rgba(0, 0, 0, .8);
  --glow-1: rgba(201, 169, 110, .18);
  --glow-2: rgba(139, 115, 85, .2);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 80px;
}
body {
  margin: 0; min-height: 100svh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a, button, .btn { touch-action: manipulation; }
.btn, .nav a, .brand { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--surface-solid); padding: 10px 14px; border-radius: 10px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header (translucent material) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
         font: 600 var(--step-1)/1 var(--serif); letter-spacing: -.015em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px;
                color: var(--muted); background: var(--surface); border: 1px solid var(--rule); cursor: pointer;
                transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease; }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .i-moon, .is-dark .theme-toggle .i-sun-small { display: block; }
.theme-toggle .i-sun-small, .is-dark .theme-toggle .i-moon { display: none; }
.nav .btn { min-height: 38px; padding: 0 14px; font-size: var(--step--1); color: var(--text); }
@media (max-width: 600px) { .nav .hide-s { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #2A1E0C;
  background: linear-gradient(180deg, #E2C78F, #C49A57);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(90, 60, 20, .25), 0 10px 26px -12px rgba(140, 100, 40, .75);
}
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--rule); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Background glow ---------- */
.glow { position: absolute; inset: 0 0 auto; height: min(1000px, 140svh); z-index: -1; overflow: hidden; pointer-events: none; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }
.glow::before { width: 62vw; height: 62vw; max-width: 760px; max-height: 760px; left: -14vw; top: -22vw; background: var(--glow-1); }
.glow::after { width: 52vw; height: 52vw; max-width: 640px; max-height: 640px; right: -14vw; top: 2vw; background: var(--glow-2); }
.grain { position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
         background-image: radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1px); background-size: 3px 3px;
         -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: var(--space-l) var(--space-xl); }
.hero .wrap { display: grid; gap: var(--space-l); align-items: center;
              grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
  font-size: var(--step--1); font-weight: 600; color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status { max-width: 100%; }
.status .tag { white-space: nowrap; flex: none; padding: 3px 9px; border-radius: 999px; font-size: .78em; letter-spacing: .04em; text-transform: uppercase;
               color: #2A1E0C; background: linear-gradient(180deg, #E2C78F, #C49A57); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--ring); animation: beacon 2.4s var(--ease-out) infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 var(--ring); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
h1 {
  font: 600 var(--step-4)/1.03 var(--serif); letter-spacing: -.03em;
  margin: var(--space-m) 0 var(--space-s); text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 36ch; margin: 0 0 var(--space-m); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--space-m); font-size: var(--step--1); color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .icon { width: 16px; height: 16px; color: var(--gold-deep); }

/* ---------- Phone mockup ---------- */
.device-wrap { display: grid; place-items: center; perspective: 1400px; }
.device {
  width: min(320px, 78vw); aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(155deg, #4a4239, #17140f 60%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .09), inset 0 0 0 5px rgba(0, 0, 0, .5);
  transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1.5deg);
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  display: flex; flex-direction: column;
  background: #FBF6EF; color: #24211D; font: 400 12px/1.45 var(--sans);
}
.screen .island { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #0d0c0a; }
.screen .bar { display: flex; justify-content: space-between; align-items: center; padding: 46px 18px 8px; }
.screen .bar strong { font: 600 15px/1 var(--serif); letter-spacing: -.01em; }
.screen .bar .icon { width: 17px; height: 17px; color: #8B7355; stroke-width: 1.7; }
.screen .body { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 6px 16px 0; }
.screen .hello { font: 600 19px/1.2 var(--serif); letter-spacing: -.015em; margin: 0; }
.screen .chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #F3EADD; font-size: 10.5px; font-weight: 600; color: #8B6A3A; font-variant-numeric: tabular-nums; }
.screen .chip .icon { width: 13px; height: 13px; stroke-width: 1.8; }
.screen .card { background: #fff; border-radius: 18px; padding: 18px 16px 12px; text-align: center; box-shadow: 0 1px 2px rgba(80, 50, 10, .06), 0 10px 26px -14px rgba(80, 50, 10, .4); }
.screen .card p { font: italic 400 14.5px/1.5 var(--serif); margin: 0 0 10px; }
.screen .card .ref { display: flex; justify-content: space-between; align-items: center; color: #8B7355; font-size: 10.5px; }
.screen .card .ref .icon { width: 14px; height: 14px; }
.screen .reflect { color: #6B5D4D; font-size: 11px; margin: 0; }
.screen .act { display: flex; align-items: center; gap: 9px; border: 1px solid #E6DACA; border-radius: 12px; padding: 9px 11px; font-size: 11.5px; font-weight: 600; }
.screen .act .icon { width: 15px; height: 15px; color: #8B6A3A; }
.screen .tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 8px 18px; border-top: 1px solid #EFE4D4; background: #FFFDF9; }
.screen .tabs span { display: grid; justify-items: center; gap: 3px; font-size: 9px; color: #9A8B78; }
.screen .tabs span.on { color: #24211D; font-weight: 600; }
.screen .tabs .icon { width: 17px; height: 17px; }

/* ---------- Sections ---------- */
section { padding-block: var(--space-xl); }
.eyebrow { font: 600 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 var(--space-s); }
h2 { font: 600 var(--step-3)/1.08 var(--serif); letter-spacing: -.025em; margin: 0 0 var(--space-s); text-wrap: balance; }
.section-head { max-width: 640px; margin-bottom: var(--space-l); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; text-wrap: pretty; }

.features { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature {
  position: relative; padding: var(--space-m); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 200ms ease, box-shadow 250ms ease, transform 250ms var(--ease-out);
}
.feature .badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--space-s);
  color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent);
}
.feature .badge .icon { width: 22px; height: 22px; }
.feature h3 { font: 600 var(--step-1)/1.25 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); max-width: 42ch; }
.feature .tag { position: absolute; top: var(--space-m); right: var(--space-m); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

.verse-band { position: relative; text-align: center; padding-block: var(--space-xl); }
.verse-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent) 30%, color-mix(in srgb, var(--bg-2) 80%, transparent) 70%, transparent); }
.verse-band .mark { width: 40px; height: 40px; margin: 0 auto var(--space-m); color: var(--gold); }
.verse-band blockquote { margin: 0 auto; max-width: 24ch; font: italic 400 var(--step-3)/1.28 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.verse-band cite { display: block; margin-top: var(--space-m); font: 600 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-style: normal; }

.promise-grid { display: grid; gap: var(--space-l); align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: var(--space-s) 0; border-top: 1px solid var(--rule); }
.promises li:last-child { border-bottom: 1px solid var(--rule); }
.promises .check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 20%, transparent); }
.promises .check .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.promises strong { display: block; font-weight: 600; }
.promises span { color: var(--muted); font-size: var(--step--1); }

.soon-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--radius) + 10px); padding: var(--space-xl) var(--space-m);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--gold-deep) 18%, transparent), transparent 60%),
    var(--surface-solid);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.soon-card h2 { margin-inline: auto; max-width: 16ch; }
.soon-card p { color: var(--muted); font-size: var(--step-1); max-width: 44ch; margin: 0 auto var(--space-m); text-wrap: pretty; }
.soon-card .cta { justify-content: center; }
.soon-card small { display: block; margin-top: var(--space-s); color: var(--faint); font-size: var(--step--1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--space-l) calc(var(--space-l) + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }

/* ---------- Legal pages ---------- */
.doc { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: var(--space-l) var(--space-xl); }
.doc h1 { font-size: var(--step-3); margin-top: 0; }
.doc h2 { font-size: var(--step-2); margin: var(--space-l) 0 var(--space-s); padding-top: var(--space-m); border-top: 1px solid var(--rule); }
.doc h3 { font: 600 var(--step-1)/1.3 var(--serif); margin: var(--space-m) 0 6px; }
.doc p, .doc li { margin: 0 0 12px; max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-m); }
.doc .summary { background: var(--surface-solid); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-m); box-shadow: var(--shadow-sm); }
.doc .summary li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--muted); font-weight: 600; }
.doc code { font-size: .9em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 560px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; } .doc td { border: 0; padding: 2px 0; } .doc tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
}

/* ---------- Hover: only for precise pointers (no sticky hover on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .site-footer a:hover { color: var(--text); }
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(90, 60, 20, .25), 0 16px 32px -14px rgba(140, 100, 40, .85); }
  .btn-ghost:hover, .theme-toggle:hover { border-color: var(--gold); color: var(--text); }
  .feature:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--rule)); box-shadow: var(--shadow); transform: translateY(-2px); }
}

/* ---------- Entrance (progressive: content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(var(--i, 0) * 60ms); }
.js .features .reveal { transition-delay: calc(var(--i, 0) * 50ms); }
.js .device-wrap.reveal { transform: translateY(24px) scale(.97); transition-duration: 900ms; }
.js .device-wrap.reveal.in { transform: none; }

/* Reduced motion: fewer and gentler — keep fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .device-wrap.reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .status .dot { animation: none; }
  .btn, .feature { transition: none; }
  .device { transform: none; }
}
