/* ===============================================
   FONTS — self-hosted (Fraunces + Satoshi)
   =============================================== */

/* Fraunces — variable serif, latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Satoshi — geometric sans */
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
}

/* ===============================================
   RESET + DESIGN TOKENS  (see DESIGN.md)
   =============================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Type families */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale (4pt grid) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  /* Radius scale */
  --r-sharp: 4px;
  --r-pill: 8px;
  --r-input: 12px;
  --r-card: 16px;
  --r-hero: 20px;
  --r-capsule: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dark (default) — Onyx Veil */
  --bg: #161514;
  --bg-grouped: #1A1817;            /* Incense Smoke */
  --bg-elevated: #242220;           /* Oud Shadow */
  --bg-glasswash: #2A2723;          /* Leather Night */
  --text-primary: #F4F0EA;          /* Bone */
  --text-secondary: #A39D95;        /* Driftwood */
  --text-muted: #908A83;            /* Ash */
  --gold-fill: #C2A878;             /* Warm Champagne */
  --gold-fill-bright: #D4BE96;      /* Vintage Gold */
  --gold-text: #D4BE96;             /* Vintage Gold (text-safe on dark) */
  --gold-on-gradient: #E8D5A8;      /* Candlelight Gold */
  --on-gold-fill: #1A1A1A;          /* Ink — label on gold pill (dark) */
  --divider: #3A3633;               /* Charcoal Line */
  --catch-light: #373330;           /* Amber Glow */
  --destructive: #E57373;           /* Rose Glow */
  --destructive-rgb: 229, 115, 115;
  --shadow: 16, 14, 12;
  --noise-opacity: 0.035;
}

[data-theme="light"] {
  --bg: #F9F6F0;                    /* Parchment */
  --bg-grouped: #EFEAE2;            /* Warm Fog */
  --bg-elevated: #FCFBF8;           /* Warm Ivory */
  --bg-glasswash: #F2EFE8;          /* Paper Gold Wash */
  --text-primary: #1A1A1A;          /* Ink */
  --text-secondary: #5A5650;        /* Wax */
  --text-muted: #706B67;            /* Smoke */
  --gold-fill: #A68A56;             /* Patina Gold */
  --gold-fill-bright: #B89868;
  --gold-text: #805F28;             /* Deep Amber (text-safe) */
  --gold-on-gradient: #E8D5A8;
  --on-gold-fill: #F4F0EA;          /* Bone */
  --divider: #E5E0D8;               /* Taupe Line */
  --catch-light: #FAF7F3;
  --destructive: #9A3B3B;           /* Garnet */
  --destructive-rgb: 154, 59, 59;
  --shadow: 26, 21, 16;
  --noise-opacity: 0.045;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--gold-fill);
  color: var(--on-gold-fill);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  position: relative;
  z-index: 1;
}

