/* ---------------------------------------------------------------------
   MAC — Mad About Christ
   Warm, contemplative identity: soft parchment paper background, deep
   olive as the primary accent, muted clay + sunrise gold as sparing
   secondary tones — olive branch, sun-baked earth, first light. Calm
   and unhurried rather than "SaaS product" — generous whitespace,
   serif display type for anything devotional, plenty of quiet.
   --------------------------------------------------------------------- */

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

:root {
  /* Surfaces */
  --paper: #FBF9F2;
  --paper-alt: #F2EEDE;
  --card: #FFFFFF;
  --line: #E3E0CC;
  --line-soft: #ECE9D9;

  /* Ink */
  --ink: #22261A;
  --ink-soft: #4E5741;
  --ink-faint: #737C63;

  /* Olive (primary) */
  --olive: #55632B;
  --olive-deep: #3E4A1D;
  --olive-darkest: #29310F;
  --olive-bright: #7C8C46;
  --olive-wash: rgba(85, 99, 43, 0.08);
  --olive-wash-strong: rgba(85, 99, 43, 0.14);

  /* Clay (secondary accent) */
  --clay: #B4855A;
  --clay-deep: #8C6540;
  --clay-wash: rgba(180, 133, 90, 0.12);

  /* Sunrise gold — used only in the hero illustration */
  --gold-bright: #FCEFC7;
  --gold: #E7B65A;
  --gold-deep: #C68F3C;
  --gold-darkest: #8A5A26;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;

  /* Layout */
  --gutter: 8vw;
  --topbar-h: 76px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 60px -28px rgba(34, 38, 26, 0.18), 0 1px 0 rgba(34, 38, 26, 0.03);
  --shadow-lift: 0 30px 70px -26px rgba(34, 38, 26, 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(34, 38, 26, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--olive-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.icon-sprite { display: none; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--olive-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; }
.btn-filled {
  background: var(--olive-deep);
  color: #FBF9F2;
  border-color: var(--olive-deep);
}
.btn-filled:hover {
  background: var(--olive-darkest);
  border-color: var(--olive-darkest);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(41, 49, 15, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--olive-deep);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--olive-deep);
  background: var(--olive-wash);
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(251, 249, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--olive) 0%, var(--clay) 55%, transparent 90%);
  opacity: 0.5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--olive-deep);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
.nav-links a,
.nav-link-btn {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-links a::after,
.nav-link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--clay);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover,
.nav-link-btn:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-link-btn:hover::after { right: 0; }
.nav-links a[aria-current="page"],
.mobile-nav a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { right: 0; background: var(--olive-deep); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-link:hover { color: var(--olive-deep); }
.user-badge {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, top 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 25;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, visibility 0s linear 0.25s;
  box-shadow: 0 24px 40px -20px rgba(34, 38, 26, 0.22);
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, visibility 0s linear 0s;
}
.mobile-nav a,
.mobile-nav .nav-link-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.mobile-nav a::after,
.mobile-nav .nav-link-btn::after { content: none; }
.mobile-nav-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* ---------- Layout basics ---------- */
main { padding: var(--topbar-h) var(--gutter) 0; }
section { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }

.label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 14px;
}
.label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--clay);
  margin-right: 10px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.rule {
  width: 100%;
  max-width: 220px;
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.intro-copy {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 8px;
}

.alt-bg {
  background-color: var(--paper-alt);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(ellipse 760px 480px at 92% -14%, rgba(231, 182, 90, 0.16), transparent 62%),
    radial-gradient(ellipse 560px 460px at 2% 108%, rgba(180, 133, 90, 0.12), transparent 60%),
    var(--paper);
}
.hero-rays {
  position: absolute;
  top: 6px;
  right: 5vw;
  width: 220px;
  height: 220px;
  color: var(--olive-bright);
  opacity: 0.35;
  pointer-events: none;
}
@keyframes flicker {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
.hero-rays g { animation: flicker 6s ease-in-out infinite; transform-origin: 330px 60px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy .label { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--olive-deep);
  font-style: italic;
}
.hero-copy > p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: linear-gradient(135deg, var(--olive-bright), var(--olive));
  margin-left: -10px;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(2) { background: linear-gradient(135deg, var(--clay), var(--clay-deep)); }
.avatar-stack span:nth-child(3) { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.avatar-stack span:nth-child(4) { background: linear-gradient(135deg, var(--olive-deep), var(--olive-darkest)); }
.social-proof-text { display: flex; flex-direction: column; gap: 2px; }
.social-proof-text strong {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.social-proof-text span {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Hero illustration + floating cards */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-art {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1 / 0.9;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.hero-scene { width: 100%; height: 100%; }
.hero-script {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  fill: var(--olive-darkest);
  opacity: 0.75;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 210px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}
.floating-card svg.icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  background: var(--olive-wash);
  color: var(--olive-deep);
  flex-shrink: 0;
}
.floating-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.floating-card span {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.card-1 { top: -6%; left: -12%; animation-delay: 0s; }
.card-2 { top: 16%; right: -16%; animation-delay: 1.4s; }
.card-3 { bottom: 14%; left: -16%; animation-delay: 2.8s; }
.card-4 { bottom: -6%; right: -10%; animation-delay: 4.2s; }
.card-2 svg.icon, .card-4 svg.icon { background: var(--clay-wash); color: var(--clay-deep); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- What we do ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px 26px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--olive-bright);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--olive-wash);
  color: var(--olive-deep);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.feature-arrow {
  width: 16px;
  height: 16px;
  margin-top: auto;
  color: var(--olive-deep);
  transition: transform 0.22s var(--ease);
}
.feature-card:hover .feature-arrow { transform: translateX(4px); }

/* ---------- Daily verse ---------- */
.verse-section { padding-top: 96px; padding-bottom: 104px; }
.verse-head { max-width: 640px; margin-bottom: 40px; }
.verse-head .section-title { margin-bottom: 0; }
.theme-banner {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: var(--olive-wash);
  border: 1px solid rgba(85, 99, 43, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
}
.theme-sep { color: rgba(85, 99, 43, 0.4); margin: 0 2px; }

.verse-card {
  position: relative;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 56px 48px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.verse-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--olive) 0%, var(--clay) 100%);
}
.verse-mark {
  position: absolute;
  top: -6px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: var(--olive);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}
.verse-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
}
.verse-ref {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--olive-deep);
}
.verse-ref::before {
  content: "—";
  margin-right: 8px;
  color: var(--clay);
}
.verse-rule {
  margin-top: 30px;
  margin-bottom: 26px;
  max-width: 140px;
  background: var(--line);
}
.reflection {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.verse-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 8px;
  color: var(--ink-faint);
}
.empty-icon {
  width: 40px;
  height: 40px;
  color: var(--olive);
  opacity: 0.8;
  margin-bottom: 18px;
}
.verse-empty .intro-copy {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--ink-faint);
}
.verse-actions { margin-top: 32px; }

/* ---------- Impact ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--clay-wash);
  color: var(--clay-deep);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--olive-deep) 0%, var(--olive-darkest) 100%);
  color: #E9E7D6;
  padding: 72px var(--gutter) 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay) 0%, var(--gold) 55%, var(--olive-bright) 100%);
  opacity: 0.85;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(233, 231, 214, 0.14);
}
.footer-brand { color: #F6F4E7; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-brand .brand-sub { color: rgba(233, 231, 214, 0.6); }
.footer-verse {
  max-width: 420px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 244, 231, 0.92);
}
.footer-verse cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.follow-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(233, 231, 214, 0.55);
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(233, 231, 214, 0.2);
  color: rgba(233, 231, 214, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-icons a:hover {
  background: rgba(233, 231, 214, 0.12);
  border-color: rgba(233, 231, 214, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.social-icons a[aria-label*="coming soon" i] { opacity: 0.5; }
.social-icons .icon { width: 18px; height: 18px; }

.footer-bottom {
  padding: 24px 0 28px;
  border-top: 1px solid rgba(233, 231, 214, 0.14);
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(233, 231, 214, 0.55);
  text-align: center;
}
.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 32, 20, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  padding: 6vh 8vw;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.modal-backdrop.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}
.modal {
  position: relative;
  background: var(--card);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: 0 40px 90px -30px rgba(34, 38, 26, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: #ffffff;
}
.modal-block {
  position: relative;
  padding: 32px 0 32px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--olive), var(--clay));
  border-radius: 2px;
  opacity: 0.8;
}
.modal-block:first-of-type { padding-top: 0; }
.modal-block:first-of-type::before { top: 4px; }
.modal-block:last-of-type { padding-bottom: 0; border-bottom: none; }
.modal-block:last-of-type::before { bottom: 0; }
.modal-block .section-title { margin-bottom: 0; }
.modal-block .rule { margin: 18px 0 20px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 16px;
}
.info-item {
  padding: 18px 20px;
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.info-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.info-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav-links, .topbar-actions .auth-row, .topbar-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy > p { max-width: 560px; }
  .hero-visual { min-height: 0; padding: 12px 0 44px; }
  .hero-art { width: min(100%, 340px); margin: 0 auto; }
  .floating-card {
    position: static;
    max-width: none;
    animation: none;
    margin-top: 14px;
  }
  .card-1 { margin-top: 28px; }
  .hero-visual { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 6vw; --topbar-h: 68px; }
  main { padding-top: var(--topbar-h); }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .verse-section { padding-top: 64px; padding-bottom: 72px; }

  .feature-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .verse-card { padding: 40px 24px 32px; border-radius: 14px; }
  .verse-mark { font-size: 100px; left: 16px; }

  .footer-top { flex-direction: column; gap: 28px; }

  .modal-backdrop { padding: 0; }
  .modal { padding: 36px 22px; border-radius: 0; min-height: 100%; }
  .modal-block { padding-left: 18px; }

  .brand-sub { display: none; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
