/* ==========================================================================
   Worship Light — landing site, product sections.
   Loaded after index.css; reuses its tokens (--accent, --surface, ...).
   ========================================================================== */

/* ---- hero ---- */
.hero-pro {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 64px) 0 40px;
  text-align: center;
  isolation: isolate;
}
.hero-pro::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 820px;
  z-index: -1;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(155, 138, 251, 0.32), transparent 70%),
    radial-gradient(500px 300px at 15% 40%, rgba(111, 95, 240, 0.16), transparent 70%),
    radial-gradient(500px 300px at 85% 40%, rgba(61, 180, 220, 0.10), transparent 70%);
}
.hero-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-line);
  background: rgba(155, 138, 251, 0.08);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.hero-badge b {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #120f24;
  font-size: 12px;
  font-weight: 700;
}
.hero-pro h1 {
  max-width: 900px;
  margin: 22px auto 18px;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.grad-text {
  background: linear-gradient(120deg, #ffffff 10%, #c9bfff 45%, #9b8afb 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-pro .hero-sub {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}
.hero-pro .cta-row { margin-top: 32px; }
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-checks span::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 700; }

/* product frame */
.product-shot {
  position: relative;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 16px;
}
.browser-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #0f0f17;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(155,138,251,0.12), 0 0 90px rgba(155, 138, 251, 0.14);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #14141d;
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #34354a; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 0 1 340px;
  margin: 0 auto;
  height: 24px;
  border-radius: 7px;
  background: #1c1d29;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}
.browser-frame img { display: block; width: 100%; height: auto; }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 29, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  text-align: left;
  animation: wl-float 6s ease-in-out infinite;
}
.float-chip .ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft-strong);
  font-size: 17px;
}
.float-chip strong { display: block; color: var(--text); font-size: 13px; }
.float-chip small { color: var(--text-muted); font-size: 12px; }
.float-chip.c1 { left: -10px; top: 26%; }
.float-chip.c2 { right: -10px; top: 14%; animation-delay: -2s; }
.float-chip.c3 { right: 6%; bottom: -22px; animation-delay: -4s; }
@keyframes wl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- stats strip ---- */
.stats-strip { padding: 56px 0 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  overflow: hidden;
}
.stat { padding: 26px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 30px; letter-spacing: -0.02em; color: var(--text); }
.stat span { color: var(--text-secondary); font-size: 14px; }

/* ---- feature showcase rows ---- */
.showcase { display: grid; gap: 110px; margin-top: 64px; }
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 64px;
}
.showcase-row.flip .showcase-copy { order: 2; }
.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.showcase-copy > p { color: var(--text-secondary); font-size: 17px; line-height: 1.65; margin: 0 0 20px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft-strong);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
}
.check-list li span { color: var(--text-secondary); }
.shot-card {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(155,138,251,0.25), rgba(255,255,255,0.03) 40%, rgba(155,138,251,0.08));
  box-shadow: var(--shadow-md);
}
.shot-card img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.shot-card.tall { max-width: 520px; margin-left: auto; margin-right: auto; }
.shot-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.private-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 14.5px;
}
.private-note b { color: var(--text); }

/* ---- media trio ---- */
.media-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.media-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.media-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); }
.media-card div { padding: 20px 22px 24px; }
.media-card h4 { margin: 0 0 8px; font-size: 18px; }
.media-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ---- "everything included" grid ---- */
.all-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}
.all-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.all-item:hover { border-color: var(--accent-line); background: #17171d; }
.all-item .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 19px;
}
.all-item h4 { margin: 0 0 6px; font-size: 16px; }
.all-item p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }

/* ---- keyboard band ---- */
.keys-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(500px 240px at 100% 0%, rgba(155,138,251,0.16), transparent 70%), var(--bg-alt);
}
.keys-band h3 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.keys-band p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.key-rows { display: grid; gap: 12px; }
.key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14.5px;
}
.key-row .keys { display: flex; gap: 6px; flex: 0 0 150px; }
kbd.k {
  min-width: 30px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  background: #1b1b22;
  color: var(--text);
  font: 600 13px/1.5 var(--font);
  text-align: center;
}

/* ---- reveal on scroll (added by main.js) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---- footer fix-ups ---- */
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-badges span {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-row, .keys-band { grid-template-columns: 1fr; gap: 32px; }
  .showcase-row.flip .showcase-copy { order: 0; }
  .showcase { gap: 80px; }
  .float-chip { display: none; }
}
@media (max-width: 720px) {
  .hero-pro { padding-top: calc(var(--nav-height) + 36px); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .media-trio, .all-grid { grid-template-columns: 1fr; }
  .keys-band { padding: 26px 20px; }
  .key-row .keys { flex-basis: 110px; }
  .product-shot { margin-top: 36px; padding: 0; }
  .browser-url { display: none; }
}

/* keep portrait screenshots a sensible height */
.shot-card img { max-height: 540px; object-fit: cover; object-position: top center; }
/* small tag inside an "all-item" card */
.all-item { position: relative; }
.all-item .ai-badge {
  position: absolute; top: 16px; right: 16px; margin: 0;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--accent-soft-strong); color: var(--accent-hover); border: 1px solid var(--accent-line);
}

