/* NPC Media website -- same design language as the app: iOS system colors,
   grouped cards, large titles, light/dark. Shared by npcproductions.com
   and app.npcproductions.com (served from app.npcproductions.com/assets/site/). */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F2F2F7;
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.29);
  --fill: rgba(120, 120, 128, 0.12);
  --accent: #007AFF;
  --red: #FF3B30;
  --green: #34C759;
  --orange: #FF9500;
  --bar: rgba(249, 249, 249, 0.78);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E;
    --label: #FFFFFF; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
    --separator: rgba(84, 84, 88, 0.6); --fill: rgba(118, 118, 128, 0.24);
    --accent: #0A84FF; --red: #FF453A; --green: #30D158; --orange: #FF9F0A;
    --bar: rgba(22, 22, 24, 0.72); --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E;
  --label: #FFFFFF; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
  --separator: rgba(84, 84, 88, 0.6); --fill: rgba(118, 118, 128, 0.24);
  --accent: #0A84FF; --red: #FF453A; --green: #30D158; --orange: #FF9F0A;
  --bar: rgba(22, 22, 24, 0.72); --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* NPC logo: black on light, white on dark (follows the theme toggle too). */
.logo-on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------------- nav (real frosted glass on the web) */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 600; font-size: 17px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--label); opacity: 0.8; font-size: 14px; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--fill);
  display: grid; place-items: center; color: var(--label);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

