/* ================================================================
   Bethel — Editorial Luxury system
   Warm paper cream · Deep ink-navy · Single muted blue accent
   Fraunces (display, variable) + Manrope (body)
================================================================ */

:root {
  /* ── Tinted neutrals (warm hue baseline) ── */
  --paper:        #FBF4E6;   /* warm cream, slightly more saturated than before */
  --paper-2:      #F4EAD3;   /* tinted card surface */
  --paper-3:      #E8DBBE;   /* hover / pressed paper */
  --paper-line:   rgba(38, 27, 14, 0.08);

  /* ── Ink (warm-shifted dark) ── */
  --ink:          #0E1620;   /* main dark — not pure black, warm-tinted */
  --ink-2:        #14202E;   /* card surface dark */
  --ink-3:        #1B2A3C;   /* lifted dark */
  --ink-line:     rgba(255, 246, 233, 0.08);

  /* ── Single brand accent ── */
  --accent:       #2B6D99;
  --accent-2:     #1F567A;
  --accent-3:     #3D85B5;
  --accent-soft:  rgba(43, 109, 153, 0.12);

  /* ── Type tones ── */
  --text:         #1A1408;
  --text-soft:    #4D4232;
  --text-mute:    #7C6F5A;
  --text-on-dark: #F8EFDB;
  --text-on-dark-soft: rgba(248, 239, 219, 0.62);
  --text-on-dark-mute: rgba(248, 239, 219, 0.36);

  /* ── Radii (varied: tighter inner, softer outer) ── */
  --r-xs:  0.5rem;
  --r-sm:  0.875rem;
  --r-md:  1.25rem;
  --r-lg:  1.75rem;
  --r-xl:  2.25rem;
  --r-2xl: 2.75rem;

  /* ── Tinted shadows (warm bias) ── */
  --shadow-1:   0 1px 1px rgba(38, 27, 14, .04), 0 6px 16px rgba(38, 27, 14, .06);
  --shadow-2:   0 2px 4px rgba(38, 27, 14, .05), 0 16px 40px rgba(38, 27, 14, .10);
  --shadow-3:   0 4px 8px rgba(38, 27, 14, .06), 0 32px 64px rgba(38, 27, 14, .14);
  --shadow-ink: 0 32px 80px rgba(11, 18, 28, .55);

  /* ── Type ── */
  --font-sans:  'Manrope', system-ui, sans-serif;
  --font-serif: 'Fraunces', 'Times New Roman', serif;

  /* ── Motion (cinematic easing) ── */
  --ease:       cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:   220ms;
  --dur:        420ms;
  --dur-slow:   720ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  background: var(--paper);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Paper grain overlay (fixed, never animated) ── */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 768px) { .grain { opacity: .22; } }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* =============================================================
   TYPOGRAPHY
============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .35rem .85rem;
  background: var(--accent-soft);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.eyebrow.on-dark { color: var(--paper); background: rgba(248, 239, 219, .08); }
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.section-title.on-dark { color: var(--paper); }
.section-title.on-dark em { color: var(--accent-3); }

.section-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 4rem;
  text-wrap: pretty;
}
.section-lede.on-dark { color: var(--text-on-dark-soft); }

.section-head {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-bottom: 4rem;
}
.section-head .eyebrow { align-self: flex-start; }

