@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;0,600;1,300&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #030A04;
  --surface: rgba(4,12,6,0.78);
  --surface-elevated: rgba(3,10,5,0.88);
  --border: rgba(255,255,255,0.13);
  --border-light: rgba(255,255,255,0.20);
  --accent: #7AA982;
  --accent-light: #A8CCA0;
  --accent-pale: #BFDBC1;
  --accent-dim: rgba(122,169,130,0.14);
  --text-primary: #F8F4EC;
  --text-secondary: rgba(248,244,236,0.72);
  --text-muted: rgba(248,244,236,0.52);
  --text-subtle: rgba(248,244,236,0.35);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --gold: #C49A4A;
  --gold-dim: rgba(196,154,74,0.14);
  --ease-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-back: cubic-bezier(0.34,1.56,0.64,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Alpine Sovereignty background — mirrors NatureBackground.tsx: photo, dark overlay, vignette, top/bottom scrim */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/bg-hero.jpg');
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, transparent 0%, transparent 48%, rgba(1,9,4,0.35) 72%, rgba(1,9,4,0.72) 100%),
    linear-gradient(to bottom, rgba(1,9,4,0.55) 0%, rgba(1,9,4,0.10) 22%, rgba(1,9,4,0.22) 55%, rgba(3,10,4,0.88) 82%, #030A04 100%),
    rgba(1,9,4,0.22);
  pointer-events: none;
  z-index: 0;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,7,4,0.4);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s var(--ease-expo), border-color 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo);
}
.nav.scrolled { background: rgba(2,7,4,0.82); border-bottom-color: rgba(255,255,255,0.1); box-shadow: 0 12px 34px rgba(0,0,0,0.35); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; transition: padding 0.4s var(--ease-expo); }
.nav.scrolled .wrap { padding: 13px 24px; }
.brand .brand-icon { transition: transform 0.4s var(--ease-back); }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.06); }
.brand { display: flex; align-items: center; gap: 11px; line-height: 1; }
.brand .brand-icon { width: 34px; height: 34px; border-radius: 22%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.brand .brand-text { display: flex; flex-direction: column; }
.brand .brand-word { font-family: var(--font-display); font-weight: 300; font-size: 15px; letter-spacing: 7px; color: rgba(248,244,236,0.95); }
.brand .brand-tag { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.5px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { background: var(--accent); color: #05130A !important; padding: 9px 18px; border-radius: 8px; font-weight: 600 !important; font-size: 13px !important; }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: rgba(3,10,5,0.97); backdrop-filter: blur(16px); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-menu-btn { display: block; }
}

/* Eyebrow / labels */
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 14px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 10px; font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%); transform: translateX(-120%); transition: transform 0.6s var(--ease-expo); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--accent); color: #05130A; }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-disabled:hover { background: var(--accent); }

/* Store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 11px 20px 11px 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
}
.store-badge:hover { border-color: var(--accent); background: rgba(122,169,130,0.08); transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .store-sub { font-size: 10px; color: var(--text-muted); font-family: var(--font-body); }
.store-badge .store-main { font-size: 16px; font-family: var(--font-body); font-weight: 600; color: var(--text-primary); }
.store-badge.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.store-badge .soon-tag { position: absolute; top: -9px; right: 10px; background: #C49A4A; color: #1a1200; font-size: 9px; font-family: var(--font-mono); letter-spacing: 1px; padding: 2px 7px; border-radius: 20px; font-weight: 600; }

/* Page-load curtain — signature leaf-draw entrance */
html.curtain-active { overflow: hidden; }
#curtain {
  position: fixed; inset: 0; z-index: 300; background: #030A04;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.8s var(--ease-expo), visibility 0.8s;
}
#curtain.active { opacity: 1; visibility: visible; pointer-events: all; }
#curtain.leaving { opacity: 0; }
#curtain svg { width: 104px; height: 104px; overflow: visible; }
#curtain svg path { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#curtain .curtain-word { font-family: var(--font-mono); font-size: 11px; letter-spacing: 6px; color: var(--text-muted); opacity: 0; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mote { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-light); opacity: 0; filter: blur(0.3px); animation-name: mote-rise; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes mote-rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 8% { opacity: 0.55; } 92% { opacity: 0.35; } 100% { transform: translateY(-520px) translateX(var(--drift, 24px)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mote { display: none; } }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-copy { order: 1; } .hero-visual { order: 2; margin: 0 auto; } }
.hero-copy .store-row, .hero-copy .eyebrow { }
@media (max-width: 940px) { .hero .store-row { justify-content: center; } }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: 0.2px; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line-inner { display: inline-block; }
html.curtain-active .hero h1 .line-inner { transform: translateY(112%); }
html.curtain-active .hero-reveal { opacity: 0; transform: translateY(22px); }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p.sub { max-width: 460px; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
@media (max-width: 940px) { .hero p.sub { margin: 0 auto; } }
.hero .hero-note { margin-top: 18px; font-size: 12.5px; color: var(--text-subtle); font-family: var(--font-mono); letter-spacing: 0.3px; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
@media (max-width: 940px) { .hero-stats { justify-content: center; } }
.hero-stats .stat-num { font-family: var(--font-display); font-weight: 300; font-size: 30px; color: var(--text-primary); line-height: 1; }
.hero-stats .stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-subtle); margin-top: 6px; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
html.curtain-active .hero-visual { opacity: 0; transform: translateY(46px) scale(0.94); }
.hero-visual::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(122,169,130,0.30), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 349 / 760;
  border-radius: 42px;
  background: #05130a;
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
  padding: 8px;
  z-index: 1;
}
.phone-lg { width: 268px; }
.phone-sm { width: 168px; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #05130a; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; background: #05130a; border-radius: 12px; z-index: 2; }
.phone .screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 22%, transparent 78%, rgba(255,255,255,0.05) 100%);
  opacity: 0.6;
}
.hero-visual { perspective: 1100px; }
.phone-lg { transform-style: preserve-3d; transition: transform 0.1s linear; }
.phone-float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  50% { transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .phone-float { animation: none; } }

