/* QROWIA — Brand Theme */

:root {
  --midnight: #1B1230;
  --blue-violet: #4C5CFF;
  --lavender: #DCCAF2;
  --rose-beige: #F2E3E8;
  --frost: #F6F8FB;
  --white: #FFFFFF;
  --fg: #1B1230;
  --fg-muted: #6B7280;
  --border: #E5E7EB;
  --border-dark: rgba(255,255,255,0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--frost);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue-violet);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.nav-wordmark {
  font-size: 17px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--midnight);
  background: var(--frost);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.login-dropdown { position: relative; }

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.login-btn:hover {
  color: var(--midnight);
  border-color: var(--fg-muted);
  background: var(--white);
}

.login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(27, 18, 48, 0.12);
  display: none;
  z-index: 200;
}

.login-menu.is-open { display: block; }

.login-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s;
  cursor: pointer;
}

.login-menu-item:hover { background: var(--frost); }
.login-menu-icon { color: var(--fg-muted); }

.login-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.login-menu-item-soon {
  color: var(--fg-muted);
  cursor: default;
}

.login-menu-item-soon:hover { background: transparent; }

.coming-soon-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--frost);
  color: var(--fg-muted);
  border-radius: 100px;
  margin-left: auto;
  letter-spacing: 0.04em;
}

.login-menu-item-demo { color: var(--blue-violet); }
.login-menu-item-demo .login-menu-icon { color: var(--blue-violet); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--blue-violet);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover { background: #3a4be0; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  padding: 8px;
  border-radius: 6px;
}

.nav-mobile-toggle:hover { background: var(--frost); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--frost);
}

.nav-mobile-menu.is-open { display: flex; }

.nav-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--blue-violet);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

/* ===== HERO ===== */
.hero-section {
  background: var(--midnight);
  padding: 96px 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76, 92, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lavender);
  background: rgba(220, 202, 242, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
  border: 1px solid rgba(220, 202, 242, 0.2);
}

.hero-headline {
  font-size: 48px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  font-family: 'Inter', system-ui, sans-serif;
}

.hero-btn-primary {
  background: var(--blue-violet);
  color: white;
}

.hero-btn-primary:hover { background: #3a4be0; }

.hero-btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.hero-visual { position: relative; }

.hero-screenshot {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.screenshot-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--frost);
  border-bottom: 1px solid var(--border);
}

.screenshot-dots { display: flex; gap: 6px; }

.screenshot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}

.screenshot-content { display: flex; height: 340px; }

.screenshot-sidebar {
  width: 160px;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--fg-muted);
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
}

.sidebar-item-active {
  background: rgba(76, 92, 255, 0.1);
  color: var(--blue-violet);
  font-weight: 500;
}

.screenshot-main { flex: 1; padding: 20px; overflow: hidden; }

