/* Site styles. Colors mirror the app's asset catalog (light and dark variants); every text pairing
   is checked for WCAG AA. No web fonts: the system rounded face, like the app. */

:root {
  color-scheme: light;
  --bg: #FFF8EC;
  --band: #F4ECDD;
  --surface: #FFFFFF;
  --line: #E6DCC8;
  --ink: #1C1D3A;
  --muted: #5A5B78;
  --indigo: #3D3FB8;
  --indigo-edge: #2A2C8A;
  --indigo-text: #3D3FB8;
  --indigo-tint: #E8E8F8;
  --gold: #F2B544;
  --gold-edge: #C98E1E;
  --gold-text: #8A5A00;
  --on-gold: #1C1D3A;
  --teal: #1B7F79;
  --teal-edge: #135C58;
  --teal-text: #135C58;
  --error: #B3261E;
  --locked: #D8D3C8;
  --locked-edge: #B9B3A6;
  --bezel: #1C1D3A;
  --focus: #3D3FB8;
  --glow: rgba(242, 181, 68, .34);
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12132B;
    --band: #181938;
    --surface: #1E2045;
    --line: #34366A;
    --ink: #F4F1EA;
    --muted: #B4B5CF;
    --indigo: #5557D6;
    --indigo-edge: #3A3CA8;
    --indigo-text: #A5A7FF;
    --indigo-tint: #2B2E66;
    --gold: #F2B544;
    --gold-edge: #B07A12;
    --gold-text: #F5C561;
    --teal: #1B7F79;
    --teal-edge: #125652;
    --teal-text: #5FD0C6;
    --error: #FFB4AB;
    --locked: #3A3C66;
    --locked-edge: #2A2C50;
    --bezel: #07081A;
    --focus: #F2B544;
    --glow: rgba(242, 181, 68, .18);
  }
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--indigo-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
strong { font-weight: 800; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -200px; z-index: 100;
  padding: 12px 18px; border-radius: 14px;
  background: var(--indigo); color: #FFFFFF; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .container { padding-inline: 24px; } }
.container.narrow { max-width: 860px; }

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

.site-header { background: var(--surface); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: inline-block; padding: 8px 12px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--indigo-tint); color: var(--indigo-text); }
@media (max-width: 520px) {
  .site-nav { margin-inline: -8px; }
  .site-nav a { padding: 6px 8px; font-size: 1rem; }
}

/* ---------- Buttons (chunky, with a darker bottom edge, like the app) ---------- */

.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; margin: 0 0 4px;
  border: 2px solid transparent; border-radius: 16px;
  background: var(--indigo); color: #FFFFFF;
  font: inherit; font-weight: 800; letter-spacing: .02em; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--indigo-edge);
}
.btn:hover, .button:hover { filter: brightness(1.07); }
.btn:active, .button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--indigo-edge); }
.btn:focus-visible, .button:focus-visible { outline-offset: 4px; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 4px 0 var(--gold-edge); }
.btn-gold:active { box-shadow: 0 0 0 var(--gold-edge); }
.btn-neutral, .button.secondary { background: var(--surface); color: var(--indigo-text); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-neutral:active, .button.secondary:active { box-shadow: 0 0 0 var(--line); }
.button:disabled { opacity: .55; cursor: default; filter: none; transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .button { transition: transform .08s ease-out, box-shadow .08s ease-out, filter .15s; }
}

.soon-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 4px;
  min-height: 48px; padding: .7em 1.2em; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-weight: 800; line-height: 1.2;
}
.soon-badge svg { width: 22px; height: 22px; flex: none; }

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

