/* style.css — Stemara Design System */
/* Brand: Black + Deep Purple / Pastel Purple / Gold accent | Dark-mode first */

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 360ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Fonts */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body:    'Switzer', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ── DARK MODE (Default — Stemara is dark-first) ── */
:root,
[data-theme='dark'] {
  /* Surfaces */
  --color-bg:              #09080d;
  --color-surface:         #0f0d16;
  --color-surface-2:       #13111c;
  --color-surface-offset:  #18152a;
  --color-surface-offset-2:#1e1a33;
  --color-surface-dynamic: #241f3d;
  --color-divider:         #2a2545;
  --color-border:          #332d55;

  /* Text */
  --color-text:         #e8e4f4;
  --color-text-muted:   #8a82b0;
  --color-text-faint:   #4a4570;
  --color-text-inverse: #09080d;

  /* Primary — Deep Purple */
  --color-primary:          #9b6dff;
  --color-primary-hover:    #b48cff;
  --color-primary-active:   #7a4de8;
  --color-primary-highlight: #2a1d5a;

  /* Pastel Purple gradient stop */
  --color-pastel:           #d4b8ff;
  --color-pastel-light:     #ede0ff;

  /* Gold accent (sparingly) */
  --color-gold:             #d4a843;
  --color-gold-hover:       #e8bc5a;
  --color-gold-active:      #b8902e;
  --color-gold-highlight:   #3d2f10;

  /* Functional */
  --color-success:          #5dba6e;
  --color-success-highlight:#12351b;
  --color-warning:          #e8a037;
  --color-warning-highlight:#3d2910;
  --color-error:            #e8576e;
  --color-error-highlight:  #3d0f18;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.6);
  --shadow-purple: 0 8px 32px oklch(0.4 0.18 280 / 0.35);
  --shadow-gold:   0 4px 24px oklch(0.6 0.12 70 / 0.3);
}

/* ── LIGHT MODE ── */
[data-theme='light'] {
  --color-bg:              #faf9ff;
  --color-surface:         #f3f0ff;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #ede8ff;
  --color-surface-offset-2:#e4dcff;
  --color-surface-dynamic: #d8ccff;
  --color-divider:         #ccc0f0;
  --color-border:          #b8a8e8;

  --color-text:         #1a1228;
  --color-text-muted:   #5a4d7a;
  --color-text-faint:   #9c8cc0;
  --color-text-inverse: #faf9ff;

  --color-primary:          #6a3fd4;
  --color-primary-hover:    #5530b8;
  --color-primary-active:   #42249c;
  --color-primary-highlight:#e8e0ff;

  --color-pastel:           #9b70ef;
  --color-pastel-light:     #c4a0ff;

  --color-gold:             #b07820;
  --color-gold-hover:       #9a6818;
  --color-gold-active:      #835810;
  --color-gold-highlight:   #fef3d8;

  --color-success:          #2d7a3d;
  --color-success-highlight:#e8f5ea;
  --color-warning:          #9a5c0a;
  --color-warning-highlight:#fef5e4;
  --color-error:            #c4233e;
  --color-error-highlight:  #fde8ec;

  --shadow-sm: 0 1px 3px oklch(0.2 0.08 280 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.2 0.08 280 / 0.1);
  --shadow-lg: 0 16px 48px oklch(0.2 0.08 280 / 0.14);
  --shadow-purple: 0 8px 32px oklch(0.45 0.18 280 / 0.2);
  --shadow-gold:   0 4px 24px oklch(0.55 0.12 70 / 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* inherits dark from :root above */
  }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #faf9ff;
    --color-surface:         #f3f0ff;
    --color-surface-2:       #ffffff;
    --color-surface-offset:  #ede8ff;
    --color-surface-offset-2:#e4dcff;
    --color-surface-dynamic: #d8ccff;
    --color-divider:         #ccc0f0;
    --color-border:          #b8a8e8;
    --color-text:         #1a1228;
    --color-text-muted:   #5a4d7a;
    --color-text-faint:   #9c8cc0;
    --color-text-inverse: #faf9ff;
    --color-primary:          #6a3fd4;
    --color-primary-hover:    #5530b8;
    --color-primary-active:   #42249c;
    --color-primary-highlight:#e8e0ff;
    --color-pastel:           #9b70ef;
    --color-pastel-light:     #c4a0ff;
    --color-gold:             #b07820;
    --color-gold-hover:       #9a6818;
    --color-gold-active:      #835810;
    --color-gold-highlight:   #fef3d8;
    --color-success:          #2d7a3d;
    --color-success-highlight:#e8f5ea;
    --color-warning:          #9a5c0a;
    --color-warning-highlight:#fef5e4;
    --color-error:            #c4233e;
    --color-error-highlight:  #fde8ec;
    --shadow-sm: 0 1px 3px oklch(0.2 0.08 280 / 0.08);
    --shadow-md: 0 4px 16px oklch(0.2 0.08 280 / 0.1);
    --shadow-lg: 0 16px 48px oklch(0.2 0.08 280 / 0.14);
    --shadow-purple: 0 8px 32px oklch(0.45 0.18 280 / 0.2);
    --shadow-gold:   0 4px 24px oklch(0.55 0.12 70 / 0.2);
  }
}

/* ═══════════════════════════════════════════════
   LOGO SVG EMBEDDED AS CSS BACKGROUND HELPERS
═══════════════════════════════════════════════ */

