/* Medlitics landing — redesign preview (aligned with patient/doctor app tokens) */
:root {
  --primary: #e53535;
  --primary-light: #ffe8e8;
  --primary-dark: #c12a2a;
  --secondary: #1aace5;
  --secondary-light: #e8f6fd;
  --secondary-dark: #1590c4;
  --success: #1d9e75;
  --ink: #1a1a1a;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #ababab;
  --surface: #ffffff;
  --surface2: #f8f8f8;
  --border: #e8e8e8;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --compare-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-compare-bar { padding-top: var(--compare-h); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Compare bar */
.compare-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: var(--compare-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px;
  font-size: 13px;
  background: #0f172a;
  color: #e2e8f0;
  border-bottom: 1px solid #334155;
}
.compare-bar--preview { background: linear-gradient(90deg, #0f172a, #1e3a5f); }
.compare-bar a {
  color: #fff;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
}
.compare-bar a.compare-link-muted {
  background: transparent;
  border: 1px solid #64748b;
  color: #cbd5e1;
}
.compare-bar button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.compare-bar[hidden] { display: none; }

/* Nav */
.nav {
  position: sticky;
  top: var(--compare-h, 0);
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav__logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
}
.nav__links a:hover { color: var(--text); background: var(--surface2); }
.nav__cta {
  background: var(--primary) !important;
  color: #fff !important;
}
.nav__cta:hover { background: var(--primary-dark) !important; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(229, 53, 53, 0.2); }
.btn--secondary { background: var(--secondary); color: #fff; }
.btn--outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--ghost { background: var(--secondary-light); color: var(--secondary-dark); }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 48px);
  background: linear-gradient(180deg, var(--secondary-light) 0%, var(--surface) 55%);
  overflow: hidden;
}
.hero__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 20px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--secondary); }
.hero__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__note { font-size: 13px; color: var(--text-muted); }
.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.vital {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
}
.vital__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.vital__val { font-size: 1.35rem; font-weight: 700; margin-top: 4px; }
.vital--ok .vital__val { color: var(--success); }
.vital--warn .vital__val { color: #f59e0b; }
.alert-pill {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid rgba(229, 53, 53, 0.15);
  font-size: 13px;
}
.alert-pill strong { display: block; color: var(--primary-dark); }

/* Sections */
.section {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 48px);
}
.section--muted { background: var(--surface2); }
.section__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section__sub { color: var(--text-secondary); font-size: 1rem; }

/* Audience cards */
.audience-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.audience-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.audience-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.audience-card--patient .audience-card__icon { background: var(--primary-light); }
.audience-card--doctor .audience-card__icon { background: var(--secondary-light); }
.audience-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.audience-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.audience-card span { font-size: 13px; font-weight: 600; color: var(--secondary-dark); }

/* Bento features */
.bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.bento__item {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.bento__item--wide { grid-column: span 2; }
@media (max-width: 900px) { .bento__item--wide { grid-column: span 1; } }
.bento__item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.bento__item p { font-size: 14px; color: var(--text-secondary); }
.bento__tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text-secondary);
}

/* Steps */
.steps {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: center;
  padding: 20px 12px;
}
.step__num {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  padding: 24px 16px;
  text-align: center;
}
.stat__val { font-size: 1.75rem; font-weight: 800; color: var(--secondary); }
.stat__lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* CTA */
.cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--secondary-light), var(--surface));
  border: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--text-secondary); margin-bottom: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.footer {
  padding: 48px clamp(16px, 5vw, 48px) 32px;
  background: var(--ink);
  color: #94a3b8;
  font-size: 14px;
}
.footer__grid {
  max-width: 1120px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer__bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* Pricing */
.pricing-hero { padding-top: 32px; text-align: center; }
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface2);
  border-radius: 999px;
  border: 1px solid var(--border);
  margin: 24px 0 40px;
}
.billing-toggle button {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.plans {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .plans { grid-template-columns: 1fr; } }
.plan {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.plan--featured {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--secondary), var(--shadow-lg);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.plan__price { font-size: 2.5rem; font-weight: 800; margin: 16px 0 4px; }
.plan__price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan ul { list-style: none; margin: 20px 0; }
.plan li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.plan .btn { width: 100%; margin-top: 8px; }