.section { padding-block: clamp(48px, 8vw, 96px); }
.band { background: var(--band); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow { margin: 0 0 .6em; color: var(--gold-text); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.page-hero { padding-block: clamp(40px, 7vw, 80px) clamp(16px, 3vw, 32px); }
.page-hero .lead { max-width: 720px; }

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

.hero { padding-block: clamp(36px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4rem); line-height: 1.05; }
.hero h1 .accent { color: var(--indigo-text); }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0 -10%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 24px 0 0; padding: 0; font-weight: 700; }
.ticks li + li { margin-top: 0; }
.ticks li::before { content: "\2713"; margin-right: .45em; color: var(--teal-text); font-weight: 900; }

/* ---------- Cards and grids ---------- */

.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); margin: 20px 0;
}
.card > :last-child { margin-bottom: 0; }
.chunky { box-shadow: 0 4px 0 var(--line); }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-cards > .card { margin: 0; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 > .card { margin: 0; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card p strong, .card li strong { color: var(--ink); }

.icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 16px; background: var(--indigo); color: #FFFFFF; box-shadow: 0 4px 0 var(--indigo-edge);
}
.icon svg { width: 28px; height: 28px; }
.icon.gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 4px 0 var(--gold-edge); }
.icon.teal { background: var(--teal); color: #FFFFFF; box-shadow: 0 4px 0 var(--teal-edge); }
.icon.small { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
.icon.small svg { width: 24px; height: 24px; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-top: 32px; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; box-shadow: 0 4px 0 var(--line); }
.stat strong { display: block; color: var(--indigo-text); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.7em; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal-text); font-weight: 900; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--indigo-tint); color: var(--indigo-text); font-size: .95rem; font-weight: 700; }

.note { margin: 20px 0; padding: 16px 20px; border-left: 6px solid var(--gold); border-radius: 12px; background: var(--surface); }
.note > :last-child { margin-bottom: 0; }
.fine { color: var(--muted); font-size: .95rem; }

/* ---------- Steps (numbered like path nodes) ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; margin: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); font-size: 1.25rem; font-weight: 900; box-shadow: 0 5px 0 var(--gold-edge);
}
.steps h3 { margin: 4px 0 .25em; }
.steps p { margin: 0; color: var(--muted); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.2fr .8fr; } }

/* ---------- Phone frames and screenshot slots ---------- */

.phone {
  position: relative; width: 100%; max-width: 280px; margin-inline: auto;
  aspect-ratio: 1290 / 2796; padding: 9px; border-radius: 44px;
  background: var(--bezel); border: 2px solid var(--line);
  box-shadow: 0 22px 44px -18px rgba(28, 29, 58, .45);
}
.phone img, .shot-placeholder { display: block; width: 100%; height: 100%; border-radius: 35px; }
.phone img { object-fit: cover; }
.shot-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 20px; text-align: center; background: var(--bg);
}
.shot-label { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.35; }
.shot-label strong { display: block; color: var(--ink); font-size: 1.05rem; }
.mini-path { display: grid; justify-items: center; gap: 14px; }
.mini-path span { display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); box-shadow: 0 5px 0 var(--gold-edge); }
.mini-path span:nth-child(2) { transform: translateX(-26px); }
.mini-path span:nth-child(3) { transform: translateX(16px); background: var(--indigo); box-shadow: 0 5px 0 var(--indigo-edge); outline: 4px solid var(--indigo); outline-offset: 6px; }
.mini-path span:nth-child(4) { transform: translateX(-10px); background: var(--locked); box-shadow: 0 5px 0 var(--locked-edge); }
.shot-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.shot-grid figure { margin: 0; text-align: center; }
.shot-grid .phone { max-width: 240px; }
figcaption { margin-top: 16px; font-weight: 800; }
figcaption span { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 400px) { .phone { max-width: 240px; } }

/* ---------- Parish teaser and calls to action ---------- */

