/*
 * Search My Church public site: the Try One Sermon funnel's look.
 * Every color, font, size, radius and shadow is a token on :root, so the
 * look can change without touching page structure or copy.
 */

/* Self-hosted under the SIL Open Font License (public-site/fonts/OFL-*.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-v20-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/merriweather-v33-latin.woff2") format("woff2");
}

:root {
  /* Color */
  --page: #f5f0fa;
  --surface: #ffffff;
  --surface-soft: #faf7fd;
  --tint: #ece3f6;
  --tint-strong: #e1d4f0;
  --ink: #27193c;
  --muted: #5c4c6c;
  --quiet: #6b5c7c;
  --purple: #4a2088;
  --purple-deep: #3c1b72;
  --purple-night: #2b1750;
  --purple-bright: #6b3fb0;
  --on-purple: #ffffff;
  --on-purple-soft: #ece3f6;
  --line: #e1d6ed;
  --line-strong: #d4c6e4;
  /* Form control edges keep 3:1 against white and against the page. */
  --control-edge: #8a7a9e;
  /* Warm cream and gold carry the pastoral side of the look. */
  --cream: #fbf5ea;
  --cream-overlay: rgba(251, 245, 234, 0.9);
  /* A paper grain, barely there, like a Bible page. */
  --grain: url("/grain.svg");
  --gold: #dba016;
  --gold-soft: #fbf1d5;
  --gold-edge: #ecd9a0;
  --gold-ink: #6b4a00;
  --gold-glow: rgba(219, 160, 22, 0.14);
  --error: #a3261c;
  --error-soft: #fdf0ee;
  --tap: rgba(74, 32, 136, 0.12);
  --ring: 0 0 0 4px rgba(74, 32, 136, 0.18);
  --player-scrub: rgba(255, 255, 255, 0.28);
  --player-pill: rgba(18, 8, 36, 0.45);

  /* Type */
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--2: 0.8125rem;
  --step--1: 0.875rem;
  --step-ui: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);

  /* Shape */
  --radius-tag: 6px;
  --radius-sm: 8px;
  --radius-ctrl-sm: 10px;
  --radius: 12px;
  --radius-ctrl: 16px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-control: 0 1px 2px rgba(39, 25, 60, 0.06);
  --shadow-card:
    0 1px 2px rgba(39, 25, 60, 0.05), 0 12px 32px -20px rgba(74, 32, 136, 0.28);
  --shadow-lift:
    0 2px 6px rgba(39, 25, 60, 0.05), 0 24px 60px -28px rgba(74, 32, 136, 0.38);

  /* Space and layout */
  --gutter: 20px;
  --max: 1120px;
  --head-h: 64px;
  --section-y: clamp(64px, 4rem + 3vw, 112px);
  --section-y-tight: clamp(48px, 3rem + 2vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (min-width: 640px) {
  :root {
    --gutter: 40px;
  }
}

@media (min-width: 900px) {
  :root {
    --head-h: 76px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scrollbar-color: var(--control-edge) var(--page);
  background: var(--page);
}

body {
  margin: 0;
  background: var(--grain), var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--purple);
  -webkit-tap-highlight-color: var(--tap);
  touch-action: manipulation;
}

::selection {
  background: var(--tint-strong);
  color: var(--ink);
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

a:hover {
  color: var(--purple-deep);
  text-decoration-thickness: 2px;
}

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

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

.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 {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--purple);
  color: var(--on-purple);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--on-purple);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-ctrl);
  background: var(--purple);
  color: var(--on-purple);
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s var(--ease-out);
}

.btn:hover {
  background: var(--purple-deep);
  color: var(--on-purple);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--small {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-ctrl-sm);
  font-size: var(--step-ui);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--step-ui);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--head-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  font: 600 var(--step-ui) / 1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* Phones keep the logo and the button; the name stays for screen readers. */
