/* catechumensdepart.app: the public site. Same look as the app: a lapis
   mosaic vault, parchment panels in gold icon frames, Cinzel capitals. */

@font-face { font-family: "Cinzel Decorative"; font-weight: 900; font-display: swap; src: url(/site/fonts/CinzelDecorative_900Black.woff2) format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(/site/fonts/Cinzel_700Bold.woff2) format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 900; font-display: swap; src: url(/site/fonts/Cinzel_900Black.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/site/fonts/SourceSans3_400Regular.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/site/fonts/SourceSans3_600SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/site/fonts/SourceSans3_700Bold.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 900; font-display: swap; src: url(/site/fonts/SourceSans3_900Black.woff2) format("woff2"); }

:root {
  --ground: #14214d;
  --ground-deep: #0d1736;
  --on-ground: #f4ebd8;
  --on-ground-muted: #bcc5e0;
  --paper: #f4ebd8;
  --card: #fbf3e2;
  --ink: #17110d;
  --muted: #5e5246;
  --cinnabar: #a3172a;
  --gold: #e2a72e;
  --gold-deep: #b7801b;
  --gold-light: #f5d98b;
  --lapis: #1f3a8a;
  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --display: Cinzel, "Trajan Pro", Georgia, serif;
  --lockup: "Cinzel Decorative", Cinzel, Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  /* The vault: lapis tesserae, drawn once and tiled. */
  --tesserae: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='%2314214d'%3E%3Crect x='1' y='1' width='12' height='12' rx='1'/%3E%3Crect x='29' y='15' width='12' height='12' rx='1'/%3E%3Crect x='57' y='29' width='12' height='12' rx='1'/%3E%3Crect x='15' y='43' width='12' height='12' rx='1'/%3E%3Crect x='43' y='57' width='12' height='12' rx='1'/%3E%3C/g%3E%3Cg fill='%231c2c61'%3E%3Crect x='15' y='1' width='12' height='12' rx='1'/%3E%3Crect x='43' y='15' width='12' height='12' rx='1'/%3E%3Crect x='1' y='29' width='12' height='12' rx='1'/%3E%3Crect x='29' y='43' width='12' height='12' rx='1'/%3E%3Crect x='57' y='57' width='12' height='12' rx='1'/%3E%3C/g%3E%3Cg fill='%23172757'%3E%3Crect x='29' y='1' width='12' height='12' rx='1'/%3E%3Crect x='57' y='15' width='12' height='12' rx='1'/%3E%3Crect x='15' y='29' width='12' height='12' rx='1'/%3E%3Crect x='43' y='43' width='12' height='12' rx='1'/%3E%3Crect x='1' y='57' width='12' height='12' rx='1'/%3E%3C/g%3E%3Cg fill='%2311204c'%3E%3Crect x='43' y='1' width='12' height='12' rx='1'/%3E%3Crect x='1' y='15' width='12' height='12' rx='1'/%3E%3Crect x='29' y='29' width='12' height='12' rx='1'/%3E%3Crect x='57' y='43' width='12' height='12' rx='1'/%3E%3Crect x='15' y='57' width='12' height='12' rx='1'/%3E%3C/g%3E%3Cg fill='%23182a5e'%3E%3Crect x='57' y='1' width='12' height='12' rx='1'/%3E%3Crect x='15' y='15' width='12' height='12' rx='1'/%3E%3Crect x='43' y='29' width='12' height='12' rx='1'/%3E%3Crect x='1' y='43' width='12' height='12' rx='1'/%3E%3Crect x='29' y='57' width='12' height='12' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  /* A band of small gold crosses and cinnabar lozenges. */
  --crossband: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='30'%3E%3Cpath fill='%23e2a72e' transform='translate(1 7) scale(.16)' d='M34 2H66L57 39L61 43L98 34V66L61 57L57 61L66 98H34L43 61L39 57L2 66V34L39 43L43 39Z'/%3E%3Cpath fill='%23a3172a' d='M27 10L31 15L27 20L23 15Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground-deep) var(--tesserae); background-color: var(--ground-deep); color: var(--on-ground); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: var(--ink); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Type ---------- */
.lockup { font: 900 clamp(46px, 7.6vw, 104px)/1.02 var(--lockup); letter-spacing: -0.01em; margin: 0; text-transform: uppercase; }
.lockup span { display: block; }
.lockup .top { font-size: 0.62em; color: var(--on-ground); }
.lockup .bottom { color: var(--gold); }
.h2 { font: 900 clamp(36px, 5.2vw, 68px)/1.04 var(--display); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 22px; }
.h2 span { display: block; }
.h2 .second { color: var(--gold); }
.paper .h2 .second, .card .h2 .second { color: var(--cinnabar); }
.h3 { font: 900 22px/1.2 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; max-width: 34em; margin: 0 0 26px; }
p { margin: 0 0 14px; max-width: 38em; }
.muted { color: var(--on-ground-muted); }
.paper .muted { color: var(--muted); }
.small { font-size: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 26px; border-radius: 14px; border: 3px solid var(--gold); background: var(--cinnabar); color: var(--paper); font: 900 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); }
.btn.gold { background: var(--gold); color: var(--ink); border-color: var(--gold-light); }
.btn.plain { background: var(--card); color: var(--ink); }
.link { font-weight: 700; color: var(--on-ground); }

/* ---------- Bands ---------- */
.band { position: relative; padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; }
.paper { background: var(--paper); color: var(--ink); }
.vault { background: var(--ground) var(--tesserae); }
.crossband { height: 34px; background: var(--ink) var(--crossband) repeat-x; background-position: calc(50% + 9px) center; border-top: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); }
.photo-band { position: relative; color: var(--on-ground); }
.photo-band > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 23, 54, 0.94) 0%, rgba(13, 23, 54, 0.82) 45%, rgba(13, 23, 54, 0.25) 100%); }
.photo-band > .wrap { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 19px/1 var(--lockup); text-transform: uppercase; text-decoration: none; color: var(--on-ground); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--gold); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--on-ground); }
.nav-links a:hover { color: var(--gold-light); }
.nav-links .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }
.nav-links .btn { white-space: nowrap; }
@media (max-width: 520px) { .brand { font-size: 15px; } .brand svg { width: 20px; height: 20px; } .nav-links .btn { min-height: 40px; padding: 0 12px; font-size: 14px; width: auto; } }