.teaser {
  display: grid; gap: 24px; align-items: center; padding: clamp(24px, 5vw, 52px);
  border-radius: 28px; background: var(--indigo); color: #FFFFFF; box-shadow: 0 6px 0 var(--indigo-edge);
}
@media (min-width: 880px) { .teaser { grid-template-columns: 1.4fr 1fr; } }
.teaser h2, .teaser p, .teaser li { color: #FFFFFF; }
.teaser .checklist li::before { color: #FFFFFF; }
.teaser .actions { margin-top: 0; }
.teaser :focus-visible { outline-color: #FFFFFF; }

.cta { text-align: center; }
.cta .icon-img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 20px; display: block; box-shadow: 0 8px 0 var(--line); }
.cta .actions { justify-content: center; }
.cta p { max-width: 620px; margin-inline: auto; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; }
.faq summary {
  position: relative; padding: 16px 56px 16px 20px; border-radius: 16px;
  font-weight: 800; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 3px solid var(--indigo-text); border-bottom: 3px solid var(--indigo-text);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 20px 4px; color: var(--muted); }
.faq .answer strong { color: var(--ink); }

/* ---------- Pricing, facts, prose ---------- */

.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.price-grid .card { margin: 0; display: flex; flex-direction: column; }
.price { margin: .2em 0 .1em; color: var(--indigo-text); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.price-unit { margin: 0 0 1em; color: var(--muted); font-weight: 700; }
.tier-for { margin: 0; color: var(--gold-text); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.facts { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 2px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; }
.facts dt { font-weight: 800; padding-bottom: 0; }
.facts dd { border-bottom: 2px solid var(--line); color: var(--muted); }
@media (min-width: 640px) {
  .facts { grid-template-columns: minmax(0, 13rem) 1fr; }
  .facts dt { padding-bottom: 12px; border-bottom: 2px solid var(--line); }
}

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li + li { margin-top: .5em; }
.placeholder { color: #A32D2D; outline: 2px dashed #C0392B; outline-offset: 2px; border-radius: 3px; padding: 0 .25em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; text-decoration: none; }
.toc a:hover { background: var(--indigo-tint); }
.lang-switch { margin: 0 0 24px; font-weight: 700; }
.press-icon { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.press-icon img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 6px 0 var(--line); }
.copy-block { background: var(--surface); border: 2px dashed var(--line); border-radius: 16px; padding: 18px 20px; }
.copy-block > :last-child { margin-bottom: 0; }
.card.info p, .card.info li, .card.info dd { color: var(--ink); }
.card.info .fine { color: var(--muted); }
.page-body { padding-bottom: 72px; }
.legal-body { padding-block: 40px 72px; }

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

.site-footer { padding-block: 44px 32px; background: var(--surface); border-top: 2px solid var(--line); color: var(--muted); font-size: .97rem; }
.footer-top { display: grid; gap: 28px; }
@media (min-width: 880px) { .footer-top { grid-template-columns: 1fr 3fr; } }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { margin: 10px 0 0; }
.footer-title { margin: 0 0 10px; color: var(--ink); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--line); }
.footer-legal p { margin: 0 0 6px; }

/* ---------- Catechist dashboard (teach/) ---------- */

.dashboard { padding-block: 32px 64px; }
label { display: block; font-weight: 700; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  display: block; width: 100%; margin: 6px 0 14px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px;
}
input[type="checkbox"] { width: 1.2em; height: 1.2em; margin: 0 .45em 0 0; vertical-align: -.2em; accent-color: var(--indigo); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .92rem; }
td .button { min-height: 40px; padding: .45em .9em; }
#classes .card { overflow-x: auto; }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 700; }

/* Live quiz presenter: always dark, for projectors, in both themes. */
.present {
  position: fixed; inset: 0; z-index: 50; overflow: auto;
  display: flex; flex-direction: column; padding: 4vh 5vw;
  background: #12132B; color: #FFFFFF;
}
.present h2 { font-size: 4.5vh; margin: 0 0 3vh; }
.present .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh; flex: 1; }
.present .choice { border-radius: 2vh; display: flex; align-items: center; justify-content: center; font-size: 3.6vh; font-weight: 800; padding: 2vh; text-align: center; color: #FFFFFF; }
.present .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2vh; font-size: 2.4vh; }
.present .button { background: #5557D6; box-shadow: 0 4px 0 #3A3CA8; color: #FFFFFF; }
.present .button.secondary { background: #1E2045; border-color: #34366A; box-shadow: 0 4px 0 #34366A; color: #FFFFFF; }
.present :focus-visible { outline-color: #F2B544; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
