/* =============================================================================
   styles.css — Carte website prototype

   Design tokens mirror the iOS app 1:1 (Carte/Carte/App/Carte*.swift):
   colors, the Inter type scale, spacing, corner radii, the single card shadow,
   and the motion timings. The site is image-free and glyph-free by design —
   all visual interest comes from typography, the warm palette, CSS gradients,
   spacing, and restrained motion.
   ============================================================================= */

/* ----------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Brand colors (light) */
  --rust: #B87333;
  --cream: #F5F0E8;
  --charcoal: #1C1814;
  --surface: #FDFAF4;
  --secondary-text: #6B6058;

  /* Charcoal opacity scale (matches app: primary/secondary/tertiary/faint/hairline) */
  --charcoal-secondary: rgba(28, 24, 20, 0.70);
  --charcoal-tertiary: rgba(28, 24, 20, 0.50);
  --charcoal-faint: rgba(28, 24, 20, 0.30);
  --hairline: rgba(28, 24, 20, 0.08);

  /* Rust tints */
  --rust-wash: rgba(184, 115, 51, 0.09);
  --rust-tint: rgba(184, 115, 51, 0.12);
  --rust-tint-strong: rgba(184, 115, 51, 0.16);

  /* Type scale (Inter) */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Radii */
  --r-pill: 6px;
  --r-card: 12px;
  --r-feature: 20px;

  /* Spacing */
  --s-screen: 20px;
  --s-section: 24px;
  --s-card-gap: 14px;
  --s-card-pad: 16px;
  --s-top-gap: 8px;

  /* Elevation (the one approved app shadow) */
  --shadow-card: 0 4px 10px rgba(28, 24, 20, 0.08);
  --shadow-lift: 0 10px 28px rgba(28, 24, 20, 0.12);

  /* Motion */
  --t-micro: 150ms ease-in-out;
  --t-standard: 300ms ease-out;
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);

  /* Layout */
  --container: 1080px;
  --container-narrow: 720px;
  --header-h: 68px;

  color-scheme: light dark;
}

/* Dark variant — mirrors the app's adaptiveColor() swaps. Rust stays constant. */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1C1814;
    --charcoal: #F5F0E8;
    --surface: #2A2420;
    --secondary-text: #8A7F78;
    --charcoal-secondary: rgba(245, 240, 232, 0.70);
    --charcoal-tertiary: rgba(245, 240, 232, 0.50);
    --charcoal-faint: rgba(245, 240, 232, 0.30);
    --hairline: rgba(245, 240, 232, 0.10);
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

/* ----------------------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button { font-family: inherit; font-size: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--rust-tint-strong); }

/* ----------------------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------------------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
}

h1, .h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--rust);
}

h2, .h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

h3, .h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--secondary-text);
  font-weight: 400;
}

.muted { color: var(--secondary-text); }
.tiny { font-size: 0.8rem; color: var(--charcoal-tertiary); }

/* ----------------------------------------------------------------------------
   4. Layout helpers
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container.narrow { max-width: var(--container-narrow); }

main { flex: 1 0 auto; }

.section { padding-block: clamp(56px, 9vw, 120px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 14px; }

.center { text-align: center; margin-inline: auto; }

.stack > * + * { margin-top: 1rem; }

.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;
}

/* ----------------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;            /* capsule, like the app */
  background: transparent;
  color: var(--charcoal);
  transition: transform var(--t-micro), box-shadow var(--t-micro),
    background var(--t-micro), border-color var(--t-micro), opacity var(--t-micro);
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-rust {
  background: var(--rust);
  color: #FDFAF4;
  box-shadow: var(--shadow-card);
}
.btn-rust:hover { box-shadow: var(--shadow-lift); }

.btn-ghost {
  border-color: var(--hairline);
  background: var(--surface);
  color: var(--charcoal);
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

.btn-text {
  padding: 12px 0;
  color: var(--rust);
  font-weight: 600;
}
.btn-text:hover { transform: none; opacity: 0.78; }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 17px; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   6. Cards
   ---------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}

.card-feature { border-radius: var(--r-feature); }

.card-interactive {
  transition: transform var(--t-standard), box-shadow var(--t-standard),
    border-color var(--t-standard);
  will-change: transform;
}
.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--rust-tint-strong);
}

/* small decorative top rule used on feature/legal sections */
.rule {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--rust);
  margin-bottom: 18px;
}

/* pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--rust-tint);
  color: var(--rust);
}
.pill-muted { background: var(--hairline); color: var(--charcoal-secondary); }

/* ----------------------------------------------------------------------------
   7. Header / nav
   ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-standard), box-shadow var(--t-standard),
    background var(--t-standard);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.wordmark { display: inline-flex; align-items: center; }
.wordmark-text {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal-secondary);
  position: relative;
  transition: color var(--t-micro);
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-standard);
}
.site-nav a:not(.btn):hover { color: var(--charcoal); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav .nav-cta { padding: 10px 20px; font-size: 15px; }

/* auth-dependent nav items: hidden until the html class resolves (no flash) */
[data-auth-only] { display: none; }
.is-guest [data-auth-only="guest"] { display: inline-flex; }
.is-authed [data-auth-only="user"] { display: inline-flex; }