/* =============================================================
   BUTTONS — Nested CTA Architecture
============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: .55rem .55rem .55rem 1.5rem;
  box-shadow: 0 12px 28px -8px rgba(38, 27, 14, .35);
}
.btn-primary .btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(248, 239, 219, .14);
  color: var(--paper);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-primary:hover { background: var(--accent); }
.btn-primary:hover .btn-icon {
  background: rgba(248, 239, 219, .22);
  transform: translate(2px, -1px) scale(1.06);
}
.btn-primary:active { transform: scale(.985); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: .85rem 1.5rem;
  border: 1px solid var(--paper-line);
}
.btn-ghost.on-dark { color: var(--text-on-dark); border-color: var(--ink-line); }
.btn-ghost:hover { background: var(--paper-2); border-color: rgba(38, 27, 14, .15); }
.btn-ghost.on-dark:hover { background: rgba(248, 239, 219, .06); border-color: rgba(248, 239, 219, .18); }

.btn-sm { font-size: .85rem; padding: .45rem 1.1rem; }
.btn-lg { font-size: 1rem; padding: .65rem .65rem .65rem 1.65rem; }
.btn-lg .btn-icon { width: 40px; height: 40px; }

.btn-download {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; width: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: none;
}
.btn-download .btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: transform var(--dur) var(--ease);
}
.btn-download:hover { background: #FFFFFF; }
.btn-download:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }

.btn-disabled {
  background: rgba(248, 239, 219, .04);
  color: rgba(248, 239, 219, .35);
  cursor: not-allowed;
  border: 1px solid rgba(248, 239, 219, .08);
}
.btn-disabled .btn-icon { background: rgba(248, 239, 219, .06); color: rgba(248, 239, 219, .3); }
.btn-disabled:hover { background: rgba(248, 239, 219, .04); }
.btn-disabled:hover .btn-icon { transform: none; }

/* =============================================================
   NAV — Floating pill, detached
============================================================= */
.nav {
  position: fixed; top: 1.25rem; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: top var(--dur) var(--ease);
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.75rem;
  padding: .5rem .5rem .5rem 1.5rem;
  background: rgba(251, 244, 230, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(38, 27, 14, .08);
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(38, 27, 14, .04), 0 16px 40px -16px rgba(38, 27, 14, .18);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(20, 32, 46, .82);
  border-color: rgba(248, 239, 219, .08);
  box-shadow: 0 8px 32px -8px rgba(11, 18, 28, .45);
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-links a { color: var(--text-on-dark-soft); }
.nav.scrolled .nav-logo:hover,
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--paper); }

.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.nav-icon { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-soft);
  padding: .35rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: currentColor; border-radius: 1px;
}

.nav-cta { margin-left: .25rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--ink);
  border: none;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--paper); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 4px); }