/* ---------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 22px;
  font-size: 15px; font-weight: 600; transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.97); opacity: 0.8; }
.btn-fill { background: var(--accent); color: #fff; }
.btn-tint { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: 16px; }
.play-badge img { height: 52px; width: auto; }

/* ---------------- hero: text beside a fan of five app screens, all within one screen height */
/* overflow-x: clip stops the tilted edge phones from making the page scroll sideways (unlike hidden, it doesn't create a scroll box). */
.hero { padding: 48px 0 28px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-2); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 10px 0 16px; }
.hero p.lead { font-size: 19px; color: var(--label-2); max-width: 30ch; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* --w = width of the centre phone; the others are scaled from it. Height
   follows the screenshot ratio, so --w also caps how tall the fan gets. */
.fan {
  /* The fan is ~3.5 phone-widths wide (centre + 2 x 0.84 + 2 x 0.7, minus overlaps),
     so --w is capped to keep the whole fan inside its column / the screen. */
  --w: min(12.5vw, 184px, calc((100vh - 220px) * 0.46));
  max-width: 100%;
  display: flex; justify-content: center; align-items: center;
  padding: 12px 0 20px;
}
.fan .phone {
  flex: none; width: var(--w); aspect-ratio: 1080 / 2340;
  border-radius: 16% / 7.4%; padding: 3.4%; background: #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 0 0 1.5px #3a3a3c;
  margin: 0 calc(var(--w) * -0.075);
  position: relative; transition: transform .35s ease;
}
.fan .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13% / 6%; background: #000; }
.fan .p3 { z-index: 3; }
.fan .p2, .fan .p4 { width: calc(var(--w) * 0.84); z-index: 2; }
.fan .p1, .fan .p5 { width: calc(var(--w) * 0.7); z-index: 1; }
.fan .p1 { transform: translateY(6%) rotate(-4deg); }
.fan .p2 { transform: translateY(3%) rotate(-2deg); }
.fan .p4 { transform: translateY(3%) rotate(2deg); }
.fan .p5 { transform: translateY(6%) rotate(4deg); }
@media (hover: hover) { .fan .phone:hover { transform: translateY(-2%) scale(1.03); z-index: 4; } }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .fan { --w: min(24vw, 170px); margin-top: 8px; }
}
/* ---------------- sections */
section { padding: 36px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.sec-head .sub { color: var(--label-2); font-size: 15px; margin-top: 4px; }
.card { background: var(--surface); border-radius: var(--radius); }

/* ---------------- devotional: wide tile -> reader pop-up */
.devo-tile {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  width: 100%; text-align: left; padding: 26px 28px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.devo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.devo-tile:disabled { cursor: default; }
.devo-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.devo-badge { width: 28px; height: 28px; border-radius: 7px; background: var(--orange); display: grid; place-items: center; }
.devo-badge svg { width: 17px; height: 17px; fill: #fff; }
.devo-tile h3 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 4px; }
.devo-tile-ref { color: var(--label-2); font-weight: 600; font-size: 15px; }
.devo-read { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 16px; }
.devo-read svg { width: 18px; height: 18px; }
.devo-tile-quote {
  position: relative; background: var(--surface-2); border-radius: 14px; padding: 18px 20px 18px 24px;
  font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--label) 85%, transparent);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.devo-tile-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.devo-tile-quote:empty { display: none; }
@media (max-width: 760px) { .devo-tile { grid-template-columns: 1fr; gap: 16px; padding: 20px; } }

.reader-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.reader-backdrop.open { opacity: 1; pointer-events: auto; }
.reader {
  width: min(720px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
.reader-backdrop.open .reader { transform: none; }
.reader-bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.reader-body { padding: 22px 28px 8px; }
.reader-body h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 18px; }
.scripture { display: flex; background: var(--surface-2); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.scripture::before { content: ""; width: 4px; background: var(--accent); flex: none; }
.scripture div { padding: 16px 18px; }
.scripture .ref { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.scripture p { font-weight: 500; line-height: 1.6; }
.reflection p { margin-bottom: 14px; line-height: 1.7; color: color-mix(in srgb, var(--label) 88%, transparent); }
.prayer { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 14px; padding: 18px 20px; margin: 8px 0 20px; }
.prayer h4 { color: var(--accent); font-size: 17px; margin-bottom: 8px; }
.reader-list { padding: 4px 16px 20px; }
.reader-list h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--label-2); font-weight: 500; padding: 8px 12px 6px; }
.devo-item { display: block; width: 100%; text-align: left; padding: 11px 12px; border-top: 0.5px solid var(--separator); border-radius: 0; }
.devo-item:hover { background: var(--fill); }
.devo-item.active .t { color: var(--accent); }
.devo-item .t { font-size: 15px; font-weight: 600; display: block; }
.devo-item .m { font-size: 13px; color: var(--label-2); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .reader-backdrop { padding: 0; align-items: flex-end; }
  .reader { max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .reader-body { padding: 18px 20px 4px; }
}
/* ---------------- shelves (horizontal sliders) */
.shelf-wrap { position: relative; }
.shelf {
  display: grid; grid-auto-flow: column; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding: 4px 16px 12px; margin: 0 -16px;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf.video { grid-auto-columns: min(300px, 78vw); }
.shelf.square { grid-auto-columns: min(170px, 42vw); }
.tile { scroll-snap-align: start; text-align: left; transition: transform .2s ease; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; }
.tile:hover { transform: translateY(-3px); }
.tile .art { position: relative; border-radius: 12px; overflow: hidden; background: var(--fill); box-shadow: var(--shadow); }
.shelf.video .art { aspect-ratio: 16 / 9; }
.shelf.square .art { aspect-ratio: 1; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .play {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; border: 0.5px solid rgba(255, 255, 255, 0.25);
}
.tile .play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.tile .tt { font-size: 15px; font-weight: 600; margin-top: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .st { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-arrow {
  position: absolute; top: 34%; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2;
  color: var(--label);
}
.shelf-arrow.prev { left: -20px; } .shelf-arrow.next { right: -20px; }
.shelf-arrow svg { width: 18px; height: 18px; }
@media (hover: none), (max-width: 1180px) { .shelf-arrow { display: none; } }
.skeleton .art { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------------- radio */
.radio {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: #111 center / cover no-repeat;
}
.radio::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.4)); }
.radio > * { position: relative; }
.radio-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; padding: 28px; }
.live { display: inline-flex; align-items: center; gap: 6px; background: #FF3B30; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.radio h3 { font-size: 28px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.radio p { color: rgba(255,255,255,.75); }
.radio iframe { width: 100%; height: 140px; border: 0; border-radius: 12px; background: #fff; }
@media (max-width: 820px) { .radio-inner { grid-template-columns: 1fr; padding: 20px; } }

/* ---------------- download CTA */
.cta { text-align: center; padding: 56px 24px; }
.cta img.icon { height: 72px; width: auto; margin: 0 auto 18px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 8px; }
.cta p { color: var(--label-2); margin-bottom: 22px; }

/* ---------------- footer */
footer { padding: 32px 0 48px; color: var(--label-2); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 0.5px solid var(--separator); padding-top: 24px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--label-2); }
footer a:hover { color: var(--label); }

/* ---------------- "get the app" sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(440px, 100%); background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .9, .3, 1);
}
.sheet-backdrop.open .sheet { transform: none; }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; transform: scale(.94); opacity: 0; transition: transform .25s ease, opacity .25s ease; padding-bottom: 28px; }
  .sheet-backdrop.open .sheet { transform: none; opacity: 1; }
}
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 0 auto 18px; }
.sheet .art { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--fill); margin-bottom: 16px; }
.sheet .art.square { width: 160px; aspect-ratio: 1; margin: 0 auto 16px; }
.sheet .art img { width: 100%; height: 100%; object-fit: cover; }
.sheet h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; margin: 4px 0 8px; }
.sheet p { color: var(--label-2); font-size: 15px; margin-bottom: 20px; }
.sheet .btn { width: 100%; margin-top: 8px; }

/* ---------------- simple document pages (privacy, delete account) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
.doc .updated { color: var(--label-2); font-size: 14px; margin-bottom: 24px; }
.doc .card { padding: 24px 26px; margin-bottom: 16px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 10px; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--label) 85%, transparent); margin-bottom: 10px; font-size: 16px; }
.doc ul { padding-left: 22px; margin-bottom: 10px; }
.field { width: 100%; height: 48px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--label); padding: 0 16px; font: inherit; margin-bottom: 12px; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-danger { background: var(--red); color: #fff; width: 100%; }
.status { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 12px; background: var(--surface-2); }
.status.err { color: var(--red); } .status.ok { color: var(--green); }
.hidden { display: none !important; }
