/* ============================================================
   GWL Design System — GenHERational Wealth Lab
   Version 1.0 · August 2026
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  /* Brand colors */
  --deep-teal:   #054551;
  --gwl-teal:    #1D6B66;
  --seafoam:     #CFE5DF;
  --warm-gold:   #C7A24A;
  --butter:      #F1E3A4;
  --cream:       #F8F5EE;
  --charcoal:    #202124;
  --mid-gray:    #6B7280;
  --light-gray:  #E5E7EB;
  --white:       #FFFFFF;

  /* Semantic aliases */
  --bg-page:         var(--cream);
  --bg-dark:         var(--deep-teal);
  --bg-mid:          var(--gwl-teal);
  --bg-soft:         var(--seafoam);
  --text-primary:    var(--charcoal);
  --text-inverse:    var(--cream);
  --text-muted:      var(--mid-gray);
  --accent:          var(--warm-gold);
  --border:          rgba(5, 69, 81, 0.10);
  --border-dark:     rgba(255, 255, 255, 0.15);

  /* Typography */
  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --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;

  /* Layout */
  --max-w:        1280px;
  --wrap-x:       clamp(1.25rem, 5vw, 4rem);
  --section-py:   clamp(4rem, 8vw, 7rem);

  /* Elevation */
  --shadow-sm:   0 1px 3px rgba(5,69,81,0.06), 0 1px 2px rgba(5,69,81,0.04);
  --shadow-md:   0 4px 12px rgba(5,69,81,0.08), 0 2px 6px rgba(5,69,81,0.04);
  --shadow-lg:   0 12px 32px rgba(5,69,81,0.10), 0 4px 12px rgba(5,69,81,0.06);
  --shadow-gold: 0 0 0 2px rgba(199,162,74,0.35);

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul[class], ol[class] { list-style: none; }

/* ── ACCESSIBILITY ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--deep-teal);
  color: var(--cream);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--warm-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.font-serif  { font-family: var(--serif); }
.font-sans   { font-family: var(--sans); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); font-weight: 400; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 400; }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); font-weight: 400; }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display {
  font-family: var(--serif);
  font-size: clamp(var(--text-5xl), 7vw, var(--text-7xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow-gold {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gold);
}

.lead {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: 1.7;
  color: var(--text-muted);
}

.lead-white {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: 1.7;
  color: rgba(248, 245, 238, 0.8);
}

/* Brand name treatment */
.brand-name { font-family: var(--serif); font-weight: 400; }
.brand-her  { color: var(--warm-gold); font-style: italic; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}

.section { padding-block: var(--section-py); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-10); }
  .grid-3 { grid-template-columns: 1fr; gap: var(--space-6); }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-main {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep-teal);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-top: 2px;
}

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

.nav-link {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--gwl-teal); }

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

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep-teal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) var(--wrap-x);
  flex-direction: column;
  gap: var(--space-4);
  z-index: 99;
}
.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: var(--text-base);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Dark nav variant */
.nav--dark {
  background: rgba(5, 69, 81, 0.95);
  border-bottom-color: var(--border-dark);
}
.nav--dark .nav-logo-main { color: var(--cream); }
.nav--dark .nav-link { color: rgba(248,245,238,0.8); }
.nav--dark .nav-link:hover { color: var(--cream); }
.nav--dark .nav-hamburger span { background: var(--cream); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--deep-teal);
  color: var(--cream);
  border: 2px solid var(--deep-teal);
}
.btn-primary:hover {
  background: var(--gwl-teal);
  border-color: var(--gwl-teal);
}

.btn-gold {
  background: var(--warm-gold);
  color: var(--deep-teal);
  border: 2px solid var(--warm-gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--warm-gold);
}

.btn-outline {
  background: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
}
.btn-outline:hover {
  background: var(--deep-teal);
  color: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(248,245,238,0.5);
}
.btn-outline-light:hover {
  background: rgba(248,245,238,0.1);
  border-color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid transparent;
  padding-inline: 0;
}
.btn-ghost:hover { color: var(--deep-teal); }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  min-height: 54px;
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gwl-teal);
  box-shadow: 0 0 0 3px rgba(29,107,102,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--mid-gray);
  opacity: 0.7;
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: var(--text-sm);
  color: #DC2626;
}

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

/* Radio / Checkbox groups */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option:hover, .checkbox-option:hover {
  border-color: var(--gwl-teal);
  background: rgba(29,107,102,0.03);
}
.radio-option input:checked ~ .radio-label,
.checkbox-option input:checked ~ .checkbox-label {
  color: var(--deep-teal);
}
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  border-color: var(--gwl-teal);
  background: rgba(29,107,102,0.05);
}

