/* ============================================
   ELM — Financial Freedom, Simplified
   Award-Winning Design System v2
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700&display=swap');

/* ── Design Tokens ── */
:root {
  --elm-green-start: #7BC142;
  --elm-green-mid: #5C9E7E;
  --elm-green-end: #2D6A4F;
  --elm-dark-green: #1A3D2B;
  --elm-text-primary: #1C2B20;
  --elm-text-secondary: #4A5E50;
  --elm-text-muted: #6B8573;
  --elm-text-inverse: #FFFFFF;
  --elm-bg: #F8FBF6;
  --elm-bg-warm: #FDFBF7;
  --elm-card-surface: #FFFFFF;
  --elm-light-green: #F0FAF2;
  --elm-soft-green: #D6F0DB;
  --elm-save: #6CB4C4;
  --elm-needs: #5C9E7E;
  --elm-wants: #F4A85A;
  --elm-business: #9B7EC8;
  --elm-success: #4CAF82;
  --elm-warning: #F4A85A;
  --elm-danger: #E07070;
  --elm-cream: #FFF8F0;
  --elm-sand: #F5EDE3;
  --elm-warm-green: #E8F5E2;
  --elm-peach: #F0C87A;
  --elm-gradient-cta: linear-gradient(135deg, #7BC142 0%, #2D6A4F 100%);
  --elm-gradient-hero: linear-gradient(175deg, #FFF8F0 0%, #F0FAF2 40%, #F8FBF6 100%);
  --elm-gradient-dark: linear-gradient(180deg, #1A3D2B 0%, #0F2318 100%);
  --elm-gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(123, 193, 66, 0.06), transparent 40%);
  --elm-shadow-xs: 0 1px 2px rgba(44, 106, 79, 0.04);
  --elm-shadow-card: 0 1px 3px rgba(44, 106, 79, 0.04), 0 4px 16px rgba(44, 106, 79, 0.06);
  --elm-shadow-standard: 0 4px 6px rgba(44, 106, 79, 0.04), 0 10px 24px rgba(44, 106, 79, 0.08);
  --elm-shadow-strong: 0 8px 16px rgba(44, 106, 79, 0.06), 0 20px 48px rgba(44, 106, 79, 0.12);
  --elm-shadow-hover: 0 8px 16px rgba(44, 106, 79, 0.06), 0 24px 56px rgba(44, 106, 79, 0.16);
  --elm-shadow-glow: 0 0 40px rgba(123, 193, 66, 0.15);
  --space-xxs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 20px; --space-xl: 24px; --space-2xl: 32px; --space-3xl: 40px;
  --space-4xl: 48px; --space-5xl: 64px; --space-6xl: 80px; --space-7xl: 120px;
  --radius-sm: 8px; --radius-md: 12px; --radius-card: 16px;
  --radius-lg: 24px; --radius-hero: 32px; --radius-pill: 999px;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --duration-reveal: 0.8s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--elm-text-primary);
  background: var(--elm-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
}

ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--elm-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--elm-text-secondary); max-width: 640px; }
.text-muted { color: var(--elm-text-muted); }
.text-center { text-align: center; }

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: 800px; }
.container--wide { max-width: 1400px; }
section { padding: var(--space-7xl) 0; }

