/* Google Fonts — loaded here so all pages get them automatically */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   ZAVESTRO DESIGN SYSTEM v2.0
   Made-to-order clothing brand — premium, minimal, conversion-focused
   Typography: Cormorant Garamond (display) + DM Sans (body)
   Palette: Warm cream / Deep forest green / Warm gold
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* ── Backgrounds (warm cream, not cold white) ── */
  --bg:        #FAF9F6;  /* Page background */
  --bg-2:      #F3F0E8;  /* Alternate sections */
  --bg-3:      #EDEAE0;  /* Muted surface */
  --bg-card:   #FFFFFF;  /* Card / elevated */
  --bg-inv:    #141210;  /* Dark sections */
  --bg-inv-2:  #1E1C19;  /* Lighter dark */

  /* ── Text ── */
  --ink:       #1A1714;  /* Primary */
  --ink-2:     #57534A;  /* Secondary */
  --ink-3:     #9A9188;  /* Muted / placeholder */
  --ink-inv:   #F0EDE6;  /* On dark bg */
  --ink-inv-2: #B8B2A8;  /* Secondary on dark */

  /* ── Brand Green (30%) ── */
  --green:         #1C5C42;  /* Actions, CTAs */
  --green-hover:   #164D37;  /* Hover */
  --green-active:  #103D2B;  /* Active/pressed */
  --green-light:   #3D7A5C;  /* Softer variant */
  --green-surface: #EAF3EE;  /* Very light tint */
  --green-border:  #C0D9C8;  /* Green tinted border */
  --green-inv:     #52B882;  /* Green on dark bg */

  /* ── Brand Gold (10%, accent only) ── */
  --gold:          #C9995E;  /* Accent / labels */
  --gold-light:    #DBC094;  /* Lighter variant */
  --gold-surface:  #F9F2E7;  /* Very light tint */
  --gold-inv:      #DBC094;  /* Same on dark (already warm) */

  /* ── UI Chrome ── */
  --border:        #E4E0D6;
  --border-strong: #CBC6BA;
  --focus-ring:    rgba(28, 92, 66, 0.22);
  --selection-bg:  #C0D9C8;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(26,23,20,0.06);
  --shadow-sm: 0 1px 3px rgba(26,23,20,0.08), 0 1px 2px rgba(26,23,20,0.05);
  --shadow:    0 2px 8px rgba(26,23,20,0.08), 0 1px 3px rgba(26,23,20,0.05);
  --shadow-md: 0 4px 16px rgba(26,23,20,0.09), 0 2px 4px rgba(26,23,20,0.06);
  --shadow-lg: 0 8px 32px rgba(26,23,20,0.10), 0 4px 8px rgba(26,23,20,0.06);
  --shadow-xl: 0 20px 60px rgba(26,23,20,0.12), 0 8px 16px rgba(26,23,20,0.06);

  /* ── Nav ── */
  --nav-bg:     rgba(250,249,246,0.88);
  --nav-border: rgba(228,224,214,0.65);
  --nav-height: 68px;

  /* ── Radius ── */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 48px;
  --r-full: 9999px;

  /* ── Spacing scale (8px base) ── */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* ── Layout ── */
  --container: 1200px;
  --container-sm: 820px;
  --container-xs: 580px;
  --gutter: 24px;
  --section-y: 112px;
  --section-y-sm: 72px;

  /* ── Typography ── */
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Transitions ── */
  --t-fast: 150ms ease;
  --t: 220ms ease;
  --t-slow: 380ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Z-index ── */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 50;
  --z-nav:     100;
  --z-modal:   200;
  --z-loader:  400;
}

