/* Bible Verse Alarm — bibleversealarm.com
   Warm editorial dawn: Fraunces serif headlines on the app's night→dawn palette. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette (from the app's Theme.swift) */
  --ink: #221F3B;
  --secondary: #6E6B85;
  --tertiary: #A5A3B8;
  --bg: #FBFAFD;
  --card: #FFFFFF;
  --indigo: #4B44C7;
  --gold: #FFC24B;
  --orange: #FF8A5C;
  --pink: #F76F9E;
  --peach: #FFC98F;
  --on-sunrise: #3A1E10;
  --hairline: rgba(34, 31, 59, 0.10);

  --sunrise: linear-gradient(135deg, #FFC24B 0%, #FF8A5C 52%, #F76F9E 100%);
  --sky: linear-gradient(180deg, #14112C 0%, #241F52 38%, #6A4483 64%, #D96E77 84%, #FFAA5C 100%);
  --night-card: linear-gradient(135deg, #241F52, #3A2E6E);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(34, 31, 59, 0.06);
  --shadow-md: 0 18px 44px rgba(34, 31, 59, 0.12);
  --shadow-lg: 0 40px 90px rgba(20, 17, 44, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow.on-dark { color: var(--peach); }

/* ---------- Buttons / badges ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  background: var(--sunrise); color: var(--on-sunrise);
  box-shadow: 0 14px 30px rgba(247, 111, 158, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none; cursor: pointer;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(247, 111, 158, 0.45); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 20px; border-radius: 15px;
  background: #14112C; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-md);
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore .a-top { display: block; font-size: 11px; letter-spacing: 0.04em; opacity: 0.72; line-height: 1.2; }
.appstore .a-main { display: block; font-size: 19px; font-weight: 600; font-family: var(--display); line-height: 1.15; }
.appstore .soon {
  margin-left: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: var(--sunrise); color: var(--on-sunrise);
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(251, 250, 253, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--secondary); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-weight: 700 !important; color: var(--indigo) !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--sky); color: #fff;
  padding: 96px 0 120px; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background: linear-gradient(180deg, rgba(251,250,253,0) 0%, var(--bg) 100%);
}
.hero-sun {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,75,0.55) 0%, rgba(255,138,92,0.18) 45%, rgba(255,138,92,0) 70%);
  filter: blur(6px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .brand { color: #fff; margin-bottom: 36px; font-size: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 600; margin: 0 0 22px; }
.hero h1 .warm { background: linear-gradient(120deg, #FFD98A, #FF8A5C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 19px; color: rgba(255, 255, 255, 0.82); max-width: 540px; margin: 0 auto 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.68); display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: '✦'; color: var(--gold); }

/* Phone mockup */
.phone {
  margin-top: 56px;
  width: 300px; aspect-ratio: 1320 / 2868;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2b2748, #14112c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone::before {
  content: ''; position: absolute; width: 108px; height: 26px; border-radius: 0 0 16px 16px;
  background: #14112c; left: 50%; transform: translateX(-50%); margin-top: -12px; z-index: 3;
}
.phone { position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; display: block; }

/* ---------- Footer ---------- */
footer { background: #14112C; color: rgba(255, 255, 255, 0.6); padding: 34px 0; }
.foot-simple { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-simple nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-simple a { color: rgba(255,255,255,0.72); transition: color 0.15s; }
.foot-simple a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--indigo); margin-bottom: 32px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--tertiary); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 14px; }
.legal h3 { font-size: 19px; margin: 28px 0 10px; }
.legal p { color: #3d3a55; margin-bottom: 16px; }
.legal ul { margin: 0 0 20px 22px; color: #3d3a55; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--indigo); text-decoration: underline; }
.legal hr { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }

/* ---------- Load animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .foot-simple { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 90px; }
  .phone { width: 250px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .nav { height: 60px; }
}
