/* ==========================================================================
   AROHAN — Design System & Visual Architecture
   Brand: AROHAN | "Understand. Reflect. Grow."
   Theme: Premium Dark Minimalist AI SaaS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- DESIGN SYSTEM TOKENS & MULTI-THEME ENGINE --- */
:root, [data-theme="earthy-warm"] {
  /* Earthy Warm (Default Theme) */
  --bg-deep: #141210;
  --bg-canvas: #1B1815;
  --bg-surface: #24201C;
  --bg-surface-elevated: #2F2924;
  --bg-surface-glass: rgba(36, 32, 28, 0.88);
  --bg-surface-hover: #3B342E;

  --border-subtle: rgba(245, 235, 224, 0.1);
  --border-medium: rgba(245, 235, 224, 0.2);
  --border-accent: rgba(224, 122, 95, 0.45);
  --border-focus: #E07A5F;

  --text-primary: #FAF6F0;
  --text-secondary: #C8BDAF;
  --text-muted: #8E8276;
  --text-inverse: #1B1815;

  --accent-primary: #E07A5F;
  --accent-glow: rgba(224, 122, 95, 0.25);
  --accent-subtle: rgba(224, 122, 95, 0.14);
  --accent-hover: #CB654B;

  --signal-balanced: #81B29A;
  --signal-balanced-bg: rgba(129, 178, 154, 0.15);
  --signal-mild: #F2CC8F;
  --signal-mild-bg: rgba(242, 204, 143, 0.15);
  --signal-elevated: #E07A5F;
  --signal-elevated-bg: rgba(224, 122, 95, 0.15);

  --nav-bg: rgba(20, 18, 16, 0.88);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(245, 235, 224, 0.08);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DARK THEME --- */
[data-theme="dark"] {
  --bg-deep: #07090E;
  --bg-canvas: #0B0F19;
  --bg-surface: #101626;
  --bg-surface-elevated: #161F33;
  --bg-surface-glass: rgba(16, 22, 38, 0.82);
  --bg-surface-hover: rgba(26, 36, 60, 0.9);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(16, 185, 129, 0.4);
  --border-focus: #10B981;

  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #64748B;
  --text-inverse: #07090E;

  --accent-primary: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.22);
  --accent-subtle: rgba(16, 185, 129, 0.1);
  --accent-hover: #059669;

  --signal-balanced: #10B981;
  --signal-balanced-bg: rgba(16, 185, 129, 0.12);
  --signal-mild: #F59E0B;
  --signal-mild-bg: rgba(245, 158, 11, 0.12);
  --signal-elevated: #EF4444;
  --signal-elevated-bg: rgba(239, 68, 68, 0.12);

  --nav-bg: rgba(7, 9, 14, 0.85);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}


/* --- SOLARIZED THEME --- */
[data-theme="solarized"] {
  --bg-deep: #001E26;
  --bg-canvas: #002B36;
  --bg-surface: #073642;
  --bg-surface-elevated: #0A4554;
  --bg-surface-glass: rgba(7, 54, 66, 0.88);
  --bg-surface-hover: #0E5669;

  --border-subtle: rgba(147, 161, 161, 0.16);
  --border-medium: rgba(147, 161, 161, 0.28);
  --border-accent: rgba(42, 161, 152, 0.45);
  --border-focus: #2AA198;

  --text-primary: #FDF6E3;
  --text-secondary: #93A1A1;
  --text-muted: #657B83;
  --text-inverse: #002B36;

  --accent-primary: #2AA198;
  --accent-glow: rgba(42, 161, 152, 0.25);
  --accent-subtle: rgba(42, 161, 152, 0.16);
  --accent-hover: #238981;

  --signal-balanced: #2AA198;
  --signal-balanced-bg: rgba(42, 161, 152, 0.16);
  --signal-mild: #B58900;
  --signal-mild-bg: rgba(181, 137, 0, 0.16);
  --signal-elevated: #DC322F;
  --signal-elevated-bg: rgba(220, 50, 47, 0.16);

  --nav-bg: rgba(0, 33, 43, 0.88);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(147, 161, 161, 0.1);
}



/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background ambient mesh */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-ambient-orb-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(60px);
}

.bg-ambient-orb-2 {
  position: absolute;
  top: 40%;
  left: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(80px);
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 820px;
}

