/* The public website, www.mychurchappservices.com (production fixes 6). Built around the logo's
   purple. No scripts and no external fonts or images: the CSP allows only this site's own files, and
   the illustrations are inline SVG. */
:root {
    --brand: #8b12f6;
    --brand-600: #7410d1;
    --brand-50: #f4ecff;
    --brand-100: #e9d8ff;
    --pink: #e3489b;
    --ink: #120c24;
    --ink-2: #1d1538;
    --text: #1b1530;
    --muted: #5d5873;
    --line: #e6e2f0;
    --soft: #f8f6fc;
    --white: #ffffff;
    --on-dark: #f2eefb;
    --on-dark-muted: #b9b0d4;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(18, 12, 36, .06), 0 8px 24px rgba(18, 12, 36, .08);
    --shadow-lg: 0 24px 60px rgba(18, 12, 36, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.gradient-text { background: linear-gradient(90deg, #c79bff, #ff8cc6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header: sticky, translucent */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 12, 36, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; font-size: .97rem; }
.nav a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav .nav-link-hide { display: none; }
@media (min-width: 760px) { .nav .nav-link-hide { display: inline; } }
.nav a.btn { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 1px solid transparent; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #b23cf0 60%, var(--pink) 120%); color: #fff; box-shadow: 0 8px 22px rgba(139, 18, 246, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(139, 18, 246, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--brand-100); background: var(--brand-50); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background:
    radial-gradient(900px 500px at 85% -10%, rgba(227, 72, 155, .35), transparent 60%),
    radial-gradient(800px 600px at 0% 0%, rgba(139, 18, 246, .55), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    padding: 72px 0 0; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee6a8; box-shadow: 0 0 0 4px rgba(94, 230, 168, .2); }
.hero .lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--on-dark-muted); max-width: 640px; margin: 0 auto 30px; }
.hero .actions { justify-content: center; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--on-dark-muted); }
.hero-shot { margin: 56px auto 0; max-width: 1000px; border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; background: #fff; }

/* Strip of highlights under the hero */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.strip div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.strip svg { width: 22px; height: 22px; flex: none; color: var(--brand); }

/* Sections */
section.band { padding: 88px 0; }
section.band.soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; color: var(--brand-600); background: var(--brand-50); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 560px) { section.band { padding: 64px 0; } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: 0 2px 4px rgba(18, 12, 36, .06), 0 18px 40px rgba(139, 18, 246, .12); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: 0 8px 18px rgba(139, 18, 246, .3); }
.icon svg { width: 24px; height: 24px; }

/* Alternating feature rows */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.split + .split { margin-top: 80px; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .split.reverse .split-media { order: -1; }
}
.split-copy p { color: var(--muted); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237410d1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.split-media { border-radius: 20px; padding: 28px; background: linear-gradient(135deg, var(--brand-50), #fff 60%); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Member app */
.app-band { color: var(--on-dark); background:
    radial-gradient(700px 400px at 100% 100%, rgba(227, 72, 155, .3), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(139, 18, 246, .45), transparent 60%),
    var(--ink); }
.app-band .split-copy p { color: var(--on-dark-muted); }
.app-band .eyebrow { background: rgba(255, 255, 255, .1); color: #e6d4ff; }
.app-band .checks li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23e6d4ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.phone { max-width: 300px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.3rem; font-weight: 600; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Call to action */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: 56px 32px; text-align: center; color: #fff; background:
    radial-gradient(500px 300px at 90% 10%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, #a52ee8 55%, var(--pink) 100%);
    box-shadow: 0 30px 60px rgba(139, 18, 246, .3); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta .actions { justify-content: center; }
@media (max-width: 560px) { .cta { padding: 40px 20px; } }

/* Plain pages (contact, terms, 404) */
.page-hero { color: var(--on-dark); background:
    radial-gradient(700px 300px at 10% 0%, rgba(139, 18, 246, .5), transparent 60%),
    radial-gradient(600px 300px at 100% 0%, rgba(227, 72, 155, .3), transparent 60%),
    var(--ink); padding: 64px 0 56px; }
.page-hero p { color: var(--on-dark-muted); margin: 0; font-size: 1.08rem; }
.page { padding: 56px 0 88px; }
.page .wrap { max-width: 860px; }
.page h2 { font-size: 1.3rem; margin-top: 1.8em; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.meta { color: var(--muted); }
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-grid .card h3 { margin-bottom: 4px; }
.contact-grid .card p { margin-bottom: 6px; }
.contact-grid a { font-weight: 600; word-break: break-word; }
.note-card { margin-top: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid .about { grid-column: 1 / -1; max-width: 460px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-grid .about { grid-column: auto; } }
.site-footer .brand { margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: .9em; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.legal p { margin: 0; }
