/* Hallmark · macrostructure: Marquee Hero · tone: playful-warm · anchor hue: sage (--color-ordinary)
 * redesign: tighter rhythm · tactile interactions · scroll-reveal · mobile carousel
 * genre: playful (Hallow/Duolingo reference — warm consumer faith app)
 * Pre-emit critique: P4 H4 E4 S4 R4 V4 */

@import url('design-system/colors_and_type.css');

/* ── Supplemental tokens ── */
:root {
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 520ms;
  --dur-hover:  180ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html, body {
  background: var(--color-cream);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 60ms; }
[data-reveal][data-delay="2"] { transition-delay: 120ms; }
[data-reveal][data-delay="3"] { transition-delay: 180ms; }
[data-reveal][data-delay="4"] { transition-delay: 240ms; }
[data-reveal][data-delay="5"] { transition-delay: 300ms; }
[data-reveal][data-delay="6"] { transition-delay: 360ms; }
[data-reveal][data-delay="7"] { transition-delay: 420ms; }
[data-reveal][data-delay="8"] { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Layout ── */
.shell { max-width: 1320px; margin: 0 auto; padding-inline: 40px; }

/* ── Top Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(250, 247, 242, 0.80);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-hover) var(--ease-calm),
              border-color var(--dur-hover) var(--ease-calm),
              box-shadow var(--dur-hover) var(--ease-calm);
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.96);
  border-bottom-color: rgba(31,29,27,0.14);
  box-shadow: 0 1px 16px rgba(31,29,27,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}
.nav-center {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--color-surface-1);
  font-size: 13px; color: var(--color-text-secondary);
  transition: background var(--dur-hover) var(--ease-calm);
}
.nav-center:hover { background: var(--color-surface-2); }
.nav-center .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6B7B9E;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--color-text-secondary); }
.nav-links a { transition: color var(--dur-hover) var(--ease-calm); }
.nav-links a:hover { color: var(--color-text-primary); }

.btn {
  font-family: inherit;
  border: none; cursor: pointer;
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  padding: 11px 20px;
  transition:
    opacity var(--dur-hover) var(--ease-calm),
    transform 140ms var(--ease-calm),
    box-shadow var(--dur-hover) var(--ease-calm),
    filter var(--dur-hover) var(--ease-calm);
  display: inline-block;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--color-ordinary);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--color-ordinary); color: var(--color-cream);
  box-shadow: 0 2px 8px rgba(123,146,121,0.38), 0 1px 2px rgba(0,0,0,0.10);
}
.btn-primary:hover {
  opacity: 1;
  filter: brightness(1.06);
  box-shadow: 0 4px 18px rgba(123,146,121,0.48), 0 2px 4px rgba(0,0,0,0.08);
}
.btn-primary:active {
  filter: brightness(0.97);
  box-shadow: 0 1px 4px rgba(123,146,121,0.2);
}

/* ── Nav mobile group + hamburger ── */
.nav-mobile-group {
  display: none;
  align-items: center; gap: 6px;
}
.nav-hamburger {
  background: transparent; border: none;
  padding: 8px; margin-right: -8px;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 150ms;
}
.nav-hamburger:hover { opacity: 0.65; }

/* ── Apple App Store Badge ── */
.apple-badge {
  display: inline-block;
  transition: opacity var(--dur-hover) var(--ease-calm),
              transform 140ms var(--ease-calm);
  line-height: 0;
}
.apple-badge img { display: block; height: 52px; width: auto; }
.apple-badge:hover { opacity: 0.9; transform: translateY(-1px); }
.apple-badge:active { transform: translateY(1px) scale(0.99); }
.apple-badge:focus-visible {
  outline: 2px solid var(--color-ordinary);
  outline-offset: 4px;
  border-radius: 12px;
}

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Hero ── */
.hero {
  padding-block: 40px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 72px);
}
.hero h1 {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--color-ordinary);
}
.hero-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  height: min(580px, calc(100vh - 200px));
}
.hero-art {
  position: absolute; inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #E8C57F url('design-system/assets/illustrations/rosary-hands.png') center/cover;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%);
}
.hero-art-quote {
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  color: var(--color-cream);
  font-size: 14px; font-weight: 500;
  line-height: 1.5;
  z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-art-quote em { font-weight: 400; opacity: 0.78; }

/* Floating phone */
.phone {
  position: absolute;
  right: -24px; bottom: -24px;
  width: 260px; height: 530px;
  border-radius: 48px;
  background: var(--color-charcoal);
  padding: 10px;
  box-shadow:
    0 40px 80px -20px rgba(31,29,27,0.52),
    0 16px 32px rgba(31,29,27,0.2),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
  transform: rotate(-3deg);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: var(--color-cream);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; border-radius: 999px;
  background: var(--color-charcoal);
  z-index: 4;
}

/* Phone — Home Screen */
.app-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px 4px; height: 50px;
  font-size: 13px; font-weight: 600; color: var(--color-text-primary);
}
.app-status-icons { display: flex; gap: 4px; align-items: center; opacity: 0.8; }

