/* Glossa landing page. Brand tokens from brand/README.md */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/PlusJakartaSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }

:root {
  --cobalt: #2F5BEA;
  --cobalt-ink: #2349C7;
  --apricot: #FF8A3D;
  --apricot-text: #B8501A;
  --apricot-wash: #FFF1E6;
  --ink: #121722;
  --paper: #FBFCFE;
  --mist: #EEF0F4;
  --slate: #5F6878;
  --line: #DCE0E8;

  --bg: var(--paper);
  --surface: #FFFFFF;
  --sunk: var(--mist);
  --text: var(--ink);
  --muted: var(--slate);
  --link: var(--cobalt);
  --band: var(--ink);
  --band-text: #F3F5F9;
  --band-muted: #A9B1C0;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722;
    --surface: #1A2131;
    --sunk: #0D111A;
    --text: #E9ECF2;
    --muted: #A3ABBA;
    --line: #2A3242;
    --link: #8DA6FF;
    --apricot-text: #FFA266;
    --apricot-wash: #3A2618;
    --band: #0B0F17;
  }
}
:root[data-theme="dark"] {
  --bg: #121722; --surface: #1A2131; --sunk: #0D111A; --text: #E9ECF2; --muted: #A3ABBA;
  --line: #2A3242; --link: #8DA6FF; --apricot-text: #FFA266; --apricot-wash: #3A2618; --band: #0B0F17;
}