/* ── DIVIDERS ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ornament {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--warm-gold);
  margin: 0 auto;
}

/* ── BADGES / TAGS ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.badge-teal { background: var(--seafoam); color: var(--deep-teal); }
.badge-gold { background: rgba(199,162,74,0.15); color: #8B6E1F; }
.badge-build  { background: rgba(34,197,94,0.12); color: #15803D; }
.badge-test   { background: rgba(234,179,8,0.12);  color: #854D0E; }
.badge-hold   { background: rgba(100,116,139,0.12); color: #475569; }
.badge-pivot  { background: rgba(249,115,22,0.12); color: #C2410C; }
.badge-cut    { background: rgba(239,68,68,0.12);  color: #B91C1C; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.card-teal {
  background: var(--deep-teal);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--cream);
}

.card-seafoam {
  background: var(--seafoam);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.utility-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gwl-teal);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.utility-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--warm-gold);
}
.utility-card.locked {
  opacity: 0.55;
  border-left-color: var(--light-gray);
  pointer-events: none;
}

.specialist-card {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.specialist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-teal), var(--warm-gold));
}

/* ── PROGRESS / STAGES ────────────────────────────────────── */
.stage-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: var(--space-4) 0;
}

.stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 80px;
  position: relative;
}

.stage-step + .stage-step::before {
  content: '';
  position: absolute;
  left: -50%;
  top: 16px;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.stage-step.active + .stage-step::before { background: var(--gwl-teal); }

.stage-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--mid-gray);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.stage-step.active .stage-dot {
  background: var(--deep-teal);
  border-color: var(--deep-teal);
  color: var(--cream);
}

.stage-step.complete .stage-dot {
  background: var(--gwl-teal);
  border-color: var(--gwl-teal);
  color: var(--white);
}

.stage-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.stage-step.active .stage-label { color: var(--deep-teal); }
.stage-step.complete .stage-label { color: var(--gwl-teal); }

/* ── SCORE DISPLAY ────────────────────────────────────────── */
.score-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.score-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.score-bar-track {
  height: 8px;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--gwl-teal);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ── DECISION OUTCOME ─────────────────────────────────────── */
