/*
 * Lavish Gains Design System — marketing.css
 * Version 2.0.0 · Theme: dark-only
 *
 * GENERATED FILE — do not hand-edit.
 * Source: design-tokens.json. Regenerate: node scripts/generate-css.mjs
 *
 * Vanilla CSS for the marketing site. NO Tailwind, NO PostCSS, no @import.
 * Replaces the Webflow-generated lavish-gains.webflow.css. Pair with web/fonts.css.
 * All values reference CSS variables — no hardcoded hex values inline.
 */

:root {
  /* Brand Palette */
  --alpine-herbs: #4CAF50;
  --mushiao-green: #2E7D32;
  --pistou-green: #00B75B;
  --brushed-metal: #9E9E9E;
  --mercury: #E0E0E0;
  --lavender-white: #EDE9D5;
  --thamar-black: #1C1C1C;
  --dark-charcoal: #424242;
  --shiny-gold: #FFD700;
  --pig-iron: #484848;

  /* Neutral Scale */
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #D4D4D4;
  --gray-400: #9E9E9E;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #424242;
  --gray-800: #262626;
  --gray-900: #1C1C1C;

  /* Semantic — surface */
  --surface-primary: #000000;
  --surface-secondary: #0D0D0D;
  --surface-tertiary: #1B1B1B;
  --surface-elevated: #262626;
  --surface-overlay: rgba(0,0,0,0.5);
  --surface-tab-bar: #17211B;
  --surface-blur: #EDE9D5;

  /* Semantic — text */
  --text-primary: #EDE9D5;
  --text-secondary: #A2A2A2;
  --text-tertiary: #787878;
  --text-highlight: #FFFFFF;
  --text-link: #3B82F6;
  --text-error: #EF4444;
  --text-success: #10B981;

  /* Semantic — border */
  --border-default: #424242;
  --border-subtle: #262626;
  --border-focus: #1DF488;
  --border-error: #CA1919;

  /* Semantic — accent */
  --accent-primary: #1DF488;
  --accent-secondary: #4CAF50;
  --accent-gold: #FFD700;

  /* Semantic — state */
  --state-success: #10B981;
  --state-warning: #F59E0B;
  --state-error: #EF4444;
  --state-error-dark: #CA1919;
  --state-info: #3B82F6;
  --state-profit: #10B981;
  --state-loss: #EF4444;
  --state-neutral: #737373;

  /* Fonts */
  --font-heading: 'Test Tiempos Headline', Georgia, 'Times New Roman', serif;
  --font-body:    'Area Normal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale (px) */
  --fs-label-sm: 11px;
  --fs-label-md: 12px;
  --fs-body-sm:  12px;
  --fs-body-md:  14px;
  --fs-body-lg:  16px;
  --fs-h3:       24px;
  --fs-h2:       28px;
  --fs-h1:       32px;
  --fs-display-1: 65px;
  --fs-display-2: 75px;
  --fs-display-3: 82.764px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 28px;
  --space-xxxxl: 32px;
  --space-container-padding: 20px;
  --space-section-spacing: 24px;
  --space-element-spacing: 16px;
  --space-compact-spacing: 12px;
  --space-button-padding: 16px;
  --space-input-padding: 16px;
  --space-gutter-width: 20px;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --bw-thin: 1px;
  --bw-medium: 2px;
  --bw-thick: 4px;
  --max-content: 400px;
  --container-max: 1200px;
  --section-y: 96px;

  /* Tracking */
  --tracking-normal: 0px;
  --tracking-tight: -0.5px;
  --tracking-wide: 1px;
  --tracking-extra-wide: 2px;

  /* Line heights */
  --leading-tight: 1;
  --leading-snug: 1.15;
  --leading-normal: 1.3;
  --leading-relaxed: 1.5;
  --leading-loose: 1.7;

  /* Shadows */
  --shadow-sm:   0px 1px 2px rgba(0,0,0,0.1);
  --shadow-md:   0px 2px 4px rgba(0,0,0,0.15);
  --shadow-lg:   0px 4px 8px rgba(0,0,0,0.2);
  --shadow-text: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--surface-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: var(--text-link); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--accent-primary); }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-primary); color: var(--surface-primary); }

/* Typography utilities */
.h1, .h2, .h3 {
  font-family: var(--font-heading);
  color: var(--text-highlight);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.h1 { font-size: var(--fs-display-1); font-weight: 400; }
.h2 { font-size: var(--fs-h1); font-weight: 400; }
.h3 { font-size: var(--fs-h2); font-weight: 500; }
.h4 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: var(--leading-snug); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-primary);
}
.body-lg { font-size: var(--fs-body-lg); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.body-md { font-size: var(--fs-body-md); line-height: var(--leading-normal); color: var(--text-secondary); }
.body-sm { font-size: var(--fs-body-sm); line-height: var(--leading-normal); color: var(--text-tertiary); }
.label   { font-size: var(--fs-label-md); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-tertiary); }
.text-muted     { color: var(--text-tertiary); }
.text-highlight { color: var(--text-highlight); }
.text-accent    { color: var(--accent-primary); }
.text-gold      { color: var(--accent-gold); }
.text-balance   { text-wrap: balance; }
.text-pretty    { text-wrap: pretty; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.italic         { font-style: italic; }
.serif          { font-family: var(--font-heading); }
.sans           { font-family: var(--font-body); }

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-container-padding);
}
.container-narrow {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-container-padding);
}
.section {
  padding-block: var(--section-y);
}
.section--sm { padding-block: 48px; }
.section--lg { padding-block: 128px; }
.section--dark { background: var(--surface-secondary); }
.section--elevated { background: var(--surface-tertiary); }