/* Dark mode tokens */
[data-theme="dark"] {
  --bg:        #0F0D0B;
  --bg-2:      #181614;
  --bg-3:      #221F1C;
  --bg-card:   #1C1A17;
  --bg-inv:    #F5F2EC;
  --bg-inv-2:  #EAE6DE;

  --ink:       #EDE9E2;
  --ink-2:     #B0AAA0;
  --ink-3:     #6E6860;
  --ink-inv:   #1A1714;
  --ink-inv-2: #57534A;

  --green:         #4EA87A;
  --green-hover:   #62BF8E;
  --green-active:  #76D0A2;
  --green-light:   #6EC49A;
  --green-surface: #091A11;
  --green-border:  #1A3828;
  --green-inv:     #1C5C42;

  --gold:         #DBC094;
  --gold-light:   #E8CFA8;
  --gold-surface: #1A1508;
  --gold-inv:     #C9995E;

  --border:        #2A2722;
  --border-strong: #3D3A34;
  --focus-ring:    rgba(78, 168, 122, 0.30);
  --selection-bg:  #1A3828;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.22);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.18);
  --shadow:    0 2px 8px rgba(0,0,0,0.30), 0 1px 3px rgba(0,0,0,0.20);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.22);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.40), 0 4px 8px rgba(0,0,0,0.25);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.50), 0 8px 16px rgba(0,0,0,0.30);

  --nav-bg:     rgba(15,13,11,0.92);
  --nav-border: rgba(42,39,34,0.75);
}


/* ─── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--selection-bg);
  color: var(--ink);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* Focus visible (accessibility) */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}


/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Display sizes — fluid scaling */
.text-hero  { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; line-height: 1.0; letter-spacing: -0.02em; }
.text-h1    { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
.text-h2    { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.text-h3    { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.875rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.008em; }
.text-h4    { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.25; }
.text-lead  { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; font-weight: 400; color: var(--ink-2); }
.text-body  { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); }
.text-small { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3); }
.text-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

em { font-style: italic; }


/* ─── 4. LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-xs {
  width: 100%;
  max-width: var(--container-xs);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section spacing */
.section {
  padding-block: var(--section-y);
}
.section-sm {
  padding-block: var(--section-y-sm);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }


/* ─── 5. LOADING SCREEN ─────────────────────────────────────────── */
#z-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#z-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  animation: loaderPulse 1.2s ease infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}


/* ─── 6. SCROLL PROGRESS BAR ────────────────────────────────────── */
#z-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: calc(var(--z-nav) + 1);
  transition: width 80ms linear;
}


/* ─── 7. NAVBAR ─────────────────────────────────────────────────── */
#z-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

#z-nav.scrolled {
  border-color: var(--nav-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
  transition: color var(--t);
}
.nav-logo:hover { color: var(--green); }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-link.active { color: var(--green); background: var(--green-surface); }

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
}

/* Theme toggle */
.nav-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-theme-btn:hover { background: var(--bg-2); color: var(--ink); }

.nav-theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.sun-icon, .moon-icon { display: none; }
[data-theme="light"] .sun-icon  { display: block; }
[data-theme="dark"]  .moon-icon { display: block; }

/* Nav CTA */
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--bg);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--green); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  transition: background var(--t-fast);
}
.nav-hamburger:hover { background: var(--bg-2); }
.hamburger-icon { width: 20px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t-slow), opacity var(--t-fast), width var(--t);
  transform-origin: center;
}
/* Hamburger → X */
.nav-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--gutter) var(--sp-4);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: calc(var(--z-nav) - 1);
  box-shadow: var(--shadow-md);
  animation: mobileMenuIn var(--t-slow) forwards;
}

.nav-mobile-menu.open { display: flex; }

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.mobile-nav-link:hover { color: var(--ink); background: var(--bg-2); }
.mobile-nav-link.active { color: var(--green); background: var(--green-surface); }

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-1) 0;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-1);
  padding: 14px 24px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--t-fast);
}
.mobile-nav-cta:hover { background: var(--green); }

/* Nav spacer */
.nav-spacer { height: var(--nav-height); }


/* ─── 8. BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--r-full);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 0.9375rem; padding: 14px 28px; }
.btn-xl { font-size: 1rem; padding: 16px 36px; border-radius: var(--r-md); }
.btn-sm { font-size: 0.8125rem; padding: 8px 16px; }
.btn-full { width: 100%; }

/* Solid primary */
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); box-shadow: var(--shadow-md); }