/* ===============================================
   NAV — sticky/floating, translucent on scroll
   =============================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              border-color 0.35s ease, padding 0.35s ease;
}
.site-nav.is-scrolled {
  /* default (over dark sections) */
  background: rgba(22, 21, 20, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(58, 54, 51, 0.6);
  padding: 12px 0;
}
[data-theme="light"] .site-nav.is-scrolled {
  background: rgba(252, 251, 248, 0.85);
  border-bottom-color: rgba(229, 224, 216, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo .light-logo { display: none; }
[data-theme="light"] .nav-logo .dark-logo { display: none; }
[data-theme="light"] .nav-logo .light-logo { display: block; }

.nav-link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover { color: var(--gold-text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-fill);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lang-toggle,
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.3s, background 0.3s, color 0.3s,
              transform 0.4s var(--ease), box-shadow 0.3s;
}
.lang-toggle:hover, .lang-toggle:focus-visible,
.theme-toggle-btn:hover, .theme-toggle-btn:focus-visible {
  border-color: var(--gold-fill);
  color: var(--gold-text);
  outline: none;
  box-shadow: 0 0 0 4px rgba(166, 138, 86, 0.08);
}
.lang-toggle:active { transform: scale(0.92); }
.theme-toggle-btn:active { transform: rotate(180deg) scale(0.92); }

.lang-toggle svg { width: 18px; height: 13px; border-radius: 2px; }
.lang-toggle .flag-gb { display: none; }
.lang-toggle .flag-br { display: block; }

.theme-toggle-btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle-btn .icon-moon { display: none; }
.theme-toggle-btn .icon-sun { display: block; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: block; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: none; }

/* ===============================================
   HERO
   =============================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border: 1px solid rgba(212, 190, 150, 0.22);
  border-radius: var(--r-capsule);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-on-gradient);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-10);
  background: rgba(232, 213, 168, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-on-gradient);
  box-shadow: 0 0 0 0 rgba(232, 213, 168, 0.6);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 213, 168, 0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(232, 213, 168, 0);    opacity: 0.6; }
}

.hero {
  padding: 160px 0 100px;
  text-align: left;
  max-width: 720px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: #F4F0EA;
  margin-bottom: var(--sp-8);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-on-gradient);
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-on-gradient) 30%, var(--gold-on-gradient) 70%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero.is-revealed h1 em::after {
  animation: underline-draw 1.2s var(--ease) 0.4s forwards;
}
@keyframes underline-draw { to { transform: scaleX(1); } }

.hero-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: #A39D95;
  max-width: 560px;
  margin-bottom: var(--sp-12);
  font-weight: 400;
}

/* ===============================================
   WAITLIST FORM
   =============================================== */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 480px;
}
.waitlist-row {
  display: flex;
  gap: var(--sp-3);
  width: 100%;
}
.waitlist-input {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--r-input);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus {
  border-color: var(--gold-fill);
  box-shadow: 0 0 0 3px rgba(166, 138, 86, 0.18),
              inset 0 0 0 1px rgba(166, 138, 86, 0.08);
}

.waitlist-btn {
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--on-gold-fill);
  background: var(--gold-fill);
  border: none;
  border-radius: var(--r-capsule);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, transform 0.25s var(--ease),
              box-shadow 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.waitlist-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.waitlist-btn:hover, .waitlist-btn:focus-visible {
  background: var(--gold-fill-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(166, 138, 86, 0.28);
  outline: none;
}
.waitlist-btn:hover::before, .waitlist-btn:focus-visible::before { opacity: 1; }
.waitlist-btn:active { transform: scale(0.97) translateY(0); box-shadow: none; }

.waitlist-consent-note {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  letter-spacing: 0;
  max-width: 560px;
  margin: 0;
}
.waitlist-consent-note a {
  color: var(--gold-on-gradient);
  text-decoration: none;
  border-bottom: 1px solid rgba(218, 188, 125, 0.36);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.waitlist-consent-note a:hover {
  color: #F1D895;
  border-bottom-color: currentColor;
}
.waitlist-consent-note a:focus-visible {
  color: #F1D895;
  border-bottom-color: currentColor;
  outline: 2px solid var(--gold-fill);
  outline-offset: 2px;
}
.hero-section .waitlist-consent-note,
.cta-section .waitlist-consent-note {
  color: #C9C3B8;
}
.waitlist-turnstile {
  min-height: 0;
}
.waitlist-turnstile[hidden] {
  display: none;
}
/* Error state — gentle no-nudge + garnet accent on the input + inline message.
   Three signals (motion + color + copy) so any single one being missed is OK for a11y. */
@keyframes form-nudge {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(3px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(1px); }
}
/* Nudge applied to form children (input + button) to avoid cascade conflict
   with the parent .waitlist-form's hero-rise animation. They share keyframes
   and timing so the form visually moves as one. */
.waitlist-form.has-error .waitlist-input,
.waitlist-form.has-error .waitlist-btn {
  animation: form-nudge 0.4s var(--ease);
}
/* Include :focus so the garnet stays put when JS re-focuses the input
   after an invalid-email error (otherwise the section's :focus rule wins). */
.waitlist-form.has-error .waitlist-input,
.waitlist-form.has-error .waitlist-input:focus {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(var(--destructive-rgb), 0.18);
}

.form-error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--destructive);
  max-width: 480px;
  margin-top: var(--sp-3);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form-error.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.form-error-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--destructive);
  flex-shrink: 0;
  animation: error-pulse 1.6s ease-in-out infinite;
}
@keyframes error-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.form-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  letter-spacing: 0.01em;
}
.form-success {
  padding: 16px 20px;
  background: rgba(166, 138, 86, 0.08);
  border: 1px solid rgba(166, 138, 86, 0.24);
  border-radius: var(--r-input);
  color: var(--gold-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  max-width: 480px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.form-success.is-visible {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================
   SECTION VOICE
   =============================================== */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.section-label::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold-fill);
  transition: width 0.9s var(--ease);
}
.section-label.bar-visible::before { width: 28px; }

.section-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  color: var(--text-primary);
  margin-bottom: var(--sp-12);
  max-width: 560px;
}

