/* Sermon Sidekick site. Built on the AGC Studios site's system (same fonts,
   column, buttons, bands, store chooser), recolored with the app's own navy
   and gold. Tokens on :root, redefined for dark mode. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #171b33;
  --muted: #555a72;
  --line: #e2dfd4;
  --brand: #1f2858;
  --brand-ink: #ffffff;
  --gold: #a87516;
  --gold-soft: #e2b866;
  --purple: #6a45d4;
  --pink-text: #be185d;
  --blue: #2563c9;
  --pp-tint: #dff1fc;
  --pp-ink: #1d5f8a;
  --band-bg: #151a33;
  --band-card: #1f2547;
  --band-ink: #f4f2ff;
  --band-muted: #bcbad6;
  --band-line: #343a66;
  --band-accent: #e2b866;
  --ok: #1f7a4d;
  --bad: #b42318;
  --scrim: rgb(12 14 30 / 0.58);
  --shadow: rgb(21 26 51 / 0.3);
  --focus: #2563c9;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step-0: 1rem;
  --step-1: 1.18rem;
  --step-2: clamp(1.6rem, 3.4vw, 2.2rem);
  --step-3: clamp(2.35rem, 5.6vw, 3.9rem);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1124;
    --surface: #161a33;
    --surface-2: #1e2342;
    --ink: #eceaf6;
    --muted: #a9a8c3;
    --line: #2a2f52;
    --brand: #e2b866;
    --brand-ink: #151a33;
    --gold: #e9c27a;
    --gold-soft: #e9c27a;
    --purple: #ab94ff;
    --pink-text: #f472b6;
    --blue: #6fb0ff;
    --pp-tint: #10283a;
    --pp-ink: #9fd6f7;
    --band-bg: #181d3b;
    --band-card: #222850;
    --band-line: #383f6e;
    --ok: #5fd39a;
    --bad: #ff8a80;
    --scrim: rgb(3 4 12 / 0.72);
    --shadow: rgb(0 0 0 / 0.55);
    --focus: #6fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1124;
  --surface: #161a33;
  --surface-2: #1e2342;
  --ink: #eceaf6;
  --muted: #a9a8c3;
  --line: #2a2f52;
  --brand: #e2b866;
  --brand-ink: #151a33;
  --gold: #e9c27a;
  --gold-soft: #e9c27a;
  --purple: #ab94ff;
  --pink-text: #f472b6;
  --blue: #6fb0ff;
  --pp-tint: #10283a;
  --pp-ink: #9fd6f7;
  --band-bg: #181d3b;
  --band-card: #222850;
  --band-line: #383f6e;
  --ok: #5fd39a;
  --bad: #ff8a80;
  --scrim: rgb(3 4 12 / 0.72);
  --shadow: rgb(0 0 0 / 0.55);
  --focus: #6fb0ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.wrap {
  max-width: 70rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.agc { font-weight: 700; }
.agc .a { color: var(--purple); }
.agc .g { color: var(--pink-text); }
.agc .c { color: var(--blue); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
}
.button:hover { filter: brightness(1.12); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); filter: none; }
.text-link { font-weight: 600; color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark img { width: 34px; height: 34px; border-radius: 26%; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .button { min-height: 38px; padding: 7px 16px; font-size: 0.9rem; color: var(--brand-ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }
@media (max-width: 400px) { .wordmark { font-size: 1rem; } .wordmark img { width: 28px; height: 28px; } .nav { gap: 14px; } }
section[id], article[id] { scroll-margin-top: 80px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34rem 24rem at 86% 30%, color-mix(in srgb, var(--gold-soft) 22%, transparent), transparent 70%),
    radial-gradient(30rem 24rem at 0% 100%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-3); font-weight: 800; }
.hero h1 .soft { color: var(--gold); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 33rem; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; }
.facts-row li { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.stage { position: relative; height: 480px; min-width: 0; }
.card {
  position: absolute; bottom: 0; width: 46%; max-width: 240px; aspect-ratio: 360 / 782;
  border-radius: 26px; overflow: hidden; background: #151a33;
  box-shadow: 0 28px 50px -26px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
.card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card.back { left: 4%; bottom: 26px; transform: rotate(-7deg); }
.card.side { right: 4%; bottom: 26px; transform: rotate(7deg); }
.card.front { left: 50%; width: 50%; max-width: 260px; z-index: 2; transform: translateX(-50%); aspect-ratio: 480 / 810; }
.card .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink); font-size: 0.78rem; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 16px -10px var(--shadow);
}
.card .tag img { width: 24px; height: 24px; border-radius: 26%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px 48px; gap: 28px; }
  .stage { height: auto; aspect-ratio: 1.05; max-width: 480px; width: 100%; justify-self: center; }
}

/* Sections */
.section { padding-block: 72px; }
.section.tight { padding-top: 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 44rem; }
.section-head h2 { font-size: var(--step-2); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; align-content: start; }
.stack > p { color: var(--muted); max-width: 36rem; }
.tagline { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.18; text-wrap: balance; }
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.checks .tick { width: 22px; height: 22px; margin-top: 1px; }
.checks strong { font-weight: 600; }
.small-print { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .section { padding-block: 56px; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.section.alt .features li { background: var(--bg); }
.features .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.features h3 { font-size: 1.15rem; font-weight: 700; }
.features p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Screenshot strip */
.shots-wrap { position: relative; min-width: 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.shots li { flex: 0 0 auto; width: clamp(150px, 19vw, 200px); scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 360 / 782; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 30px -22px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.shots-note { font-size: 0.82rem; color: var(--muted); }

/* Silas */
.silas { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.silas img { width: 160px; height: 160px; border-radius: 28%; box-shadow: 0 18px 30px -20px var(--shadow); }
.silas h2 { font-size: 1.6rem; font-weight: 800; }
.silas p { color: var(--muted); margin-top: 8px; max-width: 40rem; }
@media (max-width: 600px) { .silas { grid-template-columns: minmax(0, 1fr); } .silas img { width: 112px; height: 112px; } }

/* Dark band */
.band { background: var(--band-bg); color: var(--band-ink); }
.band .wrap { padding-block: 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.band .eyebrow { color: var(--band-accent); }
.band h2 { font-size: var(--step-2); font-weight: 800; margin-top: 10px; }
.band .intro { display: grid; gap: 16px; min-width: 0; }
.band .intro p { color: var(--band-muted); font-size: var(--step-1); max-width: 32rem; }
.band .button { background: var(--band-accent); color: #151a33; }
.band .button.ghost { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 1.5px var(--band-line); }
.band .button.ghost:hover { background: rgb(255 255 255 / 0.08); }
.week { display: grid; gap: 12px; }
.week li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--band-card); border: 1px solid var(--band-line); border-radius: 18px; padding: 18px; }
.week .day { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-accent); padding-top: 4px; }
.week b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.week span { color: var(--band-muted); font-size: 0.95rem; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 60px; gap: 32px; } }
@media (max-width: 420px) { .week li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Kids panel (My Pew Pal) */
.kids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; border-radius: 28px; padding: 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--pp-tint) 80%, var(--bg)), var(--bg)); border: 1px solid var(--line); }
.kids .art { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; background: linear-gradient(180deg, #8fcdf2 0%, #cfeafb 62%, #fff4cf 100%); display: grid; place-items: end center; }
.kids .art img { width: 70%; max-width: 260px; margin-bottom: 16px; filter: drop-shadow(0 14px 16px rgb(30 60 90 / 0.25)); }
.kids .sun { position: absolute; top: 20px; right: 24px; width: 54px; height: 54px; border-radius: 50%; background: #ffd75e; box-shadow: 0 0 0 12px rgb(255 215 94 / 0.25); }
.kids .tick { stroke: var(--pp-ink); }
@media (max-width: 860px) { .kids { grid-template-columns: minmax(0, 1fr); padding: 22px; } }

/* Studio credit */
.studio { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.motto-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.98; letter-spacing: -0.03em; display: grid; gap: 4px; }
.motto-big span { color: var(--muted); font-weight: 500; }
.motto-big .a { color: var(--purple); }
.motto-big .g { color: var(--pink-text); }
.motto-big .c { color: var(--blue); }
@media (max-width: 860px) { .studio { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 600px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Page header for inner pages */
.page-head { padding-block: 56px 32px; position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(30rem 18rem at 90% 0%, color-mix(in srgb, var(--gold-soft) 20%, transparent), transparent 70%); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: var(--step-3); font-weight: 800; max-width: 20ch; }
.page-head h1 .soft { color: var(--gold); }
.page-head .lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.status-note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-size: 0.92rem; max-width: 44rem; }
.status-note .dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold); }
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.subnav .wrap { display: flex; gap: 22px; overflow-x: auto; padding-block: 10px; font-size: 0.92rem; white-space: nowrap; scrollbar-width: none; }
.subnav a { text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.steps .meta { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: 0 22px 40px -30px var(--shadow); }
.plan h3 { font-size: 1.35rem; font-weight: 800; }
.plan .who { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.plan dt { color: var(--muted); font-size: 0.92rem; }
.plan dd { margin: 0; text-align: right; }
.plan dd strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.plan dd span { font-size: 0.82rem; color: var(--muted); }
.plan p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.trial { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 24px; padding: 26px; border-radius: var(--radius); background: var(--band-bg); color: var(--band-ink); }
.trial .big { font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--band-accent); }
.trial .big small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 500; color: var(--band-muted); }
.trial h3 { font-size: 1.25rem; }
.trial p { color: var(--band-muted); margin-top: 8px; }
@media (max-width: 600px) { .trial { grid-template-columns: minmax(0, 1fr); } }

/* Disclosure */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold); }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { color: var(--muted); padding-bottom: 14px; }
details > p + p { padding-top: 0; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.form-card label { font-weight: 600; font-size: 0.95rem; }
.form-card input[type="text"], .form-card input[type="email"] {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; margin-top: 6px;
}
.form-card input:focus { border-color: var(--focus); outline: none; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400 !important; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--bad); }
.form-done { display: grid; gap: 10px; }
.form-done h3 { font-size: 1.3rem; color: var(--ok); }
.form-done p { color: var(--muted); }

