/*
  Sonrise marketing site — Dawn Liturgy design system, on the web.
  The tokens mirror Core/DesignSystem so the site and the app read as one hand.
  Note the two golds: sunrise-gold is a FILL colour (2.0:1 on cream, fails WCAG);
  gold-ink is the readable variant used for gold TEXT on cream. Same lesson the
  app learned in Session 9.
*/

:root {
  --pre-dawn-indigo: #1A1F3C;
  --dusk-indigo: #2A3055;
  --sunrise-gold: #D4A94E;
  --gold-ink: #8A6516;      /* gold you can READ on cream */
  --sunrise-coral: #E8946A;
  --dawn-cream: #FAF6EF;
  --ink-warm: #2B2620;
  --ink-soft: #6E6357;
  --moon-mist: #AEB4D6;
  --night-hairline: #3B4270;
  --cream-shadow: #E8E0D2;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink-warm);
  background: var(--dawn-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .serif { font-family: var(--serif); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(140% 120% at 50% 120%, rgba(232,148,106,0.28), transparent 60%),
    linear-gradient(160deg, #1A1F3C 0%, #2A3055 55%, #3A3560 130%);
  color: var(--dawn-cream);
  text-align: center;
  padding: clamp(56px, 10vw, 110px) var(--gutter) clamp(64px, 11vw, 120px);
  overflow: hidden;
}

/* A slow, soft sunrise glow low in the hero — the app's breathing gradient, quieted. */
.hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -40%;
  width: 120%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212,169,78,0.20), transparent 55%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.app-icon {
  width: clamp(96px, 18vw, 132px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  margin-bottom: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wordmark .son { color: var(--sunrise-gold); }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--moon-mist);
  max-width: 30ch;
  margin: 0 auto 36px;
}

/* App Store badge placeholder — the real SVG badge drops in at launch. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 12px 22px;
  font-family: var(--sans);
  text-decoration: none;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge .apple { font-size: 1.7rem; line-height: 1; }
.badge .small { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: #cfcfcf; }
.badge .big { font-size: 1.15rem; font-weight: 600; }
.badge-note { margin-top: 14px; font-size: 0.82rem; color: var(--moon-mist); }

/* ---------- Sections ---------- */

section { padding: clamp(56px, 9vw, 96px) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.section-head { max-width: 40ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* Feature blocks */
.features { display: grid; gap: clamp(28px, 5vw, 56px); }
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature.flip .feature-art { order: -1; }
}

.feature h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 1.05rem; }
.feature .verse {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-warm);
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--sunrise-gold);
}

.feature-art {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(26,31,60,0.14);
}
.art-night { background: linear-gradient(160deg, #1A1F3C, #2A3055); }
.art-bloom { background: linear-gradient(0deg, #D4A94E, #E8946A 60%, #2A3055 130%); }
.art-cream { background: linear-gradient(160deg, #FAF6EF, #F0E7D6); }
.feature-art svg { width: 62%; height: auto; }

/* ---------- FAQ ---------- */

.faq { background: linear-gradient(180deg, var(--dawn-cream), #F3ECDE); }
.faq-list { display: grid; gap: 4px; max-width: 760px; }
details {
  border-bottom: 1px solid var(--cream-shadow);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--gold-ink);
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "\2013"; }
details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 66ch; }

/* ---------- Footer ---------- */

footer {
  background: var(--pre-dawn-indigo);
  color: var(--moon-mist);
  padding: 56px var(--gutter);
  text-align: center;
}
footer .wordmark { color: var(--dawn-cream); font-size: 1.3rem; display: inline-block; margin-bottom: 16px; }
footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
footer nav a { color: var(--moon-mist); }
footer nav a:hover { color: var(--dawn-cream); }
footer .fine { font-size: 0.82rem; color: var(--night-hairline); max-width: 52ch; margin: 0 auto; line-height: 1.7; }
footer .fine a { color: var(--moon-mist); }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) var(--gutter) 88px; }
.legal .back { font-size: 0.9rem; display: inline-block; margin-bottom: 32px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; font-family: var(--sans); font-weight: 700; }
.legal p, .legal li { color: var(--ink-warm); margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal .callout {
  background: #fff;
  border: 1px solid var(--cream-shadow);
  border-left: 3px solid var(--sunrise-gold);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--dawn-cream); color: var(--ink-warm);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
