/* ============================================================
   Marketing Landing Page — CSS Design System
   Mental Health Change (MHC)
   ============================================================ */

:root {
  /* Brand Core Palette */
  --c-dark: #0f172a;
  --c-dark-surface: #1e293b;
  --c-primary: #1B333E;
  --c-primary-light: #2c4d5d;
  --c-accent: #4A8574;
  --c-accent-hover: #3d7062;
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;
  
  /* Role Specific Accent Colors */
  --role-company: #f59e0b;     /* Amber Gold */
  --role-company-bg: rgba(245, 158, 11, 0.08);
  --role-company-glow: rgba(245, 158, 11, 0.25);

  --role-client: #6366f1;      /* Indigo / Electric Violet */
  --role-client-bg: rgba(99, 102, 241, 0.08);
  --role-client-glow: rgba(99, 102, 241, 0.25);

  --role-provider: #0891b2;    /* Cyan Teal */
  --role-provider-bg: rgba(8, 145, 178, 0.08);
  --role-provider-glow: rgba(8, 145, 178, 0.25);

  --role-admin: #10b981;       /* Emerald Safe */
  --role-admin-bg: rgba(16, 185, 129, 0.08);
  --role-admin-glow: rgba(16, 185, 129, 0.25);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Elevation & Transitions */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, select { font-family: inherit; }

/* ── Typography Utilities ─────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--c-primary); }
.text-gradient {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--c-text-muted); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(74, 133, 116, 0.1); color: var(--c-accent); border: 1px solid rgba(74, 133, 116, 0.2);
}

/* ── Layout Containers ────────────────────────────────────── */
.m-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 96px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px auto; }
.section-header h2 { font-size: 36px; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { font-size: 18px; color: var(--c-text-muted); }

/* ── Header & Navbar ──────────────────────────────────────── */
.m-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-fast);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--c-primary); }
.brand-logo-img {
  height: 46px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(27, 51, 62, 0.15);
  transition: var(--transition-fast);
}
.brand-logo-img:hover {
  transform: scale(1.04);
}
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; box-shadow: 0 4px 12px rgba(27, 51, 62, 0.2);
}

/* Role Switcher Pill Bar in Header */
.role-switcher-bar {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(15, 23, 42, 0.05); border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
}
.role-tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; border: none; background: transparent;
  color: var(--c-text-muted); cursor: pointer; transition: var(--transition-fast);
}
.role-tab-btn:hover { color: var(--c-primary); background: rgba(255, 255, 255, 0.5); }
.role-tab-btn.active {
  background: var(--c-surface); color: var(--c-primary);
  box-shadow: var(--shadow-sm); font-weight: 700;
}
.role-tab-btn.active[data-role="company"] { color: #d97706; }
.role-tab-btn.active[data-role="client"]  { color: #4f46e5; }
.role-tab-btn.active[data-role="provider"]{ color: #0891b2; }
.role-tab-btn.active[data-role="admin"]   { color: #059669; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition-fast); border: 1px solid transparent;
}
.btn-primary { background: var(--c-accent); color: #ffffff; }
.btn-primary:hover { background: var(--c-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 133, 116, 0.3); }
.btn-dark { background: var(--c-primary); color: #ffffff; }
.btn-dark:hover { background: var(--c-primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27, 51, 62, 0.3); }
.btn-outline { background: transparent; border-color: var(--c-border); color: var(--c-primary); }
.btn-outline:hover { background: rgba(15, 23, 42, 0.04); border-color: var(--c-primary); }

/* ── Dynamic Hero Section ─────────────────────────────────── */
.hero-section {
  position: relative; padding: 80px 0 100px 0;
  background: radial-gradient(circle at 50% 0%, rgba(74, 133, 116, 0.12) 0%, rgba(248, 250, 252, 0) 75%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-content { z-index: 2; }
.hero-badge { margin-bottom: 24px; }
.hero-title { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--c-primary); }
.hero-subtitle { font-size: 20px; color: var(--c-text-muted); margin-bottom: 36px; line-height: 1.6; }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats-row { display: flex; gap: 32px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.stat-item .stat-num { font-size: 32px; font-weight: 800; color: var(--c-primary); font-family: var(--font-heading); }
.stat-item .stat-lbl { font-size: 13px; color: var(--c-text-muted); font-weight: 500; }

/* Dynamic Hero Card Visual (Right Side) */
.hero-visual-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-lg); position: relative;
  transition: var(--transition-normal);
}
.hero-visual-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--hero-accent, var(--c-accent)), transparent 70%);
  z-index: -1; opacity: 0.5;
}
.visual-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.visual-role-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
  background: var(--hero-role-bg, rgba(74, 133, 116, 0.1));
  color: var(--hero-role-color, var(--c-accent));
}

/* ── 4-Pillar Role Benefits Section ───────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 32px 24px;
  transition: var(--transition-normal); position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-card.active-pillar {
  border-color: var(--card-accent, var(--c-accent));
  box-shadow: 0 12px 32px var(--card-glow, rgba(74, 133, 116, 0.15));
}
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.04); color: var(--c-primary);
}
.pillar-card h3 { font-size: 22px; margin-bottom: 12px; }
.pillar-card p { font-size: 14px; color: var(--c-text-muted); margin-bottom: 24px; flex-grow: 1; }
.pillar-features { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pillar-features li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pillar-features li::before { content: '✓'; font-weight: 800; color: var(--c-accent); }

/* ── Interactive ROI & Care Simulator ──────────────────────── */
.simulator-section {
  background: linear-gradient(135deg, #1B333E 0%, #0f172a 100%);
  color: #ffffff; position: relative; overflow: hidden;
}
.simulator-section h2 { color: #ffffff; }
.simulator-section p.text-muted { color: #94a3b8; }
.simulator-box {
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.sim-controls { display: flex; flex-direction: column; gap: 24px; }
.sim-group { display: flex; flex-direction: column; gap: 8px; }
.sim-group label { font-size: 14px; font-weight: 600; color: #cbd5e1; display: flex; justify-content: space-between; }
.sim-slider {
  -webkit-appearance: none; width: 100%; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.15); outline: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--c-accent); cursor: pointer;
  box-shadow: 0 0 12px rgba(74, 133, 116, 0.8);
}
.sim-output-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column;
  justify-content: center; text-align: center;
}
.sim-result-num { font-size: 48px; font-weight: 800; color: #34d399; font-family: var(--font-heading); margin: 12px 0; }

/* ── Trust Architecture & Safeguarding ─────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 32px;
}
.trust-icon { font-size: 32px; margin-bottom: 16px; }

/* ── FAQs Accordion ───────────────────────────────────────── */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-fast);
}
.faq-question {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; font-size: 17px; font-weight: 600;
  color: var(--c-primary); text-align: left; cursor: pointer;
}
.faq-answer {
  padding: 0 24px 20px 24px; font-size: 15px; color: var(--c-text-muted);
  display: none; line-height: 1.6; border-top: 1px solid transparent;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-toggle { transition: var(--transition-fast); font-weight: 700; font-size: 18px; color: var(--c-accent); }

/* ── Footer ───────────────────────────────────────────────── */
.m-footer {
  background: var(--c-dark); color: #cbd5e1; padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.footer-brand p { font-size: 14px; color: #94a3b8; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 16px; color: #ffffff; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; font-size: 13px; color: #64748b;
}

/* ── Responsiveness ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .simulator-box { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .role-switcher-bar { display: none; } /* Show mobile select instead */
  .hero-title { font-size: 36px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wrapper { height: 70px; }
}