/* Readiness Score calculator (hero phone widget) */
.rw { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 26px 18px 20px; background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(122,169,130,0.10), transparent 60%), #05130a; }
.rw-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.rw-greeting { font-family: var(--font-display); font-weight: 300; font-size: 15px; line-height: 1.25; color: var(--text-secondary); }
.rw-greeting em { font-style: normal; color: var(--text-primary); }
.rw-dots { display: flex; gap: 5px; margin-top: 4px; }
.rw-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-light); transition: background 0.2s; }
.rw-dot.filled { background: var(--accent-light); }

.rw-steps { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.rw-question { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--text-primary); margin-bottom: 16px; letter-spacing: -0.1px; }
.rw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-chip {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-light); border-radius: 999px;
  padding: 9px 15px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.rw-chip:hover { border-color: var(--accent); background: rgba(122,169,130,0.10); color: var(--accent-light); }
.rw-chip:active { transform: scale(0.96); }

.rw-result { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; justify-content: center; }
.rw-result[hidden] { display: none; }
.rw-steps[hidden], .rw-dots[hidden] { display: none; }
.rw-ring-wrap { position: relative; width: 150px; height: 150px; }
.rw-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rw-ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 11; }
.rw-ring-glow { fill: none; stroke-width: 14; stroke-linecap: round; opacity: 0.18; stroke-dasharray: 408.4; stroke-dashoffset: 408.4; }
.rw-ring-arc { fill: none; stroke: url(#rwRingGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 408.4; stroke-dashoffset: 408.4; }
.rw-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rw-score { font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1; color: var(--text-primary); }
.rw-score-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px; color: var(--text-muted); }
.rw-verdict { margin-top: 14px; font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.2px; }
.rw-tagline { margin-top: 10px; max-width: 200px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.rw-store-row { margin-top: 18px; gap: 8px; justify-content: center; }
.rw-store-row .store-badge { padding: 7px 12px 7px 10px; border-radius: 9px; }
.rw-store-row .store-badge svg { width: 17px; height: 17px; }
.rw-store-row .store-sub { font-size: 8px; }
.rw-store-row .store-main { font-size: 11px; }
.rw-store-row .soon-tag { font-size: 7px; padding: 1px 5px; top: -7px; right: 6px; }

/* Spotlight — oversized readiness ring, the "money shot" */
.spotlight { position: relative; padding: 100px 0 110px; overflow: hidden; }
.spotlight-head { max-width: 540px; margin: 0 auto 60px; text-align: center; }
.spotlight-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 4px 0 16px; }
.spotlight-head p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.spotlight-ring-wrap { position: relative; width: 300px; height: 300px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.spotlight-ring-wrap::before {
  content: ''; position: absolute; width: 460px; height: 460px; left: 50%; top: 50%;
  transform: translate(-50%,-50%); background: radial-gradient(circle, var(--gold-dim), transparent 68%);
  filter: blur(16px); z-index: 0; animation: pulse-glow 8s ease-in-out infinite;
}
.spotlight-ring-wrap svg { position: relative; z-index: 1; width: 100%; height: 100%; transform: rotate(-90deg); }
.spot-ring-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 15; }
.spot-ring-glow { fill: none; stroke-width: 20; stroke-linecap: round; opacity: 0.16; stroke-dasharray: 703.7; stroke-dashoffset: 703.7; }
.spot-ring-arc { fill: none; stroke: url(#spotGrad); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 703.7; stroke-dashoffset: 703.7; }
.spot-ring-center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.spot-score { font-family: var(--font-display); font-weight: 300; font-size: 76px; line-height: 1; color: var(--text-primary); }
.spot-score-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3.5px; color: var(--text-muted); }
.spot-verdict { margin-top: 10px; font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--gold); opacity: 0; transition: opacity 0.5s; }
.spot-verdict.shown { opacity: 1; }
@media (max-width: 560px) { .spotlight-ring-wrap { width: 240px; height: 240px; } .spot-score { font-size: 58px; } }

/* Screenshot showcase */
.showcase { padding: 30px 0 80px; }
.showcase-row { display: flex; gap: 22px; overflow-x: auto; padding: 30px 4px 14px; scroll-snap-type: x proximity; }
.showcase-row::-webkit-scrollbar { height: 6px; }
.showcase-row::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.showcase-item { flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.showcase-item .phone { margin: 0 auto; }
.showcase-item .caption { margin-top: 16px; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.showcase-item .caption-sub { margin-top: 3px; font-size: 12px; color: var(--text-muted); }

/* Feature grid */
.features { padding: 60px 0 90px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 820px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 22px; transition: border-color 0.25s, transform 0.25s var(--ease-expo); }
.feature-card:hover { border-color: var(--border-light); }
.feature-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 18px; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(122,169,130,0.16), transparent 55%);
  transition: opacity 0.35s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card .icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(122,169,130,0.24), rgba(196,154,74,0.10));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.35s var(--ease-back), box-shadow 0.3s;
}
.feature-card:hover .icon { transform: scale(1.1) rotate(-4deg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 22px rgba(122,169,130,0.22); }
.feature-card .icon svg { width: 22px; height: 22px; stroke: var(--accent-light); fill: none; stroke-width: 1.6; }
.feature-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin-bottom: 8px; letter-spacing: -0.2px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto; }
.section-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.2px; }
.section-head p { color: var(--text-muted); font-size: 15px; margin-top: 12px; }