*, *::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: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
section[id] { scroll-margin-top: 72px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--cobalt); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--cobalt); color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--cobalt);
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--cobalt-ink); border-color: var(--cobalt-ink); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--sunk); border-color: var(--line); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #E7ECFF; border-color: #E7ECFF; }
.btn-light-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light-quiet:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 34px; width: auto; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.head-nav a:not(.btn):hover { color: var(--link); }
@media (max-width: 640px) { .head-nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-title .pn, h2 .pn { margin-left: -0.08em; }
.hero .wrap:first-child { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .hero .wrap:first-child { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.hero-title { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.hero-lede > p { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.watch-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; text-decoration: none; }
.watch-link:hover { text-decoration: underline; }
.play-glyph { flex: none; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: .9375rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--apricot); }

/* Demo */
.demo-wrap { margin-top: clamp(32px, 4vw, 48px); }
.demo {
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 2px 2px 14px; }
.demo-go { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo-go:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 25%, transparent); }
.demo-go input { border: 0; background: transparent; color: var(--text); font: 600 1rem var(--sans); padding: 10px 14px; width: 12ch; outline: none; }
.demo-go .go { border: 0; background: var(--cobalt); color: #fff; font: 700 .9375rem var(--sans); padding: 0 16px; cursor: pointer; }
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
.demo-try span { margin-right: 4px; }
.demo-try button {
  font: 600 .875rem var(--sans); color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.demo-try button:hover { border-color: var(--slate); }
.demo-try button[aria-pressed="true"] { background: var(--surface); border-color: var(--cobalt); color: var(--link); }
.demo-error { color: var(--apricot-text); font-size: .875rem; font-weight: 600; }

.panels { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .panels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .panels { grid-template-columns: repeat(4, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); font-size: .8125rem; font-weight: 700; }
.tab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chip {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--apricot); color: var(--ink); font-size: .75rem; font-weight: 800;
}
.panel.moved .link-chip { animation: chip .6s ease-out; }
@keyframes chip { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--apricot) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.panel-ref { padding: 12px 16px 2px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.panel-text { padding: 4px 8px 14px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7; flex: 1 1 auto; min-height: 0; height: 248px; overflow-y: auto; scrollbar-width: thin; }
.panel-text .title { font-style: italic; color: var(--muted); padding: 2px 8px; font-size: .9375rem; }
.v { padding: 2px 8px; border-left: 3px solid transparent; border-radius: 0 4px 4px 0; color: color-mix(in srgb, var(--text) 55%, transparent); transition: color .3s, background-color .3s; }
.v sup { font-family: var(--sans); font-size: .6875rem; font-weight: 700; color: var(--muted); margin-right: 4px; vertical-align: .45em; }
.v.on { color: var(--text); background: var(--apricot-wash); border-left-color: var(--apricot); }
.sc { font-variant: small-caps; text-transform: lowercase; letter-spacing: .02em; }
.xrefs { border-top: 1px solid var(--line); padding: 10px 16px 12px; font-size: .8125rem; color: var(--muted); }
.xrefs b { display: block; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.xrefs span { color: var(--link); font-weight: 600; }
.panel-yours { background: transparent; border: 2px dashed color-mix(in srgb, var(--slate) 45%, transparent); }
.panel-yours .panel-head { border-bottom-style: dashed; }
.yours-body { padding: 20px 18px; display: grid; gap: 10px; align-content: start; color: var(--muted); font-size: .9375rem; }
.yours-title { color: var(--text); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.yours-title [data-ref] { color: var(--apricot-text); }
.panel .fade { animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .panel .fade, .panel.moved .link-chip { animation: none; } .v { transition: none; } }
.demo-note { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* Sections */
.problem, .film, .how, .features, .who, .private, .download, .faq { padding: var(--section) 0 0; }
.reading { font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.7; margin-top: 24px; max-width: 62ch; }
.reading.strong { color: var(--text); }
.problem h2 { max-width: 24ch; }
.problem .reading:not(.strong) { color: var(--muted); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; gap: 32px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center; background: var(--cobalt); color: #fff; font-weight: 800;
}
.steps li::after {
  content: ""; position: absolute; top: 17px; left: 48px; right: -28px; height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
@media (max-width: 819px) { .steps li::after { display: none; } }
.steps p { margin-top: 8px; color: var(--muted); max-width: 36ch; }
kbd { font: 600 .9em var(--sans); margin-right: 1px; background: var(--sunk); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.aside { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); max-width: 70ch; }
.aside strong { color: var(--text); }

.feature-list { margin: 40px 0 0; display: grid; gap: 0 48px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.feature-list dt { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.feature-list dt::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cobalt); flex: none; }
.feature-list dd { margin: 0; color: var(--muted); padding-left: 20px; max-width: 52ch; }
.also { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* Ask (the one dark band) */
.ask { margin-top: var(--section); background: var(--band); color: var(--band-text); padding: var(--section) 0; }
.ask-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .ask-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.optional { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--ink); background: var(--apricot); border-radius: 999px; padding: 3px 10px; margin-bottom: 18px; }
.ask h2 { max-width: 20ch; }
.ask-copy > p:not(.optional) { margin-top: 18px; color: var(--band-muted); max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; border-radius: 2px; background: var(--apricot); }
.ask .fine { font-size: .875rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; margin-top: 26px; }

.answer { margin: 0; background: #FBFCFE; color: var(--ink); border-radius: 14px; padding: 22px 22px 16px; position: relative; }
.answer .q { font-weight: 700; font-size: .9375rem; background: var(--mist); border-radius: 10px; padding: 10px 14px; }
.answer .a { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.75; margin-top: 16px; }
.cite {
  font: 800 .6875rem var(--sans); color: #fff; background: var(--cobalt); border: 0; border-radius: 4px;
  min-width: 18px; height: 18px; padding: 0 4px; margin-left: 2px; vertical-align: .35em; cursor: pointer;
}
.cite:hover, .cite[aria-expanded="true"] { background: var(--apricot-text); }
.cite-pop {
  position: absolute; left: 22px; right: 22px; background: var(--ink); color: #fff; font-family: var(--serif);
  font-size: .9375rem; line-height: 1.5; border-radius: 8px; padding: 10px 14px; z-index: 2;
}
.cite-pop small { display: block; font-family: var(--sans); color: #A9B1C0; margin-top: 4px; font-size: .75rem; }
.sources { margin: 16px 0 0; padding: 12px 0 0 22px; border-top: 1px solid #DCE0E8; font-size: .8125rem; color: #5F6878; }
.sources li.hl { color: var(--ink); }
.sources cite { font-style: italic; }
.answer figcaption { margin-top: 12px; font-size: .75rem; color: #5F6878; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .answer { background: #1A2131; color: #E9ECF2; } :root:not([data-theme="light"]) .answer .q { background: #0D111A; } :root:not([data-theme="light"]) .sources, :root:not([data-theme="light"]) .answer figcaption { color: #A3ABBA; border-color: #2A3242; } :root:not([data-theme="light"]) .sources li.hl { color: #E9ECF2; } }

/* Who */
.who-grid { margin-top: 40px; display: grid; gap: 32px 48px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who-grid > div { padding-left: 20px; border-left: 3px solid var(--apricot); }
.who-grid p { margin-top: 6px; color: var(--muted); max-width: 46ch; }
.ceb { margin-top: 40px; font-family: var(--serif); font-size: 1.25rem; }

/* Private */
.private-grid { display: grid; gap: 32px 72px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .private-grid { grid-template-columns: 1fr 1fr; } }
.private-grid > div > p { margin-top: 18px; color: var(--muted); max-width: 48ch; }
.priv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; align-content: start; }
.priv-list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.priv-list li:last-child { border-bottom: 1px solid var(--line); }
.priv-list strong { color: var(--text); }

/* Download */
.dl-grid { margin-top: 40px; display: grid; gap: 40px 64px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .dl-grid { grid-template-columns: 1.1fr 1fr; } }
.included ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; color: var(--muted); }
.included li { padding-left: 20px; position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); }
.included strong { color: var(--text); }
.platforms { display: grid; gap: 14px; align-content: start; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 6px; }
.platform p { color: var(--muted); font-size: .9375rem; margin-bottom: 10px; }
.platform .btn { justify-self: start; }
.fine { font-size: .875rem; color: var(--muted); }
.price { font-weight: 800; font-size: 1.125rem; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Video */
.film-frame { margin: 32px 0 0; }
.film-player { position: relative; border-radius: 14px; overflow: hidden; background: #0A1230; border: 1px solid var(--line); box-shadow: 0 24px 60px -28px rgba(10, 18, 48, .45); }
.film-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0A1230; }
.film-play {
  position: absolute; left: 50%; bottom: clamp(56px, 14%, 104px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px;
  font: 700 1rem var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 999px;
  cursor: pointer; white-space: nowrap; box-shadow: 0 8px 24px rgba(10, 18, 48, .3);
}
.film-play:hover { background: #EEF0F4; }
.film-play .play-glyph { border-width: 8px 0 8px 13px; color: var(--cobalt); }
.film-play[hidden] { display: none; }
/* Phones show their own play control over the poster. */
@media (max-width: 600px) { .film-play { display: none; } }
.film figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); max-width: 72ch; }

/* Closing */
.closing { margin-top: var(--section); background: var(--cobalt); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.closing h2 { max-width: 18ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -0.03em; }
.closing p { margin-top: 16px; font-size: 1.1875rem; color: #DCE4FF; max-width: 48ch; }

/* Footer */
.site-foot { background: var(--band); color: var(--band-muted); padding: 40px 0 48px; font-size: .875rem; }
.foot-row { display: grid; gap: 20px; }
.foot-row > div { display: flex; align-items: center; gap: 12px; }
.foot-row strong { color: var(--band-text); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-row nav a { color: var(--band-text); text-decoration: none; font-weight: 600; }
.foot-row nav a:hover { text-decoration: underline; }
.legal { max-width: 90ch; font-size: .8125rem; line-height: 1.6; }

/* Phones: three panels are enough to show the link; drop the KJV to keep the page short. */
@media (max-width: 719px) { .panel[data-bible="KJV"] { display: none; } }