.app-hero-card {
  margin: 8px 14px 0;
  height: 200px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%),
              #E8C57F url('design-system/assets/illustrations/rosary-hands.png') center/cover;
  position: relative;
  overflow: hidden;
}
.app-hero-content {
  position: absolute; inset: auto 16px 14px 16px;
  color: var(--color-cream);
  display: flex; flex-direction: column; gap: 6px;
}
.app-hero-eyebrow {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,247,242,0.75);
}
.app-hero-title {
  font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.app-hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-ordinary);
  color: var(--color-cream);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px; font-weight: 600;
  margin-top: 6px;
  width: max-content;
}
.app-section {
  padding: 16px 14px 0;
}
.app-section-eyebrow {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-ordinary);
  margin-bottom: 4px;
}
.app-section-title {
  font-size: 16px; font-weight: 700; color: var(--color-text-primary);
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.app-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-surface-1);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 6px;
}
.app-row-thumb {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,0,0,0.18), rgba(0,0,0,0.32)),
              #E8C57F url('design-system/assets/illustrations/rosary-hands.png') center/cover;
  flex-shrink: 0;
}
.app-row-thumb.sage { background: var(--color-ordinary); }
.app-row-thumb.plum { background: var(--color-lent); }
.app-row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.app-row-title { font-size: 12px; font-weight: 600; color: var(--color-text-primary); line-height: 1.2; }
.app-row-sub { font-size: 10px; color: var(--color-text-secondary); }
.app-row-meta { font-size: 9px; color: var(--color-text-muted); }

/* ── Section primitives ── */
section { padding-block: 96px; }
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--color-ordinary);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1.5px; background: currentColor; border-radius: 1px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--color-ordinary); font-weight: 400; }
.section-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 600px;
  text-wrap: pretty;
}

/* ── Liturgical seasons ── */
.seasons {
  background: var(--color-surface-1);
  padding: 72px 0;
  border-radius: 28px;
  margin: 0 40px;
  overflow: hidden;
}
.seasons-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 40px;
  margin-bottom: 48px;
  gap: 40px;
}
.seasons-header h2 {
  font-size: clamp(26px, 3.8vw, 48px); font-weight: 400; line-height: 1.0;
  letter-spacing: -0.03em; max-width: 540px;
  overflow-wrap: anywhere; min-width: 0;
}
.seasons-header h2 em { font-style: italic; color: var(--color-ordinary); }
.seasons-header p {
  font-size: 16px; color: var(--color-text-secondary);
  max-width: 380px; line-height: 1.55;
}
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.season {
  background: var(--color-surface-1);
  padding: 32px 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background 200ms var(--ease-calm);
  cursor: default;
}
.season:hover { background: var(--color-cream); }
.season-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.season-name {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.season-date {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.season-blurb {
  font-size: 13px; color: var(--color-text-secondary); line-height: 1.5;
}
.season.is-now { background: var(--color-cream); }
.season.is-now::after {
  content: 'Today';
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-ordinary);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(123,146,121,0.14);
}

/* ── Feature rows ── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature-text { padding: 24px 0; }
.feature-list {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.feature-list li {
  list-style: none;
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 16px; color: var(--color-text-primary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 200ms;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  flex-shrink: 0; padding-top: 4px;
  width: 32px;
}
.feature-list strong {
  display: block; font-weight: 700; margin-bottom: 4px;
}
.feature-list span.body {
  font-weight: 400; color: var(--color-text-secondary);
  font-size: 15px; line-height: 1.5;
}

/* Feature art panels */
.feature-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}
.feature-art.sage { background: var(--color-ordinary); }
.feature-art.terracotta { background: var(--color-pentecost); }