/* ── Reveal Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="scale"] {
  transform: scale(0.95) translateY(24px);
}

[data-reveal="scale"].revealed {
  transform: scale(1) translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="left"].revealed {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="right"].revealed {
  transform: translateX(0);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 251, 246, 0.75);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(248, 251, 246, 0.92);
  border-bottom-color: rgba(44, 106, 79, 0.08);
  box-shadow: 0 1px 3px rgba(44, 106, 79, 0.04), 0 8px 32px rgba(44, 106, 79, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elm-dark-green);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.nav__logo:hover {
  transform: scale(1.03);
}

.nav__logo svg,
.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.nav__logo:hover .nav__logo-img {
  transform: rotate(-8deg) scale(1.1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--elm-text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
  padding: 4px 0;
}

.nav__link:hover, .nav__link.active { color: var(--elm-green-end); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--elm-gradient-cta);
  border-radius: 1px;
  transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}

.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
  left: 0;
}

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: transform var(--duration-fast);
}

.nav__hamburger:hover { transform: scale(1.1); }

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--elm-text-primary);
  border-radius: 2px;
  transition: all 0.25s var(--ease-out);
  transform-origin: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary {
  background: var(--elm-gradient-cta);
  color: white;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2), 0 1px 2px rgba(45, 106, 79, 0.15);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3), 0 8px 32px rgba(45, 106, 79, 0.15), var(--elm-shadow-glow);
}

.btn--primary:hover::before { opacity: 1; }

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.btn--secondary {
  background: var(--elm-card-surface);
  color: var(--elm-green-end);
  border: 1.5px solid rgba(45, 106, 79, 0.12);
  box-shadow: var(--elm-shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--elm-green-mid);
  background: var(--elm-light-green);
  box-shadow: var(--elm-shadow-card);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost { color: var(--elm-text-secondary); padding: 12px 20px; }
.btn--ghost:hover { color: var(--elm-green-end); }
.btn--large { padding: 16px 40px; font-size: 16px; }
.btn--small { padding: 8px 20px; font-size: 13px; }
.btn--full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--elm-card-surface);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-card);
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  box-shadow: var(--elm-shadow-standard);
  transform: translateY(-3px);
  border-color: rgba(44, 106, 79, 0.08);
}

.card--flat {
  box-shadow: none;
  border: 1px solid rgba(44, 106, 79, 0.08);
}

.card--flat:hover { box-shadow: var(--elm-shadow-card); }

.card--glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  padding: calc(72px + var(--space-6xl)) 0 var(--space-5xl);
  background: var(--elm-gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(123, 193, 66, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(108, 180, 196, 0.06) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 80%, rgba(244, 168, 90, 0.04) 0%, transparent 40%);
  pointer-events: none;
  animation: heroShift 20s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, -2%) rotate(1deg); }
}

.hero__content {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 20px;
  background: rgba(214, 240, 219, 0.6);
  backdrop-filter: blur(12px);
  color: var(--elm-green-end);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-2xl);
  border: 1px solid rgba(123, 193, 66, 0.15);
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.hero h1 {
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #7BC142 0%, #2D6A4F 60%, #5C9E7E 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--elm-text-secondary);
  margin: 0 auto var(--space-3xl);
  max-width: 540px;
  animation: fadeUp 0.8s var(--ease-out) 0.35s both;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

.hero__visual {
  position: relative;
  margin-top: var(--space-4xl);
  display: flex;
  justify-content: center;
  min-height: 120px;
}

/* Floating Tags — refined */
.hero__tags {
  position: absolute;
  inset: -40px -60px;
  pointer-events: none;
}

.hero__tag {
  position: absolute;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(44, 106, 79, 0.06);
  box-shadow: 0 2px 12px rgba(44, 106, 79, 0.06);
  color: var(--elm-text-secondary);
  opacity: 0;
  animation: tagFloat 7s ease-in-out infinite, tagAppear 0.6s var(--ease-out) both;
}

.hero__tag:nth-child(1) { top: 0%; left: 8%; animation-delay: 0.6s, 0.6s; }
.hero__tag:nth-child(2) { top: 5%; right: 6%; animation-delay: 1.2s, 0.8s; }
.hero__tag:nth-child(3) { top: 40%; left: 0%; animation-delay: 0.3s, 1.0s; }
.hero__tag:nth-child(4) { top: 50%; right: 2%; animation-delay: 1.8s, 1.2s; }
.hero__tag:nth-child(5) { top: 75%; left: 5%; animation-delay: 0.9s, 1.4s; }
.hero__tag:nth-child(6) { top: 80%; right: 8%; animation-delay: 1.5s, 1.6s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.5deg); }
  75% { transform: translateY(4px) rotate(-0.3deg); }
}

@keyframes tagAppear {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Social Proof Bar ── */
.social-proof {
  padding: 48px 0;
  background: var(--elm-card-surface);
  border-bottom: 1px solid rgba(44, 106, 79, 0.04);
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--elm-gradient-glow);
  pointer-events: none;
}

.social-proof__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--elm-text-muted);
  margin: 0 auto 20px;
  text-align: center;
}

.social-proof__items {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
}

.social-proof__item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--elm-text-secondary);
  opacity: 0.55;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring);
}

.social-proof__item:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ── Waitlist Form ── */
.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 15px;
  outline: none;
  transition: all 0.3s var(--ease-smooth);
}

.waitlist-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }

.waitlist-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.waitlist-form .btn { flex-shrink: 0; }