/* Dark/ink */
.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--green); border-color: var(--green); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-2); }

/* Ghost green */
.btn-ghost-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green-border);
}
.btn-ghost-green:hover { background: var(--green-surface); }

/* Text link button */
.btn-link {
  background: none;
  border: none;
  color: var(--ink-2);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transform: none !important;
}
.btn-link:hover { color: var(--green); text-decoration-color: var(--green); }

/* Arrow icon inside button */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform var(--t-fast);
}
.btn:hover .btn-arrow { transform: translateX(3px); }


/* ─── 9. FORMS ──────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--ink-3); }
.form-input:hover  { border-color: var(--border-strong); }
.form-input:focus  { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9188' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Inline email form (hero) */
.form-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-inline .form-input { flex: 1; min-width: 200px; border-radius: var(--r-full); }
.form-inline .btn { flex-shrink: 0; border-radius: var(--r-full); }

/* Success state */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3);
  background: var(--green-surface);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  animation: fadeUp var(--t-slow) forwards;
}
.form-success-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.form-success-title { font-weight: 600; color: var(--green); font-size: 0.9375rem; }
.form-success-sub   { font-size: 0.8125rem; color: var(--ink-2); margin-top: 2px; }


/* ─── 10. TICKER / MARQUEE ──────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 12px;
  user-select: none;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
  padding-inline: 20px;
}

.ticker-dot {
  color: var(--gold);
  font-size: 1rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ─── 11. CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-lift:hover { transform: translateY(-3px); }

.card-dark {
  background: var(--bg-inv-2);
  border-color: rgba(255,255,255,0.06);
  color: var(--ink-inv);
}

/* Problem card */
.problem-card {
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--t), transform var(--t);
}
.problem-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* Mode card */
.mode-card {
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.mode-card-simplified {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
}
.mode-card-premium {
  background: var(--bg-inv);
  color: var(--ink-inv);
  border: 1.5px solid transparent;
}


/* ─── 12. SECTION THEMES ────────────────────────────────────────── */
.section-light  { background: var(--bg); }
.section-alt    { background: var(--bg-2); }
.section-dark {
  background: var(--bg-inv);
  color: var(--ink-inv);
}
.section-green {
  background: var(--green);
  color: #fff;
}


/* ─── 13. SCROLL REVEAL ANIMATIONS ─────────────────────────────── */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal      { transition: opacity var(--t-spring); }
.reveal-up   { transform: translateY(28px); transition: opacity var(--t-spring), transform var(--t-spring); }
.reveal-left { transform: translateX(-28px); transition: opacity var(--t-spring), transform var(--t-spring); }
.reveal-right{ transform: translateX(28px);  transition: opacity var(--t-spring), transform var(--t-spring); }
.reveal-scale{ transform: scale(0.96);       transition: opacity var(--t-spring), transform var(--t-spring); }

.reveal.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > *:nth-child(1)  { transition-delay: 0ms; }
.stagger > *:nth-child(2)  { transition-delay: 80ms; }
.stagger > *:nth-child(3)  { transition-delay: 160ms; }
.stagger > *:nth-child(4)  { transition-delay: 240ms; }
.stagger > *:nth-child(5)  { transition-delay: 320ms; }
.stagger > *:nth-child(6)  { transition-delay: 400ms; }

/* Hero animation (runs on load) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-animate-1 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-animate-2 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.hero-animate-3 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both; }
.hero-animate-4 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both; }
.hero-animate-5 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both; }
.hero-visual-animate { animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }


/* ─── 14. BACK TO TOP ───────────────────────────────────────────── */
#z-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t-fast);
  box-shadow: var(--shadow-md);
}
#z-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#z-back-top:hover   { background: var(--green); transform: translateY(-2px); }
#z-back-top svg     { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }


