/* Sermon Pipeline Media website.
   Colours are the locked logo's (brand/logo/COLORS.txt): navy, cream, amber, ink, white.
   Amber is the one accent: the dot, the buttons, the name. It is never body text on a
   light background (2.3:1 on white); on navy it reads at 7.9:1.
   Type is the logo's Avenir Next on Apple devices, Nunito Sans everywhere else. */

:root {
  --navy: #0F1826;
  --cream: #F4F1EA;
  --amber: #E3A008;
  --amber-hover: #F0B323;
  --ink: #1B2A41;

  /* light page */
  --bg: #FFFFFF;
  --bg-alt: #F4F1EA;
  --surface: #FFFFFF;
  --text: #1B2A41;
  --muted: #56627A;
  --line: #E4DFD4;
  --line-strong: #CEC7B7;
  --field-line: #7A8497;
  --error: #B42318;
  --focus: #1B2A41;

  /* navy bands (header, hero, closing, footer): the same in both themes */
  --band: #0F1826;
  --band-deep: #0A111C;
  --band-text: #F4F1EA;
  --band-muted: #AEB6C4;
  --band-line: rgba(244, 241, 234, 0.18);
  --band-line-strong: rgba(244, 241, 234, 0.42);

  --font: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 18px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111A29;
    --bg-alt: #152033;
    --surface: #1A2639;
    --text: #F4F1EA;
    --muted: #AEB6C4;
    --line: #26344B;
    --line-strong: #3A4A64;
    --field-line: #6A7B96;
    --error: #FF8A80;
    --focus: #E3A008;
    --band: #0B121E;
    --band-deep: #070C15;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111A29;
  --bg-alt: #152033;
  --surface: #1A2639;
  --text: #F4F1EA;
  --muted: #AEB6C4;
  --line: #26344B;
  --line-strong: #3A4A64;
  --field-line: #6A7B96;
  --error: #FF8A80;
  --focus: #E3A008;
  --band: #0B121E;
  --band-deep: #070C15;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.2rem); letter-spacing: -0.022em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem); letter-spacing: -0.016em; }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1rem; }

img, svg { max-width: 100%; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--amber); color: var(--navy); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Everything inside a navy band takes the band's colours; the focus ring turns amber. */
.band { background: var(--band); color: var(--band-text); --focus: var(--amber); }

.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
}
/* On a light page amber cannot carry text, so the label turns ink and the amber keeps its dot. */
.eyebrow-light { color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
.eyebrow-light::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; font-family: inherit; cursor: pointer;
  /* No transition. WebKit started one as the page opened, from its own blue link colour, and a
     renderer that pauses them (a background tab, a snapshot) left every button blue on navy. */
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { border-color: var(--band-line-strong); color: var(--band-text); background: transparent; }  /* as a <button>, too */
.btn-ghost:hover { border-color: var(--band-text); }
.btn-outline { border-color: var(--field-line); color: var(--text); background: transparent; }  /* a <button> would get the browser's grey */
.btn-outline:hover { border-color: var(--text); }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: 0.975rem; white-space: nowrap; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--band-line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; padding-block: 0.5rem; }

/* The full lockup, words and all (David's wife, 2026-09-26). Its file carries the brand's clear
   space, so the negative margin lines the drawing up with the page edge (25 of its 688 units). */
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-lockup { display: block; width: 250px; height: auto; margin-left: -9px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--band-text); }
.site-nav a:hover { text-decoration: underline; }

/* "Member login" (2026-10-07): outside the Main nav on purpose -- that nav hides on phones, and a
   returning member must find the way back on a phone too. There it takes its own short line, on
   the right under "Book a call". rel="nofollow" in the pages keeps /members/ out of search. */
