/* Bible Quiz — marketing landing page styles.
   Theme: deep navy + scripture gold + an energetic competition blue on clean,
   slightly-cool paper. Modern system sans for the UI, a serif voice for the one
   Scripture moment. Single stylesheet, no build step. System font stacks only
   (no web-font fetch → no font-block CLS/LCP). All visuals are CSS + inline SVG
   (zero raster images, apart from the official store badges) so the page stays
   small and fast on the church-basement Wi-Fi this app is built for. */

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Semantic aliases sourced from the brand package's canonical color tokens
     (styles/tokens.css → single source of truth: brand/colors/palette.md).
     tokens.css is linked before this file, so every --bq-* is already defined. */

  /* Cool paper surfaces */
  --bg:       var(--bq-paper);
  --bg-hi:    var(--bq-paper-high);
  --bg-lo:    var(--bq-paper-low);
  --surface:  var(--bq-surface);
  --ink:      var(--bq-ink);
  --ink-soft: var(--bq-ink-soft);
  --muted:    var(--bq-muted);
  --line:     var(--bq-line);
  --line-soft:var(--bq-line-soft);

  /* Scripture navy (dark bands) */
  --navy:     var(--bq-navy);
  --navy-2:   var(--bq-navy-600);
  --on-navy:  var(--bq-on-navy);
  --on-navy-muted: var(--bq-on-navy-muted);
  --on-navy-line:  var(--bq-on-navy-line);

  /* Competition blue (primary CTA / links) */
  --blue:        var(--bq-blue);
  --blue-strong: var(--bq-blue-600);
  --blue-deep:   var(--bq-blue-700);

  /* Scripture gold (accents, illumination) */
  --gold:        var(--bq-gold);
  --gold-soft:   var(--bq-gold-300);
  --gold-deep:   var(--bq-gold-700);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --maxw: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 68, 0.06), 0 1px 3px rgba(18, 36, 68, 0.08);
  --shadow-md: 0 4px 10px rgba(18, 36, 68, 0.08), 0 18px 40px rgba(18, 36, 68, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset / base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(120% 80% at 8% -5%, #ffffff, transparent 55%),
    radial-gradient(120% 90% at 100% 0%, #eef3fc, transparent 60%);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { text-wrap: balance; font-weight: 800; letter-spacing: -0.012em; overflow-wrap: break-word; }
p { text-wrap: pretty; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 0; }

/* ─── Layout primitives ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--soft { background: var(--bg-lo); border-block: 1px solid var(--line-soft); }
.section--warm { background: #eef3fc; border-block: 1px solid var(--line-soft); }

/* Eyebrow / kicker — uppercase with a gilt rule on each side */
.kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.kicker::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.kicker--center { justify-content: center; }
.kicker--on-dark { color: var(--gold-soft); }
.kicker--on-dark::before { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.kicker--on-dark::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.14;
  margin: 0 0 0.9rem;
  color: var(--navy);
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--muted);
  margin: 0;
}

/* ─── Buttons (competition blue) ─────────────────────────────────────────── */
.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  color: #f4f9ff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 1.02rem 1.85rem;
  border: 1px solid rgba(10, 40, 90, 0.35);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 74, 159, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), filter 160ms var(--ease);
  will-change: transform;
}
.cta:hover, .cta:focus-visible,
.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(17, 74, 159, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.cta:active, .btn:active { transform: translateY(0); }
.cta svg, .btn svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(31, 111, 224, 0.07);
  border-color: var(--blue);
  filter: none;
  box-shadow: none;
}
.btn--ghost-dark {
  background: transparent;
  color: var(--on-navy);
  box-shadow: none;
  border: 1.5px solid var(--on-navy-line);
}
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible {
  background: rgba(234, 241, 255, 0.08);
  border-color: var(--gold-soft);
  filter: none;
  box-shadow: none;
}
.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.85rem; border-radius: 8px; }
.cta--lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }

/* ─── Brand lockup (official horizontal logo SVG from assets/logo/) ───────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
}
.brand-lockup {
  display: block;
  width: auto;
  height: 2.1rem;
}
@media (min-width: 600px) { .brand-lockup { height: 2.25rem; } }
.site-footer .brand-lockup { height: 2.5rem; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-hi);
  color: var(--ink);
  min-height: min(86svh, 820px);
  display: grid;
  align-items: center;
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(3.5rem, 9vh, 6rem);
}
/* cool light wash */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 16% 10%, #ffffff, transparent 60%),
    radial-gradient(55% 45% at 86% 16%, #e9f1ff, transparent 60%),
    radial-gradient(80% 70% at 72% 105%, #e6eefb, transparent 60%);
}
/* faint 12-star seal watermark (official brand seal.svg) */
.hero__seal {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: min(82vw, 600px);
  height: auto;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}
/* soft bottom vignette to seat the hero on the next band */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 -90px 70px -64px rgba(18, 36, 68, 0.12);
  pointer-events: none;
}
.hero__content {
  max-width: 52rem;
  text-align: center;
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(2rem, 6.4vw, 4.5rem);
  line-height: 1.06;
  margin: 0;
  color: var(--navy);
}
.hero h1 .accent {
  color: var(--blue-strong);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 700;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 1.35rem auto 2.1rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust {
  margin: 2.4rem auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: min(100%, 40rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}
.hero__trust svg { flex: none; color: var(--gold-deep); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.25rem);
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--gold-deep);
  z-index: 1;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: bob 2.4s var(--ease) infinite; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ─── Value proposition ──────────────────────────────────────────────────── */
.value-prop {
  background: #eef3fc;
  border-block: 1px solid var(--line-soft);
  text-align: center;
}
.value-prop .container { max-width: 52rem; }
.value-prop h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.14;
  margin: 0 0 1.1rem;
  color: var(--navy);
}
.value-prop p {
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  margin: 0 auto;
  max-width: 44rem;
}

/* ─── Pillars (dark-plate engravings) ────────────────────────────────────── */
.pillars-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
/* Four live-now differentiators in a 2x2 grid (stacks to one column on phones). */
@media (min-width: 560px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }

.pillar {
  --accent: var(--gold-soft);
  --accent-2: var(--blue);
  --art-bg: #122444;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c7d3e8;
}
.pillar--practice { --art-bg: #122444; }
.pillar--anywhere { --art-bg: #16294c; }
.pillar--formats  { --art-bg: #112340; }
.pillar--connect  { --art-bg: #15284b; }

.pillar__art {
  position: relative;
  height: clamp(150px, 22vw, 178px);
  color: var(--accent);
  background: var(--art-bg);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(224, 168, 54, 0.4);
}
.pillar__art::before {
  /* warm gilt light from the top of the plate */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 50% 0%, rgba(224, 168, 54, 0.18), transparent 70%);
}
.pillar__art::after {
  /* cool blue glow rising from the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 50% 120%, rgba(31, 111, 224, 0.28), transparent 62%);
}
.motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.motif .a2 { stroke: var(--accent-2); }
.motif .a2f { fill: var(--accent-2); }

.pillar__body { padding: 1.6rem 1.6rem 1.85rem; }
.pillar h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.pillar__body p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ─── Audience grid (light cards with glyph badges) ──────────────────────── */
.audience-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 560px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }

.aud {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.aud:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c7d3e8;
}
.aud__badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #eaf1ff, #dde9fb);
  border: 1px solid #cfddf5;
  color: var(--blue-deep);
}
.aud__badge svg { width: 1.6rem; height: 1.6rem; }
.aud h3 { font-size: 1.12rem; margin: 0 0 0.4rem; color: var(--navy); }
.aud p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ─── Roadmap / coming soon (navy band of forward-looking cards) ─────────── */
.roadmap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-2);
  color: var(--on-navy);
}
.roadmap__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(72% 60% at 50% -8%, rgba(31, 111, 224, 0.24), transparent 62%);
}
.roadmap .section-head h2 { color: var(--on-navy); }
.roadmap .lead { color: var(--on-navy-muted); }

