/* Liturgies, the public site (liturgies.app). System fonts only: nothing is loaded from elsewhere. */
:root {
  --bg: #F6F8FB; --surface: #FFFFFF; --sunk: #EEF2F7; --ink: #16202B; --muted: #566273; --line: #DCE2EA;
  --brand: #1E5A7E; --brand-ink: #FFFFFF; --brand-soft: #E3EEF6; --blue: #2F6FE4; --gold: #9A6A12; --gold-soft: #FBF1DC;
  --ok: #2B744A; --danger: #B3261E;
  --radius: 14px; --shadow: 0 1px 2px rgba(22,32,43,.06), 0 12px 32px rgba(22,32,43,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E141B; --surface: #151D27; --sunk: #1B2531; --ink: #E6EBF1; --muted: #9BA7B5; --line: #263241;
    --brand: #7FB3D9; --brand-ink: #0E141B; --brand-soft: #18293A; --gold: #E2B455; --gold-soft: #2A2416; --ok: #6FC08F; --danger: #F2827B;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.todo { background: #FFE08A; color: #3D2B00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.big { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .97rem; }
.site-nav ul a:hover { color: var(--ink); background: var(--sunk); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
/* Language switch: flag and short name, the current language highlighted. */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-size: .85rem; font-weight: 650; letter-spacing: .02em; min-height: 32px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22,32,43,.12); }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.footer-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* Phones: a hamburger that turns into a cross; the menu slides down and fades in, and back. */
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.burger { position: relative; width: 20px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .18s, top .26s cubic-bezier(.2,.7,.2,1); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: flex; position: absolute; inset: 68px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .22s ease, transform .26s cubic-bezier(.2,.7,.2,1), visibility 0s linear .26s; }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .22s ease, transform .26s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .site-nav li, .nav-actions { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
  .site-nav.open li, .site-nav.open .nav-actions { opacity: 1; transform: none; }
  .site-nav.open li:nth-child(2) { transition-delay: .03s; } .site-nav.open li:nth-child(3) { transition-delay: .06s; }
  .site-nav.open li:nth-child(4) { transition-delay: .09s; } .site-nav.open .nav-actions { transition-delay: .12s; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.05rem; }
  .nav-actions { flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav-actions .btn { flex: 1 1 auto; min-height: 46px; }
}

/* Hero: the text and buttons, then a worship team rehearsing with the app on a phone over the photo. */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background: radial-gradient(60% 50% at 15% 20%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
              radial-gradient(50% 45% at 90% 15%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-weight: 650; font-size: .9rem; margin-bottom: 18px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36rem; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .93rem; }
.reassure li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; padding: 0 56px 48px 0; } /* the phone sits bottom right, over the wall: both musicians stay in view */
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 200px; border-radius: 26px; padding: 6px; background: #0E141B;
  box-shadow: 0 24px 48px rgba(22,32,43,.3); }
.hero-phone img { border-radius: 20px; }
.hero-chip { position: absolute; left: -12px; top: 22px; margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 16px 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .88rem; line-height: 1.35; color: var(--muted); }
.hero-chip b { color: var(--ink); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); flex: none; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .lead { margin-inline: auto; }
  .cta-row, .reassure { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; padding: 0 40px 40px 0; }
  .hero-chip { left: 0; top: 14px; }
}
@media (max-width: 480px) { .hero-visual { padding: 0 28px 32px 0; } .hero-phone { width: 38%; border-radius: 20px; padding: 4px; } .hero-phone img { border-radius: 16px; } .hero-chip { font-size: .8rem; } }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.band .feature { background: var(--bg); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse .split-text { order: 2; }
.split-text p { color: var(--muted); font-size: 1.05rem; }
.split-text ul { padding: 0; list-style: none; margin: 0; }
.split-text li { padding-left: 28px; position: relative; margin: 8px 0; }
.split-text li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot.phone-shot { max-width: 320px; margin-inline: auto; border-radius: 26px; border: 8px solid #0E141B; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-text { order: 0; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.trust div { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.trust p { color: var(--muted); margin: 0; font-size: .97rem; }

.faq { max-width: 52rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 36px 16px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--muted); transition: transform .26s ease; }
.faq summary:hover { color: var(--brand); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.closing summary::after { transform: none; }
.faq details p { color: var(--muted); margin: 0; padding: 0 36px 18px 0; overflow: hidden; } /* its height animates (site.js) */

/* Request form */
.request { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .request { grid-template-columns: 1fr; } }
.request-text p { color: var(--muted); font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .93rem; }
label.field span.opt { font-weight: 400; color: var(--muted); }
input, textarea { font: 1rem/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.form-foot .small { flex: 1 1 260px; margin: 0; color: var(--muted); }
.form-msg { margin: 14px 0 0; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.sent { text-align: center; padding: 28px 8px; }
.sent .icon { margin: 0 auto 14px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }

.final { text-align: center; }
.final .card { max-width: 48rem; margin: 0 auto; padding: clamp(28px, 5vw, 48px); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--blue)));
  color: #fff; border: 0; }
.final .card p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.final .btn.primary { background: #fff; color: #16202B; }
.final .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* Text pages (privacy, terms, support) */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 20px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.doc .updated { color: var(--muted); }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1em; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.doc .table-wrap { overflow-x: auto; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.doc .toc ol { margin: 0; padding-left: 1.2em; }
.contact-card { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.5em 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; background: var(--surface); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { margin: 8px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .small { margin: 24px 0 0; }
