/* ============================================
   KAIROS — Landing Page Stylesheet
   ============================================ */

:root {
  --bg: #F7F7F4;
  --bg-alt: #EFEFEF;
  --fg: #0A1628;
  --fg-muted: #5A6478;
  --accent: #0DBE9B;
  --accent-dark: #0AAB85;
  --navy: #0A1628;
  --white: #FFFFFF;
  --border: #E2E4E9;
  --card-bg: #FFFFFF;
  --code-bg: #F0F4F8;
  --green-light: #E8F8F3;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

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

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-badges {
  display: flex;
  gap: 8px;
}

.nav-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--accent-dark);
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 32px 64px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

/* Call Widget */
.call-widget {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.25);
}

.call-widget-header {
  background: #142440;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.call-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.call-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.call-widget-body {
  padding: 20px 22px;
}

.call-patient {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.call-meta {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}

.call-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 14px 0;
}

.call-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.call-result svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.call-tagline {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Credentials Row */
.hero-credentials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.credential {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
}

/* ===== PROOF STRIP ===== */
.proof-strip {
  background: var(--navy);
  padding: 28px 32px;
}

.proof-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.proof-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.proof-logo {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 96px 32px;
  background: var(--white);
}

.problem-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.problem-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.problem h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.2;
}

.problem-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pstat {
  padding: 28px 24px;
  background: var(--bg);
  text-align: center;
}

.pstat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.pstat-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== FEATURES ===== */
.features {
  padding: 96px 32px;
  background: var(--bg);
}

.features-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.features-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.features-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.features h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.features-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--green-light);
}

.feature-icon {
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== INTEGRATIONS ===== */
.integrations {
  padding: 96px 32px;
  background: var(--navy);
}

.integrations-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.integrations-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.integrations h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: white;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  text-align: left;
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

.pms-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pms-row > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.pms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pm {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: rgba(255,255,255,0.6);
}

/* ===== SECURITY ===== */
.security {
  padding: 96px 32px;
  background: var(--white);
}

.security-inner {
  max-width: 900px;
  margin: 0 auto;
}

.security-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
}

.security-icon {
  margin-bottom: 20px;
}

.security-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 40px;
}

.security-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.security-item strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.security-item span {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 96px 32px;
  background: var(--bg);
}

.testimonials-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.testimonials-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.testimonials h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 48px;
  text-align: center;
}

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

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.testimonial blockquote {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.7;
  font-style: normal;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== CLOSING ===== */
.closing {
  padding: 96px 32px 80px;
  background: var(--white);
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 24px;
}

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

.closing-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-pill {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--green-light);
  color: var(--accent-dark);
  border-radius: 24px;
  border: 1px solid var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 32px;
  background: var(--navy);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer-note {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
  flex: 1;
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.footer-badges span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .security-items {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 20px 48px;
  }

  .nav-inner {
    padding: 12px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .problem-stats {
    grid-template-columns: 1fr;
  }

  .proof-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .security-card {
    padding: 36px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}