/* Editorial "vision" rows: each coming-soon feature gets a large hand-built SVG
   plate beside rich copy + capability bullets, alternating sides on wide screens. */
.vision {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.vrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 760px) {
  /* art slightly wider than the copy; even rows flip the art to the right */
  .vrow { grid-template-columns: 1.05fr 1fr; }
  .vrow:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
  .vrow:nth-child(even) .vrow__art { order: 2; }
  .vrow:nth-child(even) .vrow__body { order: 1; }
}

/* Dark gilt plate (mirrors the pillar engraving treatment) */
.vrow__art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #16294c, #0f1f3d);
  border: 1px solid rgba(224, 168, 54, 0.3);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(234, 241, 255, 0.06);
  color: var(--gold-soft); /* currentColor for the line art */
  transition: transform 240ms var(--ease), border-color 240ms var(--ease);
}
.vrow__art::before {
  /* warm gilt light from the top of the plate */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 50% -6%, rgba(224, 168, 54, 0.16), transparent 68%);
}
.vrow__art::after {
  /* cool blue glow rising from the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 88% at 50% 120%, rgba(31, 111, 224, 0.3), transparent 60%);
}
.vrow:hover .vrow__art {
  transform: translateY(-3px);
  border-color: rgba(224, 168, 54, 0.5);
}

.vscene {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}
.vscene .b  { stroke: var(--bq-blue-300); }
.vscene .bf { fill: var(--bq-blue-300); }
.vscene .gf { fill: var(--gold); }
.vscene .gs { stroke: var(--gold); }
.vscene .muted { opacity: 0.5; }

/* Copy side */
.vchip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 0.32rem 0.66rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.vrow__eyebrow {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.vrow h3 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.16;
  margin: 0 0 0.7rem;
  color: var(--on-navy);
}
.vrow__body > p {
  margin: 0;
  color: var(--on-navy-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
}

/* Capability bullets with a gilt check chip */
.vlist {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.vlist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--on-navy-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.vlist li strong { color: var(--on-navy); font-weight: 700; }
.vlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 7px;
  background-color: rgba(224, 168, 54, 0.14);
  border: 1px solid rgba(224, 168, 54, 0.34);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3c562' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.86rem;
}

/* ─── Scripture statement band (navy) ────────────────────────────────────── */
.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
}
.statement__glow {
  /* engraved-plaque keyline frame inset from the band edges */
  position: absolute;
  inset: clamp(0.9rem, 3vw, 1.85rem);
  z-index: -1;
  border: 2px double rgba(224, 168, 54, 0.34);
  border-radius: 4px;
  background: radial-gradient(60% 75% at 50% 0%, rgba(31, 111, 224, 0.22), transparent 70%);
}
.statement .container { max-width: 56rem; text-align: center; }
.statement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.32;
  font-weight: 600;
}
.statement blockquote .accent {
  font-style: italic;
  color: var(--gold-soft);
}
.statement .attribution {
  margin: 1.75rem 0 0;
  color: var(--on-navy-muted);
  font-size: 1rem;
}

/* ─── How it works (steps) ───────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.85rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #f4f9ff;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  border: 1px solid rgba(10, 40, 90, 0.3);
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ─── CTA band (navy) ────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-2);
  color: var(--on-navy);
  text-align: center;
}
.cta-band__glow {
  position: absolute;
  inset: clamp(0.9rem, 3vw, 1.85rem);
  z-index: -1;
  border: 2px double rgba(224, 168, 54, 0.34);
  border-radius: 4px;
  background: radial-gradient(60% 80% at 50% 120%, rgba(31, 111, 224, 0.3), transparent 64%);
}
.cta-band .container { max-width: 46rem; }
.cta-band h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.14;
  margin: 0 0 0.9rem;
}
.cta-band p {
  color: var(--on-navy-muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

/* ─── Get the app (paper) ────────────────────────────────────────────────── */
.get-app {
  text-align: center;
  background: var(--bg-lo);
  border-top: 1px solid var(--line-soft);
}
.get-app .container { max-width: 46rem; }
.get-app h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.get-app .lead { margin-bottom: 2.25rem; }
.get-app .cta { margin-bottom: 2.75rem; }
.badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}
.store-badge {
  display: inline-block;
  border-radius: 11px;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}
