/* MindBridge Behavioral Health EHR Theme */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F5F0E8;
  --bg-dark: #0F1A26;
  --fg: #1A1A2E;
  --fg-muted: #5C5C6E;
  --accent: #0F4C5C;
  --accent-light: #E8F4F6;
  --accent-warm: #E36414;
  --accent-warm-light: #FFF0E8;
  --border: #E2DDD5;
  --white: #FFFFFF;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  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(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

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

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  line-height: 1.12;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
}

/* Hero Visual - Card Stack */
.hero-visual {
  position: relative;
  height: 420px;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.stack-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(15, 26, 46, 0.08);
}

.stack-card-1 {
  top: 0;
  right: 20px;
  width: 85%;
  z-index: 3;
}

.stack-card-2 {
  top: 70px;
  right: 0;
  width: 80%;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), #1a6b7c);
  border-color: transparent;
  color: white;
}

.stack-card-3 {
  top: 140px;
  right: 20px;
  width: 75%;
  z-index: 1;
}

.stack-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.stack-card-2 .stack-label {
  color: rgba(255,255,255,0.6);
}

.stack-preview {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
}

.stack-card-2 .stack-preview {
  color: white;
}

.stack-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
}

.stack-badge-green {
  background: rgba(255,255,255,0.15);
  color: white;
}

.stack-badge-teal {
  background: var(--accent-light);
  color: var(--accent);
}

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

.section-light { background: var(--white); }
.section-sand { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }

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

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

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

.section-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 620px;
  letter-spacing: -0.01em;
  font-weight: 400;
}

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

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.feature-item p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-row-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-row h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

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

/* Rx Card */
.rx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 26, 46, 0.08);
}

.rx-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rx-patient {
  font-weight: 600;
  font-size: 15px;
}

.rx-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.rx-status-active {
  background: #E8F5E9;
  color: #2E7D32;
}

.rx-med {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rx-med:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rx-med-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

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

.rx-med-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.rx-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.rx-badge-ok {
  background: #E8F5E9;
  color: #2E7D32;
}

.rx-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rx-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

/* Engagement Grid */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.engagement-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
}

.engagement-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
  font-weight: 400;
}

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

/* Compliance Layout */
.compliance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.compliance-intro {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.compliance-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compliance-badge {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.compliance-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.compliance-badge-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Billing Card */
.billing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(15, 26, 46, 0.08);
}

.billing-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.billing-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.billing-item:last-child {
  border-bottom: none;
}

.billing-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.billing-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Closing Section */
.closing-section {
  background: var(--accent);
  padding: 100px 40px;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.closing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  line-height: 1.15;
  color: white;
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.closing-body {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 20px;
}

.closing-statement {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 40px;
}

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

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: white;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px;
  }
  .hero-headline { font-size: 38px; }
  .hero-visual { display: none; }
  .split-layout,
  .compliance-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 24px; }
  .closing-section { padding: 60px 24px; }
  .closing-headline { font-size: 32px; }
  .compliance-badges { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 30px; }
  .section-headline { font-size: 28px; }
  .nav { padding: 0 24px; }
  .nav-tagline { display: none; }
}