/* ─── 15. FOOTER ────────────────────────────────────────────────── */
#z-footer {
  background: var(--bg-inv);
  color: var(--ink-inv);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-10) var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-inv);
  display: block;
  margin-bottom: var(--sp-2);
}

.footer-brand-tagline {
  font-size: 0.875rem;
  color: var(--ink-inv-2);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: var(--sp-4);
}

.footer-col-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-inv-2);
  margin-bottom: var(--sp-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--ink-inv-2);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--ink-inv); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--ink-inv-2);
}

.footer-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-inv-2);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
}

.footer-socials {
  display: flex;
  gap: var(--sp-1);
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-inv-2);
  font-size: 0.8125rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-social-link:hover { background: rgba(255,255,255,0.12); color: var(--ink-inv); }


/* ─── 16. HERO PAGE ─────────────────────────────────────────────── */
.hero-section {
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-8);
  padding-block: var(--sp-10);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-surface);
  border: 1px solid var(--green-border);
  padding: 5px 12px 5px 8px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: var(--r-full);
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-subline {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: var(--sp-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: var(--sp-5);
}

.hero-meta-item { display: flex; align-items: center; gap: 6px; }
.hero-meta-dot  { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* Hero illustration */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cards {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  isolation: isolate;
}

/* Floating measurement card */
.h-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
  position: relative;
  animation: hCardFloat 5s ease-in-out infinite;
}

.h-card-2 {
  margin-top: -16px;
  margin-left: 24px;
  animation-delay: -2.5s;
}

.h-card-3 {
  position: absolute;
  top: -20px;
  right: -20px;
  padding: 10px 14px;
  animation-delay: -1s;
}

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

.hc-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.hc-measurements { display: flex; flex-direction: column; gap: 8px; }

.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.hc-key { color: var(--ink-2); }

.hc-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.hc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.hc-status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* Order card */
.hc-order-id { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 4px; font-family: monospace; }
.hc-garment  { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: var(--sp-2); }

.hc-timeline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-2);
}

.hc-stage {
  flex: 1;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  transition: background var(--t);
}
.hc-stage.done   { background: var(--green); }
.hc-stage.active { background: var(--gold); }

.hc-stage-label {
  font-size: 0.6875rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 4px;
}

/* Floating price tag */
.hc-price-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-price-fit  { font-size: 0.6875rem; color: var(--green); font-weight: 500; }
.hc-price-main { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 500; }
.hc-price-note { font-size: 0.6875rem; color: var(--ink-3); }


/* ─── 17. PROBLEM SECTION ───────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.problem-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}

.problem-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-inv);
  margin-bottom: var(--sp-1);
}

.problem-card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-inv-2);
}


/* ─── 18. HOW IT WORKS ──────────────────────────────────────────── */
.steps-container { display: flex; flex-direction: column; gap: 0; }

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step-row:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border-strong);
  line-height: 1;
  letter-spacing: -0.03em;
  padding-top: 4px;
}

.step-content-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-content-body { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.7; }

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-surface);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-top: var(--sp-2);
}


/* ─── 19. TWO MODES ─────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
}

.mode-pill-simple { background: var(--green-surface); color: var(--green); }
.mode-pill-premium { background: rgba(201,153,94,0.15); color: var(--gold); }

.mode-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.mode-desc { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); }
.mode-card-premium .mode-desc { color: var(--ink-inv-2); }

.mode-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: var(--sp-3);
}

.mode-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.mode-card-premium .mode-feature { color: var(--ink-inv-2); }

.mode-check { color: var(--green); font-weight: 600; flex-shrink: 0; line-height: 1.5; }
.mode-card-premium .mode-check { color: var(--gold); }

.mode-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--green-border);
  color: var(--green);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  margin-top: auto;
  align-self: flex-start;
}
.mode-cta-link:hover { background: var(--green-surface); border-color: var(--green); transform: translateY(-1px); }

.mode-cta-link-premium {
  border-color: rgba(219,192,148,0.3);
  color: var(--gold);
}
.mode-cta-link-premium:hover { background: rgba(201,153,94,0.1); border-color: var(--gold-light); }

/* Decorative bg circle */
.mode-card-premium::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201,153,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}