/* ===============================================
   FEATURES — glass cards
   =============================================== */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10) var(--sp-8);
}
.feature-item {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-card);
  border: 1px solid var(--divider);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s,
              transform 0.4s var(--ease);
}
.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, var(--catch-light) 0%, transparent 30%);
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 138, 86, 0.32);
  box-shadow: 0 8px 30px rgba(var(--shadow), 0.12),
              0 2px 8px rgba(var(--shadow), 0.06);
}
.feature-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-input);
  margin-bottom: var(--sp-5);
  background: var(--gold-fill);
  box-shadow: 0 4px 12px rgba(166, 138, 86, 0.2);
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: var(--on-gold-fill);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
}
.feature-item p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
}

/* ===============================================
   HOW IT WORKS
   =============================================== */
.how { padding: 100px 0; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.how-step {
  padding: var(--sp-8);
  border-left: 1px solid var(--divider);
  transition: background 0.4s, border-color 0.4s;
}
.how-step:first-child { border-left: none; padding-left: 0; }
.step-number {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--gold-fill);
  line-height: 1;
  margin-bottom: var(--sp-5);
  opacity: 0.32;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.how-step:hover .step-number {
  opacity: 0.7;
  transform: translateY(-2px);
}
.how-step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.how-step p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta { padding: 100px 0 120px; text-align: center; }
.cta h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  color: #F4F0EA;
  margin-bottom: var(--sp-4);
}
.cta h2 em { font-style: italic; color: var(--gold-on-gradient); }
.cta p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: #A39D95;
  font-weight: 400;
  margin: 0 auto var(--sp-10);
  max-width: 460px;
}
.cta .waitlist-form { margin: 0 auto; }
.cta .waitlist-row { justify-content: center; }
.cta .waitlist-consent-note {
  margin-inline: auto;
  text-align: center;
}
.cta .waitlist-turnstile {
  display: flex;
  justify-content: center;
}
.cta .waitlist-turnstile[hidden] {
  display: none;
}
.cta .form-note {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  max-width: none;
  margin: var(--sp-3) auto 0;
}
/* form-error stays at form width (480px) and centers as a block,
   so the dot lines up with the form's left edge — matching the hero. */
.cta .form-error {
  font-size: 12px;
  line-height: 1.4;
  margin: var(--sp-3) auto 0;
}
.cta-section .cta .form-error { color: var(--destructive); }
.cta .form-success { margin: 0 auto; }

.section-alt, .cta-section, .how-section { transition: background 0.4s ease; }

/* ===============================================
   ALWAYS-DARK HERO  (Onyx Veil)
   =============================================== */
