/* My Medi Mate landing page. Brand: white, teal, blood red; greys only for text and borders. */
:root {
  --teal: #0f8b8d;
  --teal-dark: #0a6668;
  --teal-light: #e6f4f4;
  --logo-blue: #014ebf;
  --blood: #b3001b;
  --blood-dark: #8a0015;
  --blood-light: #fbe9ec;
  --ink: #1a1f24;
  --muted: #5c6670;
  --line: #dde3e8;
  --surface: #f7f9fa;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Telugu", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--teal-dark); }

/* Hero: soft teal header gradient */
.hero { background-color: var(--teal-light); background-image: linear-gradient(120deg, #e6f4f4 0%, #f4fafa 45%, #ffffff 65%, #e9effa 100%); }
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blood); }
h1 { margin: 12px 0 0; font-size: clamp(32px, 5vw, 50px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 16px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.emergency { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--blood); }
.hero-card { justify-self: center; width: min(360px, 100%); border-radius: 24px; padding: 28px; color: #fff; text-align: center;
  background-color: var(--teal); background-image: linear-gradient(135deg, #0f8b8d 0%, #0a6668 60%, #014ebf 100%); box-shadow: 0 20px 50px rgba(10, 102, 104, 0.25); }
.hero-card img { width: 180px; background: #fff; border-radius: 18px; padding: 12px; }
.hero-card h2 { margin: 18px 0 6px; font-size: 20px; }
.hero-card p { margin: 0; font-size: 14px; opacity: 0.9; }
.badge { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 13px; font-weight: 600; }

/* Sections */
section { padding: 56px 0; }
h2.section { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.sub { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.grid { display: grid; gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.card.blood { border-color: var(--blood); background: var(--blood-light); }
.card.blood h3 { color: var(--blood-dark); }
.surface { background: var(--surface); }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); font-size: 14px; }
.split { display: grid; gap: 16px; }
.cta { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.cta h2 { margin: 0; font-size: 22px; }
.cta p { margin: 8px 0 0; color: var(--muted); }
.cta .btn { margin-top: 16px; }
.contact { display: grid; gap: 12px; margin-top: 20px; }
.contact a { font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

/* Legal pages */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: 34px; }
.doc h2 { margin-top: 32px; font-size: 20px; }
.doc p, .doc li { color: #2b3238; }
.doc .updated { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (min-width: 720px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .split, .contact { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .nav { gap: 14px; font-size: 14px; }
  .brand { font-size: 16px; }
}
