/* === TOKENS === */
:root {
  --bg: #FDF8F3;
  --bg-alt: #F5EDE3;
  --fg: #1A1614;
  --fg-muted: #6B5E54;
  --accent: #C8783A;
  --accent-warm: #E8C4A0;
  --accent-dark: #A85F24;
  --risk-high: #D94F3D;
  --risk-mid: #C8783A;
  --risk-low: #5A9E6F;
  --surface: #FFFFFF;
  --border: #E8DDD2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --max-width: 1100px;
  --section-pad: var(--space-3xl) var(--space-lg);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: var(--space-xl);
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  max-width: 16ch;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === PREDICTOR WIDGET === */
.predictor-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(200, 120, 58, 0.08), 0 1px 8px rgba(0,0,0,0.04);
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.widget-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.widget-badge {
  background: var(--risk-high);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.client-list { padding: 0.5rem 0; }
.client-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.client-row:last-child { border-bottom: none; }
.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.client-info { flex: 1; min-width: 0; }
.client-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}
.client-service {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.risk-score {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.risk-high { background: rgba(217, 79, 61, 0.12); color: var(--risk-high); }
.risk-mid  { background: rgba(200, 120, 58, 0.15); color: var(--risk-mid); }
.risk-low  { background: rgba(90, 158, 111, 0.15); color: var(--risk-low); }

.widget-footer {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.outreach-preview { }
.outreach-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.outreach-msg {
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.5;
  font-style: italic;
  background: white;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* === SECTIONS === */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: block;
}

/* === HOW IT WORKS === */
.how-it-works { background: var(--bg-alt); }
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.step-card { }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === RETENTION === */
.retention-section { background: var(--fg); color: white; }
.retention-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.retention-section .section-label { color: var(--accent-warm); }
.retention-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.retention-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.retention-body em { color: var(--accent-warm); font-style: normal; font-weight: 500; }
.retention-right { }
.retention-stat-card { display: flex; flex-direction: column; gap: var(--space-md); }
.rsc-inner {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.rsc-big {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.rsc-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* === PRICING === */
.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  max-width: 560px;
}
.pricing-header { margin-bottom: var(--space-lg); }
.pricing-tier {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.pricing-price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.5rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}
.price-period { font-size: 1rem; color: var(--fg-muted); }
.pricing-tagline { font-size: 0.9rem; color: var(--fg-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: var(--space-lg); }
.pf-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--fg); }
.pricing-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}
.pricing-vs { margin-top: var(--space-lg); }
.pricing-vs p { font-size: 0.82rem; color: var(--fg-muted); }

/* === CLOSING === */
.closing-section { background: var(--bg-alt); }
.closing-content { max-width: 700px; }
.closing-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--fg);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.closing-statement {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
}
.closing-statement p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}
.footer-tagline { font-size: 0.78rem; color: var(--fg-muted); }
.footer-note { font-size: 0.78rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner,
  .retention-content { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
  .hero { padding-bottom: var(--space-2xl); }
  .nav-tagline { display: none; }
  .site-nav { padding: 1rem; }
  .pricing-card { padding: var(--space-lg); }
  .footer-inner { flex-direction: column; gap: var(--space-md); text-align: center; }
}

@media (max-width: 480px) {
  :root { --space-lg: 1rem; --space-xl: 1.5rem; --space-2xl: 2.5rem; --space-3xl: 4rem; }
  .hero-stat-row { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .stat-divider { display: none; }
}