/* Gospel Sparks: shared styles for gospelsparks.com. Plain CSS, no build step. */

:root {
  --spark: #ff8c2e;
  --spark-deep: #e8661a;
  --ink: #211f3d;
  --cream: #fff9f0;
  --bg: #fff8ef;
  --bg-alt: #fff1e0;
  --card: #ffffff;
  --text: #211f3d;
  --soft: #5c5770;
  --line: rgba(33, 31, 61, 0.1);
  --shadow: 0 10px 30px rgba(60, 30, 20, 0.08), 0 2px 6px rgba(60, 30, 20, 0.05);
  --shadow-lg: 0 30px 60px rgba(70, 30, 30, 0.18), 0 8px 18px rgba(70, 30, 30, 0.1);
  --link: #c4520f;

  --sunrise: linear-gradient(135deg, #ff9e38 0%, #f24d6b 100%);
  --ocean: linear-gradient(135deg, #0d9ec7 0%, #214dcc 100%);
  --meadow: linear-gradient(135deg, #66c74d 0%, #0f8c6b 100%);
  --grape: linear-gradient(135deg, #945cf2 0%, #4d33b8 100%);
  --berry: linear-gradient(135deg, #f2478c 0%, #b32973 100%);
  --gold: linear-gradient(135deg, #ffc733 0%, #f5851a 100%);
  --sky: linear-gradient(135deg, #5cb8ff 0%, #3375eb 100%);
  --mint: linear-gradient(135deg, #4ddbb3 0%, #14999e 100%);
  --ember: linear-gradient(135deg, #fa6b33 0%, #c72438 100%);

  --radius: 26px;
  --wrap: 1140px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --bg-alt: #181829;
    --card: #21213a;
    --text: #fff6ea;
    --soft: #c3bfd2;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.3);
    --link: #ffae66;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 900; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 3px 8px rgba(242, 77, 107, 0.3); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-cta { margin-left: 8px; }
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 4px; }
  .header-cta { margin-left: auto; }
  .nav {
    order: 3; margin: 0 -20px; padding: 2px 20px 10px; gap: 20px; overflow-x: auto; scrollbar-width: none;
    white-space: nowrap; -webkit-overflow-scrolling: touch; width: calc(100% + 40px);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.95rem; }
  .nav .nav-desk { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--spark); color: #fff; box-shadow: 0 8px 20px rgba(255, 140, 46, 0.42); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 140, 46, 0.5); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(80, 20, 40, 0.22); }
.btn-ghost { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% 110%, rgba(148, 92, 242, 0.55), transparent 60%), var(--sunrise);
  padding: 64px 0 0;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; margin-bottom: 20px;
}
.hero h1 { text-shadow: 0 4px 24px rgba(120, 20, 40, 0.18); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 600; opacity: 0.97; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: 0.92rem; font-weight: 600; opacity: 0.92; margin: 0; }
.hero-note a { color: #fff; }

.hero-phones { position: relative; height: 600px; align-self: end; }
.hero-phones .phone { position: absolute; bottom: -70px; width: 250px; }
.hero-phones .p1 { left: 50%; transform: translateX(-50%); z-index: 3; bottom: -40px; width: 270px; }
.hero-phones .p2 { left: 2%; transform: rotate(-8deg); z-index: 2; }
.hero-phones .p3 { right: 2%; transform: rotate(8deg); z-index: 2; }

.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles svg { position: absolute; fill: #fff; opacity: 0.5; }

@media (max-width: 920px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phones { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 190px; bottom: -80px; }
  .hero-phones .p1 { width: 215px; bottom: -40px; }
  .hero-phones .p2 { left: 0; }
  .hero-phones .p3 { right: 0; }
}
@media (max-width: 480px) {
  .hero-phones { height: 400px; }
  .hero-phones .phone { width: 150px; bottom: -40px; }
  .hero-phones .p1 { width: 190px; bottom: -60px; }
  .hero-phones .p2 { left: -6px; }
  .hero-phones .p3 { right: -6px; }
}

/* ---------- Device frames ---------- */
.phone {
  background: #15142a; padding: 9px; border-radius: 46px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone img { border-radius: 38px; width: 100%; background: #fff; }
.tablet {
  background: #15142a; padding: 12px; border-radius: 34px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.tablet img { border-radius: 23px; width: 100%; }
.shot-card { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--soft); font-weight: 700; text-align: center; margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--soft); font-size: 1.12rem; font-weight: 600; }
.kicker { display: inline-block; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spark-deep); margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--spark); } }
@media (max-width: 640px) { section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* Two sides */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.side {
  position: relative; overflow: hidden; border-radius: 32px; padding: 36px; color: #fff;
  box-shadow: var(--shadow);
}
.side.teacher { background: var(--grape); }
.side.family { background: var(--meadow); }
.side .emoji { font-size: 3rem; line-height: 1; margin-bottom: 14px; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); }
.side h3 { font-size: 1.75rem; font-weight: 900; margin-bottom: 4px; }
.side .tag { font-weight: 800; opacity: 0.9; margin-bottom: 18px; }
.side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side li { display: flex; gap: 12px; font-weight: 600; line-height: 1.45; }
.side li::before { content: "✦"; flex: none; opacity: 0.85; }
@media (max-width: 820px) { .sides { grid-template-columns: 1fr; } .side { padding: 28px 24px; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-media { order: 2; }
.feature-copy p { color: var(--soft); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.checks .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--card); box-shadow: var(--shadow);
}
.checks strong { display: block; font-weight: 800; }
.checks span.t { color: var(--soft); font-size: 1rem; line-height: 1.5; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.media-pair .tablet:nth-child(2) { margin-top: 48px; }
.media-phones { display: flex; justify-content: center; gap: 22px; }
.media-phones .phone { width: 250px; }
.media-phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 72px; }
}
@media (max-width: 480px) {
  .media-phones { gap: 12px; }
  .media-phones .phone { width: 46%; padding: 6px; border-radius: 30px; }
  .media-phones .phone img { border-radius: 25px; }
  .media-pair { gap: 10px; }
  .media-pair .tablet { padding: 7px; border-radius: 20px; }
  .media-pair .tablet img { border-radius: 14px; }
}

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.game {
  border-radius: 24px; padding: 22px; color: #fff; min-height: 170px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.game .e { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)); margin-bottom: 6px; }
.game h3 { margin: 0; font-size: 1.25rem; }
.game p { margin: 0; font-weight: 600; font-size: 0.98rem; opacity: 0.95; line-height: 1.45; }
.helpers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 0.98rem;
}
.games-shots { display: flex; justify-content: center; gap: 28px; margin-top: 56px; }
.games-shots .phone { width: 250px; }
.games-shots .phone:nth-child(2) { margin-top: 40px; }
@media (max-width: 480px) {
  .games-shots { gap: 12px; }
  .games-shots .phone { width: 46%; padding: 6px; border-radius: 30px; }
  .games-shots .phone img { border-radius: 25px; }
}

/* Ages */
.ages { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.class-list li { border-radius: 16px; padding: 12px 14px; background: var(--bg-alt); font-weight: 800; line-height: 1.3; }
.class-list li small { display: block; font-weight: 700; color: var(--soft); font-size: 0.85rem; margin-top: 2px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; background: var(--spark); box-shadow: 0 0 0 5px color-mix(in srgb, var(--spark) 22%, transparent); }
.timeline strong { display: block; }
.timeline span { color: var(--soft); font-size: 0.98rem; }
.bands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 920px) { .ages { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .panel { padding: 22px; } .class-list { grid-template-columns: 1fr 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust .panel .big { font-size: 2.2rem; line-height: 1; display: block; margin-bottom: 14px; }
.trust .panel p { color: var(--soft); margin: 0; font-size: 1rem; }
@media (max-width: 920px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 800; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--spark) 18%, transparent); color: var(--spark-deep); font-weight: 900;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 36px; padding: 56px 32px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 10% 0%, rgba(255, 199, 51, 0.6), transparent 60%), var(--sunrise);
  box-shadow: var(--shadow-lg);
}
.cta-band img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(120, 20, 40, 0.3); }
.cta-band p { font-weight: 600; font-size: 1.12rem; max-width: 36em; margin: 0 auto 26px; }
.cta-band .small { font-size: 0.92rem; opacity: 0.92; margin: 16px auto 0; }
.cta-band .small a { color: #fff; }

/* ---------- Doc pages (support, privacy) ---------- */
.doc-hero { background: var(--sunrise); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.doc-hero p { font-weight: 600; font-size: 1.12rem; max-width: 40em; margin: 0; opacity: 0.96; }
.doc-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); }
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin-top: 2em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.6em; font-size: 1.15rem; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc .meta { font-weight: 700; color: var(--soft); }
.callout {
  background: var(--card); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: 24px 0;
  border-left: 6px solid var(--spark);
}
.callout p:last-child { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { text-decoration: none; }
.toc .chip { color: var(--text); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--spark); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.95rem; color: var(--soft); }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { max-width: 60em; margin: 0 0 10px; }
.copyright { margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.notfound .big { font-size: 5rem; line-height: 1; margin-bottom: 12px; }
.notfound p { color: var(--soft); font-size: 1.12rem; max-width: 30em; margin: 0 auto 26px; }

/* Teacher section: big iPads, checks in columns */
.media-pair.wide { max-width: 900px; margin: 0 auto 56px; }
.checks.grid3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 36px; max-width: 1080px; margin: 0 auto; }
.media-phones, .games-shots { align-items: flex-start; }
@media (max-width: 480px) { .checks.grid3 { grid-template-columns: 1fr; } .media-pair.wide { margin-bottom: 36px; } }
@media (max-width: 920px) { .sparkles svg:first-child { display: none; } }
.doc-hero .wrap { max-width: 780px; }

/* ---------- Use it on the web (homepage) ---------- */
.web-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.web-card {
  display: flex; flex-direction: column; gap: 6px; border-radius: 24px; padding: 22px; color: #fff; text-decoration: none;
  box-shadow: var(--shadow); min-height: 170px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.web-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.web-card .e { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)); margin-bottom: 6px; }
.web-card h3 { margin: 0; font-size: 1.3rem; }
.web-card p { margin: 0; font-weight: 600; font-size: 0.98rem; opacity: 0.96; line-height: 1.45; }
.web-card .go { margin-top: auto; padding-top: 8px; font-weight: 900; }
.web-note { text-align: center; color: var(--soft); font-weight: 700; margin: 26px 0 0; }
@media (prefers-reduced-motion: reduce) { .web-card, .web-card:hover { transition: none; transform: none; } }
