/* ==========================================================================
   TerpTune Public Site v2.0 — Unified Stylesheet
   Design System: Caryophyllene Brand + Three-Tier Color Theory
   Generated: February 6, 2026
   ========================================================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Background Palette */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1d;
  --bg-elevated: #222225;

  /* Text Palette */
  --text-primary: #ffffff;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-muted: #48484a;

  /* Border Palette */
  --border-default: #2c2c2e;
  --border-subtle: #1c1c1e;

  /* Primary Brand Color (Tier 2: Caryophyllene Teal) */
  --brand: #20B9B1;
  --brand-subtle: rgba(32, 185, 177, 0.12);
  --brand-glow: rgba(32, 185, 177, 0.25);

  /* Backward Compatibility Alias */
  --accent: var(--brand);
  --accent-light: #2dd4c8;
  --accent-subtle: var(--brand-subtle);
  --accent-glow: var(--brand-glow);

  /* Terpene Color System (Tier 1: Semantic) */
  --myrcene: #f59e0b;
  --myrcene-subtle: rgba(245, 158, 11, 0.12);
  --myrcene-glow: rgba(245, 158, 11, 0.25);

  --caryophyllene: #20B9B1;
  --caryophyllene-subtle: rgba(32, 185, 177, 0.12);
  --caryophyllene-glow: rgba(32, 185, 177, 0.25);

  --limonene: #fde047;
  --limonene-subtle: rgba(250, 204, 21, 0.12);
  --limonene-glow: rgba(250, 204, 21, 0.25);

  --linalool: #a78bfa;
  --linalool-subtle: rgba(167, 139, 250, 0.12);
  --linalool-glow: rgba(167, 139, 250, 0.25);

  --terpinolene: #a855f7;
  --terpinolene-subtle: rgba(168, 85, 247, 0.12);
  --terpinolene-glow: rgba(168, 85, 247, 0.25);

  --pinene: #4ade80;
  --pinene-subtle: rgba(74, 222, 128, 0.12);
  --pinene-glow: rgba(74, 222, 128, 0.25);

  --ocimene: #f472b6;
  --ocimene-subtle: rgba(244, 114, 182, 0.12);
  --ocimene-glow: rgba(244, 114, 182, 0.25);

  --humulene: #fb923c;
  --humulene-subtle: rgba(251, 146, 60, 0.12);
  --humulene-glow: rgba(251, 146, 60, 0.25);

  --nerolidol: #8b5cf6;
  --nerolidol-subtle: rgba(139, 92, 246, 0.12);
  --nerolidol-glow: rgba(139, 92, 246, 0.25);

  --bisabolol: #fbbf24;
  --bisabolol-subtle: rgba(251, 191, 36, 0.12);
  --bisabolol-glow: rgba(251, 191, 36, 0.25);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Fluid Font 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.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 300ms ease;
}

/* ==========================================================================
   Base Reset & Defaults
   ========================================================================== */

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Floating Chemistry Background (Tier 3: Atmospheric)
   ========================================================================== */

.chem-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.chem {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  animation: drift 25s ease-in-out infinite;
  white-space: nowrap;
  font-size: 1rem;
  opacity: 0.035;
}

.chem-1 { top: 8%; left: 5%; color: var(--myrcene); animation-delay: 0s; }
.chem-2 { top: 18%; right: 10%; color: var(--brand); animation-delay: -3s; }
.chem-3 { top: 30%; left: 40%; color: var(--linalool); animation-delay: -6s; }
.chem-4 { top: 44%; left: 70%; color: var(--pinene); animation-delay: -9s; }
.chem-5 { top: 56%; left: 12%; color: var(--terpinolene); animation-delay: -12s; }
.chem-6 { top: 68%; right: 15%; color: var(--limonene); animation-delay: -15s; }
.chem-7 { top: 78%; left: 50%; color: var(--ocimene); animation-delay: -18s; }

@keyframes drift {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.035;
  }
  50% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.015;
  }
}

/* ==========================================================================
   Navigation (Tier 2: Brand)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
}

.nav-brand .t {
  color: var(--text-primary);
}

.nav-brand .u {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: var(--space-4) var(--space-6);
    flex-direction: column;
    border-bottom: 1px solid var(--border-default);
  }

  .nav-links.show {
    display: flex;
  }
}

/* ==========================================================================
   Buttons (Tier 2: Brand)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--brand);
  color: var(--bg-primary);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--brand-glow);
}

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

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

.btn-full {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */

.section {
  padding: var(--space-24) var(--space-6);
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-secondary);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.section-header h2 {
  font-weight: 700;
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.section-header .centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Color Utilities (Tier 1: Semantic, Tier 2: Brand) */
.tc-brand {
  color: var(--brand);
}

.tc-warn {
  color: var(--myrcene);
}

.mol-cary {
  color: var(--caryophyllene);
}

.mol-myrcene {
  color: var(--myrcene);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) var(--space-6);
  padding-top: calc(var(--space-24) + 60px);
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 15% 30%, var(--linalool-glow), transparent 45%),
              radial-gradient(ellipse at 85% 70%, var(--brand-glow), transparent 45%),
              radial-gradient(ellipse at 50% 50%, var(--terpinolene-glow), transparent 60%),
              var(--bg-primary);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-weight: 800;
  font-size: var(--text-5xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero h1 .line {
  display: block;
}

.hero-sub {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

.hero-sub strong {
  color: var(--brand);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

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

.hero-meta span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ==========================================================================
   Problem/Pain Cards (Neutral Borders - Color Theory Compliant)
   ========================================================================== */

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

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

.pain-card,
.problem-card {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--border-default);
}

.pain-card h3,
.problem-card h3 {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.pain-card p,
.problem-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ==========================================================================
   Stat Cards (Tier 2: Brand)
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--brand);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison Columns (Tier 2: Brand)
   ========================================================================== */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

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

.compare-col {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.compare-before {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
}

.compare-after {
  background: var(--brand-subtle);
  border: 1px solid var(--brand);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.compare-before .compare-label {
  color: var(--text-muted);
}

.compare-after .compare-label {
  color: var(--brand);
}

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

.compare-col li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: 1.2em;
  position: relative;
}

.compare-col li::before {
  position: absolute;
  left: 0;
}

.compare-before li::before {
  content: "×";
  color: var(--text-muted);
}

.compare-after li::before {
  content: "→";
  color: var(--brand);
}

/* ==========================================================================
   Steps / How It Works (Tier 2: Brand)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

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

.step {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-top: 2px solid var(--brand);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dispensary How It Works (3-col grid) */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

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

.how-step {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-top: 2px solid var(--brand);
}

.how-step-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.how-step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.how-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Compound Note (Tier 2: Brand) */
.compound-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-left: 2px solid var(--brand);
  background: var(--brand-subtle);
  border-radius: var(--radius-md);
}

.compound-note p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.compound-note strong {
  color: var(--brand);
}

/* ==========================================================================
   Value Cards (Tier 2: Brand)
   ========================================================================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

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

.value-card {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-top: 2px solid var(--brand);
}

.value-card h3 {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--brand);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Karl Section (Tier 2: Brand)
   ========================================================================== */

.karl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

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

.karl-card {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.karl-card h3 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.karl-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.karl-quote {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
}

.karl-quote-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.karl-quote p {
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
}

.karl-quote .mol-cary {
  color: var(--caryophyllene);
  font-style: normal;
  font-weight: 600;
}

.karl-quote .mol-myrcene {
  color: var(--myrcene);
  font-style: normal;
  font-weight: 600;
}

/* Quote Block (Budtender) */
.quote-block {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  margin-top: var(--space-8);
}

.quote-block .ql {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.quote-block p {
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  font-size: var(--text-base);
}

.quote-block .mol-cary {
  color: var(--caryophyllene);
  font-style: normal;
  font-weight: 600;
}

.quote-block .mol-myrcene {
  color: var(--myrcene);
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   Terpene Chips (Tier 1: Semantic)
   ========================================================================== */

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

.terp-chip {
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-left: 3px solid;
  display: block;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.terp-chip:hover {
  transform: translateY(-2px);
}

.terp-chip h3 {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.terp-chip p {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Per-Terpene Chip Styles */
.terp-chip.myrcene { border-color: var(--myrcene); }
.terp-chip.myrcene h3 { color: var(--myrcene); }
.terp-chip.myrcene:hover { box-shadow: 0 4px 20px var(--myrcene-glow); }

.terp-chip.caryophyllene { border-color: var(--caryophyllene); }
.terp-chip.caryophyllene h3 { color: var(--caryophyllene); }
.terp-chip.caryophyllene:hover { box-shadow: 0 4px 20px var(--caryophyllene-glow); }

.terp-chip.limonene { border-color: var(--limonene); }
.terp-chip.limonene h3 { color: var(--limonene); }
.terp-chip.limonene:hover { box-shadow: 0 4px 20px var(--limonene-glow); }

.terp-chip.linalool { border-color: var(--linalool); }
.terp-chip.linalool h3 { color: var(--linalool); }
.terp-chip.linalool:hover { box-shadow: 0 4px 20px var(--linalool-glow); }

.terp-chip.terpinolene { border-color: var(--terpinolene); }
.terp-chip.terpinolene h3 { color: var(--terpinolene); }
.terp-chip.terpinolene:hover { box-shadow: 0 4px 20px var(--terpinolene-glow); }

.terp-chip.pinene { border-color: var(--pinene); }
.terp-chip.pinene h3 { color: var(--pinene); }
.terp-chip.pinene:hover { box-shadow: 0 4px 20px var(--pinene-glow); }

.terp-chip.ocimene { border-color: var(--ocimene); }
.terp-chip.ocimene h3 { color: var(--ocimene); }
.terp-chip.ocimene:hover { box-shadow: 0 4px 20px var(--ocimene-glow); }

.terp-chip.humulene { border-color: var(--humulene); }
.terp-chip.humulene h3 { color: var(--humulene); }
.terp-chip.humulene:hover { box-shadow: 0 4px 20px var(--humulene-glow); }

.terp-chip.nerolidol { border-color: var(--nerolidol); }
.terp-chip.nerolidol h3 { color: var(--nerolidol); }
.terp-chip.nerolidol:hover { box-shadow: 0 4px 20px var(--nerolidol-glow); }

.terp-chip.bisabolol { border-color: var(--bisabolol); }
.terp-chip.bisabolol h3 { color: var(--bisabolol); }
.terp-chip.bisabolol:hover { box-shadow: 0 4px 20px var(--bisabolol-glow); }

.science-cta {
  text-align: center;
}

.science-cta p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Dispensary Banner
   ========================================================================== */

.disp-banner {
  padding: var(--space-8);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.disp-banner-text h3 {
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.disp-banner-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .disp-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Forms (Tier 2: Brand)
   ========================================================================== */

.access-form,
.contact-form {
  max-width: 600px;
  width: 100%;
}

.access-form .fg,
.contact-form .fg {
  margin-bottom: var(--space-4);
}

/* Radio button groups */
.radio-group {
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.radio-group-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.radio-options {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand);
}

.access-form input,
.access-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
}

.access-form input.has-value,
.contact-form input.has-value,
.contact-form textarea.has-value {
  background: var(--bg-primary);
}

.access-form input::placeholder,
.access-form select::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.access-form input:focus,
.access-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.access-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.access-form select option,
.contact-form select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.contact-form {
  max-width: 600px;
}

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

.fine-print {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Footer (Tier 2: Brand)
   ========================================================================== */

.footer {
  padding: var(--space-16) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
}

.footer-brand .t {
  color: var(--text-primary);
}

.footer-brand .u {
  color: var(--brand);
}

.footer-tag {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 480px) {
  .section {
    padding: var(--space-16) var(--space-4);
  }

  .hero {
    padding: var(--space-16) var(--space-4);
    padding-top: calc(var(--space-16) + 60px);
    min-height: auto;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TERPENE PAGE STYLES (PRESERVED FROM v1)
   Note: These use --brand which gets overridden per-terpene via [data-terpene]
   ========================================================================== */

/* Terpene Page Hero */
.terpene-page .hero {
  min-height: 60vh;
}

.terpene-page .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

/* SMS Gradient System - Titles */
.section-title {
  margin-bottom: var(--space-8);
}

.section-title .grad-word {
  display: inline;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-3xl);
  letter-spacing: 0.01em;
  margin-right: 0.25em;
}

.section-title .grad-word:last-child {
  margin-right: 0;
}

/* 2-word gradient */
.section-title .grad-word[style*="--word-count:2"][style*="--word-idx:0"] {
  color: var(--text-primary);
}

.section-title .grad-word[style*="--word-count:2"][style*="--word-idx:1"] {
  color: var(--brand);
}

/* 3-word gradient */
.section-title .grad-word[style*="--word-count:3"][style*="--word-idx:0"] {
  color: var(--text-primary);
}

.section-title .grad-word[style*="--word-count:3"][style*="--word-idx:1"] {
  color: color-mix(in srgb, var(--text-primary) 50%, var(--brand));
}

.section-title .grad-word[style*="--word-count:3"][style*="--word-idx:2"] {
  color: var(--brand);
}

/* 4-word gradient */
.section-title .grad-word[style*="--word-count:4"][style*="--word-idx:0"] {
  color: var(--text-primary);
}

.section-title .grad-word[style*="--word-count:4"][style*="--word-idx:1"] {
  color: color-mix(in srgb, var(--text-primary) 66%, var(--brand));
}

.section-title .grad-word[style*="--word-count:4"][style*="--word-idx:2"] {
  color: color-mix(in srgb, var(--text-primary) 33%, var(--brand));
}

.section-title .grad-word[style*="--word-count:4"][style*="--word-idx:3"] {
  color: var(--brand);
}

/* 5-word gradient */
.section-title .grad-word[style*="--word-count:5"][style*="--word-idx:0"] {
  color: var(--text-primary);
}

.section-title .grad-word[style*="--word-count:5"][style*="--word-idx:1"] {
  color: color-mix(in srgb, var(--text-primary) 75%, var(--brand));
}

.section-title .grad-word[style*="--word-count:5"][style*="--word-idx:2"] {
  color: color-mix(in srgb, var(--text-primary) 50%, var(--brand));
}

.section-title .grad-word[style*="--word-count:5"][style*="--word-idx:3"] {
  color: color-mix(in srgb, var(--text-primary) 25%, var(--brand));
}

.section-title .grad-word[style*="--word-count:5"][style*="--word-idx:4"] {
  color: var(--brand);
}

/* Evidence Cards */
.evidence-section {
  padding: var(--space-16) 0;
}

.evidence-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 700px;
}

.evidence-cards {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .evidence-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.evidence-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base);
}

.evidence-card:hover {
  border-color: var(--brand);
}

.evidence-claim {
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.evidence-technical {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.evidence-source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-4);
}

.evidence-grade {
  margin-top: var(--space-3);
}

.evidence-note {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--brand-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.evidence-link {
  color: var(--brand);
  text-decoration: underline;
}

.evidence-link:hover {
  color: var(--text-primary);
}

/* Grade Badges */
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grade-checks {
  display: flex;
  align-items: center;
  gap: 2px;
}

.grade-label {
  color: var(--text-primary);
}

.grade-A {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid var(--pinene);
}

.grade-A .grade-stars {
  color: var(--pinene);
}

.grade-B {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid var(--limonene);
}

.grade-B .grade-stars {
  color: var(--limonene);
}

.grade-C {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--myrcene);
}

.grade-C .grade-stars {
  color: var(--myrcene);
}

/* Karl Section on Terpene Pages */
.karl-section-box {
  background: var(--brand-subtle);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-12);
}

.karl-section-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.karl-threshold-value {
  color: var(--brand);
  font-weight: 600;
}

/* Terpene-Specific Color Overrides (Tier 1: Override --brand) */
.terpene-page[data-terpene="myrcene"] {
  --brand: var(--myrcene);
  --brand-subtle: var(--myrcene-subtle);
  --brand-glow: var(--myrcene-glow);
}

.terpene-page[data-terpene="caryophyllene"] {
  --brand: var(--caryophyllene);
  --brand-subtle: var(--caryophyllene-subtle);
  --brand-glow: var(--caryophyllene-glow);
}

.terpene-page[data-terpene="limonene"] {
  --brand: var(--limonene);
  --brand-subtle: var(--limonene-subtle);
  --brand-glow: var(--limonene-glow);
}

.terpene-page[data-terpene="linalool"] {
  --brand: var(--linalool);
  --brand-subtle: var(--linalool-subtle);
  --brand-glow: var(--linalool-glow);
}

.terpene-page[data-terpene="terpinolene"] {
  --brand: var(--terpinolene);
  --brand-subtle: var(--terpinolene-subtle);
  --brand-glow: var(--terpinolene-glow);
}

.terpene-page[data-terpene="pinene"] {
  --brand: var(--pinene);
  --brand-subtle: var(--pinene-subtle);
  --brand-glow: var(--pinene-glow);
}

.terpene-page[data-terpene="ocimene"] {
  --brand: var(--ocimene);
  --brand-subtle: var(--ocimene-subtle);
  --brand-glow: var(--ocimene-glow);
}

.terpene-page[data-terpene="humulene"] {
  --brand: var(--humulene);
  --brand-subtle: var(--humulene-subtle);
  --brand-glow: var(--humulene-glow);
}

.terpene-page[data-terpene="nerolidol"] {
  --brand: var(--nerolidol);
  --brand-subtle: var(--nerolidol-subtle);
  --brand-glow: var(--nerolidol-glow);
}

.terpene-page[data-terpene="bisabolol"] {
  --brand: var(--bisabolol);
  --brand-subtle: var(--bisabolol-subtle);
  --brand-glow: var(--bisabolol-glow);
}

/* ==========================================================================
   TRY KARL (DORMANT)
   Kept for potential future use (myth debunker chat, etc.)
   No references on any public page, but CSS preserved
   ========================================================================== */

.try-karl-hero-widget {
  text-align: center;
  margin-top: var(--space-6);
}

.try-karl-preview {
  max-width: 600px;
  margin: var(--space-8) auto;
}

.try-karl-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.try-karl-preview-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.try-karl-preview-card ul {
  list-style: none;
  padding: 0;
}

.try-karl-preview-card li {
  color: var(--text-secondary);
  margin: var(--space-2) 0;
  padding-left: var(--space-4);
  position: relative;
}

.try-karl-preview-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.try-karl-widget {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.try-karl-widget.open {
  display: flex;
  opacity: 1;
}

.try-karl-widget-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.try-karl-widget-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 90vh;
  margin: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.try-karl-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.try-karl-widget-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.try-karl-widget-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.try-karl-question-counter {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.try-karl-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.try-karl-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.try-karl-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.try-karl-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}

.try-karl-message {
  display: flex;
  max-width: 80%;
  animation: fadeIn 0.3s ease;
}

.try-karl-message-user {
  align-self: flex-end;
  margin-left: auto;
}

.try-karl-message-assistant {
  align-self: flex-start;
}

.try-karl-message-content {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  line-height: 1.6;
  word-wrap: break-word;
}

.try-karl-message-user .try-karl-message-content {
  background: var(--brand);
  color: var(--text-primary);
}

.try-karl-message-assistant .try-karl-message-content {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.try-karl-typing {
  display: flex;
  gap: 4px;
  padding: var(--space-4);
  align-self: flex-start;
}

.try-karl-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.try-karl-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.try-karl-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

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

.try-karl-email-gate {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.try-karl-email-gate.show {
  display: flex;
}

.try-karl-email-gate-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.try-karl-email-gate-content h4 {
  margin: 0 0 var(--space-4) 0;
  color: var(--text-primary);
}

.try-karl-email-gate-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.try-karl-email-gate-content form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.try-karl-email-gate-content input {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
}

.try-karl-email-gate-content input:focus {
  outline: none;
  border-color: var(--brand);
}

.try-karl-widget-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.try-karl-input-container {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.try-karl-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
}

.try-karl-input:focus {
  outline: none;
  border-color: var(--brand);
}

.try-karl-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.try-karl-send {
  padding: var(--space-3) var(--space-6);
  background: var(--brand);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
}

.try-karl-send:hover:not(:disabled) {
  filter: brightness(1.15);
}

.try-karl-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .try-karl-widget-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .try-karl-message {
    max-width: 85%;
  }

  .try-karl-widget-header {
    padding: var(--space-3) var(--space-4);
  }

  .try-karl-widget-body {
    padding: var(--space-4);
  }

  .try-karl-widget-footer {
    padding: var(--space-3) var(--space-4);
  }

  .try-karl-question-counter {
    font-size: var(--text-xs);
  }
}