/* ─── 20. FIT PROFILES SECTION ──────────────────────────────────── */
.fit-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.fit-benefits { display: flex; flex-direction: column; gap: 12px; margin-block: var(--sp-4); }

.fit-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.fit-benefit-check {
  width: 22px;
  height: 22px;
  background: var(--green-surface);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Profile card UI */
.profile-card-wrap { position: relative; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  animation: hCardFloat 6s ease-in-out infinite;
}

.profile-card-2 {
  margin-top: -12px;
  margin-left: 28px;
  animation-delay: -3s;
  padding: var(--sp-3);
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.pc-avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  flex-shrink: 0;
}

.pc-name     { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.pc-subtitle { font-size: 0.75rem; color: var(--ink-3); }

.pc-profiles { display: flex; flex-direction: column; gap: 6px; }

.pc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.pc-item:hover  { background: var(--bg-2); }
.pc-item.active { background: var(--green-surface); }

.pc-item-icon  { font-size: 1rem; flex-shrink: 0; }
.pc-item-label { font-size: 0.875rem; color: var(--ink-2); flex: 1; }
.pc-item.active .pc-item-label { color: var(--green); font-weight: 500; }
.pc-item-check { font-size: 0.75rem; color: var(--green); font-weight: 700; }

/* Reorder card */
.pc-reorder { display: flex; flex-direction: column; gap: 6px; }
.pc-reorder-tag    { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.pc-reorder-item   { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.pc-reorder-fit    { font-size: 0.8125rem; color: var(--green); }
.pc-reorder-speed  { font-size: 0.8125rem; color: var(--ink-3); margin-top: 2px; }


/* ─── 21. STATS SECTION ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-10);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number-green { color: var(--green); }

.stat-label { font-size: 0.875rem; color: var(--ink-2); line-height: 1.55; }

.stat-divider {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
}

/* ─── 22. COMPARISON TABLE ──────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin-top: var(--sp-8); }

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  text-align: center;
}

.compare-table th { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; }

.compare-th-feature {
  text-align: left !important;
  color: var(--ink-inv-2);
  font-weight: 400;
}
.compare-td-feature {
  text-align: left !important;
  color: var(--ink-inv-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-th-bad { background: rgba(255,255,255,0.04); color: var(--ink-inv-2); }
.compare-td-bad { background: rgba(255,255,255,0.04); color: var(--ink-inv-2); border-bottom: 1px solid rgba(255,255,255,0.06); }
.compare-th-good { background: var(--green); color: #fff; }
.compare-td-good { background: rgba(28,92,66,0.2); color: var(--green-inv); font-weight: 500; border-bottom: 1px solid rgba(78,168,122,0.15); }

/* ─── 23. WAITLIST CTA SECTION ──────────────────────────────────── */
.cta-section {
  background: var(--bg-inv);
  padding-block: var(--section-y);
}

.cta-inner {
  max-width: var(--container-xs);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  text-align: left;
}

/* Perks list in CTA */
.cta-perks { display: flex; flex-direction: column; gap: 12px; }
.cta-perk  {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-inv-2);
}
.cta-perk-icon {
  width: 28px;
  height: 28px;
  background: rgba(78,168,122,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}


/* ─── 24. ABOUT / INNER PAGES ───────────────────────────────────── */
.page-hero {
  padding-block: var(--sp-12) var(--sp-10);
  text-align: center;
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-hero-label { margin-bottom: var(--sp-2); }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.page-hero-body {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 540px;
  margin-inline: auto;
}


/* ─── 25. FAQ ACCORDION ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--green); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t);
}

.faq-item.open .faq-icon { background: var(--green-surface); color: var(--green); transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.75;
  padding-bottom: var(--sp-3);
}


/* ─── 26. TRUST PLEDGES BAR ─────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-4);
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--green-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.trust-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

.trust-item-sub {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.5;
}


/* ─── 27. INTENT SELECTOR ───────────────────────────────────────── */
.intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-8);
}

.intent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  color: var(--ink-2);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}
.intent-pill:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-surface);
  transform: translateY(-1px);
}
.intent-pill svg { flex-shrink: 0; }