.hero-section {
  background: #161514;
  color: #F4F0EA;
  position: relative;
  overflow: hidden;
  /* Mode-immune dark — pin destructive to Rose Glow for legibility */
  --destructive: #E57373;
  --destructive-rgb: 229, 115, 115;
}
.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(194, 168, 120, 0.05) 100%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 25%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(194, 168, 120, 0.10) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-section .hero-sub { color: #A39D95; }
.hero-section .waitlist-input {
  background: #242220;
  border-color: #3A3633;
  color: #F4F0EA;
}
.hero-section .waitlist-input::placeholder { color: #908A83; }
.hero-section .waitlist-input:focus {
  border-color: #C2A878;
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.18);
}
.hero-section .waitlist-btn { color: #1A1A1A; background: #C2A878; }
.hero-section .waitlist-btn:hover { background: #D4BE96; }
.hero-section .form-note { color: #908A83; }

/* When the floating nav sits over a non-scrolled state in light mode,
   it's transparent on top of the always-dark hero — keep its controls dark-styled. */
.site-nav:not(.is-scrolled) .nav-link { color: #A39D95; }
.site-nav:not(.is-scrolled) .nav-link:hover { color: #D4BE96; }
.site-nav:not(.is-scrolled) .nav-link::after { background: #C2A878; }
.site-nav:not(.is-scrolled) .theme-toggle-btn,
.site-nav:not(.is-scrolled) .lang-toggle {
  border-color: #3A3633;
  background: rgba(36, 34, 32, 0.55);
  color: #A39D95;
}
.site-nav:not(.is-scrolled) .theme-toggle-btn:hover,
.site-nav:not(.is-scrolled) .lang-toggle:hover {
  border-color: #C2A878;
  color: #D4BE96;
}
/* Index hero is always dark — force the dark-bg logo regardless of theme. */
body:not(.no-dark-hero) .site-nav:not(.is-scrolled) .nav-logo .dark-logo { display: block; }
body:not(.no-dark-hero) .site-nav:not(.is-scrolled) .nav-logo .light-logo { display: none; }

/* On no-dark-hero pages the floating nav sits over a theme-driven background
   (Parchment in light, Onyx in dark). Let base theme rules pick the right logo
   and theme the nav controls accordingly. */
body.no-dark-hero .site-nav:not(.is-scrolled) .nav-link { color: var(--text-secondary); }
body.no-dark-hero .site-nav:not(.is-scrolled) .nav-link:hover { color: var(--gold-text); }
body.no-dark-hero .site-nav:not(.is-scrolled) .nav-link::after { background: var(--gold-fill); }
body.no-dark-hero .site-nav:not(.is-scrolled) .theme-toggle-btn,
body.no-dark-hero .site-nav:not(.is-scrolled) .lang-toggle {
  border-color: var(--divider);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
body.no-dark-hero .site-nav:not(.is-scrolled) .theme-toggle-btn:hover,
body.no-dark-hero .site-nav:not(.is-scrolled) .lang-toggle:hover {
  border-color: var(--gold-fill);
  color: var(--gold-text);
}

/* Light-mode Features section sits on Warm Fog */
[data-theme="light"] .section-alt { background: var(--bg-grouped); }

/* How + CTA stay dark in both modes — Incense Smoke */
.how-section, .cta-section { background: #1A1817; }
.cta-section {
  --destructive: #E57373;
  --destructive-rgb: 229, 115, 115;
}
.how-section .section-label,
.cta-section .section-label { color: #D4BE96; }
.how-section .section-label::before,
.cta-section .section-label::before { background: #C2A878; }
.how-section .section-heading,
.cta-section .section-heading,
.cta-section .cta h2 { color: #F4F0EA; }
.how-section .how-step { border-color: #3A3633; }
.how-section .how-step:first-child { border-color: transparent; }
.how-section .how-step h3 { color: #F4F0EA; }
.how-section .how-step p { color: #A39D95; }
.how-section .step-number { color: #C2A878; opacity: 0.32; }

.cta-section .cta p { color: #A39D95; }
.cta-section .waitlist-input {
  background: #242220;
  border-color: #3A3633;
  color: #F4F0EA;
}
.cta-section .waitlist-input::placeholder { color: #908A83; }
.cta-section .waitlist-input:focus {
  border-color: #C2A878;
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.18);
}
.cta-section .waitlist-btn { color: #1A1A1A; background: #C2A878; }
.cta-section .waitlist-btn:hover { background: #D4BE96; }
.cta-section .form-note { color: #908A83; }
.cta-section .form-success {
  background: rgba(194, 168, 120, 0.08);
  border-color: rgba(194, 168, 120, 0.24);
  color: #D4BE96;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
  border-top: 1px solid var(--divider);
  padding: var(--sp-12) 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-10);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: var(--sp-4); display: block; }
.footer-brand .light-logo { display: none; }
[data-theme="light"] .footer-brand .dark-logo { display: none; }
[data-theme="light"] .footer-brand .light-logo { display: block; }
.footer-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 280px;
}
.footer-links { display: flex; gap: var(--sp-12); }
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-4);
}
.footer-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
  position: relative;
}
.footer-col a:hover { color: var(--gold-text); }
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-fill);
  transition: width 0.35s var(--ease);
}
.footer-col a:hover::after { width: 100%; }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--text-secondary); }

/* ===============================================
   PRIVACY PAGE
   =============================================== */
.policy { padding: 140px 0 120px; }
.policy h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}
.policy .subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--sp-2);
}
.policy .updated {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--sp-12);
  letter-spacing: 0.01em;
}
.policy h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}
.policy p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--sp-4);
}
.policy ul { margin: 0 0 var(--sp-4) 0; padding-left: var(--sp-5); }
.policy li {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 6px;
}
.policy a {
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 138, 86, 0.3);
  transition: color 0.3s, border-color 0.3s;
}
.policy a:hover { color: var(--gold-fill); border-color: var(--gold-fill); }

/* ===============================================
   404 PAGE
   =============================================== */
.error-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}
.error-inner {
  max-width: 640px;
  text-align: left;
}
.error-label { margin-bottom: var(--sp-5); }
.error-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}
.error-title em {
  font-style: italic;
  color: var(--gold-text);
  position: relative;
  display: inline-block;
}
.error-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-fill) 30%, var(--gold-fill) 70%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: underline-draw 1.2s var(--ease) 0.4s forwards;
}
.error-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
  max-width: 480px;
}
.error-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-text);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--gold-fill);
  border-radius: var(--r-capsule);
  transition: background 0.3s, color 0.3s, transform 0.25s var(--ease);
}
.error-link::after {
  content: '\2192';
  transition: transform 0.3s var(--ease);
}
.error-link:hover {
  background: var(--gold-fill);
  color: var(--on-gold-fill);
  transform: translateY(-1px);
}
.error-link:hover::after { transform: translateX(4px); }