/* CTA band */
.cta-band { padding: 70px 0 100px; text-align: center; }
.cta-card { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(122,169,130,0.10), rgba(4,12,6,0.6)); border: 1px solid var(--border-light); border-radius: 24px; padding: 60px 30px; }
.cta-card::before {
  content: ''; position: absolute; width: 380px; height: 380px; left: 50%; top: 50%;
  transform: translate(-50%,-50%); background: radial-gradient(circle, var(--gold-dim), transparent 70%);
  filter: blur(10px); z-index: 0; animation: pulse-glow 7s ease-in-out infinite;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-card p { color: var(--text-muted); max-width: 460px; margin: 0 auto; }
.cta-card .store-row { justify-content: center; }
@keyframes pulse-glow { 0%,100% { opacity: 0.55; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .cta-card::before { animation: none; opacity: 0.8; } }

/* Scroll reveal system (driven by assets/motion.js + GSAP) */
[data-reveal] { will-change: transform, opacity; }
.showcase-row { position: relative; perspective: 1400px; }
.showcase-item .phone { transform-style: preserve-3d; will-change: transform; }
.showcase-vine { position: absolute; left: 0; top: 0; width: 100%; height: 140px; pointer-events: none; z-index: 0; overflow: visible; }
.showcase-item { position: relative; z-index: 1; }
#vinePath { fill: none; stroke: var(--accent-light); stroke-width: 1.4; opacity: 0.55; }
.vine-node { fill: var(--gold); opacity: 0.7; }
@media (max-width: 820px) { .showcase-vine { display: none; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 12.5px; color: var(--text-subtle); font-family: var(--font-mono); }

/* Legal pages */
.legal-page { padding: 56px 0 100px; }
.legal-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.legal-header .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); letter-spacing: 0.5px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin: 38px 0 14px; letter-spacing: -0.2px; color: var(--text-primary); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: var(--accent-light); }
.legal-body p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px 20px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--text-primary); font-weight: 600; }
.legal-body a.inline-link { color: var(--accent-light); border-bottom: 1px solid rgba(168,204,160,0.35); }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 40px; }
.legal-toc .eyebrow { margin-bottom: 12px; }
.legal-toc ol { margin-left: 18px; }
.legal-toc li { font-size: 13.5px; margin-bottom: 6px; }
.legal-toc a { color: var(--text-secondary); }
.legal-toc a:hover { color: var(--accent-light); }
.callout { background: rgba(196,154,74,0.08); border: 1px solid rgba(196,154,74,0.35); border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.callout p { color: var(--text-secondary); margin: 0; font-size: 13.5px; }
.callout strong { color: #C49A4A; }

/* Delete-account form */
.delete-form { margin-top: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; }
.delete-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin: 14px 0 8px; }
.delete-label:first-child { margin-top: 0; }
.delete-input {
  font-family: var(--font-body); font-size: 14.5px; color: var(--text-primary);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 12px 14px; width: 100%; resize: vertical;
}
.delete-input:focus { outline: none; border-color: var(--accent); }
.delete-input::placeholder { color: var(--text-subtle); }
.delete-note { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