.nav-toggle.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(20, 32, 46, .94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.nav-mobile.open a { opacity: 1; transform: translateY(0); }
.nav-mobile.open a:nth-child(1) { transition-delay: .08s; }
.nav-mobile.open a:nth-child(2) { transition-delay: .14s; }
.nav-mobile.open a:nth-child(3) { transition-delay: .2s; }
.nav-mobile.open a:nth-child(4) { transition-delay: .26s; }

/* =============================================================
   HERO — Editorial split
============================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text-on-dark);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 9rem 0 5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 75% 35%, rgba(43, 109, 153, .25), transparent 70%),
              radial-gradient(50% 40% at 15% 80%, rgba(43, 109, 153, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(248, 239, 219, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 239, 219, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 40%, black, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-text > * + * { margin-top: 1.5rem; }
.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  color: var(--paper);
}
.hero-title em { color: var(--accent-3); }
.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
  max-width: 48ch;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; }

.hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem; margin-top: 2.5rem;
  border-top: 1px solid var(--ink-line);
}
.hero-meta-label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-on-dark-mute);
}
.platform-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.platform-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 500;
  color: var(--text-on-dark-soft);
  background: rgba(248, 239, 219, .04);
  border: 1px solid var(--ink-line);
  padding: .35rem .75rem;
  border-radius: 999px;
}

/* ── Phone mockup with double-bezel ── */
.hero-phone {
  display: flex; justify-content: center;
  position: relative;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone-shell {
  position: relative;
  padding: 6px;
  border-radius: 46px;
  background: linear-gradient(160deg, rgba(248, 239, 219, .14) 0%, rgba(248, 239, 219, .04) 50%, rgba(11, 18, 28, .35) 100%);
  box-shadow: 0 60px 120px -30px rgba(11, 18, 28, .7),
              0 0 80px rgba(43, 109, 153, .25);
}
.phone-shell::before {
  content: ""; position: absolute;
  inset: -120px;
  background: radial-gradient(circle, rgba(43, 109, 153, .35) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -1; pointer-events: none;
}
.phone-frame {
  width: 300px; height: 620px;
  background: var(--ink-2);
  border-radius: 40px;
  border: 1px solid rgba(248, 239, 219, .06);
  overflow: hidden; position: relative;
  box-shadow: inset 0 1px 0 rgba(248, 239, 219, .08);
}
.phone-notch {
  width: 110px; height: 28px; background: var(--ink-2);
  border-radius: 0 0 18px 18px; margin: 0 auto;
  position: relative; z-index: 2;
}
.phone-screen {
  height: calc(100% - 28px); overflow: hidden;
  background: var(--paper);
}

.app-home { padding: 1rem; height: 100%; display: flex; flex-direction: column; gap: .7rem; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem; }
.app-greeting { font-size: .8rem; font-weight: 700; color: var(--text); }
.app-date { font-family: var(--font-serif); font-style: italic; font-size: .75rem; color: var(--text-mute); }

.verse-card {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--r-md);
  padding: 1rem;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.verse-card::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(43, 109, 153, .4), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.verse-label {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-on-dark-mute);
  margin-bottom: .4rem;
}
.verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: .8rem;
  line-height: 1.45;
  margin-bottom: .5rem;
  text-wrap: balance;
}
.verse-ref { font-size: .65rem; font-weight: 600; color: var(--accent-3); font-variant-numeric: tabular-nums; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.app-tile {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: .75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  color: var(--text);
}
.app-tile.tile-accent { background: var(--accent); color: var(--paper); border-color: transparent; }
.app-tile.tile-ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.app-tile span { font-size: .72rem; font-weight: 600; }

.app-progress-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: .75rem;
}
.progress-label { font-size: .65rem; font-weight: 600; color: var(--text); margin-bottom: .55rem; font-variant-numeric: tabular-nums; }
.progress-bar-bg { height: 4px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin-bottom: .45rem; }
.progress-bar-fill { height: 100%; background: var(--ink); border-radius: 999px; }
.progress-info {
  display: flex; justify-content: space-between;
  font-size: .62rem; color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.progress-btn { color: var(--accent); font-weight: 600; }

/* =============================================================
   STATS — Editorial scroll-marker
============================================================= */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: end;
}
.stat-item {
  display: flex; flex-direction: column; gap: .4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-line);
}
.stat-num {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-num em { font-style: italic; font-weight: 300; color: var(--accent); }
.stat-label {
  font-size: .82rem;
  color: var(--text-mute);
  font-weight: 500;
  max-width: 18ch;
  text-wrap: balance;
}

/* =============================================================
   FEATURES — Asymmetric bento
============================================================= */
.features {
  padding: 8rem 0;
  background: var(--paper);
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 1rem;
}

/* Bento cells */
.feature-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { background: #FFFFFF; border-color: rgba(38, 27, 14, .12); }

.feature-card.f-wide { grid-column: span 4; }
.feature-card.f-narrow { grid-column: span 2; }
.feature-card.f-half { grid-column: span 3; }
.feature-card.f-third { grid-column: span 2; }
.feature-card.f-dark {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--ink-line);
}
.feature-card.f-dark:hover { background: var(--ink-3); border-color: rgba(248, 239, 219, .14); }

.feature-card h3 {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: .65rem;
  text-wrap: balance;
}
.feature-card.f-dark h3 { color: var(--paper); }
.feature-card.f-dark h3 em { color: var(--accent-3); font-style: italic; font-weight: 300; }
.feature-card h3 em { font-style: italic; font-weight: 300; color: var(--accent); }

.feature-card p {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 38ch;
}
.feature-card.f-dark p { color: var(--text-on-dark-soft); }

.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--accent);
  background: var(--accent-soft);
  align-self: flex-start;
  margin-bottom: 1.5rem;
}
.feature-card.f-dark .feature-icon { color: var(--paper); background: rgba(248, 239, 219, .08); }