/* Get page */
.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.get-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: grid; gap: 16px; align-content: start; }
.get-card.highlight { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: 0 22px 40px -30px var(--shadow); }
.get-card .app-id { display: flex; align-items: center; gap: 14px; }
.get-card .app-id img { width: 64px; height: 64px; border-radius: 26%; }
.get-card h2 { font-size: 1.6rem; font-weight: 800; }
.get-card .who { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.get-card > p { color: var(--muted); }
@media (max-width: 760px) { .get-grid { grid-template-columns: minmax(0, 1fr); } }

/* Store rows (also used in the chooser) */
.store-list { display: grid; gap: 10px; }
.store {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px; text-decoration: none; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
a.store:hover { border-color: var(--brand); }
.store svg.logo { width: 28px; height: 28px; }
.store .apple { fill: currentColor; }
.store .small { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.store .big { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.store .state { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.store .go { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.store[aria-disabled="true"] { opacity: 0.72; }

.chooser { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 26px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6); }
.chooser::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.chooser-inner { display: grid; gap: 18px; padding: 26px 22px 22px; }
.chooser-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.chooser-head img { width: 60px; height: 60px; border-radius: 26%; }
.chooser-head h2 { font-size: 1.35rem; font-weight: 800; }
.chooser-head p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.close-btn { align-self: start; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.close-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.chooser-note { font-size: 0.9rem; color: var(--muted); }

/* Legal pages */
.legal { padding-block: 48px 72px; }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; margin-bottom: 0.6rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; margin-bottom: 0.4rem; }
.legal p, .legal ul, .legal ol { margin-bottom: 0.9rem; color: var(--ink); }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal ol { list-style: decimal; padding-left: 1.4rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--gold); font-weight: 600; }
.legal .updated, .legal .muted { color: var(--muted); font-size: 0.92rem; }
.legal .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 44px 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 32px; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand p { color: var(--muted); }
.made-by { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.made-by img { height: 20px; width: auto; }
.made-by:hover { color: var(--ink); }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 24px 20px; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols a { text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.footer-cols a:hover, .to-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 0.9rem; }
.footer-base a { color: inherit; }
.to-top { text-decoration: none; color: var(--muted); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Web Bible */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap.narrow { max-width: 46rem; }
:root { --font-reading: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif; --red-letter: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --red-letter: #ff8f86; } }
:root[data-theme="dark"] { --red-letter: #ff8f86; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reader-head { padding-block: 36px 8px; }
.reader-head .wrap { display: grid; gap: 14px; }
.reader-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.reader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg, .size { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.size[hidden] { display: none; }
.seg a, .size button {
  min-height: 34px; min-width: 52px; padding: 5px 14px; border-radius: 999px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; cursor: pointer;
}
.seg a:hover, .size button:hover { color: var(--ink); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--line); }
.scripture { padding-block: 12px 48px; }
.scripture .wrap > p {
  font-family: var(--font-reading); font-size: calc(1.2rem * var(--reader-size, 1)); line-height: 1.75; margin-bottom: 1.1em; color: var(--ink);
}
.scripture .pericope { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.005em; margin: 1.8em 0 0.6em; color: var(--ink); }
.scripture .wrap > .pericope:first-child { margin-top: 0.6em; }
.scripture .v { border-radius: 4px; scroll-margin-top: 96px; }
.scripture .v:target { background: color-mix(in srgb, var(--gold-soft) 32%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-soft) 32%, transparent); }
.scripture .vn {
  font-family: var(--font-body); font-size: 0.62em; font-weight: 600; vertical-align: 0.5em; line-height: 0;
  color: var(--gold); text-decoration: none; padding-inline: 1px 2px;
}
.scripture .vn:hover { text-decoration: underline; }
.scripture .wj { color: var(--red-letter); }
.chapter-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.step-link { display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.step-link.next { text-align: right; }
.step-link:hover { border-color: var(--gold); }
.credit { margin-top: 28px; font-size: 0.85rem; color: var(--muted); }
.credit .text-link { font-weight: 500; }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--band-bg); color: var(--band-ink);
  font-size: 0.92rem; box-shadow: 0 8px 24px var(--shadow);
}
.toast[hidden] { display: none; }
.reader-band .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 56px; }

/* Book pages */
.book-page { padding-block: 16px 64px; }
.book-page .wrap { display: grid; gap: 18px; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); gap: 8px; }
.chapter-grid a {
  display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
.chapter-grid a:hover { border-color: var(--gold); color: var(--gold); }
.book-intro { display: grid; gap: 14px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-intro h2 { font-size: var(--step-2); font-weight: 800; }
.book-intro h3 { font-size: 1.1rem; margin-top: 8px; }
.book-intro .lede { font-size: var(--step-1); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.9rem; }
.key-verses, .passages, .results { display: grid; gap: 10px; }
.key-verses a, .passages a, .results a, .reader-links a, .plan-cards a, .continue-link {
  display: grid; gap: 4px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none;
}
.key-verses a:hover, .passages a:hover, .results a:hover, .reader-links a:hover, .plan-cards a:hover, .continue-link:hover { border-color: var(--gold); }
.key-verses b, .passages b, .results b, .reader-links b, .plan-cards b, .continue-link b { font-family: var(--font-display); font-size: 1.05rem; }
.key-verses span, .results span { font-family: var(--font-reading); color: var(--muted); line-height: 1.6; }
.passages span, .reader-links span, .plan-cards span, .continue-link span { color: var(--muted); }
.results mark { background: color-mix(in srgb, var(--gold-soft) 40%, transparent); color: var(--ink); border-radius: 3px; padding-inline: 1px; }

/* Bible home */
.lookup { display: flex; gap: 10px; max-width: 36rem; }
.lookup input {
  flex: 1; min-width: 0; min-height: 50px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.lookup input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.reader-cards { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.votd { grid-row: span 2; display: grid; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--band-bg); color: var(--band-ink); }
.votd .eyebrow { color: var(--band-accent); }
.votd blockquote { margin: 0; display: grid; gap: 12px; }
.votd blockquote p { font-family: var(--font-reading); font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.5; }
.votd .text-link { color: var(--band-accent); }
.votd-line { color: var(--band-muted); }
.continue { display: grid; gap: 8px; }
.continue[hidden] { display: none; }
.reader-links { display: grid; gap: 10px; }
.testament { display: grid; gap: 18px; padding-block: 28px; border-top: 1px solid var(--line); }
.testament h2 { font-size: var(--step-2); font-weight: 800; }
.book-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 22px 28px; }
.book-group { display: grid; gap: 8px; align-content: start; }
.book-group h3 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.book-group ul { display: grid; gap: 4px; }
.book-group a { text-decoration: none; font-weight: 500; }
.book-group a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .reader-cards { grid-template-columns: minmax(0, 1fr); } .votd { grid-row: auto; } }

/* Search, topics and plans */
.search-results { padding-block: 8px 64px; }
.search-results .wrap { display: grid; gap: 16px; }
.search-status { color: var(--muted); }
.search-results .button.ghost { justify-self: start; }
.topic-index { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-index a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 0.92rem; }
.topic-index a:hover { border-color: var(--gold); }
.topics .wrap { display: grid; gap: 40px; }
.topic { display: grid; gap: 12px; }
.topic h2 { font-size: var(--step-2); font-weight: 800; }
.topic > p { color: var(--muted); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 14px; }
.plan-cards a { height: 100%; align-content: start; }
.plan-cards .count { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.plan-progress { font-weight: 600; color: var(--gold); }
.plan-steps { display: grid; gap: 12px; }
.plan-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.plan-step > div { display: grid; gap: 6px; }
.plan-step a { display: grid; gap: 2px; text-decoration: none; }
.plan-step a b { font-family: var(--font-display); font-size: 1.1rem; }
.plan-step a span { color: var(--muted); }
.plan-step a:hover b { color: var(--gold); }
.plan-step .note { font-size: 0.95rem; }
.check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.plan-step:has(input:checked) a b { text-decoration: line-through; text-decoration-color: var(--muted); }
@media print {
  .site-header, .site-footer, .reader-tools, .chapter-steps, .reader-band, .toast, .chooser { display: none !important; }
  .scripture .wrap > p { font-size: 12pt; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .load { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
  .card { animation: deal 800ms cubic-bezier(0.25, 1.2, 0.4, 1) both; animation-delay: calc(250ms + var(--d, 0) * 110ms); }
  .kids .art img { animation: bob 4.8s ease-in-out infinite; transform-origin: 50% 90%; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes deal { from { opacity: 0; translate: 0 40px; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes reveal { from { opacity: 0.35; transform: translateY(24px); } }