/* Purple gradient stops for logo */
.logo-leaf-base    { fill: #7a39bb; }
.logo-leaf-mid     { fill: #9b6dff; }
.logo-leaf-light   { fill: #d4b8ff; }
.logo-stem         { fill: #7a39bb; }

/* ═══════════════════════════════════════════════
   LAYOUT PRIMITIVES
═══════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-16));
}

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

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

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--hero {
  min-height: 90dvh;
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive), background var(--transition-interactive);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-16));
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-1);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-interactive);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__links a.active {
  color: var(--color-primary);
}

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

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  color: var(--color-text);
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    z-index: 100;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: var(--space-3) var(--space-2);
    width: 100%;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  /* Hide CTA buttons in nav on mobile — hamburger replaces them */
  .nav__actions .btn {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-purple);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px oklch(0.4 0.2 280 / 0.4);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn--gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-highlight);
  color: var(--color-gold-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding-block: var(--space-24);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.15;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  opacity: 0.12;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--color-pastel);
  bottom: -100px;
  left: -50px;
  opacity: 0.08;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--color-gold);
  top: 40%;
  left: 30%;
  opacity: 0.05;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold-highlight);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.3);
  border-radius: var(--radius-full);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.hero__title .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-pastel) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__social-proof {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.hero__dots {
  display: flex;
  gap: var(--space-1);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.4;
}

.hero__dot--active {
  opacity: 1;
  background: var(--color-gold);
}

/* ═══════════════════════════════════════════════
   PRODUCT PREVIEW / MOCKUP
═══════════════════════════════════════════════ */

.product-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-purple);
}

.product-preview__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

.product-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.product-preview__content {
  padding: var(--space-6);
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════ */

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.card--feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   GRID LAYOUTS
═══════════════════════════════════════════════ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
}

.grid-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-hero {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   STEP / HOW IT WORKS
═══════════════════════════════════════════════ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step__number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.step__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  margin-top: var(--space-2);
  opacity: 0.3;
}

.step:last-child .step__line {
  display: none;
}

.step__content {
  padding-top: var(--space-3);
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  margin-top: 2px;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.form-radio-option:hover,
.form-radio-option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.form-scale {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.form-scale-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.form-scale-btn:hover,
.form-scale-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   TAGS / BADGES
═══════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.badge--purple {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
}

.badge--gold {
  background: var(--color-gold-highlight);
  color: var(--color-gold);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.3);
}

.badge--success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.badge--coming-soon {
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
  border: 1px dashed var(--color-border);
}

/* ═══════════════════════════════════════════════
   DIVIDERS
═══════════════════════════════════════════════ */

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
  margin-block: var(--space-12);
}

.divider--gradient {
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

/* ═══════════════════════════════════════════════
   CALLOUT / HIGHLIGHT BLOCKS
═══════════════════════════════════════════════ */

.callout {
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
}

.callout--purple {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
}

.callout--gold {
  background: var(--color-gold-highlight);
  border-color: var(--color-gold);
}

.callout__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.callout__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════
   TESTIMONIAL / QUOTE
═══════════════════════════════════════════════ */

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.4;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonial__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-6);
  padding-top: var(--space-2);
}

.testimonial__author {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ═══════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════ */

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform var(--transition-interactive), background var(--transition-interactive);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: var(--space-5);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  margin-bottom: -1px;
  letter-spacing: 0.02em;
}

.tab:hover {
  color: var(--color-text);
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════════
   PROGRESS / STEP INDICATOR
═══════════════════════════════════════════════ */

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-pastel));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ═══════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}

.dashboard-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-divider);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}

.dashboard-sidebar__logo {
  padding: var(--space-4) var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-interactive);
}

.sidebar-nav-item:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.sidebar-nav-item.active {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.sidebar-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.dashboard-main {
  padding: var(--space-8);
  overflow-y: auto;
}

.dashboard-header {
  margin-bottom: var(--space-8);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.kpi-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi-card__delta {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-1);
}

.kpi-card__delta--up { color: var(--color-success); }
.kpi-card__delta--down { color: var(--color-error); }
.kpi-card__delta--neutral { color: var(--color-text-faint); }

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: var(--space-4);
  }
  .sidebar-section-label { display: none; }
}

/* ═══════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border-bottom: 1px solid var(--color-divider);
}

.data-table td {
  padding: var(--space-4);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════
   TOAST / NOTIFICATION
═══════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 999;
}

.toast {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  animation: slideInToast 300ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--error   { border-left: 3px solid var(--color-error); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}

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

.footer__brand-col {}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  max-width: 30ch;
  line-height: 1.65;
}

.footer__gold-tagline {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: var(--space-3);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__links a:hover { color: var(--color-primary); }

.footer__links .coming-soon {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer__legal-links a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════ */

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════
   PLACEHOLDER / COMING SOON STATES
═══════════════════════════════════════════════ */

.placeholder-block {
  background: var(--color-surface-offset);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
}

.placeholder-block__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
}

.placeholder-block__body {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ═══════════════════════════════════════════════
   PAGE HEADER (interior pages)
═══════════════════════════════════════════════ */

.page-header {
  padding-block: var(--space-20) var(--space-12);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-16);
}

.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   MISC UTILITIES
═══════════════════════════════════════════════ */

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-pastel) 60%, var(--color-pastel-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--color-gold);
}

.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.w-full { width: 100%; }

/* Login wall */
.login-wall {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: var(--space-8);
}

.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-12);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), var(--shadow-purple);
}

/* Survey multi-step */
.survey-progress {
  margin-bottom: var(--space-8);
}

.survey-step { display: none; }
.survey-step.active { display: block; }

.survey-step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.survey-step-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
}

/* Confirmation / success state */
.success-state {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.success-state__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-success);
}

.success-state__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.success-state__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Blog cards */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.blog-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  overflow: hidden;
}

.blog-card__body {
  padding: var(--space-6);
}

.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.blog-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  gap: var(--space-3);
}