.member-link { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--band-text); white-space: nowrap; }
.member-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .site-nav { display: none; }   /* the same three links are in the footer */
}
@media (max-width: 600px) {
  .header-row { flex-wrap: wrap; row-gap: 0; }
  .member-link { order: 3; flex-basis: 100%; text-align: right; font-size: 0.95rem; padding-block: 0.15rem 0.35rem; }
}
@media (max-width: 460px) {
  .header-row { gap: 1rem; }
  .brand-lockup { width: 180px; margin-left: -6px; }
}
@media (max-width: 350px) {
  .brand-lockup { width: 140px; margin-left: -5px; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; }
.hero-copy .actions { margin-top: 0.5rem; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.hero-note { color: var(--band-muted); font-size: 1rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The fan: one sermon in, seven places out. The lines are drawn in a stretched SVG
   beside an evenly spaced list, so each line lands on its own row at any size. */
.fan { margin: 0; }
.fan .eyebrow { margin-bottom: 1.25rem; }
.fan-body { display: grid; grid-template-columns: max-content minmax(44px, 1fr) max-content; }

.fan-source {
  align-self: center; display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
}
.fan-source span { max-width: 5.5em; text-align: right; }
.fan-source::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--amber); box-shadow: 0 0 0 6px rgba(227, 160, 8, 0.18);
}

.fan-mid { position: relative; }
.fan-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fan-lines path {
  fill: none; stroke: var(--band-text); stroke-opacity: 0.5; stroke-width: 2;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}

.fan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; }
.fan-list li { display: flex; align-items: center; gap: 0.8rem; min-height: 52px; }
.fan-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--band-text); margin-left: -4.5px;
}
.fan-name { display: block; font-weight: 600; line-height: 1.2; }
.fan-what { display: block; font-size: 0.85rem; color: var(--band-muted); line-height: 1.3; }

@media (max-width: 520px) {
  .fan-list li { min-height: 46px; gap: 0.6rem; }
  .fan-source { font-size: 0.95rem; gap: 0.6rem; }
  .fan-name { font-size: 1rem; }
}

/* The only motion: the sermon's dot breathes three times as the page opens. The diagram
   itself never animates in -- a browser that pauses animations (a background tab, a
   link-preview renderer) would otherwise show an empty space where it should be. */