.waitlist-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 500;
}

.waitlist-success.show {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

/* ── Features ── */
.features { background: var(--elm-bg-warm); position: relative; }

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 106, 79, 0.08), transparent);
}

.features__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--space-5xl);
}

.features__header p { margin: var(--space-md) auto 0; font-size: 1.05rem; line-height: 1.7; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--elm-card-surface);
  border-radius: var(--radius-card);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-xs);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--elm-gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.feature-card:hover {
  box-shadow: var(--elm-shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(44, 106, 79, 0.08);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-lg);
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.15) rotate(-4deg);
}

.feature-card__icon--save { background: rgba(108, 180, 196, 0.1); }
.feature-card__icon--needs { background: rgba(92, 158, 126, 0.1); }
.feature-card__icon--wants { background: rgba(244, 168, 90, 0.1); }
.feature-card__icon--green { background: rgba(123, 193, 66, 0.1); }
.feature-card__icon--purple { background: rgba(155, 126, 200, 0.1); }
.feature-card__icon--dark { background: rgba(26, 61, 43, 0.08); }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--elm-text-muted); }

/* ── Bucket Showcase ── */
.buckets { background: var(--elm-bg); position: relative; }

.buckets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.bucket-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--elm-card-surface);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-card);
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.bucket-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s;
}

.bucket-card--save::after { background: var(--elm-save); }
.bucket-card--needs::after { background: var(--elm-needs); }
.bucket-card--wants::after { background: var(--elm-wants); }

.bucket-card:hover { transform: translateY(-6px); box-shadow: var(--elm-shadow-hover); }
.bucket-card:hover::after { opacity: 1; }

.bucket-card__ring {
  width: 110px;
  height: 110px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.bucket-card__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.bucket-card__ring .ring-bg { fill: none; stroke: #EDF3EE; stroke-width: 5; }

.bucket-card__ring .ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-out);
  filter: drop-shadow(0 0 6px currentColor);
}

.bucket-card__ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--elm-text-primary);
}

.bucket-card--save .ring-fill { stroke: var(--elm-save); color: var(--elm-save); }
.bucket-card--needs .ring-fill { stroke: var(--elm-needs); color: var(--elm-needs); }
.bucket-card--wants .ring-fill { stroke: var(--elm-wants); color: var(--elm-wants); }

.bucket-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.bucket-card p { font-size: 14px; color: var(--elm-text-muted); margin: 0 auto; max-width: 260px; }

/* ── How It Works ── */
.how-it-works { background: var(--elm-bg-warm); }

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  position: relative;
}

.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--elm-soft-green), var(--elm-green-mid), var(--elm-soft-green));
  z-index: 0;
}

.step { text-align: center; position: relative; z-index: 1; }

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--elm-gradient-cta);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.step:hover .step__number {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3), var(--elm-shadow-glow);
}

.step h4 { margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--elm-text-muted); margin: 0 auto; max-width: 220px; }

/* ── Pricing ── */
.pricing { background: var(--elm-bg-warm); }

.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0 var(--space-3xl);
}

.pricing__toggle span { font-size: 14px; font-weight: 500; color: var(--elm-text-muted); transition: color 0.25s; }
.pricing__toggle span.active { color: var(--elm-text-primary); font-weight: 600; }

.pricing__switch {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--elm-soft-green);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.pricing__switch.active { background: var(--elm-green-mid); }

.pricing__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.3s var(--ease-spring);
}

.pricing__switch.active::after { transform: translateX(24px); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--elm-card-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-card);
  text-align: center;
  position: relative;
  transition: all 0.45s var(--ease-out);
}

.pricing-card:hover {
  box-shadow: var(--elm-shadow-hover);
  transform: translateY(-6px);
}

.pricing-card--featured {
  border: 2px solid rgba(92, 158, 126, 0.3);
  box-shadow: var(--elm-shadow-standard), 0 0 0 1px rgba(92, 158, 126, 0.1);
  background: linear-gradient(180deg, rgba(240, 250, 242, 0.5) 0%, #FFFFFF 30%);
}

.pricing-card--featured:hover {
  box-shadow: var(--elm-shadow-hover), 0 0 40px rgba(92, 158, 126, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: var(--elm-gradient-cta);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}

.pricing-card__tier { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-xs); }
.pricing-card__description { font-size: 14px; color: var(--elm-text-muted); margin-bottom: var(--space-xl); }
.pricing-card__price { margin-bottom: var(--space-xl); }

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--elm-text-primary);
  letter-spacing: -0.03em;
}