.container-form {
  max-width: 760px;
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* --- NAVIGATION --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 14, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-link:hover .brand-mark {
  transform: scale(1.06);
  border-color: var(--accent-primary);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--text-primary);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button & Hover Menu */
.theme-toggle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  position: relative;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-toggle-btn:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  color: var(--accent-primary);
}

.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(18deg) scale(1.12);
}

/* Hover Options Menu */
.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 200;
  pointer-events: none;
}

.theme-toggle-container:hover .theme-dropdown-menu,
.theme-toggle-container:focus-within .theme-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-menu-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.theme-menu-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateX(3px);
}

.theme-menu-opt.is-active {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-weight: 600;
}

.theme-opt-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-opt-left svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.theme-opt-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all var(--transition-fast);
}

.theme-menu-opt.is-active .theme-opt-indicator {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1.4;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #06120D;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  background-color: #0FA374;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.38);
}

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

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.btn:disabled, .btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

/* --- BADGES & CHIPS --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-emerald {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* --- MEDICAL DISCLAIMER BANNER --- */
.disclaimer-banner {
  background: rgba(16, 22, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.disclaimer-banner svg {
  flex-shrink: 0;
  color: var(--accent-primary);
  width: 18px;
  height: 18px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFF 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent-text {
  color: var(--accent-primary);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.trust-label {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* --- HERO SIGNAL PIPELINE VISUALIZATION --- */
.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.visual-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visual-nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.visual-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.visual-node:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.node-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.visual-convergence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: var(--text-muted);
}

.convergence-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--accent-primary);
}

.visual-output {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 22, 38, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-meta {
  display: flex;
  flex-direction: column;
}

.output-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.output-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.output-signal-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- SECTION SHARED STYLES --- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- WHAT AROHAN LOOKS AT (CATEGORY CARDS) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-card);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-metrics {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* --- HOW IT WORKS (STEP JOURNEY) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-card-num::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: var(--border-subtle);
}

.step-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-card-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- WHY IT MATTERS --- */
.why-matters-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-copy h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.why-copy p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.why-feature-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ASSESSMENT SECTION — MULTI-STEP FLOW
   ========================================================================== */
.assessment-section {
  padding: 5rem 0 6rem;
  position: relative;
}

.assessment-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient accent */
.assessment-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Step Progress Header */
.step-tracker-container {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tracker-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tracker-step-count {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tracker-section-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  width: 16.66%;
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Step Node Pills */
.step-pills {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.5rem;
}

.step-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  transition: color var(--transition-fast);
}

.step-pill-btn.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.step-pill-btn.is-done {
  color: var(--accent-primary);
  cursor: pointer;
}

.step-pill-num {
  font-family: var(--font-mono);
  font-size: 0.725rem;
}

/* Step Fieldset Styles */
.form-step {
  border: none;
  display: none;
}

.form-step.is-active {
  display: block;
  animation: stepFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.step-header {
  margin-bottom: 2rem;
}

.step-header-tag {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}

.step-header-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.step-header-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* --- FORM FIELDS & CONTROLS --- */
.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.fields-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.field-label {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-val-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Text & Number Inputs */
.input-text, .input-select {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.input-text:focus, .input-select:focus {
  border-color: var(--border-focus);
  background: #141C2E;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-text.is-invalid, .input-select.is-invalid {
  border-color: var(--signal-elevated) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  font-size: 0.8rem;
  color: var(--signal-elevated);
  margin-top: 0.4rem;
  min-height: 1.1rem;
}

/* Custom Styled Select */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.input-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}

.input-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* --- SEGMENTED CONTROLS & CHIPS --- */
.segmented-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.segmented-option {
  position: relative;
  flex: 1 1 auto;
}

.segmented-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  text-align: center;
}

.segmented-label:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.segmented-option input[type="radio"]:checked + .segmented-label {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.segmented-option input[type="radio"]:focus-visible + .segmented-label {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Stress Level Specialized Chips */
.stress-level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stress-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stress-card-label:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.stress-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  background: var(--border-medium);
  transition: background var(--transition-fast);
}

.pip-low { background: #10B981; }
.pip-medium { background: #3B82F6; }
.pip-high { background: #F59E0B; }
.pip-very-high { background: #EF4444; }

.stress-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.stress-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.segmented-option input[type="radio"]:checked + .stress-card-label {
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

/* --- RANGE SLIDERS --- */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  --thumb-size: 20px;
  --thumb-radius: 10px;
  position: relative;
}

.input-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--accent-primary) 0%,
    var(--accent-primary) var(--slider-fill, 0%),
    var(--bg-surface-elevated) var(--slider-fill, 0%),
    var(--bg-surface-elevated) 100%
  );
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
  transition: background 0.08s ease;
}

.input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.input-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--accent-glow);
}

.input-range::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.input-range::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--accent-glow);
}

.slider-ticks {
  position: relative;
  width: 100%;
  height: 2.2rem;
  margin-top: 0.2rem;
}

.slider-tick {
  position: absolute;
  top: 0;
  left: calc(var(--thumb-radius) + (var(--tick-pct, 0) / 100) * (100% - var(--thumb-size)));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.slider-tick:hover {
  color: var(--text-primary);
  transform: translateX(-50%) translateY(-1px);
}

.slider-tick[data-pos="first"] {
  left: 0;
  transform: none;
  align-items: flex-start;
}

.slider-tick[data-pos="first"]:hover {
  transform: translateY(-1px);
}

.slider-tick[data-pos="last"] {
  left: auto;
  right: 0;
  transform: none;
  align-items: flex-end;
}

.slider-tick[data-pos="last"]:hover {
  transform: translateY(-1px);
}

.slider-tick.is-active {
  color: var(--accent-primary);
  font-weight: 600;
}

.slider-tick .tick-val {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.slider-tick .tick-sub {
  font-size: 0.65rem;
  opacity: 0.75;
  font-family: var(--font-sans);
  line-height: 1.1;
}

.slider-tick.is-active .tick-sub {
  opacity: 1;
}

/* Form Actions / Navigation Buttons */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- REVIEW SCREEN --- */
.review-summary-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-edit-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.review-edit-btn:hover {
  color: var(--text-primary);
}

.review-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.review-data-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.review-data-label {
  color: var(--text-secondary);
}

.review-data-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* Loading State */
.loading-box {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.loading-box.is-visible {
  display: block;
}

.loading-radar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: radarPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.radar-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.radar-ring:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes radarPulse {
  0% { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

.loading-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.loading-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESULTS DASHBOARD
   ========================================================================== */
.results-container {
  display: none;
}

.results-container.is-visible {
  display: block;
  animation: stepFadeIn 0.4s ease forwards;
}

.result-hero-card {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.result-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}

.result-gauge-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Radial Gauge */
.gauge-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gauge-track-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}

.gauge-progress-circle {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.gauge-inner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.gauge-scale {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.result-meta-content {
  flex-grow: 1;
}

.result-signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.result-headline {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.result-summary-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pattern Insight Cards */
.patterns-section {
  margin-bottom: 2rem;
}

.patterns-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patterns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pattern-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pattern-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.pattern-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pattern-content p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Small Changes (Actionable reflection) */
.small-changes-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.small-changes-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.small-changes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.small-changes-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.small-changes-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Result Actions */
.result-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Non-Diagnostic Disclaimer Box in Results */
.result-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* --- FAQ SECTION --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-attribution {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-attribution strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cheers-symbol {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
  margin: 0 0.2rem;
  animation: cheersClink 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}

@keyframes cheersClink {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  20% {
    transform: rotate(-14deg) scale(1.18);
  }
  45% {
    transform: rotate(12deg) scale(1.2);
  }
  70% {
    transform: rotate(-6deg) scale(1.08);
  }
}

/* Printable Reflection Slip */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }
  .site-nav, .site-footer, .step-actions, .hero, .category-grid, .steps-grid, .why-matters-box, .faq-grid {
    display: none !important;
  }
  .assessment-wrapper {
    box-shadow: none !important;
    border: 1px solid #CCC !important;
    background: #FFF !important;
    color: #000 !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & DESKTOP)
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-matters-box {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    gap: 2rem;
  }
  .stress-level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.15rem;
  }

  /* Navigation on Mobile */
  .site-nav {
    height: 4.25rem;
  }

  .nav-wrapper {
    height: 4.25rem;
  }

  .nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
  }

  .nav-toggle:active {
    background: var(--bg-surface-hover);
  }

  .nav-links {
    position: fixed;
    top: 4.25rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4.25rem);
    height: calc(100dvh - 4.25rem);
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-medium);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    overflow-y: auto;
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    display: flex;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: block;
    color: var(--text-primary);
  }

  .nav-cta {
    margin-top: 1.25rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    justify-content: center;
  }

  /* Hero Section on Mobile */
  .hero {
    padding: 2.25rem 0 3rem;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.985rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    justify-content: center;
  }

  .hero-trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.25rem;
    text-align: center;
  }

  .trust-num {
    font-size: 1.1rem;
  }

  .trust-label {
    font-size: 0.685rem;
    line-height: 1.3;
  }

  .hero-visual-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .visual-nodes {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .visual-node {
    padding: 0.6rem 0.7rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .node-icon {
    width: 24px;
    height: 24px;
  }

  .visual-output {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  /* Categories & Steps on Mobile */
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.925rem;
  }

  .category-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.35rem;
  }

  .step-card {
    padding: 1.35rem;
  }

  .why-matters-box {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  /* Assessment Multi-Step on Mobile */
  .assessment-section {
    padding: 2.5rem 0 3.5rem;
  }

  .assessment-wrapper {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .step-tracker-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .step-pills {
    display: none; /* Text counter + progress bar is significantly cleaner on mobile */
  }

  .tracker-step-count {
    font-size: 0.775rem;
  }

  .tracker-section-name {
    font-size: 0.8rem;
  }

  .step-header {
    margin-bottom: 1.5rem;
  }

  .step-header-title {
    font-size: 1.35rem;
  }

  .step-header-desc {
    font-size: 0.85rem;
  }

  .fields-stack {
    gap: 1.35rem;
  }

  .fields-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* iOS Font-size fix: 16px prevents automatic browser zooming */
  .input-text, .input-select {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    min-height: 48px;
  }

  /* Touch-friendly Range Sliders */
  .slider-container {
    --thumb-size: 26px;
    --thumb-radius: 13px;
    padding: 0.5rem 0;
  }

  .input-range {
    height: 8px;
  }

  .input-range::-webkit-slider-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    box-shadow: 0 0 10px var(--accent-glow);
  }

  .input-range::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
  }

  .slider-ticks {
    height: 2.2rem;
  }

  .slider-tick {
    font-size: 0.7rem;
    padding: 0.1rem 0.15rem;
  }

  .slider-tick .tick-val {
    font-size: 0.7rem;
  }

  .slider-tick .tick-sub {
    font-size: 0.58rem;
  }

  /* Segmented Controls on Mobile */
  .segmented-group {
    gap: 0.45rem;
  }

  .segmented-label {
    min-height: 48px;
    padding: 0.75rem 0.5rem;
    font-size: 0.825rem;
  }

  .stress-level-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stress-card-label {
    min-height: 74px;
    padding: 0.85rem 0.5rem;
  }

  .stress-card-name {
    font-size: 0.825rem;
  }

  .stress-card-sub {
    font-size: 0.7rem;
  }

  /* Step Actions on Mobile */
  .step-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    width: 100%;
  }

  .step-actions > div:empty {
    display: none;
  }

  .step-actions .btn {
    flex: 1 1 50%;
    min-height: 48px;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .form-step[data-step="1"] .step-actions .step-btn-next {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Review Screen on Mobile */
  .review-summary-card {
    padding: 1.15rem 1rem;
    margin-bottom: 1rem;
  }

  .review-data-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .review-data-item {
    font-size: 0.825rem;
    padding: 0.35rem 0;
    word-break: break-word;
  }

  .theme-toggle-btn {
    width: 42px;
    height: 42px;
  }

  /* Results Dashboard on Mobile */
  .result-hero-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .result-gauge-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .gauge-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .gauge-number {
    font-size: 2.2rem;
  }

  .result-meta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .result-headline {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .result-summary-text {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .patterns-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pattern-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pattern-icon {
    width: 28px;
    height: 28px;
  }

  .pattern-content strong {
    font-size: 0.85rem;
  }

  .pattern-content p {
    font-size: 0.8rem;
  }

  .small-changes-box {
    padding: 1.15rem;
  }

  .small-changes-list {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .small-changes-item {
    font-size: 0.825rem;
  }

  .result-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .result-actions-row > div {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .result-actions-row .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    justify-content: center;
    padding-top: 1.25rem;
  }

  .footer-attribution {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    font-size: 0.825rem;
  }
}

/* Extra Small Mobile Screens (<= 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .visual-nodes {
    grid-template-columns: 1fr;
  }

  .stress-level-grid {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .btn {
    width: 100%;
  }

  .hero-trust-metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
