/* ----------------------------------------------------------------
   Calo. — design system
   A premium consumer-tech aesthetic. Inspired by Apple, Whoop,
   Linear and Levels: warm whites, deep blacks, single coral accent.
---------------------------------------------------------------- */

@import url("https://rsms.me/inter/inter.css");

:root {
  /* Brand */
  --coral-50:  #FFF1ED;
  --coral-100: #FFD9CD;
  --coral-200: #F8B5A0;
  --coral-400: #EC8770;
  --coral-500: #E26D5A;   /* primary */
  --coral-600: #D55A47;
  --coral-700: #B5402F;
  --coral-glow: 226, 109, 90;

  /* Neutral — warm */
  --bg:          #FAFAF8;
  --bg-elev-1:   #FFFFFF;
  --bg-elev-2:   #F3F3F0;
  --surface:     #F3F3F0;
  --text:        #0D0D12;
  --text-muted:  #6B6B6B;
  --text-faint:  #9A9A93;
  --border:      #E8E8E4;
  --border-strong: #D4D4CC;
  --hairline:    rgba(13, 13, 18, 0.06);
  --shadow-xs:   0 1px 2px rgba(13,13,18,0.04);
  --shadow-sm:   0 1px 2px rgba(13,13,18,0.05), 0 4px 12px rgba(13,13,18,0.06);
  --shadow-md:   0 2px 4px rgba(13,13,18,0.06), 0 12px 32px rgba(13,13,18,0.08);
  --shadow-lg:   0 4px 8px rgba(13,13,18,0.08), 0 24px 56px rgba(13,13,18,0.12);
  --shadow-coral: 0 12px 36px rgba(var(--coral-glow), 0.30);

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max:    1200px;
  --max-lg: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.18s;
  --dur:      0.32s;
  --dur-slow: 0.6s;
}

/* Inter variable font axes */
@supports (font-variation-settings: normal) {
  :root { --font-sans: "InterVariable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --font-display: "InterVariable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
}

/* Dark theme — warm dark */
[data-theme="dark"] {
  --bg:          #0A0A0E;
  --bg-elev-1:   #111116;
  --bg-elev-2:   #15151B;
  --surface:     #15151B;
  --text:        #FAFAF8;
  --text-muted:  #9A9AA0;
  --text-faint:  #5C5C63;
  --border:      #1F1F26;
  --border-strong: #2A2A33;
  --hairline:    rgba(250, 250, 248, 0.06);
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.5);
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.5);
  --shadow-md:   0 2px 4px rgba(0,0,0,0.6), 0 12px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 4px 8px rgba(0,0,0,0.7), 0 24px 56px rgba(0,0,0,0.6);
  --shadow-coral: 0 16px 48px rgba(var(--coral-glow), 0.40);
}

/* Auto dark — only when user hasn't picked a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:          #0A0A0E;
    --bg-elev-1:   #111116;
    --bg-elev-2:   #15151B;
    --surface:     #15151B;
    --text:        #FAFAF8;
    --text-muted:  #9A9AA0;
    --text-faint:  #5C5C63;
    --border:      #1F1F26;
    --border-strong: #2A2A33;
    --hairline:    rgba(250, 250, 248, 0.06);
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.5);
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.5);
    --shadow-md:   0 2px 4px rgba(0,0,0,0.6), 0 12px 32px rgba(0,0,0,0.5);
    --shadow-lg:   0 4px 8px rgba(0,0,0,0.7), 0 24px 56px rgba(0,0,0,0.6);
    --shadow-coral: 0 16px 48px rgba(var(--coral-glow), 0.40);
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--coral-500); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--coral-100); color: var(--coral-700); }
[data-theme="dark"] ::selection,
:root:not([data-theme]) ::selection { background: var(--coral-500); color: #fff; }

/* Containers */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--lg { max-width: var(--max-lg); }

section { padding: clamp(72px, 10vw, 128px) 0; }
section + section { padding-top: 0; }

/* Eyebrow + small caps */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral-500);
  box-shadow: 0 0 0 4px rgba(var(--coral-glow), 0.18);
}
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-500);
  margin: 0 0 16px;
}

