/* ============================
   WellMatched Landing Page
   ============================ */

/* Fonts */
:root {
  --sage: #7BA687;
  --sage-dark: #5E8C6A;
  --sage-light: #A8C8AB;
  --sage-pale: #E8F0E9;
  --cream: #F7F5F0;
  --cream-deep: #EDE9E1;
  --charcoal: #2D2D2D;
  --charcoal-light: #4A4A4A;
  --warm-text: #3A3530;
  --terracotta: #C4715B;
  --terracotta-light: #E8A090;
  --gold: #C9A84C;
  --gold-light: #E8D4A0;
  --off-white: #FDFCFA;

  --font-display: 'Fraunces', 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: 3.5rem;
  --space-2xl: 5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--warm-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection { background: var(--sage-pale); color: var(--charcoal); }

/* ============================
   HERO
   ============================ */
.hero {
  background: var(--cream);
  padding: var(--space-2xl) var(--space-lg);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, var(--sage-pale) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, var(--gold-light) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-md);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--sage-dark);
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.hero-stat { }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  line-height: 1.4;
  max-width: 140px;
  display: block;
}
.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-deep);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
}
.hv-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.hv-card--main {
  margin-bottom: 16px;
  border: 1px solid var(--sage-pale);
  position: relative;
}
.hv-icon {
  width: 44px;
  height: 44px;
  background: var(--sage-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hv-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 10px;
}
.hv-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--sage-pale);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}
.tag--secondary { background: var(--gold-light); color: #7A5F1A; }

/* Feed card */
.hv-card--feed {
  border: 1px solid var(--cream-deep);
}
.feed-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 14px;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream);
}
.feed-item:last-child { border-bottom: none; }
.feed-thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}
.feed-thumb--diabetes { background: linear-gradient(135deg, #C8E6C9, #A5D6A7); }
.feed-thumb--pcos { background: linear-gradient(135deg, #F8BBD9, #F48FB1); }
.feed-thumb--general { background: linear-gradient(135deg, #FFE0B2, #FFCC80); }
.feed-title { font-size: 0.82rem; font-weight: 500; color: var(--charcoal); line-height: 1.3; }
.feed-meta { font-size: 0.72rem; color: var(--charcoal-light); margin-top: 2px; }

/* Community card */
.hv-card--community {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--sage);
  color: white;
  border: none;
  min-width: 200px;
}
.community-header { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
.community-avatars { display: flex; align-items: center; gap: 0; margin-bottom: 8px; }
.av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sage); margin-left: -8px; }
.av:first-child { margin-left: 0; }
.av-1 { background: #C8E6C9; }
.av-2 { background: #F8BBD9; }
.av-3 { background: #BBDEFB; }
.av-4 { background: #FFE0B2; }
.av-count { font-size: 0.75rem; font-weight: 600; color: white; margin-left: 8px; opacity: 0.9; }
.community-sub { font-size: 0.72rem; opacity: 0.8; }

/* ============================
   SHARED
   ============================ */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

/* ============================
   PROBLEM
   ============================ */
.problem {
  background: var(--off-white);
  padding: var(--space-2xl) var(--space-lg);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 600px;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.problem-sub {
  font-size: 1rem;
  color: var(--charcoal-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.problem-card {
  background: var(--cream);
  border-radius: 14px;
  padding: var(--space-lg);
  border: 1px solid var(--cream-deep);
}
.pc-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}
.pc-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.pc-body {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* ============================
   HOW
   ============================ */
.how {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--space-lg);
}
.how .section-label { color: var(--sage-light); }
.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: white;
  max-width: 540px;
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: var(--space-lg);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.step-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(123,166,135,0.5), rgba(123,166,135,0.2));
  margin-top: 48px;
  flex-shrink: 0;
}

/* ============================
   CONDITIONS
   ============================ */
.conditions {
  background: var(--cream);
  padding: var(--space-2xl) var(--space-lg);
}
.conditions-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.conditions-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 540px;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.conditions-sub {
  font-size: 1rem;
  color: var(--charcoal-light);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.cond-item {
  background: white;
  border-radius: 14px;
  padding: var(--space-lg);
  border: 1px solid var(--cream-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cond-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cond-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.cond-item--diabetes .cond-icon { background: #E8F5E9; color: #388E3C; }
.cond-item--pcos .cond-icon { background: #FCE4EC; color: #C2185B; }
.cond-item--heart .cond-icon { background: #FFEBEE; color: #C62828; }
.cond-item--anemia .cond-icon { background: #FFF3E0; color: #E65100; }
.cond-item--obesity .cond-icon { background: #E3F2FD; color: #1565C0; }
.cond-item--thyroid .cond-icon { background: #F3E5F5; color: #6A1B9A; }
.cond-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.cond-desc {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* ============================
   TRUST
   ============================ */
.trust {
  background: var(--sage-pale);
  padding: var(--space-2xl) var(--space-lg);
}
.trust-inner { max-width: 1200px; margin: 0 auto; }
.trust-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.trust-item { }
.trust-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.trust-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.trust-body {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* ============================
   CLOSING
   ============================ */
.closing {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--sage);
  line-height: 0.5;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}
.closing-blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: white;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.closing-name {
  font-weight: 600;
  color: var(--sage-light);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.closing-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--cream-deep);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  max-width: 260px;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: var(--space-xl);
}
.footer-link-group { }
.flg-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
}
.fl-link {
  display: block;
  font-size: 0.88rem;
  color: var(--charcoal-light);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.fl-link:hover { color: var(--sage-dark); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--cream-deep);
  padding-top: var(--space-md);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--charcoal-light);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hv-card--community { display: none; }
  .problem-grid,
  .condition-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: var(--space-md); }
  .step-connector { width: 40px; height: 2px; margin: 0 auto; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .hero { padding: var(--space-xl) var(--space-md); }
  .hv-card--community { display: none; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .hero-stat-divider { display: none; }
}