/* ─── 28. FAMILY SCENARIO CALLOUT ───────────────────────────────── */
.family-callout {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.family-callout-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--green-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.family-callout-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.family-callout-body {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.6;
}


/* ─── 29. JOURNAL TEASER ────────────────────────────────────────── */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.journal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }

.journal-card-top {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.journal-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-2);
}

.journal-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  flex: 1;
}

.journal-card-read {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-2);
  transition: gap var(--t-fast);
}
.journal-card:hover .journal-card-read { gap: 8px; }

.journal-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}


/* ─── 30. UTILITIES ─────────────────────────────────────────────── */
.hidden         { display: none !important; }
.sr-only        { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-1          { gap: var(--sp-1); }
.gap-2          { gap: var(--sp-2); }
.gap-3          { gap: var(--sp-3); }
.gap-4          { gap: var(--sp-4); }
.mb-1           { margin-bottom: var(--sp-1); }
.mb-2           { margin-bottom: var(--sp-2); }
.mb-3           { margin-bottom: var(--sp-3); }
.mb-4           { margin-bottom: var(--sp-4); }
.mb-6           { margin-bottom: var(--sp-6); }
.mt-2           { margin-top: var(--sp-2); }
.mt-4           { margin-top: var(--sp-4); }
.mt-auto        { margin-top: auto; }
.w-full         { width: 100%; }
.relative       { position: relative; }
.overflow-hidden{ overflow: hidden; }


/* ─── 27. RESPONSIVE ────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-y: 80px;
    --section-y-sm: 56px;
    --gutter: 20px;
  }

  .hero-section { grid-template-columns: 1fr; min-height: auto; padding-top: var(--sp-8); }
  .hero-visual  { display: none; }
  .hero-headline { font-size: clamp(2.5rem, 6vw, 4rem); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

  .problem-grid { grid-template-columns: 1fr 1fr; }

  .modes-grid { grid-template-columns: 1fr; }

  .fit-section-grid { grid-template-columns: 1fr; gap: var(--sp-8); }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-y: 64px;
    --section-y-sm: 44px;
    --gutter: 16px;
    --nav-height: 60px;
  }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .hero-section { padding-block: var(--sp-6) var(--sp-8); gap: var(--sp-5); }
  .hero-headline { font-size: clamp(2.25rem, 8vw, 3.25rem); }

  .form-inline { flex-direction: column; }
  .form-inline .form-input { min-width: 0; border-radius: var(--r-sm); }
  .form-inline .btn { border-radius: var(--r-sm); }

  .problem-grid { grid-template-columns: 1fr; }

  .step-row { grid-template-columns: 56px 1fr; gap: var(--sp-2); }
  .step-num { font-size: 2.25rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding-block: var(--sp-8); }

  .footer-top { grid-template-columns: 1fr; gap: var(--sp-5); padding-block: var(--sp-8) var(--sp-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  .modes-grid { gap: var(--sp-3); }
  .mode-card  { padding: var(--sp-4) var(--sp-3); }

  .cta-grid { grid-template-columns: 1fr; }

  .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .journal-grid { grid-template-columns: 1fr; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .inline-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }

  #z-back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.8125rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-badge { font-size: 0.75rem; }
  .hero-meta  { font-size: 0.75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .inline-grid-3 { grid-template-columns: 1fr !important; }
  .trust-bar-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   BACKWARD COMPATIBILITY LAYER
   Maps old v1 variable names → new design system tokens
   Allows inner pages using var(--z-*) to continue working
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --z-bg:               var(--bg);
  --z-bg-alt:           var(--bg-2);
  --z-bg-card:          var(--bg-card);
  --z-bg-elevated:      var(--bg-card);
  --z-bg-muted:         var(--bg-3);
  --z-bg-footer:        var(--bg-inv);

  /* Text */
  --z-text:             var(--ink);
  --z-text-secondary:   var(--ink-2);
  --z-text-muted:       var(--ink-3);

  /* Primary (green) */
  --z-primary:          var(--green);
  --z-primary-light:    var(--green-light);
  --z-primary-surface:  var(--green-surface);
  --z-primary-extra-light: var(--green-surface);

  /* Secondary (gold) */
  --z-secondary:        var(--gold);
  --z-secondary-dark:   var(--gold);

  /* Borders */
  --z-border:           var(--border);
  --z-border-light:     var(--border);

  /* Inverse */
  --z-inverse-bg:       var(--bg-inv);
  --z-inverse-text:     var(--ink-inv);

  /* Nav */
  --z-nav-bg:           var(--nav-bg);
  --z-nav-bg-solid:     var(--nav-bg);
  --z-dropdown-bg:      var(--bg-card);
  --z-mobile-menu-bg:   var(--bg-card);
  --z-loading-bg:       var(--bg);

  /* Tailwind compat tokens (used in old Tailwind class combos) */
  --tw-surface:         var(--bg);
  --tw-surface-container: var(--bg-2);
  --tw-surface-container-low: var(--bg-2);
  --tw-surface-container-high: var(--bg-3);
  --tw-surface-container-highest: var(--bg-3);
  --tw-surface-container-lowest: var(--bg-card);
  --tw-surface-variant: var(--bg-3);
  --tw-inverse-surface: var(--bg-inv);
  --tw-on-surface:      var(--ink);
  --tw-on-surface-variant: var(--ink-2);
  --tw-inverse-on-surface: var(--ink-inv);
  --tw-primary:         var(--green);
  --tw-primary-container: var(--green-surface);
  --tw-on-primary:      #ffffff;
  --tw-on-primary-container: var(--green);
  --tw-primary-fixed:   var(--green-surface);
  --tw-primary-fixed-dim: var(--green-surface);
  --tw-inverse-primary: var(--green-inv);
  --tw-secondary:       var(--gold);
  --tw-secondary-container: var(--gold-surface);
  --tw-on-secondary:    #ffffff;
  --tw-on-secondary-container: var(--gold);
  --tw-secondary-fixed: var(--gold-surface);
  --tw-secondary-fixed-dim: var(--gold-surface);
  --tw-outline:         var(--border-strong);
  --tw-outline-variant: var(--border);
  --tw-error:           #dc2626;
  --tw-on-error:        #ffffff;
}