/* Hero over the worship-hall photo (assets/images/header-banner.jpg) */
.hero-pro.hero-photo {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-bottom: 90px;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.72) 0%, rgba(8,8,10,0.55) 45%, rgba(8,8,10,0.96) 100%),
    url(../images/header-banner.jpg) center 35% / cover no-repeat;
}
.hero-pro.hero-photo::after { display: none; }
.hero-pro.hero-photo .hero-sub { color: #d6d6e2; }
.hero-pro.hero-photo .hero-checks { color: #b9b9c8; }
/* illustrations are landscape: no height cap / crop */
.shot-card img[src*="scenes/"] { max-height: none; object-fit: contain; }
.media-card img[src*="scenes/"] { object-position: center; }
.media-card img { height: auto; }

/* ==========================================================================
   Inner pages (about, contact, download, faq, privacy, terms)
   ========================================================================== */
.page-hero-pro {
  padding: calc(var(--nav-height) + 84px) 0 76px;
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(155, 138, 251, 0.30), transparent 70%),
    radial-gradient(420px 260px at 12% 30%, rgba(111, 95, 240, 0.14), transparent 70%),
    radial-gradient(420px 260px at 88% 30%, rgba(61, 180, 220, 0.08), transparent 70%),
    var(--bg);
}
.page-hero-pro h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 18px auto 16px;
  background: linear-gradient(120deg, #ffffff 20%, #d4ccff 60%, #a898ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-pro .lede { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); }
.page-hero-photo {
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.78) 0%, rgba(8,8,10,0.6) 50%, rgba(8,8,10,0.97) 100%),
    url(../images/header-banner.jpg) center 40% / cover no-repeat;
}
.page-hero-photo::before { display: none; }
.page-hero-photo .lede { color: #d6d6e2; }

/* cards get a lift */
.value-card, .contact-card, .platform-card, .step {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.value-card:hover, .contact-card:hover, .platform-card:hover, .step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.reveal.is-visible:hover { transform: translateY(-4px); }
.compare-table.reveal.is-visible:hover, .contact-form.reveal.is-visible:hover,
.cta-banner-inner.reveal.is-visible:hover, .about-us-image.reveal.is-visible:hover,
.stats-grid.reveal.is-visible:hover, .keys-band.reveal.is-visible:hover,
.showcase-row.reveal.is-visible:hover, .product-shot.reveal.is-visible:hover,
.private-note.reveal.is-visible:hover, .faq-search.reveal.is-visible:hover { transform: none; }

/* about */
.about-us-image img { border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border); }

/* contact */
.contact-form {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(155,138,251,0.08), transparent 40%), var(--surface);
  box-shadow: var(--shadow-md);
}
.form-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.form-head p { margin: 0 0 22px; color: var(--text-secondary); font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-card .icon {
  display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent-line);
}

/* download */
.compare-table { border-radius: var(--radius-md); overflow: hidden; }

/* faq */
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 30px auto 0;
  padding: 0 18px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 23, 0.85);
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
}
.faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.faq-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  color: var(--text); font: 500 16px var(--font);
}
.faq-empty { padding: 28px; text-align: center; color: var(--text-secondary); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.faq-empty a { color: var(--accent-hover); }
.faq-category-label { scroll-margin-top: calc(var(--nav-height) + 20px); }
.faq-item { transition: border-color .2s ease, background .2s ease; }
.faq-item[open] { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(155,138,251,0.06), transparent 70%), var(--surface); }

/* legal */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
}
.legal-layout .legal-content { max-width: none; margin: 0; }
.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.legal-toc p { margin: 0 0 10px; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--text-secondary); font-size: 14px; line-height: 1.4; text-decoration: none;
}
.legal-toc a:hover, .legal-toc a.active { background: var(--accent-soft); color: var(--text); }
.legal-content h2 { scroll-margin-top: calc(var(--nav-height) + 24px); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
}

/* Privacy policy: plain-English summary box */
.legal-summary {
  margin: 0 0 32px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.legal-summary strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 15px; }
.legal-summary ul { margin: 0; }
.legal-content b { color: var(--text); font-weight: 600; }
/* list items hold inline bold text: lay out as a block with the dash pinned left */
.legal-content li { display: block; position: relative; padding-left: 26px; }
.legal-content li::before { position: absolute; left: 0; top: 0; }

/* "clip" hides sideways overflow like "hidden" but keeps position: sticky working
   (the Privacy/Terms contents list). */
html, body { overflow-x: clip; }
