/* After Mass — website styles, matched to the Android app theme
   Colors: app/src/main/java/com/example/ui/theme/Color.kt
   Fonts:  Playfair Display (display), Lora (scripture/reading), Plus Jakarta Sans (UI) */

@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair_display.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus_jakarta_sans.ttf") format("truetype"); font-display: swap; }

:root {
  /* Parchment (light) */
  --parchment: #FAF7F2;
  --surface: #FFFFFF;
  --surface-variant: #F1EADF;
  --surface-container: #F6F1E8;
  --claret: #6B1D2F;
  --claret-container: #FCE8EC;
  --gold: #A67822;
  --gold-container: #F8EED7;
  --olive: #2B5B44;
  --ink: #211C1A;
  --ink-muted: #5D534D;
  --outline: #D9CFC2;
  /* Vigil (dark) */
  --vigil: #151210;
  --vigil-surface: #201B19;
  --vigil-variant: #2C2522;
  --rose-gold: #E9BA72;
  --candle: #F4EDE4;
  --candle-muted: #C2B6A9;
  --vigil-outline: #463D37;
  /* Liturgical seasons */
  --season-violet: #5D347A;
  --season-gold: #9F711A;
  --season-green: #285C42;
  --season-red: #961E2B;

  --display: "Playfair Display", "Times New Roman", serif;
  --reading: "Lora", Georgia, serif;
  --ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1120px;
  --read: 760px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(33,28,26,.06), 0 12px 32px -12px rgba(107,29,47,.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--claret); }
a:hover { color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.read { max-width: var(--read); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--claret); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.9rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }

/* Season ribbon — the four liturgical colors */
.ribbon { height: 4px; background: linear-gradient(90deg, var(--season-violet) 0 25%, var(--season-gold) 25% 50%, var(--season-green) 50% 75%, var(--season-red) 75% 100%); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,247,242,.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(217,207,194,.7);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--claret); font-family: var(--display); font-size: 1.4rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--claret); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink-muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
nav a:hover { color: var(--claret); }
nav a.pill { background: var(--claret); color: #fff; padding: 8px 16px; border-radius: 999px; }
nav a.pill:hover { background: var(--gold); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #ECC26E, var(--rose-gold)); color: #3A2A0E; box-shadow: 0 10px 24px -10px rgba(233,186,114,.8); }
.btn-gold:hover { color: #3A2A0E; }
.btn-ghost { border: 1px solid rgba(244,237,228,.55); color: var(--candle); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn small { display: block; font-weight: 400; font-size: .7rem; opacity: .8; line-height: 1; }
.btn span { line-height: 1.15; text-align: left; }

/* Hero */
.hero {
  position: relative; color: var(--candle);
  background: var(--vigil);
  min-height: min(92vh, 820px);
  display: flex; align-items: center; overflow: hidden;
  --s: var(--season-violet);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(21,18,16,.93) 0%, rgba(21,18,16,.74) 45%, rgba(21,18,16,.2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(80% 90% at 100% 40%, var(--s), transparent 70%); opacity: .38; mix-blend-mode: soft-light; transition: background 1.2s ease; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 88px; padding-bottom: 56px; }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--rose-gold); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--rose-gold); margin: 0 0 14px; }
.hero .lead { font-family: var(--reading); font-size: 1.2rem; color: var(--candle); opacity: .92; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: .82rem; color: var(--candle-muted); margin-top: 16px; }

/* Sections */
.section { padding: 96px 0; }
.section.tint { background: var(--surface-container); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--gold); }
.section-head p { font-family: var(--reading); color: var(--ink-muted); font-size: 1.1rem; margin: 0; }

/* Split: image + content */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.flip .art { order: 2; }
.art { position: relative; }
.art img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; }
.art .badge { position: absolute; left: 18px; bottom: -18px; background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .85rem; color: var(--ink-muted); }
.art .badge strong { display: block; color: var(--claret); font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 34px; margin: 14px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23A67822' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks strong { color: var(--ink); }
.checks span { color: var(--ink-muted); display: block; font-size: .95rem; }

/* Dark family section */
.vigil { background: var(--vigil); color: var(--candle); position: relative; overflow: hidden; }
.vigil::before { content: ""; position: absolute; inset: 0; background: url("/img/eucharist.webp") center/cover no-repeat; opacity: .12; }
.vigil .wrap { position: relative; }
.vigil h2, .vigil h3 { color: #fff; }
.vigil .section-head p { color: var(--candle-muted); }
.vigil .section-head .eyebrow { color: var(--rose-gold); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.vigil .card { background: rgba(32,27,25,.78); border-color: var(--vigil-outline); backdrop-filter: blur(6px); }
.vigil .card p { color: var(--candle-muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--gold-container); color: var(--gold); }
.vigil .icon { background: #473314; color: var(--rose-gold); }
.icon svg { width: 22px; height: 22px; }

/* Sacrament chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px auto 0; max-width: 860px; }
.chip { border: 1px solid var(--vigil-outline); color: var(--candle); border-radius: 999px; padding: 8px 16px; font-size: .9rem; background: rgba(44,37,34,.6); }

/* Scripture band */
.verse { background: var(--claret); color: #fff; text-align: center; padding: 72px 0; }
.verse blockquote { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 auto; max-width: 820px; line-height: 1.3; font-style: italic; }
.verse cite { display: block; margin-top: 16px; font-style: normal; color: var(--rose-gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--outline); position: relative; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--outline); border-radius: 22px; padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--display); font-size: 2.6rem; color: var(--ink); line-height: 1; margin: 6px 0 4px; }
.plan .price span { font-family: var(--ui); font-size: .95rem; color: var(--ink-muted); }
.plan .alt { color: var(--ink-muted); font-size: .88rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0 8px 26px; border-top: 1px solid var(--surface-variant); position: relative; font-size: .94rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan.featured { background: linear-gradient(160deg, #6B1D2F 0%, #521725 100%); border: 0; color: var(--candle); box-shadow: 0 30px 60px -24px rgba(107,29,47,.6); transform: translateY(-8px); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .price span, .plan.featured .alt { color: #F0A5B5; }
.plan.featured li { border-color: rgba(255,255,255,.12); }
.plan.featured li::before { color: var(--rose-gold); }
.plan .tag { position: absolute; top: -13px; left: 26px; background: var(--rose-gold); color: #3A2A0E; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-note { text-align: center; color: var(--ink-muted); font-size: .85rem; margin: 26px auto 0; max-width: 640px; }

/* Promise band */
.promise { background: var(--olive); color: #fff; }
.promise .split { gap: 48px; }
.promise h2 { color: #fff; }
.promise .checks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%239CD4B5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.promise .checks strong { color: #fff; }
.promise .checks span { color: #DEF0E6; }

/* Final CTA */
.final { position: relative; text-align: center; color: var(--candle); background: var(--vigil) url("/img/advent.webp") center/cover no-repeat; padding: 120px 0; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,16,.82), rgba(21,18,16,.9)); }
.final .wrap { position: relative; }
.final h2 { color: #fff; }
.final p { font-family: var(--reading); color: var(--candle-muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.final .cta-row { justify-content: center; }
.note { font-size: .85rem; color: var(--ink-muted); background: var(--surface); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; }

/* Legal / reading pages */
main.doc { padding: 56px 0 80px; }
main.doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
main.doc h2 { font-size: 1.45rem; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--outline); }
main.doc h3 { font-family: var(--ui); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin: 22px 0 6px; }
main.doc p, main.doc li { font-family: var(--reading); font-size: 1.02rem; }
.meta { color: var(--ink-muted); font-size: .9rem; margin: 0 0 28px; }
ul, ol { padding-left: 1.3em; }
li { margin: 5px 0; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--outline); padding: 12px 14px; font-family: var(--ui); }
th { background: var(--claret); color: #fff; font-weight: 600; }
.button { display: inline-block; background: var(--claret); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.button:hover { background: var(--gold); color: #fff; }

/* Footer */
footer.site { background: var(--vigil); color: var(--candle-muted); padding: 48px 0 40px; font-size: .88rem; }
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
footer.site .brand { color: var(--candle); }
footer.site a { color: var(--candle-muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--rose-gold); }
footer.site p { margin: 8px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .art { order: 0; }
  .grid, .steps, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  nav a:not(.pill) { display: none; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .btn { width: 100%; justify-content: center; }
}

/* Hero entrance: one orchestrated moment */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero .cta-row, .hero .fine { animation: rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.dropcap { float: left; font-family: var(--display); font-size: 3.4em; line-height: .82; color: var(--rose-gold); margin: .08em .1em 0 0; }
.intro { font-family: var(--reading); font-size: 1.1rem; color: var(--ink-muted); margin: 8px 0 0; }

.also { max-width: 1000px; margin: 72px auto 0; padding-top: 40px; border-top: 1px solid var(--vigil-outline); }
.also h3 { font-size: 1.5rem; margin: 0 0 24px; }
.also dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin: 0; }
.also dt { font-family: var(--display); color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.also dd { margin: 0; color: var(--candle-muted); font-size: .95rem; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--rose-gold); outline-offset: 3px; }
@media (max-width: 900px) { .also dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .also dl { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero .lead, .hero .cta-row, .hero .fine { animation: none; } }

/* ---------- Interactive layer ---------- */
:root { --ease: cubic-bezier(.2,.7,.2,1); }

/* Ribbon: the current season's band widens */
.ribbon.live { display: flex; background: none; height: 5px; }
.ribbon i { flex: 1; transition: flex 1.2s var(--ease); }
.ribbon i.on { flex: 3.2; }

header.site { transition: box-shadow .3s ease, background .3s ease; }
header.site.scrolled { box-shadow: 0 8px 24px -18px rgba(107,29,47,.5); background: rgba(250,247,242,.94); }

/* Hero art cross-fade with a slow drift */
.hero-art { position: absolute; inset: 0; }
.hero-bg { position: absolute; inset: -3%; background: center/cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 9s linear; }
.hero-bg.is-on { opacity: 1; transform: scale(1); }

/* The Church year selector */
.year { margin-top: 64px; max-width: 760px; }
.seasons { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(21,18,16,.55); border: 1px solid rgba(244,237,228,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: fit-content; position: relative; }
.seasons button { position: relative; font: 500 .9rem/1 var(--ui); color: var(--candle-muted); background: none; border: 0; padding: 11px 16px 11px 30px; border-radius: 999px; cursor: pointer; transition: color .2s ease, background .25s ease, transform .15s ease; }
.seasons button::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 1px rgba(244,237,228,.35); transition: box-shadow .4s ease, transform .4s var(--ease); }
.seasons button:hover { color: var(--candle); background: rgba(244,237,228,.07); }
.seasons button:active { transform: scale(.97); }
.seasons button[aria-selected="true"] { color: #fff; background: rgba(244,237,228,.13); }
.seasons button[aria-selected="true"]::before { transform: scale(1.25); box-shadow: 0 0 0 2px var(--rose-gold), 0 0 14px 2px var(--rose-gold); }
.seasons button:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 2px; }
.season-line { font-family: var(--reading); font-style: italic; color: var(--candle); opacity: .9; margin: 14px 0 0 6px; min-height: 1.6em; }
.season-line .today { color: var(--rose-gold); }
.season-line .caption { display: inline-block; transition: opacity .5s ease, transform .5s var(--ease); }
.season-line.swap .caption { opacity: 0; transform: translateY(6px); }
.year .progress { display: block; height: 2px; margin: 12px 0 0 6px; width: 180px; background: rgba(244,237,228,.15); border-radius: 2px; overflow: hidden; }
.year .progress span { display: block; height: 100%; width: 100%; background: var(--rose-gold); transform-origin: left; transform: scaleX(0); }
.year.paused .progress { opacity: 0; transition: opacity .4s ease; }

/* Buttons: tactile */
.btn { transition: transform .18s var(--ease), box-shadow .25s ease, background .2s ease, border-color .2s ease; }
.btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(233,186,114,.95); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
nav a.pill { transition: background .2s ease, transform .15s ease; }
nav a.pill:active { transform: scale(.96); }
nav a:not(.pill) { position: relative; }
nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
nav a:not(.pill):hover::after, nav a.here::after { transform: scaleX(1); }
nav a.here { color: var(--claret); }

/* Sunday features: pick one, the art follows */
.feature-art { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-variant); }
.feature-art .feat-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.feature-art .feat-img.is-on { opacity: 1; transform: none; }
.features { list-style: none; padding: 0; margin: 22px 0 0; border-left: 2px solid var(--surface-variant); }
.features li { margin: 0; }
.features button { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 12px 16px 12px 22px; margin-left: -2px; border-left: 2px solid transparent; border-radius: 0 12px 12px 0; transition: background .25s ease, border-color .3s ease; }
.features strong { display: block; font-weight: 600; color: var(--ink-muted); transition: color .2s ease; }
.features span { display: block; color: var(--ink-muted); font-size: .95rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s ease, margin .35s ease; }
.features button:hover { background: var(--surface-container); }
.features button:hover strong { color: var(--ink); }
.features button[aria-selected="true"] { border-left-color: var(--gold); background: var(--gold-container); }
.features button[aria-selected="true"] strong { color: var(--claret); }
.features button[aria-selected="true"] span { max-height: 6em; opacity: 1; margin-top: 4px; }
.features button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.features .tick { display: block; height: 2px; margin-top: 10px; background: rgba(166,120,34,.18); border-radius: 2px; overflow: hidden; }
.features .tick i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* One family's book: swipe through the years */
.book-shell { position: relative; max-width: 1000px; margin: 0 auto; }
.book { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; outline: none; }
.book::-webkit-scrollbar { display: none; }
.book.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.book:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 6px; border-radius: 16px; }
.moment { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; padding: 8px 0; transition: opacity .6s ease, transform .6s var(--ease); }
.moment:not(.is-on) { opacity: .35; transform: scale(.96); }
.moment-art { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--vigil-outline); }
.moment-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(233,186,114,.25); border-radius: 14px; pointer-events: none; }
.moment-art img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; transition: transform 1.6s var(--ease); pointer-events: none; }
.moment.is-on .moment-art img { transform: scale(1.03); }
.moment-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 12px; }
.moment-text p { color: var(--candle-muted); margin: 0; }
.moment-text .when { display: flex; align-items: center; gap: 10px; font-family: var(--reading); font-style: italic; color: var(--rose-gold); font-size: 1.05rem; margin: 0 0 8px; }
.moment-text .when::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--season); box-shadow: 0 0 0 2px var(--vigil), 0 0 0 3px var(--rose-gold); flex: none; }
.book-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.turn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(44,37,34,.7); border: 1px solid var(--vigil-outline); color: var(--candle); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease, opacity .2s ease; }
.turn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.turn:hover { border-color: var(--rose-gold); color: var(--rose-gold); }
.turn:active { transform: scale(.94); }
.turn:disabled { opacity: .3; cursor: default; border-color: var(--vigil-outline); color: var(--candle); }
.turn:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 3px; }
.pips { display: flex; gap: 10px; }
.pips button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--season); opacity: .35; cursor: pointer; transition: opacity .3s ease, transform .3s var(--ease), box-shadow .3s ease; }
.pips button[aria-current="true"] { opacity: 1; transform: scale(1.35); box-shadow: 0 0 0 2px var(--vigil), 0 0 0 3px var(--rose-gold); }

/* Steps: a line fills as they arrive */
.steps { position: relative; }
.steps-line { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--outline); overflow: hidden; margin-bottom: 4px; }
.steps-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--claret)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.steps.in .steps-line span { transform: none; }
.step { transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(166,120,34,.35); }

/* Pricing: yearly or monthly, cards respond to the pointer */
.billing { position: relative; display: flex; width: fit-content; margin: -16px auto 40px; padding: 4px; border-radius: 999px; background: var(--surface-variant); border: 1px solid var(--outline); }
.billing button { position: relative; z-index: 1; font: 600 .9rem/1 var(--ui); color: var(--ink-muted); background: none; border: 0; padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: color .25s ease; min-width: 104px; }
.billing button[aria-checked="true"] { color: #fff; }
.billing button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.billing .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--claret); box-shadow: 0 6px 16px -8px rgba(107,29,47,.7); transition: transform .4s var(--ease); }
.billing[data-period="month"] .thumb { transform: translateX(100%); }
.plans { perspective: 1200px; }
.plan { transition: transform .35s var(--ease), box-shadow .35s ease; transform-style: preserve-3d; will-change: transform; }
.plan:hover { box-shadow: 0 24px 48px -26px rgba(107,29,47,.45); }
.plan .price b { font-weight: 400; display: inline-block; min-width: 2.6ch; }
.plan .alt { transition: opacity .25s ease; }
.plan .alt.swap { opacity: 0; }