.grid { display: grid; gap: var(--space-section-spacing); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--gutter-sm { gap: var(--space-md); }
.grid--gutter-lg { gap: var(--space-xxxxl); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-xxl { gap: var(--space-xxl); }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.stack > * + * { margin-top: var(--space-element-spacing); }
.stack--sm > * + * { margin-top: var(--space-md); }
.stack--lg > * + * { margin-top: var(--space-section-spacing); }

.divider {
  height: 1px;
  background: var(--border-default);
  border: 0;
  margin-block: var(--space-xxl);
}
.divider--subtle { background: var(--border-subtle); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 48px;
  padding-inline: var(--space-button-padding);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: var(--bw-thin) solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 80ms ease;
  user-select: none;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-primary);
  color: var(--surface-primary);
}
.btn--primary:hover { background: #1AD97A; color: var(--surface-primary); }

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--secondary:hover { background: var(--surface-tertiary); border-color: var(--accent-primary); color: var(--text-highlight); }

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

.btn--gold {
  background: var(--accent-gold);
  color: var(--surface-primary);
}
.btn--gold:hover { background: #FFC700; }

.btn--lg { height: 56px; padding-inline: var(--space-xxl); font-size: var(--fs-body-lg); border-radius: var(--radius-lg); }
.btn--sm { height: 36px; padding-inline: var(--space-md); font-size: var(--fs-label-md); border-radius: var(--radius-sm); }
.btn--block { display: flex; width: 100%; }
.btn--pill { border-radius: var(--radius-full); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: var(--bw-thin) solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-container-padding);
}
.nav__brand {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-highlight);
  letter-spacing: var(--tracking-tight);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}
.nav__link {
  font-size: var(--fs-body-md);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-normal);
}
.nav__link:hover { color: var(--text-highlight); }
.nav__link.is-active { color: var(--accent-primary); }

/* Hero */
.hero {
  position: relative;
  padding-block: 128px;
  text-align: center;
  background: var(--surface-primary);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--space-container-padding);
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  border: var(--bw-thin) solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--fs-label-md);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-primary);
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 8vw, var(--fs-display-3));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-highlight);
  margin-bottom: var(--space-xl);
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-xxxxl);
  max-width: 640px;
  margin-inline: auto;
  text-wrap: pretty;
}
.hero__cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(29, 244, 136, 0.10), transparent 60%);
  pointer-events: none;
}

/* Panels & Cards */
.panel {
  background: var(--surface-tertiary);
  border: var(--bw-thin) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xxxxl);
}
.panel--elevated { background: var(--surface-elevated); box-shadow: var(--shadow-lg); }
.panel--accent { border-color: var(--accent-primary); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xxl);
  background: var(--surface-tertiary);
  border: var(--bw-thin) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 160ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card__title {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-highlight);
  letter-spacing: var(--tracking-tight);
}
.card__body {
  font-size: var(--fs-body-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.card__footer {
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: var(--fs-label-md);
  color: var(--text-tertiary);
}
.card--feature {
  background: linear-gradient(180deg, var(--surface-tertiary) 0%, var(--surface-secondary) 100%);
  border-color: var(--border-default);
}
.card--gold {
  border-color: var(--accent-gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.tag--accent { background: var(--accent-primary); color: var(--surface-primary); }
.tag--gold   { background: var(--accent-gold);    color: var(--surface-primary); }

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field__label {
  font-size: var(--fs-label-md);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.input, .textarea, .select {
  height: 48px;
  padding-inline: var(--space-input-padding);
  background: var(--surface-tertiary);
  color: var(--text-primary);
  border: var(--bw-thin) solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  transition: border-color 160ms ease, background 160ms ease;
}
.textarea { height: auto; padding-block: var(--space-md); min-height: 120px; resize: vertical; line-height: var(--leading-relaxed); }
.input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--text-tertiary); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--border-focus); }
.input--error, .textarea--error { border-color: var(--border-error); }
.field__error { color: var(--text-error); font-size: var(--fs-label-md); }
.field__hint  { color: var(--text-tertiary); font-size: var(--fs-label-md); }

/* Footer */
.footer {
  background: var(--surface-secondary);
  border-top: var(--bw-thin) solid var(--border-subtle);
  padding-block: 64px var(--space-xxxxl);
  color: var(--text-tertiary);
}
.footer__inner {
  display: grid;
  gap: var(--space-xxxxl);
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-container-padding);
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col a { color: var(--text-tertiary); font-size: var(--fs-body-md); }
.footer__col a:hover { color: var(--text-highlight); }
.footer__bottom {
  margin-top: var(--space-xxxxl);
  padding-top: var(--space-xl);
  border-top: var(--bw-thin) solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  font-size: var(--fs-label-md);
}

/* Utilities */
.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }
.shadow-lg   { box-shadow: var(--shadow-lg); }
.shadow-text { text-shadow: var(--shadow-text); }
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.bg-primary   { background: var(--surface-primary); }
.bg-secondary { background: var(--surface-secondary); }
.bg-tertiary  { background: var(--surface-tertiary); }
.bg-elevated  { background: var(--surface-elevated); }
.gradient-onboarding {
  background: linear-gradient(135deg, var(--alpine-herbs) 0%, var(--pistou-green) 100%);
}
.gradient-overlay-bottom { background: linear-gradient(to bottom, rgba(0,0,0,0), #000000); }
.gradient-overlay-top    { background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.008)); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }

/* Responsive — mobile first */
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid--2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 160px; }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .grid--2-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .panel { padding: var(--space-xxl); }
  .nav__links { gap: var(--space-md); }
  .hero { padding-block: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