.store-badge img { display: block; width: auto; }
/* Official badges bake in different clear-space; size each so the visible
   buttons read at the same height. */
#mlp-app-store-badge-apple img { height: 44px; }
#mlp-app-store-badge-google img { height: 65px; }
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Native apps not published yet → badges shown as inert "coming soon" markers. */
.store-soon { margin: 0 0 1.75rem; }
.store-soon__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.store-soon__note {
  margin: 0 auto 1.2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.store-soon__label::before,
.store-soon__label::after {
  content: "";
  height: 1px;
  width: 2.2rem;
  background: var(--line);
}
.badges--soon { margin: 0; gap: 1.1rem; }
/* Each unreleased-store badge is shown grayscale + non-interactive with a gold
   "SOON" ribbon sashed across its top-right corner, so it can't be mistaken for a
   live download button. The grayscale filter is on the <img> only — the ribbon is
   the badge's own pseudo-element and stays vivid gold. overflow:hidden clips the
   band to the badge's rounded-rect corner, giving the true sash shape. */
.store-badge--soon {
  cursor: default;
  position: relative;
  overflow: hidden;
}
.store-badge--soon img {
  filter: grayscale(1);
  opacity: 0.5;
}
.store-badge--soon:hover,
.store-badge--soon:focus-visible {
  transform: none;
}
.store-badge--soon::after {
  content: "SOON";
  position: absolute;
  top: 6px;
  right: -30px;
  width: 88px;
  padding: 2px 0;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 1px 3px rgba(18, 36, 68, 0.3);
  pointer-events: none;
}
/* The official Google Play badge bakes ~41px (≈16%) of transparent clear-space on
   every side of its 646×250 canvas (visible button is only 564×168). At the 65px
   display height that's ≈11px of empty margin, which the corner ribbon would float
   out into. For the coming-soon marker only, crop that margin so the box hugs the
   visible button and the ribbon clips to the real corner — exactly like Apple's
   padding-free badge. Reverts automatically when --soon is removed at launch. */
#mlp-app-store-badge-google.store-badge--soon {
  width: 146px;
  height: 43px;
}
#mlp-app-store-badge-google.store-badge--soon img {
  /* Force the image to its natural rendered size; the global `img{max-width:100%}`
     reset would otherwise cap it to the 146px cropped box and squash the artwork,
     pulling its right edge inside the box and exposing the ribbon. Then shift the
     ~11px transparent top/left margin out of the (overflow:hidden) crop window. */
  width: 168px;
  height: 65px;
  max-width: none;
  margin: -11px 0 0 -11px;
}
.attribution {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* ─── Footer (navy) ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  border-top: 3px double var(--gold-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
@media (min-width: 720px) { .footer-brand { align-items: flex-start; } }
.footer-brand p { margin: 0; font-size: 0.94rem; max-width: 26rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.25rem;
  transition: color 140ms var(--ease);
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-soft); }
.copyright { color: var(--on-navy-muted); margin: 1.5rem 0 0; font-size: 0.85rem; }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
}
.legal h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.legal .updated { color: var(--muted); font-size: 0.92rem; margin: 0; }
.legal .placeholder-note {
  background: #fff6e2;
  border: 1px solid #f0dca6;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin: 1.25rem 0 2.5rem;
  color: #5e4a1e;
}
.legal h2 {
  font-size: 1.32rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  text-decoration: none;
}
.legal a.back:hover { text-decoration: underline; }

/* ─── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  text-align: center;
  padding: clamp(4rem, 14vw, 8rem) var(--pad);
  max-width: 36rem;
  margin: 0 auto;
}
.notfound h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.notfound p { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }

/* ─── Scroll-reveal (progressive enhancement; no-op without support) ─────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