.feature-deco {
  position: absolute;
  pointer-events: none;
}
/* Decoration for "wide bible" card — stacked verse lines */
.feature-deco-lines {
  bottom: 0; right: 0;
  width: 55%; height: 60%;
  background:
    linear-gradient(to bottom,
      transparent 0,
      transparent calc(50% - 1px),
      var(--paper-line) calc(50% - 1px),
      var(--paper-line) 50%,
      transparent 50%);
  background-size: 100% 1.5rem;
  mask-image: linear-gradient(to top right, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to top right, black, transparent 70%);
  opacity: .7;
}
/* Decoration for dark AI card — glowing dot */
.feature-deco-orb {
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(43, 109, 153, .5), transparent 65%);
  filter: blur(30px);
}
/* Decoration for hymn card */
.feature-deco-wave {
  bottom: 1.5rem; right: 1.5rem;
  display: flex; align-items: flex-end; gap: 4px;
  height: 50px;
}
.feature-deco-wave span {
  display: block; width: 4px;
  background: var(--accent); opacity: .4;
  border-radius: 2px;
}
.feature-deco-wave span:nth-child(1) { height: 25%; }
.feature-deco-wave span:nth-child(2) { height: 60%; }
.feature-deco-wave span:nth-child(3) { height: 90%; }
.feature-deco-wave span:nth-child(4) { height: 70%; opacity: .7; }
.feature-deco-wave span:nth-child(5) { height: 45%; }
.feature-deco-wave span:nth-child(6) { height: 80%; opacity: .6; }
.feature-deco-wave span:nth-child(7) { height: 35%; }

.feature-chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.feature-chip {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-mute);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: .25rem .65rem; border-radius: 999px;
}
.f-dark .feature-chip { color: var(--text-on-dark-soft); background: rgba(248, 239, 219, .05); border-color: rgba(248, 239, 219, .1); }

/* =============================================================
   SCREENS — Phone gallery
============================================================= */
.screens {
  padding: 8rem 0 5rem;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.screens-track {
  display: flex; gap: 2rem; padding: 2rem 1.5rem 3rem;
  margin: 0 calc(50% - 50vw); padding-left: max(2rem, calc(50% - 600px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: max(2rem, calc(50% - 600px));
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 27, 14, .15) transparent;
}
.screens-track::-webkit-scrollbar { height: 4px; }
.screens-track::-webkit-scrollbar-track { background: transparent; }
.screens-track::-webkit-scrollbar-thumb { background: rgba(38, 27, 14, .15); border-radius: 999px; }

.screen-card {
  flex-shrink: 0; width: 260px;
  display: flex; flex-direction: column; gap: 1.5rem;
  scroll-snap-align: center;
  transition: transform var(--dur) var(--ease);
}
.screen-card:hover { transform: translateY(-6px); }

.screen-phone-shell {
  padding: 5px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(38, 27, 14, .12) 0%, rgba(38, 27, 14, .04) 100%);
  box-shadow: var(--shadow-2);
}
.screen-phone {
  width: 250px; height: 510px;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden; position: relative;
}
.screen-phone-dark { background: var(--ink-2); }
.screen-phone-dark .mockup-header { border-bottom-color: rgba(248, 239, 219, .08); }
.screen-phone-dark .mockup-book { color: var(--paper); }
.screen-notch {
  width: 85px; height: 22px;
  background: inherit;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
.screen-content { height: calc(100% - 22px); overflow: hidden; }

/* ── Mockups ── */
.mockup-bible, .mockup-ai, .mockup-hymns, .mockup-dict {
  height: 100%; display: flex; flex-direction: column;
}
.mockup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--paper-line);
}
.mockup-book { font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: -0.005em; }
.mockup-actions { display: flex; gap: .35rem; }
.mockup-btn-sm {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--paper-2);
}
.screen-phone-dark .mockup-btn-sm { background: rgba(248, 239, 219, .07); }