/* mobile nav toggle — drawn with CSS bars, no glyph */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
}
.nav-toggle-bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--t-standard), opacity var(--t-micro);
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 20px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   8. Hero
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 12vw, 140px) clamp(48px, 9vw, 104px);
  overflow: hidden;
}
/* soft rust-to-cream wash, matching the app splash gradient. pure CSS, no image. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 8% 0%, var(--rust-wash), transparent 60%),
    linear-gradient(180deg, var(--rust-wash), transparent 42%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 46ch; margin-top: 26px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero-note { margin-top: 18px; }

/* decorative gradient panel (replaces an image) */
.hero-panel {
  position: relative;
  border-radius: var(--r-feature);
  background:
    linear-gradient(135deg, var(--rust-wash), var(--rust-tint-strong));
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--rust-wash);
}
.hero-panel::before { width: 200px; height: 200px; top: -56px; left: -56px; }
.hero-panel::after { width: 240px; height: 240px; bottom: -72px; right: -72px; background: rgba(184,115,51,0.08); }
.hero-panel .panel-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 48px);
  color: rgba(184, 115, 51, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

/* ----------------------------------------------------------------------------
   9. Grids
   ---------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-card-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 24px); }

.steps { counter-reset: step; }
.step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--secondary-text); font-size: 0.98rem; }

/* feature list (features.html) */
.feature-row { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--hairline); }
.feature-row:first-of-type { border-top: 0; }
.feature-row h3 { font-size: 1.45rem; margin-bottom: 12px; }
.feature-row p { color: var(--secondary-text); max-width: 60ch; }

/* ----------------------------------------------------------------------------
   10. Forms
   ---------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal-secondary);
  letter-spacing: 0.01em;
}
.field .hint { font-size: 12px; color: var(--charcoal-tertiary); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-card);
  transition: border-color var(--t-micro), box-shadow var(--t-micro);
}
.input::placeholder, .textarea::placeholder { color: var(--charcoal-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px var(--rust-tint);
}
.textarea { min-height: 120px; resize: vertical; }

.field.has-error .input,
.field.has-error .textarea { border-color: #C0492B; }
.field-error {
  font-size: 12px;
  color: #C0492B;
  min-height: 0;
}

/* inline form (e.g., waitlist) */
.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.form-inline .field { flex: 1 1 240px; }
.form-inline .input { flex: 1 1 240px; }

/* segmented toggle (Had it / Want to try) */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--hairline);
  border-radius: 999px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal-secondary);
  transition: background var(--t-micro), color var(--t-micro), transform var(--t-micro);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--rust);
  box-shadow: var(--shadow-card);
}

/* rating slider */
.range-row { display: flex; align-items: center; gap: 16px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--hairline);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-micro);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--surface);
}
.range-value {
  min-width: 58px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rust);
}

/* divider with centered label */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--charcoal-tertiary);
  font-size: 14px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* auth split layout */
.auth-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.auth-aside { align-self: stretch; }
.auth-aside .card { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.auth-card { max-width: 460px; }
.auth-foot { margin-top: 18px; font-size: 14px; color: var(--secondary-text); }

/* ----------------------------------------------------------------------------
   11. Log page
   ---------------------------------------------------------------------------- */
.log-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.log-form-card { position: sticky; top: calc(var(--header-h) + 20px); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--charcoal-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-micro);
}
.chip[aria-pressed="true"] { background: var(--rust); color: #FDFAF4; border-color: var(--rust); }

.log-list { display: flex; flex-direction: column; gap: var(--s-card-gap); }
.log-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.log-item .meta { font-size: 13px; color: var(--charcoal-tertiary); margin-top: 4px; }
.meta-bit + .meta-bit::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin: 0 9px 2px;
  vertical-align: middle;
}
.log-item h3 { font-size: 1.1rem; }
.log-item .notes { margin-top: 8px; color: var(--secondary-text); font-size: 0.95rem; }
.log-item .right { text-align: right; flex-shrink: 0; }
.log-rating { font-weight: 600; color: var(--rust); font-variant-numeric: tabular-nums; }

.empty-state {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 20px;
  color: var(--secondary-text);
  border: 1px dashed var(--hairline);
  border-radius: var(--r-feature);
}

/* ----------------------------------------------------------------------------
   12. Legal / prose
   ---------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--secondary-text); margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.note-banner {
  background: var(--rust-wash);
  border: 1px solid var(--rust-tint);
  border-radius: var(--r-card);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--charcoal-secondary);
  margin-bottom: 32px;
}

/* ----------------------------------------------------------------------------
   13. CTA band
   ---------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-feature);
  background: linear-gradient(135deg, var(--rust-tint), var(--rust-wash));
  border: 1px solid var(--hairline);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .form-inline { justify-content: center; margin-top: 26px; max-width: 520px; margin-inline: auto; }

/* ----------------------------------------------------------------------------
   14. Footer
   ---------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(44px, 6vw, 72px) 28px;
  margin-top: clamp(48px, 8vw, 96px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.footer-tagline { color: var(--secondary-text); margin-top: 12px; font-size: 0.95rem; max-width: 28ch; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-tertiary);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--charcoal-secondary);
  padding: 5px 0;
  transition: color var(--t-micro);
}
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--charcoal-tertiary);
}

/* ----------------------------------------------------------------------------
   15. Toast
   ---------------------------------------------------------------------------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--charcoal);
  color: var(--cream);
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-standard), transform var(--t-standard) var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------------------
   16. Scroll reveal
   ---------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-standard), transform var(--t-standard);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   17. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; max-width: 420px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .log-layout { grid-template-columns: 1fr; }
  .log-form-card { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px clamp(20px, 5vw, 40px) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-standard), transform var(--t-standard), visibility var(--t-standard);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 12px 0; font-size: 17px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .nav-cta { margin-top: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

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