/* Generic fade-up used by privacy page (declarative delays) */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 0.6s ease-out both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.35s; }
.fade-in-d4 { animation-delay: 0.45s; }

/* ===============================================
   REVEAL ANIMATIONS  (replaces GSAP)
   =============================================== */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes content-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes icon-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Hero — pre-animation state */
.site-nav,
.hero .hero-badge,
.hero h1,
.hero-sub,
.hero .waitlist-form,
.hero .form-note { opacity: 0; transform: translateY(20px); }

/* Floating nav fades in on its own */
.site-nav.is-revealed { animation: hero-rise 0.7s var(--ease) 0.2s both; }

/* Hero is-revealed: chained delays */
.hero-section.is-revealed .hero-badge,
.hero-section.is-revealed h1,
.hero-section.is-revealed .hero-sub,
.hero-section.is-revealed .waitlist-form,
.hero-section.is-revealed .form-note {
  animation: hero-rise 0.8s var(--ease) both;
}
.hero-section.is-revealed .hero-badge    { animation-delay: 0.55s; animation-duration: 0.6s; }
.hero-section.is-revealed h1             { animation-delay: 0.7s;  animation-duration: 0.9s; }
.hero-section.is-revealed .hero-sub      { animation-delay: 0.95s; animation-duration: 0.7s; }
.hero-section.is-revealed .waitlist-form { animation-delay: 1.15s; animation-duration: 0.6s; }
.hero-section.is-revealed .form-note     { animation-delay: 1.35s; animation-duration: 0.5s; }

/* Generic scroll-revealed elements */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-visible {
  animation: content-rise 0.8s var(--ease) forwards;
}

/* Feature items — staggered */
.feature-item { opacity: 0; transform: translateY(40px); }
.feature-item .feature-icon { transform: scale(0); }
.features-grid.is-visible .feature-item {
  animation: content-rise 0.7s var(--ease) forwards;
}
.features-grid.is-visible .feature-item:nth-child(1) { animation-delay: 0s; }
.features-grid.is-visible .feature-item:nth-child(2) { animation-delay: 0.1s; }
.features-grid.is-visible .feature-item:nth-child(3) { animation-delay: 0.2s; }
.features-grid.is-visible .feature-item:nth-child(4) { animation-delay: 0.3s; }
.features-grid.is-visible .feature-item:nth-child(5) { animation-delay: 0.4s; }
.features-grid.is-visible .feature-item:nth-child(6) { animation-delay: 0.5s; }
.features-grid.is-visible .feature-item .feature-icon {
  animation: icon-pop 0.5s var(--ease-back) forwards;
}
.features-grid.is-visible .feature-item:nth-child(1) .feature-icon { animation-delay: 0.3s; }
.features-grid.is-visible .feature-item:nth-child(2) .feature-icon { animation-delay: 0.4s; }
.features-grid.is-visible .feature-item:nth-child(3) .feature-icon { animation-delay: 0.5s; }
.features-grid.is-visible .feature-item:nth-child(4) .feature-icon { animation-delay: 0.6s; }
.features-grid.is-visible .feature-item:nth-child(5) .feature-icon { animation-delay: 0.7s; }
.features-grid.is-visible .feature-item:nth-child(6) .feature-icon { animation-delay: 0.8s; }

