/* === BASE === */
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --fg: #111111;
  --fg-muted: #6B6B6B;
  --accent: #0A3D2E;
  --accent-light: #E8F0ED;
  --amber: #D4920A;
  --amber-light: #FEF3D6;
  --red: #B84040;
  --red-light: #FDECEC;
  --border: #E2DED6;
  --radius: 10px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* === HERO === */
.hero {
  padding: 100px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
}

/* Account Card Stack */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.account-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-healthy { border-left: 3px solid #2D7A4F; }
.card-atrisk { border-left: 3px solid #D4920A; }
.card-critical { border-left: 3px solid #B84040; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
}

.card-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 100px;
}

.card-badge.healthy { background: #E8F6EE; color: #2D7A4F; }
.card-badge.atrisk { background: var(--amber-light); color: var(--amber); }
.card-badge.critical { background: var(--red-light); color: var(--red); }

.card-metrics {
  display: flex;
  gap: 24px;
}

.card-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
}

.metric-label {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.action-tag {
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 500;
}

/* === METRICS === */
.metrics-section {
  background: var(--accent);
  padding: 56px 40px;
}

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

.metric-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 48px;
}

.metric-block:first-child { padding-left: 0; }
.metric-block:last-child { padding-right: 0; }

.metric-big {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.metric-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.metric-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

/* === SECTION LABELS === */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.howitworks .section-headline {
  margin-bottom: 64px;
}

.step-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
  gap: 0;
}

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

.step-num {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.step-connector::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--border);
}

/* === SIGNALS === */
.signals-section {
  padding: 80px 40px 100px;
  background: var(--surface);
}

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

.signals-inner .section-headline {
  margin-bottom: 56px;
}

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

.signal-card {
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  transition: background 0.2s ease;
}

.signal-card:hover {
  background: var(--accent-light);
}

.signal-icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.signal-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.signal-body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.closing-inner {
  max-width: 720px;
}

.closing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 20px;
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.closing-body {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.closing-body:last-child { margin-bottom: 0; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}

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

.wordmark-footer {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .step-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-connector { display: none; }
  .signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-inner {
    flex-direction: column;
    gap: 32px;
  }
  .metric-block { padding: 0; }
  .metric-divider { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 24px 48px; }
  .howitworks { padding: 64px 24px; }
  .signals-section { padding: 64px 24px; }
  .closing-section { padding: 64px 24px; }
  .metrics-section { padding: 48px 24px; }
  .signals-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .nav-inner { padding: 16px 24px; }
  .hero-headline { font-size: 1.75rem; }
  .closing-headline { font-size: 1.75rem; }
}