/* ============================================
   K4RL — style.css
   Theme: near-black bg / lavender accent / white surfaces
   ============================================ */

/* --- TOKENS --- */
:root {
  --lavender:       #c5b8f0;
  --lavender-light: #ddd6f8;
  --lavender-mid:   #b8a8e8;
  --lavender-dark:  #a090d8;
  --lavender-deep:  #7a68c0;
  --black:          #18161f;
  --black-soft:     #221f2e;
  --black-raised:   #2a2738;
  --white:          #fafaf8;
  --bg:             #18161f;
  --surface:        #221f2e;
  --surface-raised: #2a2738;
  --text:           #fafaf8;
  --text-muted:     rgba(197, 184, 240, 0.55);
  --border:         rgba(197, 184, 240, 0.1);
  --border-strong:  rgba(197, 184, 240, 0.22);
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --font-pixel:   'Syne', monospace;
  --font-mono:    'Space Mono', monospace;
  --transition:   0.2s ease;
  --card-shadow:  0 2px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(24, 22, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border-strong);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.logo-pixel {
  font-family: var(--font-pixel);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lavender);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--lavender); }
.nav-cta {
  color: var(--lavender) !important;
  border: 0.5px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--black) !important;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--lavender);
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 0.5px solid var(--border);
  background: var(--black-soft);
}
.nav-mobile a {
  font-size: 13px;
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
}
.nav-mobile a:hover { color: var(--lavender); background: rgba(197,184,240,0.05); }
.nav-mobile.open { display: flex; }

/* --- HERO --- */
.hero {
  min-height: 100svh;
  padding: 128px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2dba80;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-title em {
  font-style: italic;
  color: var(--lavender);
}
.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 800;
  color: var(--lavender);
}
.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.hero-stat-div {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}