/* Phone embedded in feature art */
.feature-art .phone-mini {
  position: absolute;
  width: 75%;
  aspect-ratio: 0.49;
  background: var(--color-charcoal);
  border-radius: 36px;
  padding: 8px;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.feature-art .phone-mini > .phone-screen { border-radius: 30px; }

/* Family co-pray indicator cards */
.family-card {
  position: absolute;
  background: var(--color-cream);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; align-items: center; gap: 12px;
}
.family-card.tl { top: 8%; left: 6%; }
.family-card.br { bottom: 12%; right: 6%; }
.fam-avatars { display: flex; }
.fam-avatars span {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--color-cream);
  margin-left: -8px;
  background: var(--color-surface-3);
}
.fam-avatars span:nth-child(1) { margin-left: 0; background: #C9A77F; }
.fam-avatars span:nth-child(2) { background: #8E6F84; }
.fam-avatars span:nth-child(3) { background: #7B9279; }
.fam-avatars span:nth-child(4) { background: #6B7B9E; }
.fam-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-ordinary);
  position: relative;
  flex-shrink: 0;
}
.fam-pulse::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: var(--color-ordinary); opacity: 0.25;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fam-text { display: flex; flex-direction: column; }
.fam-text strong { font-size: 13px; font-weight: 600; }
.fam-text span { font-size: 11px; color: var(--color-text-secondary); }

/* ── Prayer Library ── */
.library-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 40px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prayer-card {
  background: var(--color-surface-1);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}
.prayer-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 20px 48px rgba(31,29,27,0.14),
    0 4px 12px rgba(31,29,27,0.08),
    0 0 0 1px rgba(31,29,27,0.04);
}
.prayer-card:active {
  transform: translateY(-2px) scale(1.005);
  box-shadow:
    0 8px 24px rgba(31,29,27,0.10),
    0 2px 6px rgba(31,29,27,0.06);
}
.prayer-card:focus-visible {
  outline: 2px solid var(--color-ordinary);
  outline-offset: 3px;
}
.prayer-art {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface-2);
  transition: transform 400ms var(--ease-out);
}
.prayer-card:hover .prayer-art {
  transform: scale(1.05);
}
.prayer-meta {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.prayer-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.prayer-title {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2;
}

/* ── Pull quote ── */
.quote {
  text-align: center;
  padding-block: 120px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.quote-mark {
  font-size: 56px; line-height: 1;
  color: var(--color-ordinary);
  font-weight: 300; margin-bottom: 20px;
  font-style: italic;
}
.quote p {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-style: italic;
  max-width: 900px;
  margin: 0 auto 36px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.quote-attr {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
}

/* ── Final CTA ── */
.cta {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: 32px;
  margin: 0 40px;
  padding: 96px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,146,121,0.32), rgba(123,146,121,0) 65%);
  pointer-events: none;
}
.cta::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,123,158,0.18), rgba(107,123,158,0) 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cta h2 em { font-style: italic; color: #B5C9B3; }
.cta p {
  font-size: 17px; line-height: 1.55;
  color: rgba(250,247,242,0.72);
  max-width: 460px; margin-bottom: 36px;
}
.cta-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #E8C57F url('design-system/assets/illustrations/rosary-hands.png') center/cover;
}

