/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* Variables */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --teal: #0d3d3d;
  --teal-mid: #1a6b6b;
  --teal-light: #e8f4f4;
  --amber: #c97b1a;
  --amber-light: #fef3e2;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #888888;
  --border: #e8e2d8;
  --shadow: 0 4px 24px rgba(13, 61, 61, 0.08);
  --shadow-lg: 0 12px 48px rgba(13, 61, 61, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
}

/* Section base */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, var(--bg) 0%, #f0ece2 100%);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 64px);
  color: var(--teal);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  max-width: 80px;
  line-height: 1.4;
}

/* Panel card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--teal);
  color: white;
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
}

.panel-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  background: var(--amber);
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
}

.panel-patients {
  padding: 8px 0;
}

.patient-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}

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

.patient-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--teal-light);
  color: var(--teal);
}

.patient-lapsed .patient-avatar {
  background: #fef3e2;
  color: var(--amber);
}

.patient-info {
  flex: 1;
  min-width: 0;
}

.patient-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.patient-reason {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.patient-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-done { background: #e8f4f4; color: #0d5f5f; }
.status-active { background: var(--amber-light); color: var(--amber); }
.status-pending { background: #f0ece2; color: #8a6a2a; }

.panel-footer {
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.panel-count {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Panel section */
.panel-section {
  padding: 80px 0;
  background: var(--surface);
}

.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 40px 0 48px;
}

.process-step {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 10px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.process-arrow {
  width: 24px;
  height: 24px;
  margin-top: 24px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3d3d' stroke-width='1.5'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.impact-bar {
  display: flex;
  align-items: center;
  background: var(--teal);
  border-radius: 12px;
  padding: 28px 36px;
}

.impact-item {
  flex: 1;
  text-align: center;
}

.impact-metric {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.impact-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.impact-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  margin: 0 24px;
}

/* Features */
.features-section {
  padding: 80px 0;
  background: var(--bg);
}

.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 480px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 28px 28px 32px;
}

.feature-icon {
  color: var(--teal);
  margin-bottom: 14px;
}

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

.feature-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Manifesto */
.manifesto {
  background: var(--teal);
  padding: 80px 0;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.manifesto-rule {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 40px;
  max-width: 120px;
}

.manifesto-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: white;
  line-height: 1.5;
  margin-bottom: 40px;
}

.manifesto-body {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* Closing */
.closing {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #f0ece2 100%);
}

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

.closing-headline {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--teal);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.closing-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.closing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.closing-stat-block {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
}

.closing-big {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.closing-small {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  max-width: 160px;
  margin: 0 auto;
}

.closing-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

.closing-tagline {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--teal);
  padding: 32px 0;
}

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

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.footer-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: 12px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-arrow { display: none; }
  .impact-bar {
    flex-direction: column;
    gap: 20px;
  }
  .impact-divider {
    width: 60px;
    height: 1px;
    margin: 0 auto;
  }
  .closing-visual {
    flex-direction: column;
  }
  .closing-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .panel-card { max-width: 100%; }
  .process-flow { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}