@media (prefers-reduced-motion: no-preference) {
  .fan-source::after { animation: fan-breathe 2.4s ease-in-out 0.4s 3; }
}
@keyframes fan-breathe {
  50% { box-shadow: 0 0 0 11px rgba(227, 160, 8, 0.08); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4rem, 2.75rem + 5vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-rule .wrap { border-top: 1px solid var(--line); padding-top: clamp(4rem, 2.75rem + 5vw, 7rem); }
.section-rule { padding-top: 0; }
.section-intro { margin-top: 1rem; color: var(--muted); max-width: 40em; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.split-center { align-items: center; }
.split > div { display: grid; gap: 1.25rem; align-content: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.prose { display: grid; gap: 1.25rem; max-width: 38em; }
.kicker {
  font-weight: 700; font-size: 1.3rem; line-height: 1.35;
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem;
}
/* The logo's own ending, a short line out to the amber dot, used as a marker. */
.kicker::before, .promise::before {
  content: ""; flex: none; width: 46px; height: 14px;
  background:
    linear-gradient(var(--text), var(--text)) left center / 30px 3px no-repeat,
    radial-gradient(circle, var(--amber) 5.5px, transparent 6px) right center / 14px 14px no-repeat;
}

/* ---------- how it works ---------- */

.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.25rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px;
  background: var(--line-strong);
}
.step { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 1.25rem; row-gap: 0.5rem; }
.step-num {
  grid-row: span 2; position: relative; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--navy); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { align-self: center; }
.step p { color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .steps::before { left: 21px; right: 0; top: 20px; bottom: auto; width: auto; height: 2px; }
  /* Number, heading and text each on one shared row, so they line up across the four steps
     however many lines a heading takes. */
  .steps { grid-template-rows: repeat(3, auto); }
  .step { grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.75rem; align-content: start; }
  .step-num { grid-row: auto; margin-bottom: 0.5rem; }
  .step h3 { align-self: start; }
}

/* ---------- hear the difference (make-demo.py writes it, demos.js shows one at a time) ---------- */

.demo-tip { font-weight: 600; }
.demos { display: grid; gap: 1.25rem; }
.demo {
  display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.demo[hidden] { display: none; }   /* display: grid would otherwise beat the hidden attribute */
.demo-quote { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; }
.demo-meta { color: var(--muted); font-size: 0.975rem; }
.demo-note { font-size: 0.975rem; font-weight: 600; }
.demo-parts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem;
}
.demo-parts li {
  padding: 0.6rem 0.85rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 0.95rem; line-height: 1.35;
}
.demo-parts strong { display: block; }
/* What you're hearing right now. Navy on amber, the buttons' pairing. No transition: a
   renderer that pauses them would freeze the colours halfway, dark text on dark. */
.demo-parts li.is-now { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.demo audio { width: 100%; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.demo-count { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 460px) {
  .demo-parts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- promises ---------- */

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 3rem; max-width: 60rem; }
.promise { display: grid; gap: 0.75rem; align-content: start; }
.promise::before { margin-bottom: 0.5rem; }
.promise p { color: var(--muted); }
@media (max-width: 860px) {
  .promises { grid-template-columns: minmax(0, 1fr); }
}
/* "Get your time back": pastors, the church office, media volunteers side by side,
   then David's signed line under them. */
.promises-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; max-width: none; }
@media (max-width: 980px) {
  .promises-three { grid-template-columns: minmax(0, 1fr); max-width: 40em; }
}
.time-back-sign { margin-top: 3rem; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 980px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
}

.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem;
}
.tier-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.tier-num { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tier-reach { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.tier-reach svg { width: 60px; height: 40px; flex: none; }
.tier-reach path { fill: none; stroke: var(--text); stroke-opacity: 0.55; stroke-width: 1.5; stroke-linecap: round; }
.tier-reach .end { fill: var(--text); }
.tier-reach .src { fill: var(--amber); }

.tier h3 { font-size: 1.45rem; margin-top: 0.25rem; }
.price { display: flex; align-items: baseline; gap: 0.45rem; }
.amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-weight: 600; color: var(--muted); }
.setup { font-size: 0.95rem; color: var(--muted); margin-top: -0.35rem; }
.tier-desc { margin-top: 0.25rem; }
/* Side by side, each part of a tier shares one row with the same part of the others, so the
   three prices line up however many lines a tier's name takes. */
@media (min-width: 981px) {
  .tiers { grid-template-rows: repeat(6, auto); }
  .tier { display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start; }
}

.ticks {
  list-style: none; margin: 0.5rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 0.65rem;
}
.ticks li { position: relative; padding-left: 1.35rem; font-size: 1rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}

.price-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 4rem; }
@media (max-width: 860px) {
  .price-lists { grid-template-columns: minmax(0, 1fr); }
}
.price-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.pl-group {
  margin-top: 1.75rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.pl-group + .price-list { margin-top: 0.6rem; }
.price-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem;
  padding-block: 1rem; border-top: 1px solid var(--line-strong);
}
.pl-name, .pl-price { font-weight: 700; }
.pl-price { font-variant-numeric: tabular-nums; text-align: right; }
.pl-desc { grid-column: 1 / -1; margin-top: 0.3rem; color: var(--muted); font-size: 1rem; }

.pricing-cta { margin-top: 3.5rem; border-radius: var(--radius); padding: 1.5rem 1.75rem; display: grid; gap: 1.5rem; }
.pricing-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pricing-cta-row + .pricing-cta-row { border-top: 1px solid var(--band-line); padding-top: 1.5rem; }   /* the already-sure row */
.pricing-cta p { font-weight: 600; font-size: 1.15rem; max-width: 34em; }

/* ---------- proof: a week at Mercy and Grace ---------- */

.proof-links { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.proof-links a { font-weight: 700; }

.week-title { font-size: 1.05rem; margin-bottom: 0.25rem; }
.week {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.day { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.55rem 1.1rem; border-left: 1px solid var(--line); min-height: 180px; }
.day:first-child { border-left: 0; }
.day-name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ev { font-size: 0.8rem; line-height: 1.3; padding: 0.45rem 0.5rem; border-radius: 8px; font-weight: 600; }
.ev-service { background: var(--text); color: var(--bg); }
.ev-live { background: var(--amber); color: var(--navy); }
.ev-clip { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; margin-top: auto; }
.week-note { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 700px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  .day { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 0.75rem 1rem; }
  .day:first-child { border-top: 0; }
  .day-name { width: 3.25rem; }
  .ev-clip { margin-top: 0; margin-left: auto; }
}

/* ---------- questions ---------- */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 4rem; margin-top: 3rem; }
.qa { display: grid; gap: 0.6rem; align-content: start; }
.qa h3 { font-size: 1.2rem; }
.qa p { color: var(--muted); }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- closing band ---------- */

.cta { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.cta .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.cta h2 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4rem); letter-spacing: -0.022em; line-height: 1.05; }
.cta .accent { color: var(--amber); }
.cta p { font-size: 1.2rem; max-width: 34em; text-wrap: pretty; }   /* no one-word last line */
.cta .actions { margin-top: 0.5rem; }
/* Under "Create your free account" (2026-11-02): no payment until signing, and talking first for whoever would rather. */
.no-pay { color: var(--band-text); font-weight: 600; margin-top: 0.25rem; }
.talk-first { color: var(--band-muted); }
.talk-first a { color: var(--band-text); font-weight: 600; }
.cta-mail { color: var(--band-muted); }
.cta-mail a { color: var(--band-text); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.site-footer { background: var(--band-deep); padding-block: 3rem 2rem; border-top: 1px solid var(--band-line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem 3rem; }
.footer-mark { display: block; width: 150px; height: auto; aspect-ratio: 3 / 1; margin-left: -3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.site-footer a { color: var(--band-text); text-decoration: none; font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--band-line);
}
.copyright { color: var(--band-muted); font-size: 0.9rem; }
.footer-bottom a { font-size: 0.9rem; font-weight: 600; }

/* ---------- privacy policy, terms of service ---------- */

.page-head { padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem); }
.page-head .wrap { display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.5rem); }
.page-date { color: var(--band-muted); }

.legal > * { max-width: 42em; }
.legal h2 { font-size: 1.5rem; margin-top: 3rem; }
.legal h2 + p, .legal h2 + ul { margin-top: 1rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; margin-block: 1rem 0; }
.legal li + li { margin-top: 0.6rem; }
.legal li::marker { color: var(--muted); }
.legal a { font-weight: 600; overflow-wrap: anywhere; }
.legal .note { color: var(--muted); }
.legal address { font-style: normal; margin-top: 1rem; }

.summary { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.summary h2 { font-size: 1.2rem; margin: 0; }
.summary .ticks { border-top: 0; padding: 0; margin-top: 1rem; }
.summary .ticks li { font-size: 1.0625rem; }
.summary .ticks li + li { margin-top: 0; }

/* ---------- contact ---------- */

.page-lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.page-head .actions { margin-top: 0.75rem; }
.thanks { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.contact-form { display: grid; gap: 1.4rem; max-width: 40em; }
.form-note { color: var(--muted); font-size: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
/* 1.125rem keeps the text at 18px, so iPhone Safari doesn't zoom in on focus. */
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--field-line); border-radius: 12px;
  padding: 0.7rem 0.9rem; min-height: 52px; width: 100%; margin: 0;
}
.field textarea { resize: vertical; min-height: 11rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; border-color: var(--text); }
/* Only after the reader has left the field or pressed Send, never while the page opens. */
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); border-width: 2px; }
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }

.contact-aside {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.75rem;
  display: grid; gap: 1rem;
}
.contact-aside h2 { font-size: 1.5rem; }
.contact-mail { color: var(--muted); font-size: 1rem; }
.contact-mail a { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- members: choose how your sermons sound (website/make-sound-pick.py) ---------- */

.pick-wrap { display: grid; gap: 2rem; }
/* The church's own logo, on white in both themes: most are drawn for a light page. */
.church-mark {
  margin: 0; justify-self: start; background: #FFFFFF;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem;
}
.church-mark img { display: block; width: min(240px, 60vw); height: auto; }
.pick-form { display: grid; gap: 1.75rem; max-width: 46em; }
.pick-meta { color: var(--muted); }
.pick-options { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.25rem; }
.pick-options legend { padding: 0; margin-bottom: 0.25rem; }
.pick-options legend h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.pick {
  display: grid; gap: 0.85rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.pick h3 { font-size: 1.4rem; }
.pick p { color: var(--muted); }
.pick audio { width: 100%; }
.pick-choice {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  padding: 0.4rem 1.1rem 0.4rem 0.8rem; border: 1.5px solid var(--field-line); border-radius: 999px;
  background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer;
}
.pick-choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--navy); }
/* The chosen one: navy on amber, the buttons' pairing. No transition (see .demo-parts). */
.pick:has(input:checked) { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.pick:has(input:checked) .pick-choice { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.pick-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick-form .btn { justify-self: start; }
.pick-after { color: var(--muted); max-width: 40em; }

/* The help line under a question (the Before our call page, 2026-10-01). */
.field-hint { color: var(--muted); font-size: 1rem; margin: 0; }

/* The legal pages (rewritten in a formal register, 2026-10-01): numbered sub-sections,
   and the line saying the summary does not control. */
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal h3 + p, .legal h3 + ul { margin-top: 0.6rem; }
.summary-note { font-size: 0.95rem; color: var(--muted); margin: 0.25rem 0 0.75rem; }

/* ---------- the members area (website/public/members/, 2026-10-02) ---------- */

.members .wrap { display: grid; gap: 1.5rem; }
.m-view[hidden], .members [hidden], .btn[hidden] { display: none; }   /* display: grid / inline-flex would beat the hidden attribute */
.m-view { display: grid; gap: 1.25rem; max-width: 46em; }
.members-alert { font-weight: 700; color: var(--error); max-width: 40em; }
.members-alert:empty { display: none; }
.members-alert.is-ok { color: var(--text); }
.members-note, .members-aside, .members-who { color: var(--muted); }
.members-form { display: grid; gap: 1.4rem; max-width: 32em; }
.members-form .btn { justify-self: start; margin-top: 0.25rem; }
.linkish {
  font: inherit; font-weight: 700; color: var(--text); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px;
}
.members-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem); font-size: 1.125rem;
}
.members-block { display: grid; gap: 1.25rem; }
.members-block + .members-block { margin-top: 2rem; }
.members-block h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
/* The agreement as the church reads it: the legal pages' look, its headings one step down. */
.agreement-doc { border-top: 1px solid var(--line); padding-top: 0.5rem; }
.agreement-doc h3 { font-size: 1.6rem; margin-top: 1.5rem; }
.agreement-doc h4 { font-size: 1.2rem; margin-top: 2rem; }
.agreement-doc h4 + p, .agreement-doc h4 + ul { margin-top: 0.75rem; }
.agreement-doc .who { margin-top: 1rem; }
.agreement-fold summary { font-weight: 700; cursor: pointer; padding-block: 0.6rem; }   /* stays a list item: flex would drop the triangle */
.agreement-fold[open] summary { margin-bottom: 0.5rem; }
.sign-form { border: 2px solid var(--text); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); max-width: 40em; }
.sign-form h3 { font-size: 1.4rem; }
.agree-row { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 700; }
.agree-row input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--text); }
/* The payment section: what is charged today, then each month. */
.bl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-width: 32em; }
.bl-items li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.bl-items .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-total { font-weight: 700; max-width: 32em; }
.bl-total:empty { display: none; }
/* Connect your accounts: one card per platform. */
.account-cards { display: grid; gap: 1.25rem; }
.acard { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem); display: grid; gap: 0.9rem; max-width: 46em; }
.acard h3 { font-size: 1.4rem; }
.acard h4 { font-size: 1.1rem; margin: 0.4rem 0 -0.4rem; }
.acard h5 { font-size: 1rem; margin: 0.3rem 0 -0.3rem; }
.acard .admin-help { display: grid; gap: 0.6rem; border-left: 3px solid var(--line); padding-left: 1rem; }
.acard ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.acard .astatus { font-weight: 700; }
.acard .astatus.is-done { color: var(--text); }
.acard.is-connected { border-color: var(--text); }
.acard .aactions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.acard .anote { color: var(--muted); font-size: 1rem; }
.acard .feed-box { display: grid; gap: 0.5rem; justify-items: start; }
.acard .feed-addr { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; margin: 0; }
/* Choose your sound (2026-10-03): a card per version, its player, and "None of these". */
.sound-versions { display: grid; gap: 1.25rem; }
.acard .look-pic { display: block; width: 100%; max-width: 40em; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.admin-bar { border: 2px solid var(--text); }
.admin-churches { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
/* The 20-minute calls on the admin page (2026-10-21). */
.admin-h { margin: 2rem 0 0.5rem; }
.admin-h:first-child { margin-top: 0; }
.fit-calls { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.fit-call h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.fit-call p { margin: 0.35rem 0; overflow-wrap: anywhere; }
.fit-call .aactions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.fit-call details { margin-top: 0.75rem; }
.fit-call pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0.5rem 0 0; }
.acard audio { width: 100%; max-width: 32em; }
.acard.is-chosen { border: 2px solid var(--text); }
.sound-wants { border: 0; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.sound-wants legend { font-weight: 700; padding: 0; margin-bottom: 0.5rem; }
.sound-wants .check { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.sound-wants input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; accent-color: var(--text); }
.field textarea#sound-words { min-height: 6rem; }
/* One area at a time (2026-10-06): the Menu (a button that opens a list of links), Home's list,
   Branding's link rows. Since 2026-11-02 (David's wife, testing) the Menu sits in the top bar beside
   Sign out, with an arrow, and opens as a dropdown over the page instead of pushing it down. On a phone
   the logo keeps the first line and Menu (left) + Sign out (right) share a second. */
.m-nav { position: relative; }
.m-menu-btn { gap: 0.5rem; }
.m-menu-arrow { flex: none; transition: transform 0.15s ease; }
.m-menu-btn[aria-expanded="true"] .m-menu-arrow { transform: rotate(180deg); }
.m-menu { list-style: none; margin: 0; padding: 0.5rem; display: grid; gap: 0.25rem;
  position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 20; width: min(22em, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(10, 17, 28, 0.35); }
@media (max-width: 600px) {
  .header-row.has-menu .brand { flex-basis: 100%; }
  .header-row.has-menu .m-nav { margin-right: auto; }
  .header-row.has-menu { padding-bottom: 0.75rem; }
  .m-menu { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) { .m-menu-arrow { transition: none; } }
.m-nav[hidden], .m-menu[hidden] { display: none; }   /* in the top bar, outside .members: display: grid would beat hidden */
.m-menu a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; align-items: baseline;
  min-height: 44px; padding: 0.6rem 0.8rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.m-menu a:hover, .m-menu a:focus-visible { background: var(--bg-alt); }
.m-menu a[aria-current="page"] { background: var(--bg-alt); box-shadow: inset 4px 0 0 var(--amber); }
.m-menu .m-state, .home-list .m-state { font-weight: 400; color: var(--muted); font-size: 1rem; }
.m-area { scroll-margin-top: 1rem; }
.home-go { margin: 0.75rem 0 0; }
.home-go:has(a[hidden]) { display: none; }
.home-list-title { font-size: 1.3rem; }
.home-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-width: 40em; }
.home-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; align-items: baseline;
  min-height: 44px; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 700; background: var(--bg-alt); }
.home-list a:hover, .home-list a:focus-visible { border-color: var(--text); }
.field select { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); min-height: 48px; max-width: 100%; }
.field select:focus-visible { outline-offset: 2px; border-color: var(--text); }
.br-links { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.br-links legend { font-weight: 700; padding: 0; margin-bottom: 0.25rem; }
.br-link { display: grid; gap: 0.75rem; grid-template-columns: minmax(8em, 1fr) minmax(12em, 2fr); }
@media (max-width: 560px) { .br-link { grid-template-columns: 1fr; } }
#f-brand { max-width: 46em; }
.field textarea#br-hashtags, .field textarea#ct-message { min-height: 6rem; }
.yt-code { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums; background: var(--surface); border: 2px solid var(--text);
  border-radius: 12px; padding: 0.4rem 1rem; justify-self: start; }

/* About your church (2026-11-02): every onboarding question, a part at a time, for a church that signed
   itself up. A set of choices is a plain fieldset; the small print sits between the question and its box
   (David's wife, testing 11-02), "Not sure yet" under the box. */
.about-form { max-width: 40em; }
.about-part { font-size: 1.4rem; margin: 1.25rem 0 -0.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about-part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#ab-fields { display: grid; gap: 1.4rem; }
.about-q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.about-q legend { font-weight: 700; padding: 0; margin-bottom: 0.5rem; }
.about-q .radio { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.about-q .radio input { width: 1.4rem; height: 1.4rem; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--text); }
.about-q .radio label { font-weight: 400; }
.about-q [aria-invalid="true"] { border-color: var(--error); outline: 2px solid var(--error); outline-offset: 2px; }
.about-q textarea { min-height: 6rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.about-actions .btn { margin-top: 0; }
.about-answers { display: grid; grid-template-columns: minmax(12em, 1fr) 2fr; gap: 0.5rem 1.25rem; max-width: 46em; margin: 0; }
.about-answers dt { font-weight: 700; }
.about-answers dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .about-answers { grid-template-columns: 1fr; } .about-answers dd { margin-bottom: 0.5rem; } }