.mockup-chapter { flex: 1; overflow: hidden; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.verse-row { display: flex; gap: .55rem; }
.vnum {
  font-family: var(--font-serif);
  font-size: .65rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  min-width: 14px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.vtxt {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
}
.highlight-row {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: .4rem .6rem;
  margin: 0 -.6rem;
}
.mockup-toolbar {
  display: flex; justify-content: space-around;
  padding: .7rem 1rem;
  border-top: 1px solid var(--paper-line);
  background: var(--paper);
}
.tb-btn { color: var(--text-mute); display: flex; align-items: center; }

/* AI dark mockup */
.ai-chat { flex: 1; overflow: hidden; padding: .85rem .9rem; display: flex; flex-direction: column; gap: .65rem; }
.ai-msg { font-size: .7rem; line-height: 1.55; max-width: 86%; }
.user-msg {
  align-self: flex-end;
  background: var(--accent);
  color: var(--paper);
  padding: .5rem .75rem;
  border-radius: 14px 14px 4px 14px;
}
.bot-msg { display: flex; gap: .5rem; align-items: flex-start; }
.bot-avatar {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(43, 109, 153, .25);
  color: var(--accent-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
  border: 1px solid rgba(43, 109, 153, .35);
}
.bot-msg > div:last-child {
  background: rgba(248, 239, 219, .06);
  color: rgba(248, 239, 219, .85);
  padding: .55rem .75rem;
  border-radius: 4px 14px 14px 14px;
  font-size: .68rem; line-height: 1.55;
}
.bot-msg em {
  font-family: var(--font-serif);
  color: var(--accent-3);
  font-style: italic;
}
.ai-typing {
  display: flex; gap: 4px; align-items: center;
  padding: .55rem .75rem;
  background: rgba(248, 239, 219, .06);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}
.ai-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-3); opacity: .5;
  animation: typing 1s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .2; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.ai-dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5BC9A0;
  box-shadow: 0 0 8px #5BC9A0;
  animation: pulse 2s infinite;
}
.ai-input-bar {
  display: flex; gap: .4rem; align-items: center;
  padding: .55rem .65rem;
  border-top: 1px solid rgba(248, 239, 219, .06);
}
.ai-input-field {
  flex: 1;
  font-size: .68rem;
  color: rgba(248, 239, 219, .3);
  background: rgba(248, 239, 219, .06);
  border-radius: 999px;
  padding: .45rem .8rem;
}
.ai-send-btn {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
.mockup-search-sm {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute);
}

/* Hymns */
.hymns-list { flex: 1; overflow: hidden; }
.hymn-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--paper-line);
}
.hymn-active {
  background: var(--accent-soft);
  border-bottom-color: transparent;
}
.hymn-num {
  width: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-mute);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hymn-active .hymn-num { color: var(--accent); }
.hymn-info { flex: 1; }
.hymn-title { font-size: .74rem; font-weight: 600; color: var(--text); letter-spacing: -0.005em; }
.hymn-meta { font-size: .62rem; color: var(--text-mute); margin-top: .15rem; }
.hymn-play { font-size: .65rem; color: var(--text-mute); }
.hymn-active .hymn-play { color: var(--accent); }

/* Dictionary */
.dict-search {
  display: flex; align-items: center; gap: .5rem;
  margin: .75rem;
  background: rgba(248, 239, 219, .06);
  border-radius: 999px;
  padding: .5rem .8rem;
  font-family: var(--font-serif);
  font-size: .72rem;
  font-style: italic;
  color: rgba(248, 239, 219, .6);
  border: 1px solid rgba(248, 239, 219, .08);
}
.dict-card {
  flex: 1; margin: 0 .75rem;
  background: rgba(248, 239, 219, .04);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(248, 239, 219, .08);
}
.dict-word {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent-3);
  margin-bottom: .25rem;
  letter-spacing: -0.01em;
}
.dict-strong {
  font-size: .6rem;
  color: rgba(248, 239, 219, .38);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .7rem;
  font-variant-numeric: tabular-nums;
}
.dict-def {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: .72rem;
  line-height: 1.55;
  color: rgba(248, 239, 219, .8);
  margin-bottom: .85rem;
  text-wrap: pretty;
}
.dict-ref-label {
  font-size: .58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(248, 239, 219, .28);
  margin-bottom: .4rem;
}
.dict-ref-list { display: flex; gap: .3rem; flex-wrap: wrap; }
.dict-ref {
  font-size: .62rem;
  background: rgba(43, 109, 153, .25);
  color: var(--accent-3);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.screen-label { padding: 0 .5rem; }
.screen-label h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: .35rem;
}
.screen-label p {
  font-size: .85rem;
  color: var(--text-soft);
  max-width: 26ch;
  line-height: 1.5;
}

/* =============================================================
   DOWNLOAD — Editorial, asymmetric
============================================================= */
.download {
  position: relative;
  padding: 8rem 0;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.download::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 25% 30%, rgba(43, 109, 153, .25), transparent 65%),
              radial-gradient(40% 40% at 80% 70%, rgba(43, 109, 153, .15), transparent 65%);
  pointer-events: none;
}
.download .container { position: relative; z-index: 1; }