.pricing-card__period { font-size: 14px; color: var(--elm-text-muted); }

.pricing-card__savings {
  display: inline-block;
  padding: 4px 12px;
  background: var(--elm-soft-green);
  color: var(--elm-green-end);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.pricing-card__features { text-align: left; margin: var(--space-xl) 0; }

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 6px 0;
  font-size: 14px;
  color: var(--elm-text-secondary);
}

.pricing-card__features li::before { content: '\2713'; color: var(--elm-success); font-weight: 700; flex-shrink: 0; }
.pricing-card__features li.disabled { color: var(--elm-text-muted); opacity: 0.45; }
.pricing-card__features li.disabled::before { content: '\2014'; color: var(--elm-text-muted); }

/* ── Testimonials ── */
.testimonials { background: var(--elm-bg); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.testimonial-card {
  background: var(--elm-card-surface);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-xs);
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  box-shadow: var(--elm-shadow-standard);
  transform: translateY(-4px);
}

.testimonial-card__stars { color: var(--elm-wants); font-size: 16px; letter-spacing: 3px; margin-bottom: var(--space-md); }

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--elm-text-secondary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author { display: flex; align-items: center; gap: var(--space-sm); }

.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--elm-gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.testimonial-card__name { font-weight: 600; font-size: 14px; }
.testimonial-card__handle { font-size: 12px; color: var(--elm-text-muted); }

/* ── CTA Section ── */
.cta-section {
  background: var(--elm-gradient-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 193, 66, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 180, 196, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 { color: white; margin-bottom: var(--space-md); position: relative; z-index: 1; }
.cta-section p { color: rgba(255, 255, 255, 0.65); margin: 0 auto var(--space-2xl); position: relative; z-index: 1; }

.cta-section .btn--primary {
  background: white;
  color: var(--elm-dark-green);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-section .btn--primary:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
}

/* ── Footer ── */
.footer {
  background: #152E1E;
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-5xl) 0 var(--space-2xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 193, 66, 0.15), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand { max-width: 280px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer__logo svg, .footer__logo-img { width: 30px; height: 30px; object-fit: contain; }
.footer__tagline { font-size: 14px; line-height: 1.75; margin-bottom: var(--space-lg); }

.footer__social { display: flex; gap: var(--space-sm); }

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  color: rgba(255, 255, 255, 0.6);
}

.footer__social a:hover {
  background: rgba(123, 193, 66, 0.15);
  color: white;
  transform: translateY(-2px);
}

.footer__column h4 {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
}

.footer__column a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s, transform 0.25s;
}

.footer__column a:hover { color: white; transform: translateX(3px); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links { display: flex; gap: var(--space-xl); }
.footer__bottom-links a { color: rgba(255, 255, 255, 0.4); }
.footer__bottom-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--elm-gradient-hero);
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--elm-card-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--elm-shadow-strong);
  border: 1px solid rgba(44, 106, 79, 0.04);
  position: relative;
  animation: fadeUp 0.6s var(--ease-out);
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elm-dark-green);
  margin-bottom: var(--space-2xl);
}

.auth-card__logo svg, .auth-card__logo img { width: 42px; height: 42px; object-fit: contain; }

.auth-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: var(--space-xs); }
.auth-card__subtitle { text-align: center; font-size: 14px; color: var(--elm-text-muted); margin-bottom: var(--space-2xl); }

.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--elm-text-primary); margin-bottom: 6px; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(44, 106, 79, 0.1);
  border-radius: var(--radius-sm);
  background: var(--elm-bg);
  font-size: 15px;
  outline: none;
  transition: all 0.25s var(--ease-smooth);
}

.form-input:focus {
  border-color: var(--elm-green-mid);
  box-shadow: 0 0 0 3px rgba(92, 158, 126, 0.1);
  background: white;
}

.form-input.error { border-color: var(--elm-danger); box-shadow: 0 0 0 3px rgba(224, 112, 112, 0.1); }
.form-error { font-size: 12px; color: var(--elm-danger); margin-top: var(--space-xxs); display: none; }
.form-error.show { display: block; }
.form-link { font-size: 13px; color: var(--elm-green-end); font-weight: 500; }
.form-link:hover { text-decoration: underline; }

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--elm-text-muted);
  font-size: 13px;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(44, 106, 79, 0.08);
}