.screenshot-greeting {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.screenshot-date {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.screenshot-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.screenshot-card {
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.sc-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sc-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.sc-num-warn { color: #d97706; }
.sc-num-alert { color: #dc2626; }

.sc-sub { font-size: 11px; color: var(--fg-muted); }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 40px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--midnight);
  color: white;
}

.section-alt {
  background: var(--rose-beige);
}

.section-light {
  background: var(--white);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-violet);
  margin-bottom: 12px;
}

.section-label-light {
  color: rgba(255,255,255,0.5);
}

.section-headline {
  font-size: 36px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-headline-light { color: white; }

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 48px;
}

.section-sub-light {
  color: rgba(255,255,255,0.6);
}

/* ===== STATUS BADGES ===== */
.status-live { background: #22C55E; color: white; }
.status-dev { background: var(--blue-violet); color: white; }
.status-planned { background: #8B5CF6; color: white; }
.status-future { background: #6B7280; color: white; }
.status-review { background: #F59E0B; color: white; }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ===== OUTCOMES THAT MATTER ===== */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.outcome-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: box-shadow 0.2s;
}

.outcome-card:hover { box-shadow: 0 4px 16px rgba(27, 18, 48, 0.08); }

.outcome-stat {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-violet);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.outcome-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outcome-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.outcomes-evidence {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-violet);
  background: rgba(76, 92, 255, 0.08);
  border: 1px solid rgba(76, 92, 255, 0.2);
  padding: 8px 14px;
  border-radius: 100px;
}

/* ===== MODULES STRIP ===== */
.modules-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.modules-intro .section-sub {
  margin-bottom: 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.module-card:hover {
  box-shadow: 0 4px 20px rgba(27, 18, 48, 0.08);
}

.module-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(76, 92, 255, 0.12), rgba(220, 202, 242, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.module-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 6px;
}

.module-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.module-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
}

/* ===== MVP HUB ===== */
.mvp-intro {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 640px;
}

.mvp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.mvp-chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.mvp-status-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.mvp-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mvp-status-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mvp-status-count {
  font-size: 32px;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1;
}

/* ===== ROADMAP TABLE ===== */
.roadmap-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27, 18, 48, 0.05);
}

.roadmap-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 2px solid var(--border);
}

.roadmap-col {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.roadmap-col:last-child { border-right: none; }

.roadmap-col-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.roadmap-body { background: var(--frost); }

.roadmap-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.roadmap-row:last-child { border-bottom: none; }

.roadmap-cell {
  padding: 12px 24px;
  font-size: 14px;
  color: var(--fg);
  border-right: 1px solid var(--border);
}

.roadmap-cell:last-child { border-right: none; }
.roadmap-col-empty { color: var(--fg-muted); }

.roadmap-badge-live { background: #dcfce7; color: #15803d; }
.roadmap-badge-dev { background: rgba(76, 92, 255, 0.15); color: var(--blue-violet); }
.roadmap-badge-planned { background: #ede9fe; color: #6d28d9; }
.roadmap-badge-future { background: #f3f4f6; color: #6B7280; }

/* ===== STATUS LEGEND ===== */
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.legend-icon { font-size: 18px; }

/* ===== DASHBOARD MOCKUP ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dash-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27, 18, 48, 0.05);
  transition: box-shadow 0.2s;
}

.dash-card:hover { box-shadow: 0 4px 16px rgba(27, 18, 48, 0.1); }
.dash-card-warn { border-color: #fcd34d; background: #fffbeb; }
.dash-card-alert { border-color: #fca5a5; background: #fef2f2; }

.dash-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.dash-card-body { flex: 1; min-width: 0; }

.dash-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.dash-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
  line-height: 1.1;
}

.dash-card-meta { font-size: 12px; color: var(--fg-muted); }

.dash-card-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  align-self: flex-start;
}

.dash-card-badge-ok { background: #dcfce7; color: #15803d; }
.dash-card-badge-warn { background: #fef3c7; color: #92400e; }
.dash-card-badge-alert { background: #fee2e2; color: #b91c1c; }
.dash-card-badge-neutral { background: var(--frost); color: var(--fg-muted); }
.dash-card-badge-info { background: rgba(76, 92, 255, 0.1); color: var(--blue-violet); }

/* ===== PATIENT CHART ===== */
.chart-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 18, 48, 0.07);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--frost);
}

.chart-patient-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 6px;
}

.chart-patient-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.chart-dx-badge {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
}

.chart-status-active {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 100px;
}

.chart-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: 'Inter', system-ui, sans-serif;
}

.chart-tab:hover { color: var(--fg); }
.chart-tab-active { color: var(--blue-violet); border-bottom-color: var(--blue-violet); }

.chart-body { padding: 24px; }