@media (max-width: 439px) {
  .site-head .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.site-nav {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: var(--step-ui);
  font-weight: 500;
}

.site-nav a:not(.btn) {
  display: none;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--purple);
  text-decoration: underline;
}

@media (min-width: 760px) {
  .site-nav a.nav-call,
  .site-nav a.nav-resume {
    display: inline-flex;
  }
}

.site-nav a.nav-resume {
  white-space: normal;
  text-align: right;
}

@media (min-width: 1080px) {
  .site-nav a:not(.btn) {
    display: inline-flex;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
}

.section--tight {
  padding: var(--section-y-tight) 0;
}

.section--band {
  background:
    var(--grain),
    linear-gradient(
      180deg,
      var(--page),
      var(--surface) 96px,
      var(--surface) calc(100% - 96px),
      var(--page)
    );
}

.section-head {
  max-width: 44rem;
}

.section-head--center {
  margin: 0 auto;
  text-align: center;
}

.lead {
  max-width: 38em;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.section-head--center .lead {
  margin-inline: auto;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: var(--step--1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--control-edge);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--quiet);
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 var(--section-y);
  background:
    var(--grain),
    linear-gradient(180deg, var(--page) 0%, var(--cream) 70%, var(--page) 100%);
  position: relative;
  isolation: isolate;
}

/* A worship space, faint, fading out before the next section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/demo/hero-sanctuary.webp") right top / cover;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding-top: 72px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }
}

.hero h1 em,
.trial h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero .lead {
  margin-top: 20px;
  max-width: 34em;
}

/* On a phone the full example follows the box, so the small card is not repeated. */
@media (max-width: 979px) {
  .result--hero {
    display: none;
  }
}

.second-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step-ui);
}

/* ---------- Sermon link box ---------- */

.linkbox {
  margin-top: 32px;
}

.linkbox label {
  display: block;
  font-size: var(--step-ui);
  font-weight: 600;
}

.linkbox__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 560px) {
  .linkbox__row {
    flex-direction: row;
  }
}

.linkbox__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.linkbox__field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--quiet);
  pointer-events: none;
}

.linkbox input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-ctrl);
  background: var(--surface);
  color: var(--ink);
  font: 1rem var(--sans);
  box-shadow: var(--shadow-control);
  text-overflow: ellipsis;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.linkbox input::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.linkbox input:focus {
  outline: 2px solid transparent;
  border-color: var(--purple);
  box-shadow:
    0 0 0 1px var(--purple),
    var(--ring);
}

.linkbox input[aria-invalid="true"] {
  border-color: var(--error);
}

.linkbox .btn {
  flex: none;
}

.linkbox__help {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Polite feedback for an empty box or something that is not a link. */
.linkbox__msg:empty {
  display: none;
}

.linkbox__msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--error-soft);
  color: var(--error);
  font-size: var(--step-ui);
  font-weight: 500;
}

.linkbox__msg a {
  color: var(--error);
  font-weight: 600;
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--step--1);
}

/* In the hero the three stack, so none is left alone on a second line. */
.hero .reassure {
  flex-direction: column;
  gap: 6px;
}

.reassure li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reassure svg {
  width: 16px;
  height: 16px;
  color: var(--purple);
  flex: none;
}

/* ---------- Example result ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  background: var(--tint);
  color: var(--purple);
  font-size: var(--step--2);
  font-weight: 600;
  line-height: 1.5;
}

.tag svg {
  width: 14px;
  height: 14px;
}

.result {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.result__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: var(--step--2);
}

/*
 * The sample player is a picture of a video, not a control: it shows the
 * moment the sample answer points to, and a time button moves it there.
 */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      180deg,
      rgba(24, 13, 42, 0.15) 0%,
      rgba(24, 13, 42, 0.05) 40%,
      rgba(24, 13, 42, 0.85) 100%
    ),
    url("/demo/sermon-stage.webp") center / cover,
    var(--purple-night);
  color: var(--on-purple);
}

