/* ─── Variables ─── */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EDEAE3;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --accent: #1B4332;
  --accent-mid: #2D6A4F;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --green-light: #D1FAE5;
  --red-light: #FEE2E2;
  --border: #D8D4CC;
  --radius: 6px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── Reset & Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.nav-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 72px 48px 80px;
  min-height: 580px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.65;
}

/* ─── Dashboard Sketch ─── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-sketch {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.dash-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.dash-pill.active {
  background: var(--green-light);
  color: #065F46;
}
.dash-patients {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.patient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
}
.patient-compliant { background: #F8FDF9; }
.patient-warning { background: #FFFBEB; }
.patient-alert { background: #FEF2F2; }
.patient-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.av-green { background: #D1FAE5; color: #065F46; }
.av-amber { background: #FEF3C7; color: #92400E; }
.av-red { background: #FEE2E2; color: #991B1B; }
.patient-info { flex: 1; }
.patient-name { font-size: 12px; font-weight: 600; color: var(--fg); }
.patient-proto { font-size: 10px; color: var(--fg-muted); margin-top: 1px; }
.patient-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.dash-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-bar-label { font-size: 10px; color: var(--fg-muted); width: 120px; }
.dash-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.dash-bar-pct { font-size: 10px; font-weight: 700; color: var(--accent); width: 28px; text-align: right; }

/* ─── Hero Shapes ─── */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shape-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 40% 40%, rgba(27,67,50,0.08) 0%, transparent 70%);
  top: -60px;
  right: -80px;
  z-index: 1;
}
.shape-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  bottom: -40px;
  left: 40%;
  z-index: 1;
}

/* ─── Surfaces ─── */
.surfaces {
  padding: 72px 48px;
  border-bottom: 1px solid var(--border);
}
.surfaces-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
}
.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.surface-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.surface-kiosk::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.surface-app::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber);
}
.surface-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-mid);
}
.surface-icon {
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.surface-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 10px;
}
.surface-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── Gap Section ─── */
.gap-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px;
  background: var(--accent);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gap-content { display: flex; flex-direction: column; gap: 20px; }
.gap-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.gap-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.gap-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.gap-body p + p { margin-top: 12px; }
.gap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.gap-stat { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 16px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ─── Timeline ─── */
.gap-visual { display: flex; align-items: center; padding-top: 20px; }
.timeline-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  height: 180px;
}
.timeline-office, .timeline-fail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 12px;
  gap: 8px;
}
.timeline-office { border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.timeline-fail { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); }
.tl-icon { color: rgba(255,255,255,0.6); }
.tl-icon-fail { color: #FCA5A5; }
.tl-label { font-size: 11px; font-weight: 700; color: #fff; text-align: center; }
.tl-desc { font-size: 10px; color: rgba(255,255,255,0.45); text-align: center; }
.timeline-gap { flex: 1; display: flex; align-items: stretch; }
.gap-zone {
  flex: 1;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  gap: 8px;
}
.gap-zone-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}
.gap-event {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}
.event-miss { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.event-lapse { background: rgba(217,119,6,0.15); color: #FCD34D; }
.event-pain { background: rgba(239,68,68,0.15); color: #FCA5A5; }

/* ─── Manifesto ─── */
.manifesto {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.manifesto-attr {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.manifesto-rule {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 40px;
}
.manifesto-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.detail-head {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.detail-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── Closing ─── */
.closing {
  padding: 80px 48px;
  background: var(--fg);
  color: #fff;
}
.closing-inner { max-width: 640px; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-sig {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sig-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.sig-divider { color: rgba(255,255,255,0.3); font-size: 18px; }
.sig-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ─── Footer ─── */
.footer {
  padding: 40px 48px;
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-logo {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex: 1;
}
.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 32px 64px; gap: 40px; }
  .hero-right { display: none; }
  .surfaces-grid { grid-template-columns: 1fr; }
  .gap-section { grid-template-columns: 1fr; gap: 40px; }
  .gap-stats { grid-template-columns: 1fr; }
  .gap-visual { display: none; }
  .manifesto-details { grid-template-columns: 1fr; }
  .nav { padding: 16px 24px; }
  .surfaces, .gap-section, .manifesto, .closing { padding: 48px 24px; }
  .footer { padding: 32px 24px; }
}