/* How steps — staggered */
.how-step { opacity: 0; transform: translateY(30px); }
.how-steps.is-visible .how-step { animation: content-rise 0.7s var(--ease) forwards; }
.how-steps.is-visible .how-step:nth-child(1) { animation-delay: 0s; }
.how-steps.is-visible .how-step:nth-child(2) { animation-delay: 0.15s; }
.how-steps.is-visible .how-step:nth-child(3) { animation-delay: 0.3s; }

/* CTA chain */
.cta h2, .cta > p, .cta .waitlist-form, .cta .form-note {
  opacity: 0; transform: translateY(20px);
}
.cta-section.is-visible .cta h2            { animation: content-rise 0.8s var(--ease) 0s    forwards; }
.cta-section.is-visible .cta > p           { animation: content-rise 0.6s var(--ease) 0.4s  forwards; }
.cta-section.is-visible .cta .waitlist-form{ animation: content-rise 0.6s var(--ease) 0.55s forwards; }
.cta-section.is-visible .cta .form-note    { animation: content-rise 0.5s var(--ease) 0.7s  forwards; }

/* Footer */
.footer-inner, .footer-bottom { opacity: 0; transform: translateY(20px); }
footer.is-visible .footer-inner  { animation: content-rise 0.8s var(--ease) 0s   forwards; }
footer.is-visible .footer-bottom { animation: content-rise 0.6s var(--ease) 0.2s forwards; }

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-btn { text-align: center; }
  .features-grid, .how-steps { grid-template-columns: 1fr; gap: 0; }
  .how-step { border-left: none; border-top: 1px solid var(--divider); padding: var(--sp-8) 0; }
  .how-step:first-child { border-top: none; padding-top: 0; }
  .features-grid { gap: var(--sp-5); }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-nav { padding: 14px 0; }
  .site-nav.is-scrolled { padding: 10px 0; }
  .nav-logo img { height: 32px; }
  .hero { padding: 130px 0 48px; }
  .hero-badge { margin-bottom: var(--sp-6); }
  .features, .how { padding: 64px 0; }
  .cta { padding: 64px 0 80px; }
  .policy { padding: 48px 0 80px; }
}

/* ===============================================
   DELIGHT
   =============================================== */

/* Editorial scroll progress — hairline gold under the floating nav */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg,
    rgba(166, 138, 86, 0) 0%,
    var(--gold-fill) 30%,
    var(--gold-fill-bright) 100%);
  opacity: 0.85;
  will-change: transform;
}

/* Form success — gold checkmark draws over 0.7s as the success state appears */
.form-success-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-fill);
}
.form-success-icon path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 0.7s var(--ease) 0.2s;
}
.form-success.is-visible .form-success-icon path {
  stroke-dashoffset: 0;
}

/* Nav logo — quiet lift + warm halo on hover */
.nav-logo { display: inline-block; }
.nav-logo img {
  transition: transform 0.4s var(--ease), filter 0.4s ease;
}
.nav-logo:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 10px rgba(194, 168, 120, 0.32));
}

/* Feature icon — gold halo expands as the card lifts ("scent diffusing") */
.feature-icon {
  transition: box-shadow 0.5s var(--ease), transform 0.4s var(--ease);
}
.feature-item:hover .feature-icon {
  box-shadow: 0 4px 12px rgba(166, 138, 86, 0.28),
              0 0 28px rgba(166, 138, 86, 0.20);
}

/* CTA italic — same accord-style underline as the hero (system consistency) */
.cta h2 em { position: relative; display: inline-block; }
.cta h2 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-on-gradient) 30%, var(--gold-on-gradient) 70%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
}
.cta-section.is-visible .cta h2 em::after {
  animation: underline-draw 1.2s var(--ease) 0.6s forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 em::after { transform: scaleX(1); animation: none; }
  .site-nav, .hero .hero-badge, .hero h1, .hero-sub,
  .hero .waitlist-form, .hero .form-note,
  .reveal, .feature-item, .how-step,
  .cta h2, .cta > p, .cta .waitlist-form, .cta .form-note,
  .footer-inner, .footer-bottom {
    opacity: 1 !important;
    transform: none !important;
  }
  .feature-icon { transform: scale(1) !important; }
  .form-success-icon path { stroke-dashoffset: 0 !important; transition: none !important; }
  .cta h2 em::after { transform: scaleX(1); animation: none; }
  .scroll-progress { display: none; }
  .waitlist-form.has-error .waitlist-input,
  .waitlist-form.has-error .waitlist-btn { animation: none; }
  .form-error-dot { animation: none; }
}
