/* Kingdom Bible Quiz — static web pages (landing + quiz pages). */
:root {
  --bg: #0b0816;
  --bg-2: #120d24;
  --surface: #171130;
  --surface-2: #211942;
  --line: rgba(246, 190, 58, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #f6efdd;
  --muted: #b8afca;
  --dim: #8d84a3;
  --gold: #f6be3a;
  --gold-2: #ffd978;
  --purple: #7a5cff;
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --bad: #ef4444;
  --bad-bg: rgba(239, 68, 68, 0.14);
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(122, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(246, 190, 58, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-2); background: rgba(11, 8, 22, 0.94); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-size: 16px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--line-2); }
.nav .btn { color: #1b1204; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .brand span { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1b1204; font-weight: 800; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; font-size: 16px;
  box-shadow: 0 6px 24px rgba(246, 190, 58, 0.25);
}
.btn:hover { color: #1b1204; filter: brightness(1.05); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: #fff; border-color: var(--gold); }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px; padding: 7px 16px 7px 12px; font-weight: 700; font-size: 18px; line-height: 1.1;
}
.store-btn:hover { color: #fff; border-color: var(--gold); }
.store-btn small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }

/* Typography */
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 850; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 16px 0 0; }
.section { padding: 64px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-sub { color: var(--muted); margin: 8px 0 28px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-actions { margin-top: 28px; display: grid; gap: 18px; }
.hero-actions .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-shot { justify-self: center; width: min(340px, 100%); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-shot { width: min(300px, 80%); } }

/* Cards / grids */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: block; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 18px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.card h3 { font-size: 18px; font-weight: 750; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: var(--text); border: 1px solid var(--line-2); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.chip:hover { border-color: var(--gold); color: #fff; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; flex: 0 0 auto; border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; }

/* Quiz page */
.crumbs { font-size: 14px; color: var(--dim); margin: 28px 0 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.quiz-head { padding-bottom: 8px; }
.quiz-head h1 { font-size: clamp(32px, 5vw, 48px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.scorebar {
  position: sticky; top: 64px; z-index: 10; margin: 26px 0 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(23, 17, 48, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-weight: 700; font-size: 15px;
}
.scorebar .track { flex: 1; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.scorebar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.3s; }
html:not(.js) .scorebar { display: none; }

.quiz { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: q; }
.q { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; scroll-margin-top: 130px; }
.q-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.q-meta .lvl-1 { color: #7dd3a8; } .q-meta .lvl-2 { color: var(--gold); } .q-meta .lvl-3 { color: #f49b9b; }
.q h2 { font-size: 20px; font-weight: 700; margin: 10px 0 14px; line-height: 1.4; }
.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.opt {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 16.5px;
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.opt:hover:not([disabled]) { border-color: rgba(246, 190, 58, 0.6); background: rgba(246, 190, 58, 0.06); }
.opt[disabled] { cursor: default; }
.opt .letter { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--gold-2); }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.correct .letter { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .letter { background: var(--bad); color: #fff; }
.opt.faded { opacity: 0.55; }
.tf .opts { grid-template-columns: 1fr 1fr; }

.ans { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.ans summary { cursor: pointer; color: var(--gold-2); font-weight: 700; font-size: 15px; list-style: none; }
.ans summary::-webkit-details-marker { display: none; }
.ans summary::before { content: "▸ "; }
.ans[open] summary::before { content: "▾ "; }
.ans .answer { font-weight: 750; margin: 10px 0 6px; }
.ans .expl { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 17.5px; line-height: 1.6; }
.ans .ref { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.q.done .ans summary { display: none; }
.verdict { font-weight: 800; }
.verdict.ok { color: var(--ok); } .verdict.bad { color: var(--bad); }

.cta {
  margin: 24px 0; border-radius: 22px; padding: 26px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(122, 92, 255, 0.28), transparent 70%), linear-gradient(180deg, #221843, #150f2b);
  border: 1px solid var(--line);
}
.cta h2 { font-size: 24px; font-weight: 800; }
.cta p { color: var(--muted); margin: 8px 0 18px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta.slim { padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cta.slim p { margin: 0; color: var(--text); font-weight: 650; }

.result { text-align: center; }
.result .big { font-size: 44px; font-weight: 900; color: var(--gold-2); line-height: 1.1; }
html:not(.js) .result, .result[hidden] { display: none !important; }

.prose { color: var(--muted); }
.prose h2 { color: var(--text); font-size: 24px; margin: 36px 0 10px; }
.prose p { margin: 0 0 12px; }
.related { margin: 36px 0 12px; }
.related h2 { font-size: 22px; margin-bottom: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.faq details { border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-2); margin-top: 56px; padding: 36px 0 48px; color: var(--dim); font-size: 14.5px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h3 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-top: 28px; }

/* Print: a clean worksheet with an answer key. */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .scorebar, .cta, .related, .tools, .hero-shot, .crumbs, .result { display: none !important; }
  .q { border: 0; border-bottom: 1px solid #ccc; border-radius: 0; background: none; padding: 10px 0; break-inside: avoid; }
  .q h2, h1 { color: #000; }
  .opt { border: 0; padding: 2px 0; background: none !important; color: #000; }
  .opt .letter { background: none !important; color: #000; border: 1px solid #000; }
  .ans { display: none; }
  .print-key { display: block !important; break-before: page; color: #000; }
  .lead, .prose, .muted, .q-meta { color: #333; }
}
.print-key { display: none; }
.print-key ol { columns: 2; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
