/* ─────────────────────────────────────────────
   The Secret Place — Shared Stylesheet
   Navy + Gold + Lavender  |  Serif + Sans
───────────────────────────────────────────── */

:root {
  --navy:    #1A1F35;
  --navy-2:  #141828;
  --gold:    #C9A84C;
  --gold-dim:#A88C3E;
  --lavender:#B8A9D4;
  --surface: rgba(255,255,255,0.06);
  --border:  rgba(184,169,212,0.18);
  --text:    rgba(255,255,255,0.88);
  --muted:   rgba(255,255,255,0.42);
  --radius:  14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Background glow ── */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(20, 24, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-brand .sparkle { color: var(--gold); font-size: 15px; }

.nav-brand span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: white;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: var(--surface);
}

.nav-links a.active { color: var(--gold); }

/* ── Page wrapper ── */
.page { position: relative; z-index: 1; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: normal;
  line-height: 1.18;
  color: white;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--gold-dim); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: var(--lavender); background: var(--surface); }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Divider line ── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 900px;
  margin: 0 auto;
}

/* ── Section ── */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: normal;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 620px;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Screenshot mock ── */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--lavender);
  margin-bottom: 40px;
}

/* ── Prose (privacy / terms / support) ── */
.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.prose h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: normal;
  color: white;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
  display: block;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose p, .prose li {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.85;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose li { margin-bottom: 8px; }

.prose a { color: var(--gold); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose strong { color: white; font-weight: 600; }

/* ── Support cards ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.support-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.support-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.support-card a {
  color: var(--gold);
  text-decoration: none;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

footer p { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ─────────────────────────────────────────────
   Scroll Animation Section (index.html)
───────────────────────────────────────────── */
.scroll-scene {
  position: relative;
}

.scroll-scene-inner {
  display: flex;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Left sticky column */
.scene-left {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 45%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image frame — GSAP animates border-radius */
.scene-img-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 80px rgba(201,168,76,0.18),
    0 24px 64px rgba(0,0,0,0.5);
  will-change: border-radius;
}

/* Images stacked — GSAP animates opacity */
.scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity, transform;
}
#sImg1, #sImg2 { opacity: 0; }

/* Right scrolling column */
.scene-right {
  width: 55%;
}

.scene-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 80px 0 80px 52px;
}

.scene-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: normal;
  color: white;
  line-height: 1.15;
}
.scene-heading em {
  font-style: italic;
  color: var(--gold);
}

.scene-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 380px;
}

.scene-quote {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  max-width: 360px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}
.scene-quote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 1px;
  color: var(--gold);
  margin-top: 10px;
}

/* ─────────────────────────────────────────────
   Selah Callout (index.html)
───────────────────────────────────────────── */
.selah-callout { padding: 72px 24px; max-width: 900px; margin: 0 auto; }
.selah-callout-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.selah-callout-inner > div:first-child { flex: 1; min-width: 260px; }
.selah-preview { flex-shrink: 0; display: flex; justify-content: center; }
.selah-ring-preview { position: relative; width: 120px; height: 120px; }
.selah-ring-preview svg { filter: drop-shadow(0 0 18px rgba(201,168,76,0.22)); }
.selah-ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-size: 22px;
  color: white;
}

/* ─────────────────────────────────────────────
   Timer / Selah page
───────────────────────────────────────────── */
.timer-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.timer-header { text-align: center; }

.timer-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: normal;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
}

.timer-subtitle {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.timer-subtitle em { font-style: italic; }

.timer-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
}

.timer-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Pickers */
.picker-group { width: 100%; }
.picker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.picker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.pill:hover { border-color: var(--lavender); color: white; background: var(--surface); }
.pill.active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }

/* Ring */
.timer-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}
.timer-ring-svg {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.18));
}
.ring-bg {
  fill: none;
  stroke: rgba(184,169,212,0.10);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 603.2;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.8s linear;
}
.timer-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.timer-display {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px;
  color: white;
  letter-spacing: -1px;
  line-height: 1;
}
.timer-state {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Timer controls */
.timer-controls { display: flex; gap: 14px; align-items: center; }

.timer-btn-primary {
  padding: 14px 36px;
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.timer-btn-primary:hover { background: var(--gold-dim); transform: translateY(-1px); }

.timer-btn-secondary {
  padding: 13px 24px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.timer-btn-secondary:hover:not(:disabled) { border-color: var(--lavender); color: white; }
.timer-btn-secondary:disabled { opacity: 0.35; cursor: default; }

/* Completion overlay */
.timer-completion {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,24,40,0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.completion-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 380px;
}
.completion-glow {
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.completion-icon { font-size: 32px; color: var(--gold); }
.completion-title {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: normal;
  color: white;
}
.completion-body { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }

/* App CTA strip */
.timer-app-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.timer-app-cta p { font-size: 15px; color: var(--muted); max-width: 380px; line-height: 1.7; }

/* ─────────────────────────────────────────────
   Listen / Player page
───────────────────────────────────────────── */
.listen-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.player-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.player-meta { display: flex; flex-direction: column; gap: 8px; }
.player-category { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }
.player-title { font-family: Georgia, serif; font-size: 26px; font-weight: normal; color: white; line-height: 1.2; }
.player-description { font-size: 14px; color: var(--muted); line-height: 1.75; }
.player-duration-badge {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--lavender);
  width: fit-content;
}

/* Waveform animation */
.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
}
.waveform-bars span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--border);
  height: 8px;
  transition: height 0.1s;
}
.waveform-bars.playing span {
  background: var(--gold);
  animation: wave 1.2s ease-in-out infinite;
}
.waveform-bars.playing span:nth-child(odd)  { animation-delay: -0.4s; }
.waveform-bars.playing span:nth-child(3n)   { animation-delay: -0.8s; }
.waveform-bars.playing span:nth-child(4n)   { animation-delay: -0.2s; }
.waveform-bars.playing span:nth-child(5n)   { animation-delay: -1.0s; }

@keyframes wave {
  0%, 100% { height: 8px; }
  50%       { height: 28px; }
}

/* Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-time { font-size: 12px; color: var(--muted); min-width: 30px; font-variant-numeric: tabular-nums; }
.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s linear;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transition: left 0.3s linear;
  opacity: 0;
}
.progress-bar:hover .progress-thumb { opacity: 1; }

/* Player controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.player-btn-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.player-btn-play:hover { background: var(--gold-dim); transform: scale(1.04); }
.player-btn-play:disabled { opacity: 0.4; cursor: default; }

.player-btn-rewind {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.18s;
}
.player-btn-rewind:hover { border-color: var(--lavender); color: white; }

.audio-error {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.audio-error p { font-size: 14px; color: var(--muted); }

/* More sessions teaser */
.more-sessions { width: 100%; }
.session-teaser-grid { display: flex; flex-direction: column; gap: 10px; }
.session-teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.session-teaser-icon { font-size: 20px; flex-shrink: 0; }
.session-teaser > div { flex: 1; }
.session-teaser-title { font-size: 14px; font-weight: 600; color: white; }
.session-teaser-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.session-teaser-lock  { font-size: 14px; opacity: 0.4; }

/* ── Responsive — Tablet ── */
@media (max-width: 768px) {
  .selah-callout-inner { flex-direction: column; gap: 32px; }
}

/* ── Responsive — Mobile ── */
@media (max-width: 600px) {
  /* Nav: smaller text, tighter padding so 4 links fit */
  nav { padding: 0 14px; }
  .nav-brand span:last-child { display: none; } /* hide text, keep sparkle brand mark */
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }

  /* Scroll scene — stack on mobile */
  .scroll-scene-inner { flex-direction: column; padding: 0; }
  .scene-left {
    position: relative; top: auto;
    height: auto; width: 100%;
    padding: 52px 24px 32px;
  }
  .scene-img-wrap { width: 220px; height: 220px; }
  .scene-right { width: 100%; }
  .scene-panel {
    min-height: auto;
    padding: 36px 24px 48px;
    border-top: 1px solid var(--border);
  }

  /* Hero */
  .hero { padding: 70px 20px 60px; }
  .hero p { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }

  /* Sections */
  section { padding: 52px 20px; }

  /* Feature grid: single column */
  .feature-grid { grid-template-columns: 1fr; }

  /* Selah callout */
  .selah-callout { padding: 52px 20px; }
  .selah-callout-inner { flex-direction: column; gap: 28px; }
  .selah-preview { display: none; }

  /* Timer page */
  .timer-page { padding: 52px 16px 64px; }
  .timer-card { padding: 24px 16px; gap: 24px; }
  .timer-ring-wrap { width: 190px; height: 190px; }
  .timer-ring-svg { width: 190px; height: 190px; }
  .timer-display { font-size: 36px; }
  .timer-controls { gap: 10px; }
  .timer-btn-primary { padding: 13px 28px; }
  .pill { padding: 7px 13px; font-size: 12px; }

  /* Player page */
  .listen-page { padding: 52px 16px 64px; }
  .player-card { padding: 24px 16px 18px; gap: 20px; }
  .player-title { font-size: 22px; }
  .player-controls { gap: 14px; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ── Responsive — Very small (iPhone SE) ── */
@media (max-width: 380px) {
  .nav-links a { padding: 5px 8px; font-size: 12px; }
  .timer-ring-wrap { width: 170px; height: 170px; }
  .timer-ring-svg  { width: 170px; height: 170px; }
  .timer-display { font-size: 32px; }
}