/* A later moment in the same sermon, shown when the later time is picked. */
.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(24, 13, 42, 0.15) 0%,
      rgba(24, 13, 42, 0.05) 40%,
      rgba(24, 13, 42, 0.85) 100%
    ),
    url("/demo/sermon-lectern.webp") center / cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.player--later::before {
  opacity: 1;
}

.player__now {
  position: absolute;
  left: 16px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--player-pill);
  color: var(--on-purple);
  font-size: var(--step--2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.player__title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 30px;
}

.player__title b {
  display: block;
  color: var(--on-purple);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.player__title span {
  color: var(--on-purple-soft);
  font-size: var(--step--2);
}

.scrub {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--player-scrub);
}

.scrub i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(var(--at, 0.57));
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}

/* The one authored moment: the answer's time jumps the video to its spot. */
@media (prefers-reduced-motion: no-preference) {
  .result--hero .scrub i {
    animation: jump-to-moment 1.4s var(--ease-out) 0.6s both;
  }
}

@keyframes jump-to-moment {
  from {
    transform: scaleX(0.04);
  }
}

/* A picked time flashes the bar so the jump is easy to see. */
.scrub--flash {
  animation: scrub-flash 0.9s var(--ease-out);
}

@keyframes scrub-flash {
  20% {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 12px 2px rgba(219, 160, 22, 0.8);
  }
}

.ask {
  padding: 18px;
}

.ask__q {
  display: inline-block;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tint);
  font-weight: 600;
  font-size: var(--step-ui);
  line-height: 1.45;
}

.ask__a {
  margin-top: 12px;
  font-size: var(--step-ui);
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--purple);
  font: 600 var(--step--2) / 1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}

.chip svg {
  width: 10px;
  height: 10px;
}

.chip--now,
.chip[aria-pressed="true"] {
  background: var(--gold-soft);
  border-color: var(--gold-edge);
  color: var(--gold-ink);
}

/* A time that moves the sample player (site.js turns the chips into buttons). */
button.chip {
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

button.chip:hover {
  border-color: var(--purple);
}

.example-hint {
  margin-top: 10px;
  color: var(--quiet);
  font-size: var(--step--2);
}

.example-note {
  margin-top: 14px;
  color: var(--quiet);
  font-size: var(--step--1);
}

/* ---------- Pastor quotes ---------- */

.quotes-section {
  padding-bottom: 0;
}

.quotes {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.quote {
  padding-top: 20px;
  border-top: 3px solid var(--purple);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ---------- Steps and cards ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section--band .step {
  background: var(--page);
}

.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--purple);
  font-size: var(--step--1);
  font-weight: 700;
}

.step .tag {
  min-height: 32px;
  margin-bottom: 16px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Cost ---------- */

.cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .cost {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
}

.price b {
  font-family: var(--serif);
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--muted);
  font-size: var(--step-1);
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

/* What happens after a church starts: two steps, a plain list. */
.after-title {
  margin-top: 40px;
  font-size: var(--step-1);
}

.after-title + p {
  margin-top: 8px;
  color: var(--muted);
}

.after-steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 1.4em;
  color: var(--muted);
}

.after-steps b {
  color: var(--ink);
}

.bands {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section:not(.section--band) .bands {
  background: var(--surface);
}

.bands caption {
  padding: 0 0 12px;
  font-weight: 600;
  text-align: left;
}

.bands th,
.bands td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.bands thead th {
  border-top: 0;
  color: var(--quiet);
  font-size: var(--step--2);
  font-weight: 600;
}

.bands td,
.bands thead th:last-child {
  text-align: right;
}

.bands td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.note {
  margin-top: 14px;
  color: var(--quiet);
  font-size: var(--step--1);
}

/* ---------- Two-column rows ---------- */

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .split--media {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
  }
}

.copy > * + * {
  margin-top: 16px;
}

.copy p {
  max-width: 36em;
  color: var(--muted);
}

.asked {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.asked li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--step-ui);
}