.chart-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.chart-note-list, .chart-med-list, .chart-assess-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.chart-note-item {
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.chart-note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.chart-note-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-violet);
  background: rgba(76, 92, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.chart-note-date { font-size: 12px; color: var(--fg-muted); }

.chart-note-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.chart-note-summary {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.chart-note-sig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
}

.chart-note-locked { color: #15803d; }

.chart-med-item {
  padding: 14px 16px;
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.chart-med-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.chart-med-dose {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}

.chart-med-meta { font-size: 12px; color: var(--fg-muted); }

.chart-assess-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.chart-assess-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  min-width: 60px;
}

.chart-assess-score {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.chart-assess-severe { background: #fee2e2; color: #b91c1c; }
.chart-assess-moderate { background: #fef9c3; color: #a16207; }

.chart-assess-date {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: auto;
}

/* ===== PILOT PROGRAM ===== */
.pilot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pilot-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}

.pilot-who { margin-bottom: 28px; }

.pilot-who-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.pilot-who-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pilot-who-item {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pilot-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pilot-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.pilot-perk svg { color: #86efac; flex-shrink: 0; }

.pilot-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
}

.pilot-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--frost);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-violet);
  box-shadow: 0 0 0 3px rgba(76, 92, 255, 0.12);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-violet);
}

.checkbox-label {
  font-size: 14px;
  color: var(--fg);
}

.pilot-submit {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: white;
  background: var(--blue-violet);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
  width: 100%;
}

.pilot-submit:hover { background: #3a4be0; }

.pilot-success {
  text-align: center;
  padding: 40px 20px;
}

.pilot-success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.pilot-success-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.pilot-success-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== COMPLIANCE ===== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compliance-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: background 0.2s;
}

.compliance-card:hover { background: rgba(255,255,255,0.1); }

.compliance-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(76, 92, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.compliance-card-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.compliance-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 16px rgba(27, 18, 48, 0.08); }

.feature-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(76, 92, 255, 0.1), rgba(220, 202, 242, 0.2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-value-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.about-value-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.about-value-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--midnight);
  padding: 48px 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-trademark {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  max-width: 320px;
  line-height: 1.5;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== BILLING DASHBOARD ===== */
.billing-page {
  min-height: 100vh;
  background: var(--frost);
}

.billing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.billing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.billing-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.02em;
}

.billing-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.billing-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.billing-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.billing-stat-card-draft::before { background: #6B7280; }
.billing-stat-card-submitted::before { background: var(--blue-violet); }
.billing-stat-card-accepted::before { background: #22C55E; }
.billing-stat-card-denied::before { background: #EF4444; }
.billing-stat-card-paid::before { background: #10B981; }

.billing-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.billing-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.billing-stat-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.billing-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.billing-kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.billing-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.billing-kpi-body { flex: 1; }

.billing-kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.billing-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.billing-kpi-value-danger { color: #EF4444; }
.billing-kpi-value-good { color: #22C55E; }

.billing-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.billing-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.billing-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--fg-muted); color: var(--fg); }

.filter-btn.active {
  background: var(--blue-violet);
  border-color: var(--blue-violet);
  color: white;
}

.billing-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--frost);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.billing-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.billing-table tr:last-child td { border-bottom: none; }

.billing-table tr:hover td { background: var(--frost); }

.claim-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--fg-muted);
}

.claim-patient { font-weight: 500; }

.claim-date { color: var(--fg-muted); font-size: 13px; }

.claim-amount {
  font-weight: 600;
  font-size: 14px;
}

.claim-amount-zero { color: var(--fg-muted); }

.claim-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-draft { background: #f3f4f6; color: #6B7280; }
.status-submitted { background: rgba(76, 92, 255, 0.12); color: var(--blue-violet); }
.status-accepted { background: #dcfce7; color: #15803d; }
.status-denied { background: #fee2e2; color: #b91c1c; }
.status-paid { background: #d1fae5; color: #065f46; }

.claim-actions {
  display: flex;
  gap: 6px;
}

.claim-action-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}

.claim-action-btn:hover { background: var(--blue-violet); border-color: var(--blue-violet); color: white; }
.claim-action-btn.danger:hover { background: #EF4444; border-color: #EF4444; color: white; }

.billing-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
}

.billing-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.billing-empty-title { font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.billing-empty-body { font-size: 14px; }

/* Claim form modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 18, 48, 0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(27, 18, 48, 0.2);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 18px; font-weight: 600; color: var(--fg); }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--frost);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--fg-muted);
  transition: background 0.12s;
}

.modal-close:hover { background: var(--border); }

.modal-body { padding: 28px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form styles in billing */
.billing-form { display: flex; flex-direction: column; gap: 20px; }

.billing-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.billing-form-group { display: flex; flex-direction: column; gap: 6px; }

.billing-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.billing-form-hint {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.billing-form input,
.billing-form select,
.billing-form textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--frost);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.billing-form input:focus,
.billing-form select:focus,
.billing-form textarea:focus {
  border-color: var(--blue-violet);
  box-shadow: 0 0 0 3px rgba(76, 92, 255, 0.12);
  background: var(--white);
}

.billing-form select { cursor: pointer; }

.modal-btn-primary {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: white;
  background: var(--blue-violet);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-btn-primary:hover { background: #3a4be0; }

.modal-btn-secondary {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg-muted);
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
}

.modal-btn-secondary:hover { background: var(--border); color: var(--fg); }

/* Line items section */
.lines-section { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.lines-section-header {
  padding: 12px 16px;
  background: var(--frost);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lines-section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); }

.lines-table { width: 100%; border-collapse: collapse; }

.lines-table th {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  background: var(--frost);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.lines-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.lines-table tr:last-child td { border-bottom: none; }

.btn-add-line {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--blue-violet);
  background: rgba(76, 92, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-add-line:hover { background: rgba(76, 92, 255, 0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 38px; }
  .hero-visual { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-table { overflow-x: auto; }
  .roadmap-header, .roadmap-row { min-width: 600px; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .pilot-layout { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .pilot-who-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 30px; }
  .section-headline { font-size: 28px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mvp-status-grid { flex-direction: column; }
  .nav { padding: 0 24px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .modules-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  .legend-grid { flex-direction: column; gap: 16px; }
}