.download-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.download-grid-right {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.download-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.5rem;
  background: rgba(248, 239, 219, .04);
  border: 1px solid rgba(248, 239, 219, .08);
  border-radius: var(--r-lg);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.download-card:hover {
  background: rgba(248, 239, 219, .06);
  border-color: rgba(248, 239, 219, .14);
  transform: translateY(-3px);
}
.download-card-featured {
  background: rgba(43, 109, 153, .12);
  border-color: rgba(43, 109, 153, .3);
}
.download-card-featured:hover {
  background: rgba(43, 109, 153, .18);
  border-color: rgba(43, 109, 153, .5);
}
.download-card-sm {
  padding: 1.25rem 1.5rem;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.dl-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: var(--accent);
  color: var(--paper);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.dl-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.dl-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(248, 239, 219, .06);
  border-radius: var(--r-md);
  color: var(--paper);
}
.download-card-featured .dl-icon { background: rgba(43, 109, 153, .25); color: var(--accent-3); }
.download-card-sm .dl-icon { width: 44px; height: 44px; margin-bottom: 0; }

.dl-os {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: .25rem;
}
.download-card-sm .dl-os { font-size: 1.05rem; margin-bottom: .1rem; }
.dl-version { font-size: .85rem; color: var(--text-on-dark-soft); margin-bottom: .15rem; }
.dl-arch { font-size: .78rem; color: var(--text-on-dark-mute); font-variant-numeric: tabular-nums; }
.dl-body { margin-bottom: 1.5rem; flex: 1; }
.dl-body p {
  font-size: .9375rem; line-height: 1.6;
  color: var(--text-on-dark-soft);
  max-width: 38ch;
}
.dl-actions { display: flex; flex-direction: column; gap: .65rem; }
.dl-note {
  font-size: .78rem;
  color: var(--text-on-dark-mute);
  font-style: italic;
  font-family: var(--font-serif);
}
.download-card-sm .dl-actions { flex: 1; }
.download-card-sm .dl-note { display: none; }

.install-note {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(248, 239, 219, .04);
  border: 1px solid rgba(248, 239, 219, .08);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  color: var(--text-on-dark-soft);
  font-size: .88rem; line-height: 1.6;
  max-width: 720px;
}
.install-note strong { color: var(--paper); font-weight: 600; }
.install-note code {
  background: rgba(43, 109, 153, .22);
  color: var(--accent-3);
  padding: .15rem .5rem;
  border-radius: 6px;
  font-size: .82rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* =============================================================
   FOOTER
============================================================= */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-mark { display: flex; align-items: center; gap: .65rem; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; }
.footer-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 32ch;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .9rem;
  color: var(--text-soft);
  padding: .25rem 0;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-line);
  font-size: .82rem;
  color: var(--text-mute);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--text); }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-card.f-wide { grid-column: span 4; }
  .feature-card.f-narrow { grid-column: span 2; }
  .feature-card.f-half { grid-column: span 2; }
  .feature-card.f-third { grid-column: span 2; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { top: 1rem; }
  .nav-inner { padding: .45rem .45rem .45rem 1.25rem; gap: 1rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { padding: 7rem 0 4rem; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-phone { order: -1; }
  .phone-frame { width: 270px; height: 560px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .stat-num { font-size: 2.5rem; }

  .features { padding: 5rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.f-wide,
  .feature-card.f-narrow,
  .feature-card.f-half,
  .feature-card.f-third { grid-column: span 1; }

  .screens { padding: 5rem 0 3rem; }
  .screens-track { padding-left: 1.5rem; padding-right: 1.5rem; }
  .screens-track::after { content: ""; flex-shrink: 0; width: 1px; }

  .download { padding: 5rem 0; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 2rem; }
  .dl-os { font-size: 1.25rem; }

  .footer { padding: 3rem 0 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .btn-ghost { justify-content: center; }
  .footer-mark + .footer-tagline { font-size: .95rem; }
}

/* =============================================================
   REVEAL UTILITIES
============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: .08s; }
.reveal[data-delay="200"] { transition-delay: .16s; }
.reveal[data-delay="300"] { transition-delay: .24s; }
.reveal[data-delay="400"] { transition-delay: .32s; }