/* ── Footer ── */
footer {
  padding: 80px 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 15px; color: var(--color-text-secondary);
  line-height: 1.6; max-width: 320px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 15px; color: var(--color-text-primary);
  transition: color var(--dur-hover) var(--ease-calm);
}
.footer-col a:hover { color: var(--color-ordinary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13px; color: var(--color-text-muted);
}
.footer-seasons { display: flex; gap: 6px; }
.footer-seasons span {
  width: 10px; height: 10px; border-radius: 50%;
  transition: transform 200ms var(--ease-out);
}
.footer-seasons span:hover { transform: scale(1.5); }

/* ── Drawer ── */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(31,29,27,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease-calm);
  z-index: 60;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--color-cream);
  transform: translateX(100%);
  transition: transform 300ms var(--ease-out);
  z-index: 61;
  padding: 24px 28px;
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.drawer-close {
  background: var(--color-surface-1); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms var(--ease-calm);
}
.drawer-close:hover { background: var(--color-surface-2); }
.drawer-nav {
  display: flex; flex-direction: column;
  flex: 1;
}
.drawer-nav a {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: center;
  transition: color 150ms var(--ease-calm), padding-left 200ms var(--ease-out);
}
.drawer-nav a:hover {
  color: var(--color-ordinary);
  padding-left: 6px;
}
.drawer-nav a::after {
  content: '→';
  color: var(--color-text-muted);
  font-weight: 300;
}
.drawer-foot {
  padding-top: 24px;
  font-size: 13px; color: var(--color-text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-ordinary);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Sticky download bar (mobile) ── */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform 300ms var(--ease-out);
  pointer-events: none;
  display: none;
}
.sticky-bar.show { transform: translateY(0); pointer-events: auto; }
.sticky-bar-inner {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: 18px;
  padding: 12px 14px 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(31,29,27,0.28), 0 0 0 1px rgba(255,255,255,0.04);
}
.sticky-bar-left { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-bar-left strong { font-size: 15px; font-weight: 600; }
.sticky-bar-left span { font-size: 11px; opacity: 0.6; }
.sticky-bar-btn {
  background: var(--color-ordinary); color: var(--color-cream);
  border: none; border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(123,146,121,0.32);
  transition: transform 140ms var(--ease-calm), filter 140ms var(--ease-calm);
}
.sticky-bar-btn:hover { filter: brightness(1.06); }
.sticky-bar-btn:active { transform: scale(0.97); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 64px; }
  .hero-visual { height: 500px; }
  .feature { grid-template-columns: 1fr !important; gap: 40px !important; }
  .seasons-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .library-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cta { grid-template-columns: 1fr !important; gap: 40px !important; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-center { display: none; }
}

@media (max-width: 719px) {
  html, body { overflow-x: clip; }
  .shell { padding-inline: 24px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-download { display: none; }
  .nav-center { display: none; }
  .nav-mobile-group { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-block: 48px 0;
  }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-sub { font-size: 17px; margin-bottom: 32px; }
  .hero-visual {
    height: 520px;
    margin-left: -24px; margin-right: -24px;
    margin-top: 56px;
    overflow: hidden;
  }
  .hero-art { inset: 0 16px 80px; }
  .phone {
    right: 8px; bottom: 0;
    width: 210px; height: 430px;
    transform: rotate(-4deg);
  }

  /* Seasons */
  .seasons { margin: 0 16px; padding: 48px 0 16px; border-radius: 24px; }
  .seasons-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 32px;
    padding: 0 24px;
  }
  .seasons-header h2 { font-size: clamp(26px, 7.5vw, 36px); max-width: 100%; }
  .seasons-header p { max-width: 100%; font-size: 15px; }

  /* Mobile seasons — horizontal snap carousel */
  .seasons-grid {
    display: flex !important;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 24px 28px;
    gap: 10px;
    background: transparent !important;
    border: none !important;
  }
  .seasons-grid::-webkit-scrollbar { display: none; }
  .season {
    min-width: 185px;
    flex-shrink: 0;
    scroll-snap-align: start;
    flex-direction: column !important;
    gap: 10px;
    padding: 20px 18px 24px !important;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-cream) !important;
  }
  .season.is-now {
    background: var(--color-cream) !important;
    border-color: rgba(123,146,121,0.35);
  }
  .season-swatch { margin-bottom: 0; }

  /* Features */
  section { padding-block: 72px; }
  .feature { gap: 32px; }

  /* Library */
  .library-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .prayer-card { border-radius: 18px; }
  .prayer-title { font-size: 15px; }
  .prayer-meta { padding: 14px 14px 16px; }
  .library-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }

  /* Quote */
  .quote { text-align: left; padding-block: 72px; }
  .quote p { font-size: clamp(24px, 7vw, 34px); }

  /* CTA */
  .cta { grid-template-columns: 1fr !important; margin: 0 16px; padding: 48px 28px; border-radius: 24px; }
  .cta-art { display: none; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 0 32px; }

  /* Sticky bar */
  .sticky-bar { display: block; }
}

/* ── Legal pages ── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}
.legal-page h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal-page .legal-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.legal-page ul, .legal-page ol { margin: 0 0 16px 24px; }
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.legal-page th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  background: var(--color-surface-1);
  border-bottom: 1px solid var(--color-border);
}
.legal-page td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}
.legal-page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}
.legal-page a {
  color: var(--color-ordinary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--color-border);
}
.legal-nav .logo { font-size: 18px; }
.legal-nav-back {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}
.legal-nav-back:hover { color: var(--color-text-primary); }
@media (max-width: 700px) {
  .legal-page { padding: 48px 20px 80px; }
  .legal-nav { padding: 16px 20px; }
}