.decision-outcome {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.decision-BUILD  { background: rgba(34,197,94,0.1);  color: #15803D; border: 1px solid rgba(34,197,94,0.2); }
.decision-TEST   { background: rgba(234,179,8,0.1);  color: #854D0E; border: 1px solid rgba(234,179,8,0.2); }
.decision-HOLD   { background: rgba(100,116,139,0.1); color: #475569; border: 1px solid rgba(100,116,139,0.2); }
.decision-PIVOT  { background: rgba(249,115,22,0.1); color: #C2410C; border: 1px solid rgba(249,115,22,0.2); }
.decision-STAY_SERVICE { background: rgba(147,51,234,0.08); color: #7E22CE; border: 1px solid rgba(147,51,234,0.2); }
.decision-KILL   { background: rgba(239,68,68,0.08); color: #B91C1C; border: 1px solid rgba(239,68,68,0.2); }

/* ── QUESTIONNAIRE ────────────────────────────────────────── */
.questionnaire-wrap {
  max-width: 680px;
  margin-inline: auto;
}

.q-progress-bar {
  height: 4px;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-10);
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gwl-teal), var(--warm-gold));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

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

.q-number {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: var(--space-3);
}

.q-question {
  font-family: var(--serif);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.q-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* ── RESOURCE ITEMS ───────────────────────────────────────── */
.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--seafoam);
  color: var(--deep-teal);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

.resource-tag button {
  display: flex;
  align-items: center;
  color: var(--gwl-teal);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.resource-tag button:hover { opacity: 1; }

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-height: 48px;
}

.resource-category-block {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.resource-category-title {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin-bottom: var(--space-4);
}

/* ── LAB SHELL ────────────────────────────────────────────── */
.lab-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 68px;
}

.lab-sidebar {
  position: fixed;
  top: 68px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--deep-teal);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
  z-index: 50;
}

.lab-main {
  grid-column: 2;
  padding: var(--space-10) var(--space-12);
  max-width: 900px;
}

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

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(207,229,223,0.5);
  margin-bottom: var(--space-3);
}

.sidebar-link {
  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: rgba(248,245,238,0.75);
  transition: background var(--transition), color var(--transition);
  margin-bottom: var(--space-1);
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--cream); }
.sidebar-link.active { background: rgba(255,255,255,0.12); color: var(--cream); }
.sidebar-link.locked { opacity: 0.4; pointer-events: none; }

.sidebar-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .lab-shell { grid-template-columns: 1fr; }
  .lab-sidebar { position: static; width: 100%; height: auto; padding: var(--space-4) var(--space-6); }
  .lab-main { grid-column: 1; padding: var(--space-6) var(--wrap-x); }
}

/* ── GIA PANEL ────────────────────────────────────────────── */
.gia-panel {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, var(--deep-teal) 0%, #0b6275 100%);
  border-radius: var(--radius-xl);
  color: var(--cream);
  margin-bottom: var(--space-8);
}

.gia-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(207,229,223,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: var(--text-xl);
  color: var(--seafoam);
  flex-shrink: 0;
}

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

.gia-message {
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(248,245,238,0.9);
}

/* ── ALERT / NOTICE ───────────────────────────────────────── */
.notice {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border-left: 3px solid;
  display: flex;
  gap: var(--space-3);
}

.notice-info  { background: rgba(29,107,102,0.05); border-color: var(--gwl-teal); color: var(--deep-teal); }
.notice-warn  { background: rgba(199,162,74,0.08); border-color: var(--warm-gold); color: #6B4E0A; }
.notice-error { background: rgba(239,68,68,0.05); border-color: #DC2626; color: #991B1B; }

/* ── LOADING ──────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, rgba(229,231,235,0.5) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gwl-teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: var(--space-20) var(--wrap-x);
  max-width: 800px;
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-16);
  }
  .hero-left { padding: var(--space-16) var(--wrap-x) var(--space-10); }
}

/* ── METHOD FLOW ──────────────────────────────────────────── */
.method-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.method-step {
  flex: 1;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.method-step:last-child { border-right: none; }
.method-step:hover { background: rgba(29,107,102,0.03); }

.method-step-num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--warm-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.method-step-name {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--deep-teal);
  margin-bottom: var(--space-3);
}

.method-step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .method-flow {
    flex-direction: column;
    border-right: 1px solid var(--border);
  }
  .method-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .method-step:last-child { border-bottom: none; }
}

/* ── UTILITIES GRID ───────────────────────────────────────── */
.stage-group {
  margin-bottom: var(--space-10);
}

.stage-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stage-group-name {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-teal);
}

.stage-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.utilities-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

/* ── COMPARISON TABLE ─────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-col { }
.comparison-col:first-child { border-right: 1px solid var(--border); }

.comparison-header {
  padding: var(--space-5) var(--space-8);
  background: var(--light-gray);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.comparison-col:first-child .comparison-header { color: var(--mid-gray); }
.comparison-col:last-child .comparison-header  { background: var(--seafoam); color: var(--deep-teal); }

.comparison-item {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-top: 1px solid var(--border);
}
.comparison-col:first-child .comparison-item { color: var(--mid-gray); }
.comparison-col:last-child .comparison-item  { color: var(--charcoal); font-weight: 500; }

@media (max-width: 640px) {
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--deep-teal);
  color: rgba(248,245,238,0.6);
  padding: var(--space-16) var(--wrap-x) var(--space-8);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: var(--text-xl);
  color: var(--cream);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(248,245,238,0.5);
  margin-bottom: var(--space-6);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: var(--space-4);
}

.footer-link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(248,245,238,0.55);
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
}

.footer-disclaimer {
  max-width: 800px;
  font-size: var(--text-xs);
  color: rgba(248,245,238,0.35);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── AUTH PAGES ───────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left {
  background: var(--deep-teal);
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-right {
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.auth-quote {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: var(--space-8);
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(207,229,223,0.12);
  border: 1px solid rgba(207,229,223,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--seafoam);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: var(--space-10) var(--wrap-x); }
}

/* ── UTILITY CLASSES ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-teal   { color: var(--gwl-teal); }
.text-deep   { color: var(--deep-teal); }
.text-gold   { color: var(--warm-gold); }
.text-muted  { color: var(--text-muted); }
.text-cream  { color: var(--cream); }
.text-white  { color: var(--white); }

.bg-cream    { background: var(--cream); }
.bg-white    { background: var(--white); }
.bg-teal     { background: var(--deep-teal); }
.bg-seafoam  { background: var(--seafoam); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

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

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.max-w-prose { max-width: 65ch; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-inline: auto; }

.hidden { display: none !important; }