.auth-footer { text-align: center; margin-top: var(--space-xl); font-size: 13px; color: var(--elm-text-muted); }
.auth-footer a { color: var(--elm-green-end); font-weight: 600; }

/* ── App Dashboard ── */
.app-layout { display: flex; min-height: 100vh; padding-top: 72px; }

.app-sidebar {
  width: 260px;
  background: var(--elm-card-surface);
  border-right: 1px solid rgba(44, 106, 79, 0.05);
  padding: var(--space-xl) 0;
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.app-sidebar__nav { padding: 0 var(--space-sm); }
.app-sidebar__section { margin-bottom: var(--space-xl); }

.app-sidebar__section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--elm-text-muted);
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-xxs);
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--elm-text-secondary);
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
}

.app-sidebar__link:hover { background: var(--elm-light-green); color: var(--elm-text-primary); }

.app-sidebar__link.active {
  background: var(--elm-soft-green);
  color: var(--elm-green-end);
  font-weight: 600;
}

.app-sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.app-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-2xl);
  background: var(--elm-bg);
  min-height: calc(100vh - 72px);
}

.app-main__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.app-main__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.app-main__subtitle { font-size: 14px; color: var(--elm-text-muted); margin-top: 2px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); margin-bottom: var(--space-xl); }
.dashboard-grid--2col { grid-template-columns: repeat(2, 1fr); }

.widget {
  background: var(--elm-card-surface);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  border: 1px solid rgba(44, 106, 79, 0.04);
  box-shadow: var(--elm-shadow-xs);
  transition: box-shadow 0.3s, transform 0.3s;
}

.widget:hover { box-shadow: var(--elm-shadow-card); }

.widget__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.widget__title { font-size: 12px; font-weight: 600; color: var(--elm-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.widget__value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--elm-text-primary); letter-spacing: -0.02em; }

.widget__change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.widget__change--up { background: rgba(76, 175, 130, 0.08); color: var(--elm-success); }
.widget__change--down { background: rgba(224, 112, 112, 0.08); color: var(--elm-danger); }

.tree-widget {
  grid-column: span 1;
  text-align: center;
  background: linear-gradient(180deg, #F0FAF2 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.tree-widget__stage { font-size: 12px; color: var(--elm-green-mid); font-weight: 600; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.06em; }
.tree-widget__visual { font-size: 72px; margin: var(--space-md) 0; line-height: 1; }
.tree-widget__amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--elm-text-primary); }

