/* ==========================================================================
   Scriptureflow — site styles
   Warm paper, black ink, one blue accent, serif headlines. Mirrors the app.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f0ede6;
  --surface: #fbf9f5;
  --surface-2: #e8e3d9;
  --ink: #23262e;
  --muted: #5e6372;
  --line: #dad5cb;
  --accent: #1f45fc;
  --accent-ink: #ffffff;
  --band: #23262e;          /* the "ink card" */
  --band-ink: #f4f1ea;
  --band-muted: #a3a6b0;

  --serif: "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  --display: "Newsreader", "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 18px;
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --surface: #1d1d1f;
    --surface-2: #26262a;
    --ink: #f4f4f5;
    --muted: #8c8c92;
    --line: #2c2c30;
    --accent: #6f86ff;
    --accent-ink: #0f0f10;
    --band: #f4f1ea;
    --band-ink: #23262e;
    --band-muted: #5e6372;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 1rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 999px; }
.skip:focus { left: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-hero { font-size: clamp(3.3rem, 7.2vw, 7.6rem); }
.h-1 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.h-2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; }
.h-3 { font-family: var(--display); font-size: 1.6rem; line-height: 1.12; letter-spacing: -0.02em; font-weight: 400; }
.muted { color: var(--muted); }
.ital { font-style: italic; }
.display .line { display: block; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.body { color: var(--muted); max-width: 58ch; }
.body + .body { margin-top: 1rem; }

.label {
  font: 500 0.74rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .n { color: var(--ink); font-variant-numeric: tabular-nums; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-0.2em); }

/* Bracketed placeholders the owner still needs to fill in */
.fill { background: color-mix(in srgb, var(--accent) 12%, transparent); border-bottom: 1px dashed var(--accent); padding: 0 .2em; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans); letter-spacing: -0.01em;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { min-height: 40px; padding: .6rem 1.1rem; font-size: .92rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.store-btn { min-height: 58px; padding: .7rem 1.6rem .7rem 1.3rem; }
.store-btn .stack { display: grid; text-align: left; line-height: 1.05; }
.store-btn small { font-size: .7rem; font-weight: 500; opacity: .75; letter-spacing: 0; }
.store-btn strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.store-btn svg { width: 1.6em; height: 1.6em; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 2rem, 980px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .45rem .45rem .45rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent), 0 10px 30px -18px rgba(0,0,0,.25);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.2rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.nav__links { display: flex; gap: 1.6rem; font-size: .93rem; color: var(--muted); list-style: none; }
.nav__links a { transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; cursor: pointer; place-items: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav[data-open] { border-radius: 26px; flex-wrap: wrap; }
  .nav[data-open] .nav__links {
    display: grid; order: 3; width: 100%; gap: 0; padding: .4rem .2rem .6rem; font-size: 1.05rem;
  }
  .nav[data-open] .nav__links a { display: block; padding: .8rem .4rem; border-top: 1px solid var(--line); color: var(--ink); }
}
.nav__end { display: flex; align-items: center; gap: .25rem; }
@media (max-width: 420px) { .nav__end .btn { display: none; } .nav { padding-left: .8rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(8rem, 14vw, 10.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, #ffffff 70%, var(--bg)), transparent 70%);
  opacity: .9;
}
@media (prefers-color-scheme: dark) {
  .hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  font-size: .86rem; font-weight: 500; color: var(--muted);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero h1 { margin: 1.6rem 0 1.6rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__fine { margin-top: 1rem; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.hero__fine span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__fine span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero__fine span:first-child::before { display: none; }

.hero__visual { position: relative; justify-self: center; }
.hero__corner { position: absolute; font: italic 400 1rem/1.3 var(--display); color: var(--muted); }

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * .17);
  padding: calc(var(--w) * .035);
  background: #16171b;
  box-shadow:
    inset 0 0 0 1.5px #3a3c43,
    0 0 0 1px rgba(0,0,0,.08),
    0 50px 80px -40px rgba(35, 38, 46, .45),
    0 30px 40px -30px rgba(35, 38, 46, .3);
}
.phone > img, .phone > .phone__screens {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * .135);
  background: var(--bg);
}
.phone__screens { position: relative; overflow: hidden; }
.phone__screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.phone__screens img:not(.is-active) { opacity: 0; transform: scale(1.03); }
.phone--lg { --w: clamp(260px, 26vw, 340px); }
.phone--sm { --w: clamp(200px, 20vw, 250px); }

/* Floating data card (overlaps the phone) */
.float-card {
  position: absolute; z-index: 2;
  background: var(--surface); border-radius: 22px; padding: 1rem 1.1rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent), 0 24px 50px -24px rgba(35,38,46,.35);
  font-size: .85rem; min-width: 220px;
}
.float-card .label { font-size: .64rem; }
.float-card strong { display: block; font: 400 1.35rem/1.1 var(--display); letter-spacing: -0.02em; margin: .45rem 0 .2rem; }
.float-card .meta { color: var(--muted); font-size: .8rem; }
.float-card--a { left: -42%; bottom: 16%; }
.float-card--b { right: -30%; top: 22%; min-width: 0; padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; }
.float-card--b .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.float-card--b .dot svg { width: 16px; height: 16px; }
.float-card--b b { display: block; font-weight: 600; font-size: .92rem; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .7rem; }
.bar i { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: inherit; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 2rem; }
  .float-card--a { left: -18%; }
  .float-card--b { right: -14%; }
}
@media (max-width: 520px) {
  .float-card--a { left: -6%; bottom: 8%; min-width: 0; width: 200px; }
  .float-card--b { right: -4%; top: -3%; }
  .hero__corner { display: none; }
}

/* ---------- Scripture interlude ---------- */
.interlude { padding-block: clamp(4rem, 9vw, 8rem); border-block: 1px solid var(--line); }
.interlude blockquote { margin: 0; max-width: 22ch; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.08; }
.interlude cite { display: block; margin-top: 1.8rem; font-style: normal; }
.interlude__wrap { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
@media (max-width: 720px) { .interlude__wrap { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- How it works (sticky phone) ---------- */
.how { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how__intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.steps { list-style: none; counter-reset: step; }
.step { padding-block: clamp(2rem, 7vh, 4.5rem); border-top: 1px solid var(--line); min-height: 44vh; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-content: start; transition: opacity .5s var(--ease); }
.step:last-child { min-height: 0; }
.step__n { font: 300 2.6rem/1 var(--display); color: var(--muted); font-variant-numeric: lining-nums; }
.step h3 { font: 300 clamp(2rem, 3.4vw, 3rem)/1.02 var(--display); letter-spacing: -0.03em; margin-bottom: 1rem; }
.step p { color: var(--muted); max-width: 44ch; }
.step p + p { margin-top: .8rem; }
.step__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: .82rem; font-weight: 500; color: var(--muted); }
.step__phone { display: none; }
.how__sticky { position: sticky; top: max(7rem, calc(50vh - 330px)); justify-self: center; }
.how__sticky .phone { --w: clamp(260px, 24vw, 320px); }
.how__progress { display: flex; gap: .4rem; justify-content: center; margin-top: 1.4rem; }
.how__progress i { width: 26px; height: 4px; border-radius: 99px; background: var(--line); transition: background .4s var(--ease), width .4s var(--ease); }
.how__progress i.is-active { background: var(--ink); width: 40px; }
.js .how.is-enhanced .step:not(.is-active) { opacity: .35; }

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how__sticky { display: none; }
  .step { min-height: 0; grid-template-columns: 1fr; }
  .step__phone { display: block; margin-top: 1.8rem; }
  .step__phone .phone { --w: min(72vw, 280px); }
  .js .how.is-enhanced .step:not(.is-active) { opacity: 1; }
}

/* ---------- FSRS / memory ---------- */
.memory { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.memory .body { margin-top: 1.6rem; }
.memory em { font-family: var(--display); font-size: 1.15em; color: var(--ink); }
.curve-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.2rem); }
.curve-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.curve-card__top .big { font: 300 clamp(2.6rem, 5vw, 4rem)/0.9 var(--display); letter-spacing: -0.04em; }
.curve-card__top .big sup { font: 500 .8rem var(--sans); color: var(--muted); letter-spacing: 0; vertical-align: top; margin-left: .3rem; }
.curve { width: 100%; height: auto; overflow: visible; }
.curve .grid line { stroke: var(--line); stroke-width: 1; }
.curve .path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.curve .area { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.curve .review { fill: var(--accent); }
.curve .review-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.curve .mastery { stroke: var(--accent); stroke-dasharray: 3 5; stroke-width: 1.5; }
.curve text { font: 500 11px var(--sans); fill: var(--muted); }
.curve .t-accent { fill: var(--accent); font-weight: 600; }
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.4rem; }
.rate { border-radius: 16px; background: var(--bg); padding: .75rem .8rem; }
.rate b { display: block; font-size: .78rem; font-weight: 600; }
.rate span { display: block; font: 300 1.5rem/1.1 var(--display); margin-top: .9rem; }
.rate small { color: var(--muted); font-size: .7rem; }
.rate--on { background: var(--accent); color: var(--accent-ink); }
.rate--on small { color: inherit; opacity: .8; }
@media (max-width: 900px) { .memory { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rate span { font-size: 1.25rem; } .rate { padding: .65rem .6rem; } .rate small { display: none; } }

/* ---------- Feature bento ---------- */
.features__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  display: flex; flex-direction: column; gap: .6rem;
  position: relative; overflow: hidden; min-height: 220px;
}
.card h3 { font: 400 1.45rem/1.12 var(--display); letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 46ch; }
.card .ico { width: 26px; height: 26px; margin-bottom: auto; color: var(--ink); }
.card .ico + h3 { margin-top: 2.2rem; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.card--ink { background: var(--band); color: var(--band-ink); }
.card--ink p { color: var(--band-muted); }
.card--ink .ico { color: var(--band-ink); }
.card__art { margin-top: auto; padding-top: 1.4rem; }

/* Bible card: cropped screenshot sliding off the edge */
.card--bible { flex-direction: row; gap: 2rem; height: 460px; padding-right: 0; padding-bottom: 0; }
.card--bible .copy { flex: 1; padding-bottom: clamp(1.3rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: .6rem; }
.card--bible .copy h3 { margin-top: auto; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.card--bible .shot { width: 46%; align-self: stretch; margin-top: 1.4rem; overflow: hidden; border-radius: 26px 0 0 0; }
.card--bible .shot img { width: 100%; margin-top: -12%; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.tag { font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: var(--bg); color: var(--muted); letter-spacing: .02em; }

/* Recite card: word chips */
.words { display: flex; flex-wrap: wrap; gap: .3rem .35rem; font: 400 1.15rem/1.5 var(--display); }
.words span { padding: 0 .1em; border-radius: 5px; }
.words .ok { color: var(--band-ink); }
.words .miss { color: var(--band-muted); text-decoration: underline dotted; text-underline-offset: 4px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 1rem; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); height: calc(var(--h) * 1%); animation: wave 1.4s var(--ease) infinite alternate; animation-delay: calc(var(--i) * -90ms); }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.score { display: flex; align-items: baseline; gap: .4rem; margin-top: .8rem; }
.score b { font: 300 2.4rem/1 var(--display); }
.score small { color: var(--band-muted); font-size: .8rem; }

/* Handwriting card */
.ink-pad { background: var(--bg); border-radius: 20px; padding: 1rem 1.1rem; position: relative; }
.ink-pad svg { width: 100%; height: 70px; }
.ink-pad path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ink-pad .rule { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.ink-pad .read { margin-top: .5rem; font: italic 400 1rem/1.3 var(--display); color: var(--muted); }
.ink-pad .read b { font-style: normal; font-weight: 400; color: var(--ink); }

/* Pace pills */
.pace { display: flex; gap: .35rem; flex-wrap: wrap; }
.pace span { padding: .45rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--bg); color: var(--muted); }
.pace .on { background: var(--ink); color: var(--bg); }

/* Collections */
.collections { display: flex; flex-wrap: wrap; gap: .4rem; }
.collections span { padding: .5rem .85rem; border-radius: 14px; background: var(--bg); font-size: .85rem; font-weight: 500; }
.collections span em { font-style: normal; color: var(--muted); margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* Plans */
.plan { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.plan:first-child { border-top: 0; }
.plan b { font-weight: 600; flex: 1; }
.plan small { color: var(--muted); }
.ring { width: 28px; height: 28px; flex: none; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }

/* Audio player */
.player { display: flex; align-items: center; gap: .9rem; background: var(--bg); border-radius: 20px; padding: .8rem; }
.player .art { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: italic 400 1.2rem var(--display); flex: none; }
.player .meta { flex: 1; min-width: 0; }
.player .meta b { display: block; font-size: .92rem; }
.player .meta small { color: var(--muted); font-size: .78rem; }
.player .scrub { height: 4px; border-radius: 9px; background: var(--surface-2); margin-top: .5rem; overflow: hidden; }
.player .scrub i { display: block; width: 38%; height: 100%; background: var(--ink); }
.player .pp { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.player .pp svg { width: 14px; height: 14px; }

/* Journal */
.journal { background: var(--bg); border-radius: 20px; padding: 1rem 1.1rem; font: italic 400 1.02rem/1.45 var(--display); color: var(--ink); }
.journal .foot { display: flex; justify-content: space-between; margin-top: .8rem; font: 500 .74rem var(--sans); color: var(--muted); font-style: normal; }
.journal .answered { color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }

/* Streak */
.streak-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.streak-grid i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--band-ink) 12%, transparent); }
.streak-grid i.on { background: var(--accent); }
.streak-grid i.rest { background: color-mix(in srgb, var(--band-ink) 30%, transparent); }
.streak-grid i.frz { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.streak-num { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.streak-num b { font: 300 3.2rem/0.9 var(--display); letter-spacing: -0.04em; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: .74rem; color: var(--band-muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Widgets + watch */
.devices { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.widget { width: 150px; aspect-ratio: 1; border-radius: 26px; background: var(--bg); padding: 14px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.widget .label { font-size: .58rem; }
.widget .n { font: 300 2.6rem/1 var(--display); margin-top: auto; letter-spacing: -0.03em; }
.widget b { font-size: .76rem; font-weight: 600; }
.widget small { font-size: .66rem; color: var(--muted); }
.lock { width: 190px; border-radius: 18px; padding: 10px 12px; background: rgba(35,38,46,.82); color: #fff; backdrop-filter: blur(10px); }
.lock b { display: block; font-size: .72rem; font-weight: 600; }
.lock p { font: 400 .78rem/1.3 var(--display); color: rgba(255,255,255,.85) !important; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock-wrap { border-radius: 22px; padding: 22px 14px 14px; background: linear-gradient(160deg, #5b6b8c, #c9a98a 70%, #e7cdb0); display: grid; gap: 10px; justify-items: center; }
.lock-wrap .time { font: 600 2.6rem/1 var(--sans); color: rgba(255,255,255,.92); letter-spacing: -0.02em; }
.watch { width: 132px; aspect-ratio: 41 / 49; border-radius: 34px; background: #000; padding: 12px 12px; color: #fff; box-shadow: 0 0 0 5px #2a2b30, 0 20px 30px -18px rgba(0,0,0,.5); display: flex; flex-direction: column; margin: 0 6px 6px; }
.watch .lbl { font-size: .5rem; letter-spacing: .12em; color: #9a9aa2; font-weight: 600; }
.watch .n { font: 300 2.3rem/1 var(--display); margin-top: 4px; }
.watch .n small { font: 500 .62rem var(--sans); color: #9a9aa2; margin-left: 3px; }
.watch .ref { font-size: .62rem; color: #c8c8cc; margin-top: 2px; }
.watch .go { margin-top: auto; border-radius: 99px; background: #6f86ff; color: #0f0f10; font-size: .64rem; font-weight: 700; text-align: center; padding: 6px 0; }

/* Siri */
.siri { display: grid; gap: .5rem; }
.bubble { align-self: start; justify-self: start; padding: .6rem .95rem; border-radius: 18px 18px 18px 6px; background: var(--bg); font-size: .9rem; max-width: 100%; }
.bubble--me { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--accent-ink); }

/* Share card */
.share { display: flex; gap: 10px; }
.share figure { margin: 0; flex: 1; min-width: 0; aspect-ratio: 4 / 5; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font: 400 .92rem/1.3 var(--display); }
.share figure small { font: 600 .62rem var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.share .s1 { background: #fbf3e4; color: #3a2d22; }
.share .s2 { background: #23262e; color: #f4f1ea; }
.share .s3 { background: #1f45fc; color: #fff; }
@media (max-width: 640px) { .share figure { font-size: .78rem; padding: 10px; border-radius: 14px; } .share figure small { font-size: .55rem; } }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3, .span-4 { grid-column: span 4; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .card--bible { flex-direction: column; height: auto; padding-right: clamp(1.3rem, 2.4vw, 1.9rem); }
  .card--bible .shot { height: 340px; width: 82%; }
  .card--bible .shot { width: 78%; align-self: flex-end; margin-right: calc(-1 * clamp(1.3rem, 2.4vw, 1.9rem)); }
  .card--bible .copy { padding-bottom: 0; }
}

/* ---------- Read it your way ---------- */
.reader { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reader .body { margin-top: 1.4rem; }
.papers { display: flex; gap: .7rem; margin: 2rem 0 1.2rem; flex-wrap: wrap; }
.paper-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: transform .3s var(--ease); }
.paper-btn:hover { transform: scale(1.06); }
.paper-btn[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.paper-name { font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.sample {
  --p-bg: #fdf2e0; --p-ink: #3b2f26; --p-muted: #8a7867;
  margin-top: 1.4rem; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--p-bg); color: var(--p-ink);
  transition: background-color .6s var(--ease), color .6s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.sample .label { color: var(--p-muted); }
.sample .ch { font: 300 3.4rem/1 var(--display); margin: .4rem 0 1rem; }
.sample p { font-family: var(--sample-font, var(--display)); font-size: 1.15rem; line-height: 1.65; }
.sample sup { color: var(--p-muted); font: 500 .7rem var(--sans); margin-right: .35rem; }
.fonts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.font-btn { border: 0; cursor: pointer; padding: .5rem .95rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; color: var(--muted); min-height: 40px; }
.font-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.reader__phones { position: relative; display: flex; justify-content: center; gap: 0; }
.reader__phones .phone:last-child { margin-left: -14%; margin-top: 18%; }
.translations { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.translations ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.translations li { padding: .55rem .95rem; border-radius: 999px; background: var(--surface); font-size: .92rem; }
.translations li span { color: var(--muted); }
.translations .note { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .reader__phones .phone { --w: min(44vw, 240px); }
  .translations { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Privacy band ---------- */
.band { background: var(--band); color: var(--band-ink); border-radius: clamp(28px, 4vw, 44px); padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; right: -15%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent); z-index: -1; opacity: .6; filter: blur(10px); }
.band .label { color: var(--band-muted); }
.band .body { color: var(--band-muted); max-width: 56ch; margin-top: 1.6rem; font-size: 1.08rem; }
.band .h-1 { margin-top: 1.2rem; }
.nos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; list-style: none; }
.nos li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-ink) 22%, transparent); font-size: .92rem; }
.nos li svg { width: 14px; height: 14px; opacity: .7; }
.band .link-arrow { margin-top: 2.4rem; }
.band__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.device-only { display: grid; justify-items: center; gap: .8rem; }
.device-only .lock-ico { width: clamp(120px, 14vw, 170px); height: auto; color: var(--band-ink); opacity: .9; }
.device-only small { color: var(--band-muted); font-size: .8rem; text-align: center; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } .device-only { display: none; } }

/* ---------- Free ---------- */
.free { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.free__price { font: 200 clamp(8rem, 22vw, 20rem)/0.78 var(--display); letter-spacing: -0.06em; }
.free__price small { font-size: .3em; letter-spacing: -0.02em; color: var(--muted); }
.free__price sup { font-size: .28em; vertical-align: top; letter-spacing: 0; margin-right: .05em; position: relative; top: .25em; color: var(--muted); }
.free .body { margin-top: 1.4rem; font-size: 1.08rem; }
.free__list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; list-style: none; }
@media (max-width: 800px) { .free { grid-template-columns: 1fr; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: 7rem; }
.faq__head .body { margin-top: 1.2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.25 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); flex: none; position: relative; transition: transform .4s var(--ease), background-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details[open] summary .pm { background: var(--ink); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: var(--bg); }
.faq .answer { padding: 0 3.5rem 1.6rem 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } .faq .answer { padding-right: 0; } }

/* ---------- Final CTA ---------- */
.cta { text-align: left; padding-bottom: clamp(3rem, 6vw, 5rem); }
.cta__row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.cta .icon-lg { width: clamp(84px, 9vw, 112px); border-radius: 24%; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(35,38,46,.5); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { padding-top: 3rem; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--ink); }
.footer__copy { color: var(--muted); }
.wordmark { font: 300 calc(min(100vw - 2 * var(--gutter), var(--max)) / 4.95)/0.8 var(--display); letter-spacing: -0.055em; white-space: nowrap; margin: clamp(2rem, 4vw, 3rem) 0 -0.12em; color: var(--ink); user-select: none; }
.wordmark .ital { color: var(--muted); }

/* ---------- Legal / text pages ---------- */
.page-hero { padding-top: clamp(8rem, 13vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero .label { display: block; margin-bottom: 1.4rem; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--section); align-items: start; }
.toc { position: sticky; top: 7rem; font-size: .88rem; }
.toc ol { list-style: none; display: grid; gap: .55rem; }
.toc a { color: var(--muted); transition: color .2s; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 3.2rem 0 1rem; scroll-margin-top: 7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.05rem/1.4 var(--sans); margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 1rem 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.prose li::marker { color: var(--line); }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.short { background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: 3rem; }
.short .label { display: block; margin-bottom: .8rem; }
.short p { font: 400 clamp(1.25rem, 2vw, 1.5rem)/1.4 var(--display); color: var(--ink) !important; letter-spacing: -0.01em; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 1rem 1.2rem; vertical-align: top; }
th { font: 500 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td { border-top: 1px solid var(--line); color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem; min-height: 240px; }
.contact-card.ink { background: var(--band); color: var(--band-ink); }
.contact-card.ink p { color: var(--band-muted); }
.contact-card .big { font: 300 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--display); letter-spacing: -0.02em; margin-top: auto; word-break: break-word; }
.contact-card p { color: var(--muted); }
.include { list-style: none; display: grid; gap: .6rem; counter-reset: inc; }
.include li { counter-increment: inc; display: grid; grid-template-columns: 2rem 1fr; color: var(--muted); }
.include li::before { content: "0" counter(inc); font: 500 .74rem/1.9 var(--sans); color: var(--ink); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Motion fallbacks ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-split] { visibility: hidden; }
.gsap [data-split] { visibility: visible; }
[data-reveal="clip"] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
}