/* Dark mode compat aliases */
[data-theme="dark"] {
  --z-bg:              var(--bg);
  --z-bg-alt:          var(--bg-2);
  --z-bg-card:         var(--bg-card);
  --z-bg-elevated:     var(--bg-card);
  --z-bg-muted:        var(--bg-3);
  --z-text:            var(--ink);
  --z-text-secondary:  var(--ink-2);
  --z-text-muted:      var(--ink-3);
  --z-primary:         var(--green);
  --z-primary-light:   var(--green-light);
  --z-primary-surface: var(--green-surface);
  --z-primary-extra-light: var(--green-surface);
  --z-secondary:       var(--gold);
  --z-secondary-dark:  var(--gold);
  --z-border:          var(--border);
  --z-border-light:    var(--border);
  --z-inverse-bg:      var(--bg-inv);
  --z-inverse-text:    var(--ink-inv);
  --tw-surface:        var(--bg);
  --tw-surface-container: var(--bg-2);
  --tw-surface-container-low: var(--bg-2);
  --tw-surface-container-high: var(--bg-3);
  --tw-surface-container-highest: var(--bg-3);
  --tw-surface-container-lowest: var(--bg-card);
  --tw-on-surface:     var(--ink);
  --tw-on-surface-variant: var(--ink-2);
  --tw-inverse-surface: var(--bg-inv);
  --tw-inverse-on-surface: var(--ink-inv);
  --tw-primary:        var(--green);
  --tw-primary-container: var(--green-surface);
  --tw-on-primary:     #0f0d0b;
  --tw-secondary:      var(--gold);
  --tw-secondary-container: var(--gold-surface);
  --tw-on-secondary:   #0f0d0b;
  --tw-outline:        var(--border-strong);
  --tw-outline-variant: var(--border);
}