/* Display type */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.022em; }
.display-1 {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.display-2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.display-3 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in oklab, var(--text) 60%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-coral { color: var(--coral-500); }

/* Wordmark — Calo. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.wordmark .period { color: var(--coral-500); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--coral-500);
  --btn-fg: #fff;
  box-shadow: var(--shadow-coral);
}
.btn--primary:hover { --btn-bg: var(--coral-600); color: #fff; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { --btn-bg: var(--bg-elev-2); border-color: var(--text); color: var(--text); }
.btn--dark { --btn-bg: var(--text); --btn-fg: var(--bg); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; letter-spacing: -0.03em; font-weight: 600;
}
.brand .mark { width: 26px; height: 26px; color: var(--coral-500); }
.brand .name { color: var(--text); }
.brand .name .period { color: var(--coral-500); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14.5px; color: var(--text-muted);
}
.nav-links a { padding: 6px 0; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-elev-1);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: scale(1.04); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 760px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a.hide-sm { display: none; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -10% 30% -10%;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(var(--coral-glow), 0.18), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, rgba(var(--coral-glow), 0.10), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 0 auto; }
}
.hero-copy { max-width: 620px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin: 0 0 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--coral-500); }

/* iPhone mockup */
.device {
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 360 / 740;
  margin-left: auto;
  filter: drop-shadow(0 30px 60px rgba(13,13,18,0.18)) drop-shadow(0 8px 20px rgba(13,13,18,0.10));
}
[data-theme="dark"] .device,
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .device { filter: drop-shadow(0 30px 80px rgba(0,0,0,0.7)); } }
.device::after {
  content: "";
  position: absolute; left: -8%; right: -8%; bottom: -8%; height: 30%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--coral-glow), 0.18), transparent 70%);
  filter: blur(20px); z-index: -1; pointer-events: none;
}
.device svg { width: 100%; height: 100%; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}
.trust-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.trust-label {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500;
}
.trust-logos {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px);
  color: var(--text-faint);
  flex-wrap: wrap;
}
.trust-logos > * { opacity: 0.75; transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.trust-logos > *:hover { opacity: 1; color: var(--text-muted); }
.trust-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.trust-logo svg { width: 18px; height: 18px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0 0 16px; }
.section-head p { color: var(--text-muted); font-size: clamp(16px, 1.3vw, 19px); margin: 0; max-width: 56ch; }
.section-head.center p { margin-inline: auto; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  grid-column: span 4;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--coral-500) 35%, var(--border));
  box-shadow: var(--shadow-md);
}
.feature--wide { grid-column: span 6; }
.feature--full { grid-column: span 12; }
.feature--row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; min-height: 360px; }
.feature--row .feature-art { aspect-ratio: 4/3; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(var(--coral-glow), 0.10);
  color: var(--coral-500);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.feature:hover .feature-icon { transform: scale(1.06) rotate(-2deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}
.feature-art {
  margin: 0 -28px -28px;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.feature-art svg { width: 100%; height: 100%; display: block; }

@media (max-width: 920px) {
  .feature, .feature--wide { grid-column: span 6; }
  .feature--row { grid-template-columns: 1fr; min-height: 0; }
  .feature--row .feature-art { margin: 24px -28px -28px; }
}
@media (max-width: 600px) {
  .feature, .feature--wide, .feature--full { grid-column: span 12; }
}

/* ---------- How it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--coral-500);
  background: rgba(var(--coral-glow), 0.10);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Showcase ---------- */
.showcase {
  background: var(--bg-elev-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) { .showcase-grid { grid-template-columns: 1fr; } }
.showcase-art { position: relative; }
.showcase-art .device { margin: 0 auto; width: min(380px, 100%); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  position: relative;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in oklab, var(--text) 60%, var(--coral-500) 30%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.quote {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quote blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.quote blockquote::before { content: "“"; color: var(--coral-500); font-size: 28px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-200), var(--coral-500));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.quote-name { font-size: 14.5px; font-weight: 600; }
.quote-role { font-size: 13px; color: var(--text-muted); }
@media (max-width: 920px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px);
  margin: 0 var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 30% 20%, rgba(var(--coral-glow), 0.30), transparent 70%),
    radial-gradient(45% 60% at 80% 90%, rgba(var(--coral-glow), 0.25), transparent 70%);
  z-index: 0;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em; line-height: 1.04;
  margin: 0 0 16px;
}
.final-cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  margin: 0 auto 32px; max-width: 56ch;
}
.final-cta .cta-row { justify-content: center; }
.final-cta .btn--ghost { color: var(--bg); border-color: color-mix(in oklab, var(--bg) 40%, transparent); }
.final-cta .btn--ghost:hover { background: color-mix(in oklab, var(--bg) 12%, transparent); border-color: var(--bg); color: var(--bg); }

/* App store badge */
.appstore-badge {
  display: inline-block; line-height: 0;
  border-radius: 12px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.appstore-badge:hover { transform: scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,0.3); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 32ch; margin: 0 0 16px; font-size: 14.5px; }
.footer-col h4 {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 56px);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.legal-hero .updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(72px, 10vw, 128px);
  font-size: 16px;
  line-height: 1.75;
}
.legal h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 56px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 {
  font-size: 16.5px; font-weight: 600; margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--coral-500);
  text-decoration: underline;
  text-decoration-color: rgba(var(--coral-glow), 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.legal a:hover { text-decoration-color: var(--coral-500); }
.legal .callout {
  background: linear-gradient(180deg, rgba(var(--coral-glow), 0.06), rgba(var(--coral-glow), 0.02));
  border: 1px solid rgba(var(--coral-glow), 0.25);
  border-left: 3px solid var(--coral-500);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
}
.legal .callout strong { color: var(--coral-500); }
.legal .toc {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal .toc h4 {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  margin: 0 0 12px;
}
.legal .toc ol {
  columns: 2; column-gap: 24px; margin: 0; padding-left: 18px;
  font-size: 14.5px;
}
.legal .toc a { color: var(--text-muted); text-decoration: none; }
.legal .toc a:hover { color: var(--coral-500); }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }
.reveal[data-delay="5"] { transition-delay: 0.30s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.spacer-sm { height: 24px; } .spacer { height: 48px; } .spacer-lg { height: 96px; }