/* --- PASSPORT CARD --- */
.hero-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(197, 184, 240, 0.12) 0%, transparent 68%);
  pointer-events: none;
  border-radius: 50%;
}
.passport-card {
  width: 360px;
  height: 500px;
  perspective: 1200px;
  cursor: pointer;
}
.passport-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
}
.passport-card.flipped .passport-inner {
  transform: rotateY(180deg);
}
.passport-front,
.passport-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
}
.passport-front {
  background: var(--white);
  border: 0.5px solid rgba(255,255,255,0.12);
  color: var(--black);
}
.passport-back {
  background: var(--black-soft);
  color: var(--white);
  border: 0.5px solid var(--border-strong);
  transform: rotateY(180deg);
}
.passport-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.passport-brand {
  font-family: var(--font-pixel);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.passport-front .passport-brand { color: #18161f; }
.passport-back .passport-brand { color: var(--lavender); }
.passport-type {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.passport-front .passport-type { color: #9b9890; }
.passport-back .passport-type { color: var(--text-muted); }
.passport-product-img {
  flex: 1;
  background: #f0ede8;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-placeholder { width: 80px; height: 80px; color: #9b9890; }
.product-placeholder svg { width: 100%; height: 100%; }
.passport-info { display: flex; flex-direction: column; gap: 8px; }
.passport-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 0.5px solid rgba(17,16,16,0.1);
  padding-bottom: 6px;
}
.field-label {
  font-size: 9px;
  color: #9b9890;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field-value { font-size: 11px; color: #18161f; }
.passport-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.passport-status.issued { color: #1a9e6a; font-size: 9px; letter-spacing: 0.05em; }
.passport-hint { font-size: 9px; color: #9b9890; }

/* Trail (back of card) */
.trail-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.trail-item { display: flex; gap: 12px; align-items: flex-start; }
.trail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 3px;
  flex-shrink: 0;
  position: relative;
}
.trail-dot.active { background: var(--lavender); border-color: var(--lavender); }
.trail-dot.active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--lavender);
  opacity: 0.35;
}
.trail-content { display: flex; flex-direction: column; gap: 1px; }
.trail-label { font-size: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.trail-val { font-size: 11px; color: var(--white); }
.trail-date { font-size: 9px; color: var(--text-muted); }
.passport-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 0.5px solid var(--border);
  padding-top: 12px;
}
.qr-block {
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-svg { width: 100%; height: 100%; color: #18161f; }
.qr-label { font-size: 9px; color: var(--text-muted); letter-spacing: 0.08em; }

/* Hero background text */
.hero-bg-text {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 100px);
  color: rgba(197, 184, 240, 0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  user-select: none;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--lavender);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--lavender-light);
  border-color: var(--lavender-light);
  color: var(--black);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-strong);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--lavender);
  color: var(--lavender);
}
.btn-full { width: 100%; justify-content: center; }

/* --- SECTIONS SHARED --- */
.section { padding: 100px 0; }
.section-header { margin-bottom: 56px; }
.section-eyebrow {
  display: block;
  font-size: 11px;
  color: var(--lavender-dark);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}
.section-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- HOW IT WORKS --- */
.how { background: var(--black-soft); }
.steps-grid { display: flex; align-items: flex-start; gap: 0; }
.step-card {
  flex: 1;
  padding: 32px;
  background: var(--surface-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--lavender-deep);
  box-shadow: 0 0 0 1px var(--lavender-deep), var(--card-shadow);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 800;
  color: var(--lavender-deep);
}
.step-icon { width: 40px; height: 40px; color: var(--lavender); }
.step-icon svg { width: 100%; height: 100%; }
.step-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.step-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.step-connector {
  padding: 0 12px;
  margin-top: 80px;
  font-size: 20px;
  color: var(--border-strong);
  flex-shrink: 0;
}

/* --- FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--lavender-deep);
  box-shadow: 0 0 0 1px var(--lavender-deep);
}
.feature-card--large {
  grid-column: span 2;
  background: var(--lavender-deep);
  border-color: transparent;
}
.feature-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender-dark);
  font-weight: 700;
}
.feature-card--large .feature-tag { color: rgba(255,255,255,0.55); }
.feature-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.feature-card--large h3 { color: var(--white); }
.feature-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.feature-card--large p { color: rgba(255,255,255,0.65); }
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #2dba80;
  border: 0.5px solid rgba(45, 186, 128, 0.3);
  padding: 4px 10px;
  border-radius: 3px;
  margin-top: 4px;
  width: fit-content;
}

/* --- NUMBERS --- */
.numbers { background: var(--lavender-deep); }
.numbers-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.number-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  text-align: center;
}
.number-val {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.number-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.number-divider {
  width: 0.5px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* --- PRICING --- */
.pricing { background: var(--black-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.pricing-card {
  background: var(--surface-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card--featured {
  background: var(--white);
  border-color: transparent;
  color: var(--black);
  transform: translateY(-8px);
  box-shadow: 0 8px 48px rgba(197, 184, 240, 0.2), var(--card-shadow);
}
.pricing-featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lavender);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender-dark);
}
.pricing-card--featured .pricing-tier { color: var(--lavender-deep); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 18px; font-weight: 700; }
.price-val { font-family: var(--font-pixel); font-size: 22px; font-weight: 800; }
.price-period { font-size: 11px; color: var(--text-muted); }
.pricing-card--featured .price-period { color: #9b9890; }
.pricing-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.pricing-card--featured .pricing-desc { color: #5c5a55; }
.pricing-list { display: flex; flex-direction: column; gap: 10px; }
.pricing-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.pricing-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lavender-deep);
  font-size: 10px;
}
.pricing-card--featured .pricing-list li { color: #5c5a55; }
.pricing-card--featured .pricing-list li::before { color: var(--lavender-deep); }
.pricing-card--featured .btn-primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.pricing-card--featured .btn-primary:hover {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
}
.pricing-card--featured .btn-ghost {
  border-color: rgba(17,16,16,0.2);
  color: #5c5a55;
}
.pricing-card--featured .btn-ghost:hover {
  border-color: var(--black);
  color: var(--black);
}

/* --- WAITLIST --- */
.waitlist { background: var(--bg); }
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.waitlist-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 20px;
  color: var(--white);
}
.waitlist-text p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.waitlist-perks { display: flex; flex-direction: column; gap: 10px; }
.perk { font-size: 12px; color: var(--text-muted); }
.perk::before { content: ''; }

/* Form */
.waitlist-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lavender-dark); }
.form-group input,
.form-group select {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: rgba(197,184,240,0.25); }
.form-group select option { background: var(--surface); color: var(--white); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lavender);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(197, 184, 240, 0.1);
}
.form-note { font-size: 10px; color: var(--text-muted); text-align: center; }
.form-success {
  text-align: center;
  padding: 40px 20px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1a9e6a;
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 18px; margin-bottom: 8px; color: var(--white); }
.form-success p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.form-success a { color: var(--lavender); text-decoration: underline; }

/* --- FOOTER --- */
.footer {
  background: var(--black-soft);
  border-top: 0.5px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; max-width: 240px; }
.footer-brand .logo-pixel { color: var(--lavender); }
.footer-brand .logo-sub { color: var(--text-muted); }
.footer-copy { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin-top: 12px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.footer-col a { font-size: 12px; color: rgba(197,184,240,0.4); transition: var(--transition); }
.footer-col a:hover { color: var(--lavender); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .hero-card-wrap { justify-content: flex-start; }
  .hero-title { font-size: clamp(28px, 7vw, 42px); }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); padding: 0; margin: -8px auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .waitlist-inner { grid-template-columns: 1fr; gap: 48px; }
  .numbers-grid { flex-direction: column; }
  .number-divider { width: 80px; height: 0.5px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

/* ============================================
   THEME TOGGLE
   ============================================ */

/* --- Toggle button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-strong);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--lavender);
  color: var(--lavender);
}
.theme-icon { display: flex; align-items: center; justify-content: center; }
/* Dark mode: show sun (switch to light), hide moon */
.theme-icon--light { display: none; }
.theme-icon--dark  { display: flex; }
/* Light mode: show moon (switch to dark), hide sun */
body.light .theme-icon--light { display: flex; }
body.light .theme-icon--dark  { display: none; }

/* --- Smooth theme transition --- */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   LIGHT THEME — applied via body.light
   ============================================ */
body.light {
  --bg:             #F5F3EE;
  --surface:        #fafaf8;
  --surface-raised: #f0ede8;
  --text:           #111010;
  --text-muted:     #5c5a55;
  --border:         rgba(17,16,16,0.1);
  --border-strong:  rgba(17,16,16,0.18);
  --card-shadow:    0 2px 24px rgba(130, 100, 220, 0.1), 0 1px 4px rgba(0,0,0,0.05);
  --lavender-deep:  #7a68c0;
  background: var(--bg);
  color: var(--text);
}

/* Nav */
body.light .nav {
  background: rgba(245, 243, 238, 0.88);
  border-bottom-color: rgba(17,16,16,0.1);
}
body.light .logo-pixel { color: var(--black); }
body.light .logo-sub   { color: #9b9890; }
body.light .nav-links  { color: #5c5a55; }
body.light .nav-links a:hover { color: var(--black); }
body.light .nav-cta {
  color: var(--black) !important;
  border-color: rgba(17,16,16,0.2);
}
body.light .nav-cta:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white) !important;
}
body.light .nav-burger span { background: var(--black); }
body.light .nav-mobile {
  background: #F5F3EE;
  border-top-color: rgba(17,16,16,0.1);
}
body.light .nav-mobile a { color: #5c5a55; border-bottom-color: rgba(17,16,16,0.08); }
body.light .nav-mobile a:hover { color: var(--black); background: rgba(0,0,0,0.04); }
body.light .theme-toggle { border-color: rgba(17,16,16,0.18); color: #5c5a55; }
body.light .theme-toggle:hover { border-color: var(--lavender-deep); color: var(--lavender-deep); }

/* Hero */
body.light .hero-title { color: var(--black); }
body.light .hero-title em { color: var(--lavender-deep); }
body.light .hero-eyebrow { color: #9b9890; }
body.light .hero-bg-text { color: rgba(122, 104, 192, 0.06); }
body.light .stat-num { color: var(--black); }
body.light .stat-label { color: #9b9890; }
body.light .hero-stat-div { background: rgba(17,16,16,0.15); }
body.light .dot-live { background: #1a9e6a; }
body.light .card-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(122, 104, 192, 0.12) 0%, transparent 68%);
}

/* Buttons */
body.light .btn-primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
body.light .btn-primary:hover {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
}
body.light .btn-ghost {
  background: transparent;
  border-color: rgba(17,16,16,0.2);
  color: #5c5a55;
}
body.light .btn-ghost:hover {
  border-color: var(--black);
  color: var(--black);
}

/* Passport front (already white — just fix text colors) */
body.light .passport-front { background: var(--white); }
body.light .passport-back  { background: #111010; }

/* Sections */
body.light .section-title  { color: var(--black); }
body.light .section-eyebrow { color: var(--lavender-deep); }
body.light .section-sub    { color: #5c5a55; }

/* How it works */
body.light .how { background: #ede9e2; }
body.light .step-card { background: var(--white); border-color: rgba(17,16,16,0.1); }
body.light .step-card:hover { border-color: var(--lavender-deep); box-shadow: 0 0 0 1px var(--lavender-deep), var(--card-shadow); }
body.light .step-num  { color: var(--lavender-deep); }
body.light .step-icon { color: var(--black); }
body.light .step-card h3 { color: var(--black); }
body.light .step-card p  { color: #5c5a55; }
body.light .step-connector { color: rgba(17,16,16,0.2); }

/* Features */
body.light .feature-card { background: var(--white); border-color: rgba(17,16,16,0.1); }
body.light .feature-card:hover { border-color: var(--lavender-deep); box-shadow: 0 0 0 1px var(--lavender-deep); }
body.light .feature-card--large { background: var(--black); border-color: transparent; }
body.light .feature-tag { color: var(--lavender-deep); }
body.light .feature-card h3 { color: var(--black); }
body.light .feature-card p  { color: #5c5a55; }

/* Numbers bar */
body.light .numbers { background: var(--black); }
body.light .number-val { color: var(--lavender); }

/* Pricing */
body.light .pricing { background: #ede9e2; }
body.light .pricing-card { background: var(--white); border-color: rgba(17,16,16,0.1); }
body.light .pricing-card--featured {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
}
body.light .pricing-tier { color: var(--lavender-deep); }
body.light .pricing-card--featured .pricing-tier { color: var(--lavender); }
body.light .price-period { color: #9b9890; }
body.light .pricing-desc { color: #5c5a55; }
body.light .pricing-card--featured .pricing-desc { color: rgba(255,255,255,0.55); }
body.light .pricing-list li { color: #5c5a55; }
body.light .pricing-list li::before { color: var(--lavender-deep); }
body.light .pricing-card--featured .pricing-list li { color: rgba(255,255,255,0.65); }
body.light .pricing-card--featured .pricing-list li::before { color: var(--lavender); }
body.light .pricing-card--featured .btn-primary {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--black);
}
body.light .pricing-card--featured .btn-primary:hover {
  background: var(--lavender-light);
  border-color: var(--lavender-light);
}
body.light .pricing-card--featured .btn-ghost { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.55); }
body.light .pricing-card--featured .btn-ghost:hover { border-color: var(--white); color: var(--white); }
body.light .pricing-featured-label { background: var(--lavender); color: var(--black); }

/* Waitlist */
body.light .waitlist { background: var(--bg); }
body.light .waitlist-title { color: var(--black); }
body.light .waitlist-text p { color: #5c5a55; }
body.light .perk { color: #5c5a55; }
body.light .form-group label { color: #9b9890; }
body.light .form-group input,
body.light .form-group select {
  background: var(--white);
  border-color: rgba(17,16,16,0.18);
  color: var(--black);
}
body.light .form-group input::placeholder { color: #9b9890; }
body.light .form-group input:focus,
body.light .form-group select:focus {
  border-color: var(--lavender-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(122, 104, 192, 0.12);
}
body.light .form-note { color: #9b9890; }
body.light .form-success { background: #f0ede8; border-color: rgba(17,16,16,0.1); }
body.light .form-success h3 { color: var(--black); }
body.light .form-success p  { color: #5c5a55; }
body.light .form-success a  { color: var(--lavender-deep); }

/* Footer */
body.light .footer { background: var(--black); border-top-color: rgba(255,255,255,0.08); }

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* --- NAV slide down on load --- */
.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.nav {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              background-color 0.3s ease;
}
.nav.nav--visible {
  transform: translateY(0);
  opacity: 1;
}

/* --- Hero staggered entrance --- */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-anim.hero-anim--card {
  transform: translateX(32px);
}
.hero-anim.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.hero-anim--1  { transition-delay: 0.15s; }
.hero-anim--2  { transition-delay: 0.25s; }
.hero-anim--3  { transition-delay: 0.35s; }
.hero-anim--4  { transition-delay: 0.45s; }
.hero-anim--5  { transition-delay: 0.55s; }
.hero-anim--6  { transition-delay: 0.65s; }
.hero-anim--7  { transition-delay: 0.75s; }
.hero-anim--card { transition-delay: 0.4s; transition-duration: 0.8s; }

/* --- Passport card float --- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(0.4deg); }
  66%       { transform: translateY(-4px) rotate(-0.3deg); }
}
.passport-card {
  animation: float 6s ease-in-out infinite;
  animation-play-state: paused;
}
.passport-card.floating {
  animation-play-state: running;
}

/* --- Trail items animate in when card flips --- */
.trail-animate {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.passport-card.flipped .trail-animate:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
.passport-card.flipped .trail-animate:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.48s; }
.passport-card.flipped .trail-animate:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.61s; }
.passport-card.flipped .trail-animate:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.74s; }

/* --- Scroll reveal (existing class, enhanced) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* --- Button press micro-interaction --- */
.btn-primary, .btn-ghost {
  transform: scale(1);
  transition: background-color var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform 0.12s ease,
              box-shadow 0.12s ease;
}
.btn-primary:active, .btn-ghost:active {
  transform: scale(0.97);
}

/* --- Feature card lift on hover (stronger) --- */
.feature-card {
  transition: border-color var(--transition),
              box-shadow var(--transition),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card--large:hover {
  transform: translateY(-2px);
}

/* --- Pricing card lift --- */
.pricing-card {
  transition: border-color var(--transition),
              box-shadow var(--transition),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-card:not(.pricing-card--featured):hover {
  transform: translateY(-4px);
}

/* --- Nav link underline sweep --- */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--lavender);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* --- Waitlist perk items stagger in --- */
.waitlist-perks .perk {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.waitlist-text.visible .perk:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.waitlist-text.visible .perk:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
.waitlist-text.visible .perk:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }

/* --- Form input focus animation --- */
.form-group input, .form-group select {
  transition: border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.15s ease;
}
.form-group input:focus, .form-group select:focus {
  transform: translateY(-1px);
}

/* --- Hero background text parallax (JS-driven, no extra CSS needed) --- */

/* --- Number counter pulse on reveal --- */
@keyframes countPulse {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1);    opacity: 1; }
}
.number-val.counting {
  animation: countPulse 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   PASSPORT BACK — two-column redesign
   Left: product details | Right: timeline
   ============================================ */
.passport-back {
  padding: 20px;
}
.passport-back-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

/* Left column — details */
.passport-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 0.5px solid rgba(197,184,240,0.15);
  padding-right: 14px;
}
.detail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(197,184,240,0.4);
}
.detail-value {
  font-size: 12px;
  color: var(--white);
  line-height: 1.3;
}
.eco-grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #2dba80;
}
.eco-bar {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}
.eco-pip {
  width: 12px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255,255,255,0.1);
}
.eco-pip.filled { background: #2dba80; }

/* Right column — timeline */
.passport-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}
.tl-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  position: relative;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.passport-card.flipped .tl-item:nth-child(1) { opacity:1; transform:translateX(0); transition-delay:0.35s; }
.passport-card.flipped .tl-item:nth-child(2) { opacity:1; transform:translateX(0); transition-delay:0.47s; }
.passport-card.flipped .tl-item:nth-child(3) { opacity:1; transform:translateX(0); transition-delay:0.59s; }
.passport-card.flipped .tl-item:nth-child(4) { opacity:1; transform:translateX(0); transition-delay:0.71s; }
.passport-card.flipped .tl-item:nth-child(5) { opacity:1; transform:translateX(0); transition-delay:0.83s; }

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 12px;
}
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(197,184,240,0.35);
  background: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.tl-dot.active {
  background: var(--lavender);
  border-color: var(--lavender);
  box-shadow: 0 0 6px rgba(197,184,240,0.5);
}
.tl-line {
  width: 1px;
  flex: 1;
  min-height: 10px;
  background: rgba(197,184,240,0.12);
  margin: 3px 0;
}
.tl-item:last-child .tl-line { display: none; }
.tl-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 10px;
}
.tl-item:last-child .tl-content { padding-bottom: 0; }
.tl-event {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.tl-item:last-child .tl-event { color: var(--lavender); }
.tl-meta {
  font-size: 10px;
  color: rgba(197,184,240,0.4);
  line-height: 1.3;
}

/* QR strip at bottom of back */
.passport-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 0.5px solid rgba(197,184,240,0.12);
  padding-top: 10px;
  margin-top: 4px;
}
