/* ============================================
   PawPulse Landing Page — Forest & Amber Theme
   ============================================ */

:root {
  --bg: #FEF9F0;
  --bg-alt: #F5EDD8;
  --fg: #1A2E1C;
  --fg-muted: #5A6B5C;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --primary: #2D7846;
  --primary-hover: #236638;
  --surface: #FFFFFF;
  --border: rgba(45, 120, 70, 0.15);
  --shadow: 0 4px 24px rgba(27, 61, 47, 0.08);
  --radius: 14px;
}

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

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

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(254, 249, 240, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}
.nav-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(45, 120, 70, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ——— HERO ——— */
.hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(45, 120, 70, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.headline-accent {
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ——— DASHBOARD CARD ——— */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.pet-info { flex: 1; }
.pet-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
}
.pet-breed {
  font-size: 12px;
  color: var(--fg-muted);
}
.health-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(45, 120, 70, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}
.score-num {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.score-label {
  font-size: 9px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.dashboard-vitals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.vital-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
}
.vital-icon { flex-shrink: 0; }
.vital-data { flex: 1; }
.vital-val {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.vital-key {
  font-size: 11px;
  color: var(--fg-muted);
}
.vital-trend { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.vital-trend.up svg { transform: translateY(-1px); }
.dashboard-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.dashboard-alert.clear {
  background: rgba(45, 120, 70, 0.06);
  border: 1px solid rgba(45, 120, 70, 0.2);
}
.alert-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.alert-sub {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.health-graph {}
.graph-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.graph-svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* Prediction banner */
.prediction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--fg-muted);
}
.prediction-banner strong { color: var(--accent-hover); font-weight: 600; }

/* ——— SECTION STYLES ——— */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(254, 249, 240, 0.5); }
.section-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.section-heading.light { color: #FEF9F0; }

/* ——— HOW IT WORKS ——— */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step-icon {
  margin-bottom: 16px;
  display: inline-block;
}
.step-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.step-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ——— FEATURES ——— */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature-wide { grid-column: span 2; }
.feature-visual-cat {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #F5EDD8 0%, #E8F5E9 100%);
}
.feature-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 120, 70, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.feature-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(45, 120, 70, 0.05);
  border-radius: 8px;
}
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ——— OUTCOMES ——— */
.outcomes-section {
  background: var(--fg);
  position: relative;
  overflow: hidden;
}
.outcomes-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(45,120,70,0.3), transparent),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(245,158,11,0.12), transparent);
}
.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  position: relative;
}
.outcomes-sub {
  font-size: 16px;
  color: rgba(254, 249, 240, 0.6);
  max-width: 480px;
  margin: 0 auto 56px;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.outcome-item {
  text-align: center;
}
.outcome-num {
  font-family: 'Sora', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.outcome-label {
  font-size: 14px;
  color: rgba(254, 249, 240, 0.55);
  max-width: 180px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ——— CLOSING ——— */
.closing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.closing-inner {
  max-width: 620px;
  margin: 0 auto;
}
.closing-paw {
  margin-bottom: 32px;
  display: inline-block;
}
.closing-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.closing-body {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ——— FOOTER ——— */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 40px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links {
    gap: 32px;
  }
  .nav-pill { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .section-heading { font-size: 26px; }
  .outcome-num { font-size: 40px; }
  .closing-heading { font-size: 26px; }
  .hero-devices { flex-direction: column; }
}