/* ─── BACKWARD COMPAT CSS CLASS SHIMS ───────────────────────── */
/* These classes were used in v1 pages — kept so old HTML still renders */

.font-headline, .font-heading {
  font-family: var(--font-display) !important;
}

.font-body, .font-label {
  font-family: var(--font-body) !important;
}

/* Old section label pattern */
.section-label, .label-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Old body-large / body-base */
.body-large {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.body-base {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Old section-padding */
.section-padding {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

/* Old container classes */
.container-narrow {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Old card-hover / editorial-shadow */
.card-hover {
  transition: box-shadow var(--t), transform var(--t);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.editorial-shadow { box-shadow: var(--shadow); }

/* Old magnetic-btn (just normalise) */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.magnetic-btn:hover { transform: translateY(-1px); }

/* Old gradient-text */
.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Old img-zoom */
.img-zoom img, .img-zoom {
  transition: transform 0.4s var(--t-slow);
}
.img-zoom:hover img, .img-zoom:hover {
  transform: scale(1.04);
}

/* Old line-accent / line-accent-center */
.line-accent       { border-bottom: 2px solid var(--gold); padding-bottom: 6px; display: inline; }
.line-accent-center { display: block; }

/* Old stagger-children (replaced by .stagger) */
.stagger-children > *:nth-child(1)  { transition-delay: 0ms !important; }
.stagger-children > *:nth-child(2)  { transition-delay: 80ms !important; }
.stagger-children > *:nth-child(3)  { transition-delay: 160ms !important; }
.stagger-children > *:nth-child(4)  { transition-delay: 240ms !important; }
.stagger-children > *:nth-child(5)  { transition-delay: 320ms !important; }
.stagger-children > *:nth-child(6)  { transition-delay: 400ms !important; }

/* Active filter */
.active-filter {
  background: var(--green-surface) !important;
  color: var(--green) !important;
}

/* Old btn-primary / btn-secondary used inline */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1.5px solid var(--green);
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--ink-2);
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border-strong);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* Old btn-ghost kept working */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--ink-2);
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1.5px solid var(--border-strong);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-2); }

/* Old nav-spacer (keep the height) */
.nav-spacer { height: var(--nav-height); }

/* ─── LEGACY VARIABLE ALIASES (unmigrated pages) ─────────────── */
/* Maps old --z-* vars to new design tokens so old pages render */
:root {
  --z-primary:           var(--green);
  --z-primary-hover:     var(--green-hover);
  --z-primary-extra-light: var(--green-surface);
  --z-secondary:         var(--gold);
  --z-bg:                var(--bg);
  --z-bg-alt:            var(--bg-2);
  --z-bg-card:           var(--bg-card);
  --z-text:              var(--ink);
  --z-text-secondary:    var(--ink-2);
  --z-text-muted:        var(--ink-3);
  --z-border:            var(--border);
  --z-border-light:      var(--border);
}


/* ─── PILL CHECKBOXES / RADIO (survey multi-select) ──────────────── */
.pill-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
  line-height: 1.4;
}

.pill-label:hover {
  border-color: var(--green-border);
  background: var(--green-surface);
  color: var(--ink);
}

.pill-check:checked + .pill-label {
  border-color: var(--green);
  background: var(--green-surface);
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--green);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Survey step card */
.survey-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-4);
}

.survey-step-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.survey-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--green-surface);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.survey-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.survey-step-desc {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .survey-step { padding: var(--sp-4) var(--sp-3); }
}