/* ---------- Frames ---------- */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; border-radius: 42px; border: 10px solid #0b0806; background: #0b0806; box-shadow: 0 0 0 3px var(--gold), var(--shadow); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tv { position: relative; width: 100%; border: 14px solid #0b0806; border-radius: 18px; background: #0b0806; box-shadow: 0 0 0 3px var(--gold), var(--shadow); overflow: hidden; aspect-ratio: 16 / 10; }
.tv img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tv-stand { width: 26%; height: 18px; margin: 0 auto; background: #0b0806; border-radius: 0 0 10px 10px; box-shadow: 0 0 0 3px var(--gold); }
.card { position: relative; background: var(--card); color: var(--ink); border: 4px solid var(--gold); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid var(--cinnabar); border-radius: 10px; pointer-events: none; }
.caption { font-size: 15px; color: var(--on-ground-muted); margin-top: 14px; }
.paper .caption { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 900px); display: grid; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 23, 54, 0.97) 0%, rgba(13, 23, 54, 0.9) 34%, rgba(13, 23, 54, 0.45) 58%, rgba(13, 23, 54, 0.08) 85%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero .lead { color: var(--on-ground); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 26px; }
.join { display: flex; gap: 10px; align-items: stretch; max-width: 380px; }
.join label { display: block; font-weight: 700; color: var(--gold-light); font-size: 16px; margin-bottom: 8px; }
.join input { width: 150px; min-width: 0; flex: 1; height: 58px; border-radius: 14px; border: 3px solid var(--gold); background: var(--card); color: var(--ink); font: 900 26px/1 var(--display); letter-spacing: 0.2em; text-align: center; text-transform: uppercase; }
.join input::placeholder { color: #9c8e7c; letter-spacing: 0.15em; }
.phones { position: relative; height: clamp(520px, 52vw, 680px); }
.phones .phone { position: absolute; width: 56%; max-width: 300px; }
.phones .phone.back { top: 0; left: 4%; transform: rotate(-4deg); }
.phones .phone.front { bottom: 0; right: 2%; transform: rotate(3deg); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.step .phone { max-width: 220px; margin: 0 auto 20px; border-width: 8px; border-radius: 34px; }
.step-num { font: 900 44px/1 var(--display); color: var(--cinnabar); margin-bottom: 6px; }
.step p { font-size: 17px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font: 700 15px/1 var(--display); text-transform: uppercase; padding: 11px 15px; border-radius: 999px; border: 2px solid var(--gold); background: rgba(13, 23, 54, 0.6); }
.chips li b { color: var(--gold-light); font-weight: 700; }
.figure-pair { position: relative; display: grid; justify-items: center; }
.figure-pair .phone { max-width: 290px; }
.circle-photo { width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--gold); box-shadow: var(--shadow); }
.circle-photo img { width: 100%; height: 100%; object-fit: cover; }
.over { position: relative; }
.over .phone { position: absolute; right: -4%; bottom: -10%; width: 46%; max-width: 230px; border-width: 8px; border-radius: 32px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.trio .card p { font-size: 17px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; margin-top: 30px; }
.faq h3 { font: 700 20px/1.3 var(--display); margin: 0 0 6px; text-transform: none; }
.faq p { font-size: 17px; }

/* ---------- Final band and footer ---------- */
.final { text-align: center; }
.final::before { background: radial-gradient(ellipse at center, rgba(13, 23, 54, 0.9) 0%, rgba(13, 23, 54, 0.78) 55%, rgba(13, 23, 54, 0.6) 100%); }
.final .h2 span { display: block; }
.final p { margin: 0 auto 30px; }
footer { background: var(--ink); color: var(--on-ground-muted); padding: 34px 0 44px; font-size: 16px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot a { color: var(--on-ground); }
.foot-links { display: flex; gap: 22px; }

/* ---------- Motion: one reveal per block, nothing bounces ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Phones and tablets ---------- */
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-photo { inset: auto 0 0 0; height: 62%; }
  .hero-photo img { object-position: 70% center; }
  .hero-photo::before { background: linear-gradient(180deg, var(--ground-deep) 0%, rgba(13, 23, 54, 0.5) 40%, rgba(13, 23, 54, 0.2) 100%); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .phones { height: clamp(440px, 110vw, 600px); max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .faq { grid-template-columns: minmax(0, 1fr); }
  .photo-band::before { background: linear-gradient(180deg, rgba(13, 23, 54, 0.92) 0%, rgba(13, 23, 54, 0.78) 60%, rgba(13, 23, 54, 0.55) 100%); }
  .over .phone { right: 2%; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step .phone { max-width: 240px; }
  .join input { width: 120px; }
  .btn { width: 100%; }
  .join .btn { width: auto; }
}

/* ---------- Legal and support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.doc .card { padding: clamp(22px, 4vw, 44px); }
.doc h1 { font: 900 clamp(34px, 6vw, 54px)/1.05 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.doc h2 { font: 700 21px/1.3 var(--display); margin: 28px 0 6px; }
.doc p, .doc li { font-size: 17px; }

/* Parish license */
.price { max-width: 460px; margin-top: 8px; }
.price-line { font: 700 22px/1.2 var(--display); margin: 0 0 18px; }
.price-line b { font: 900 clamp(44px, 6vw, 60px)/1 var(--display); color: var(--cinnabar); margin-right: 6px; }
.price form { margin: 0; }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-list li { counter-increment: step; position: relative; padding: 18px 20px 18px 74px; background: rgba(13, 23, 54, 0.82); border: 2px solid var(--gold); border-radius: 14px; font-size: 18px; line-height: 1.5; color: var(--on-ground); }
.steps-list li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 900 20px/40px var(--display); text-align: center; }
.parish-code { font: 900 clamp(30px, 7vw, 46px)/1.1 var(--display); letter-spacing: 0.06em; color: var(--cinnabar); margin: 14px 0 18px; overflow-wrap: anywhere; }
.doc .join { margin-top: 10px; }
.doc .join input { text-transform: uppercase; letter-spacing: 0.08em; }
.hero .price, .hero .price .lead { color: var(--ink); }
.hero .price .muted, .hero .price .small { color: #5e5246; }
.hero .price a { color: var(--cinnabar); }