.bucket-progress { margin-bottom: var(--space-md); }
.bucket-progress__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bucket-progress__label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: var(--space-xs); }
.bucket-progress__amounts { font-size: 13px; color: var(--elm-text-muted); }
.bucket-progress__bar { height: 6px; background: #EDF3EE; border-radius: 3px; overflow: hidden; }
.bucket-progress__fill { height: 100%; border-radius: 3px; transition: width 1.2s var(--ease-out); }
.bucket-progress__fill--save { background: linear-gradient(90deg, var(--elm-save), #8CCBD8); }
.bucket-progress__fill--needs { background: linear-gradient(90deg, var(--elm-needs), #7BB896); }
.bucket-progress__fill--wants { background: linear-gradient(90deg, var(--elm-wants), #F7C07A); }

.transaction-list { list-style: none; }

.transaction-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 106, 79, 0.04);
  transition: background 0.2s;
}

.transaction-item:last-child { border-bottom: none; }
.transaction-item:hover { background: rgba(240, 250, 242, 0.5); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }

.transaction-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--elm-light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.transaction-item__info { flex: 1; min-width: 0; }
.transaction-item__merchant { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transaction-item__category { font-size: 12px; color: var(--elm-text-muted); }
.transaction-item__amount { font-weight: 600; font-size: 14px; text-align: right; flex-shrink: 0; }
.transaction-item__amount--expense { color: var(--elm-text-primary); }
.transaction-item__amount--income { color: var(--elm-success); }
.transaction-item__date { font-size: 12px; color: var(--elm-text-muted); text-align: right; }

/* ── Our Story ── */
.story-hero {
  text-align: center;
  padding: calc(72px + var(--space-5xl)) 0 var(--space-5xl);
  background: var(--elm-gradient-hero);
  position: relative;
}

.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.story-hero h1 { margin-bottom: var(--space-md); }
.story-hero p { margin: 0 auto; font-size: 1.1rem; }
.story-content { padding: var(--space-5xl) 0; }

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
  margin-bottom: var(--space-5xl);
}

.story-section:nth-child(even) { direction: rtl; }
.story-section:nth-child(even) > * { direction: ltr; }

.story-section__image {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--elm-light-green), var(--elm-soft-green));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  transition: transform 0.6s var(--ease-out);
  box-shadow: var(--elm-shadow-card);
}

.story-section__image:hover { transform: scale(1.03) rotate(-1deg); }

.story-section h2 { margin-bottom: var(--space-md); }
.story-section p { font-size: 16px; line-height: 1.8; margin-bottom: var(--space-md); }

.story-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-card);
  transition: all 0.4s var(--ease-out);
}

.value-card:hover { background: var(--elm-card-surface); box-shadow: var(--elm-shadow-card); transform: translateY(-4px); }
.value-card__icon { font-size: 2.2rem; margin-bottom: var(--space-md); transition: transform 0.4s var(--ease-spring); }
.value-card:hover .value-card__icon { transform: scale(1.2) rotate(-8deg); }
.value-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.value-card p { font-size: 14px; color: var(--elm-text-muted); margin: 0 auto; }

/* ── Legal Pages ── */
.legal-page { padding: calc(72px + var(--space-3xl)) 0 var(--space-5xl); }
.legal-page h1 { margin-bottom: var(--space-sm); }
.legal-page .last-updated { font-size: 13px; color: var(--elm-text-muted); margin-bottom: var(--space-3xl); }
.legal-page h2 { font-size: 1.3rem; margin: var(--space-2xl) 0 var(--space-md); }
.legal-page p { margin-bottom: var(--space-md); max-width: none; font-size: 15px; }
.legal-page ul { list-style: disc; padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-page ul li { padding: 3px 0; color: var(--elm-text-secondary); font-size: 15px; }

/* ── 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; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: 14px var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--elm-shadow-strong);
  z-index: 10000;
  animation: toastIn 0.4s var(--ease-spring);
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast--success { background: var(--elm-green-end); color: white; }
.toast--error { background: var(--elm-danger); color: white; }

/* ── App Nav ── */
.nav--app .nav__inner { max-width: 100%; }

.nav__user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.25s;
}

.nav__user:hover { background: var(--elm-light-green); }

.nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--elm-gradient-cta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.nav__username { font-size: 13px; font-weight: 600; }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 46, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s;
}

.mobile-nav.open { opacity: 1; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--elm-card-surface);
  padding: var(--space-3xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}

.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 24px;
  color: var(--elm-text-muted);
  transition: color 0.2s, transform 0.2s;
}

.mobile-nav__close:hover { color: var(--elm-text-primary); transform: rotate(90deg); }

.mobile-nav__links { margin-top: var(--space-3xl); }

.mobile-nav__links a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--elm-text-primary);
  border-bottom: 1px solid rgba(44, 106, 79, 0.05);
  transition: padding-left 0.25s, color 0.25s;
}

.mobile-nav__links a:hover { padding-left: 8px; color: var(--elm-green-end); }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(44, 106, 79, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(44, 106, 79, 0.2); }

/* ── Selection ── */
::selection { background: rgba(123, 193, 66, 0.2); color: var(--elm-dark-green); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .story-section { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .story-section:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  section { padding: var(--space-5xl) 0; }
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-nav { display: block; pointer-events: none; }
  .mobile-nav.open { pointer-events: auto; }
  .features__grid, .buckets__grid, .testimonials__grid, .story-values { grid-template-columns: 1fr; }
  .how-it-works__steps { grid-template-columns: repeat(2, 1fr); }
  .how-it-works__steps::before { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero__description { font-size: 1rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__tags { display: none; }
  .waitlist-form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .app-sidebar { display: none; }
  .app-sidebar.open { display: block; width: 100%; z-index: 200; }
  .app-main { margin-left: 0; padding: var(--space-md); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .app-main__header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .social-proof__items { gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero { padding-top: calc(72px + var(--space-3xl)); padding-bottom: var(--space-3xl); }
  .how-it-works__steps { grid-template-columns: 1fr; }
  .auth-card { padding: var(--space-xl); }
}