/* Joshua 24:15, word by word */
.illumine .w { opacity: .18; transition: opacity .6s ease, color .6s ease, text-shadow .6s ease; }
.illumine .w.lit { opacity: 1; }
.illumine .w.lit.glow { color: #FFE9C4; text-shadow: 0 0 18px rgba(233,186,114,.55); }
.illumine cite { opacity: 0; transition: opacity .8s ease .2s; }
.illumine.done cite { opacity: 1; }

@media (max-width: 900px) {
  .moment { grid-template-columns: 1fr; gap: 20px; }
  .year { margin-top: 44px; }
}
@media (max-width: 600px) {
  .seasons { border-radius: 20px; }
  .seasons button { padding: 10px 12px 10px 27px; font-size: .85rem; }
  .seasons button::before { left: 11px; }
  .billing { margin-top: -20px; }
}
@media (hover: none) { .features span { max-height: none; opacity: 1; margin-top: 4px; } .features button[aria-selected="true"] span { max-height: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg.is-on { transition: opacity .01s; transform: none; }
  .ribbon i, .seasons button, .seasons button::before, .season-line .caption, .feature-art .feat-img, .features span, .moment, .moment-art img, .steps-line span, .billing .thumb, .plan, .illumine .w, .illumine cite, .btn, .step { transition: none !important; }
  .feature-art .feat-img { transform: none; }
  .moment:not(.is-on) { transform: none; }
  .book { scroll-behavior: auto; }
  .illumine .w { opacity: 1; } .illumine cite { opacity: 1; }
  .year .progress { display: none; }
}