@media (max-width: 519px) {
  .asked li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.asked small {
  color: var(--quiet);
  font-size: var(--step--2);
  font-weight: 500;
}

/* The explainer video is portrait. */
.explainer {
  justify-self: start;
  width: 100%;
  max-width: 300px;
}

@media (min-width: 900px) {
  .explainer {
    justify-self: center;
  }
}

.explainer video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--purple-night);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.explainer figcaption {
  margin-top: 12px;
  color: var(--quiet);
  font-size: var(--step--1);
}

@media (min-width: 900px) {
  .explainer figcaption {
    text-align: center;
  }
}

/* ---------- Rules list ---------- */

.rules {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.rules > div {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .rules > div {
    grid-template-columns: minmax(0, 300px) minmax(0, 62ch);
    gap: 32px;
  }
}

.rules dt {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.rules dd {
  max-width: 62ch;
  color: var(--muted);
}

.subhead {
  margin-top: 56px;
  font-size: var(--step-2);
}

/* ---------- Questions ---------- */

.faq {
  max-width: 48rem;
  margin: 40px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq summary:hover h3 {
  color: var(--purple);
}

.faq details > p {
  max-width: 44em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* ---------- Closing call to action ---------- */

.close {
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The sanctuary, out of focus, under a cream veil. */
.close::before,
.close::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.close::before {
  inset: -40px;
  background: url("/demo/sermon-stage.webp") center / cover;
  filter: blur(14px);
}

.close::after {
  inset: 0;
  background: var(--grain), var(--cream-overlay);
}

.close .linkbox,
.close .second-action {
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}

.close .linkbox {
  margin-top: 32px;
}

.close .lead {
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.site-foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step-ui);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 820px) {
  .site-foot__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

.site-foot__title {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.site-foot ul {
  padding: 0;
  list-style: none;
}

.site-foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  color: var(--muted);
  text-decoration: none;
}

.site-foot li a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.site-foot__about p + p {
  margin-top: 12px;
}

.site-foot .brand {
  white-space: normal;
}

.site-foot__about .btn {
  margin-top: 20px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-top: 28px;
  margin-left: -10px;
}

.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
}

.social a:hover {
  color: var(--purple);
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: var(--step--1);
}

.site-foot--slim {
  padding: 24px 0;
}

.site-foot--slim .site-foot__legal {
  align-items: center;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.site-foot--slim .site-foot__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Trial page ---------- */

.trial {
  padding: 40px 0 var(--section-y);
}

@media (min-width: 900px) {
  .trial {
    padding-top: 64px;
  }
}

.trial h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3rem);
}

.trial__main {
  max-width: 46rem;
}

/* ---------- Call page ---------- */

.booking {
  padding: 40px 0 var(--section-y);
}

.booking h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3rem);
}

.booking__calendar {
  min-height: 720px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.booking__calendar iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.booking__alt {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--step-ui);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 40px 0 var(--section-y);
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: var(--step-3);
}

.prose .meta {
  margin-top: 8px;
  color: var(--quiet);
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: var(--step-2);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.0625rem;
}

.prose p,
.prose ul {
  margin-top: 0.8em;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose .summary {
  margin-top: 1.5em;
  padding: 4px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.prose .summary h2 {
  margin-top: 1em;
  padding-top: 0;
  border-top: 0;
}

.prose button {
  min-height: 44px;
  margin-right: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-ctrl-sm);
  background: var(--purple);
  color: var(--on-purple);
  font: 600 var(--step-ui) var(--sans);
  cursor: pointer;
}

.prose button:hover {
  background: var(--purple-deep);
}

/* ---------- Not found ---------- */

.lost {
  padding: 64px 0 var(--section-y);
}

.lost__links {
  display: grid;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.lost__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-head,
  .site-foot,
  .skip {
    display: none;
  }
}
