:root {
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: #7eb6f0;
  --sky: #d7ecff;
  --sky-2: #eaf4ff;
  --page: #c5dff8;
  --navy: #1a2744;
  --ink: #1c2948;
  --muted: #7a8499;
  --line: #e8eef6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(37, 76, 145, 0.12);
  --shadow-btn: 0 12px 28px rgba(59, 130, 246, 0.32);
  --radius: 28px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.page-shell {
  padding: 0;
  width: 100%;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

/* Header */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 6vw, 96px) 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--navy);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav a {
  color: #5c6780;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav a:hover,
.nav a.is-active,
.header-actions .link-btn:hover {
  color: var(--blue);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #f4f8ff;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.38);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 0.98rem;
}

.btn-ghost {
  background: #eef5ff;
  color: var(--blue);
  padding: 10px 18px;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  padding: 14px 22px;
  box-shadow: 0 8px 20px rgba(20, 50, 110, 0.08);
}

.btn-block {
  width: 100%;
  padding: 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  padding: 18px clamp(20px, 4vw, 48px) 0 clamp(20px, 6vw, 96px);
  min-height: 680px;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding-bottom: 130px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-icon {
  width: 18px;
  height: 18px;
  color: var(--blue-soft);
}

.eyebrow-icon svg,
.stat-icon svg,
.icon-wrap svg,
.deco svg {
  width: 100%;
  height: 100%;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-visual {
  position: relative;
  min-height: 680px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
}

.blobs {
  position: absolute;
  inset: -20px -40px 40px -80px;
  pointer-events: none;
  opacity: 0.55;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-a {
  width: 520px;
  height: 460px;
  right: -30px;
  top: 36px;
  background: #8ec4f4;
  border-radius: 46% 54% 48% 52% / 42% 38% 62% 58%;
}

.blob-b {
  width: 430px;
  height: 430px;
  right: 70px;
  top: 10px;
  background: #cfe6fb;
  border-radius: 58% 42% 39% 61% / 46% 52% 48% 54%;
}

.blob-c {
  width: 360px;
  height: 320px;
  right: -90px;
  top: 90px;
  background: #b7d8f7;
  border-radius: 40% 60% 55% 45% / 48% 40% 60% 52%;
}

.blob-d {
  width: 280px;
  height: 240px;
  left: 20px;
  top: 80px;
  background: #e7f3ff;
  border-radius: 62% 38% 47% 53% / 44% 56% 44% 56%;
}

.blob-e {
  width: 180px;
  height: 180px;
  right: 40px;
  bottom: 90px;
  background: #67aeee;
  border-radius: 48% 52% 60% 40% / 55% 45% 55% 45%;
  opacity: 0.55;
}

.hero-doctor {
  position: relative;
  z-index: 2;
  width: min(640px, 122%);
  height: 640px;
  object-fit: contain;
  object-position: 62% bottom;
  transform: translateX(28px);
  filter: drop-shadow(0 18px 28px rgba(70, 130, 190, 0.12));
  animation: doctorDrift 8s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 8%;
  right: -8%;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;
}

.deco {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.deco-kit {
  top: 58px;
  left: 18%;
}

.deco-spark {
  top: 92px;
  right: 18%;
  width: 22px;
  height: 22px;
}

.deco-plus {
  bottom: 210px;
  right: 6%;
  width: 26px;
  height: 26px;
}

.float-card {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(47, 92, 160, 0.14);
  animation: floatY 5.5s ease-in-out infinite;
}

.card-doctor {
  left: -2%;
  bottom: 168px;
  width: 300px;
  padding: 12px 12px 10px;
  animation-delay: 0.4s;
}

.card-doctor-top {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 4px 4px 10px;
}

.card-doctor-top img,
.msg-avatar img,
.doctor-card img,
blockquote footer img,
.article-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.card-doctor-top h3,
.card-message h3,
.doctor-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-doctor-top p,
.card-message p,
.doctor-card p {
  color: var(--muted);
  font-size: 0.75rem;
}

.verify {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.card-appt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 9px 10px;
  box-shadow: 0 8px 18px rgba(80, 120, 180, 0.08);
  color: #5f6b82;
  font-size: 0.72rem;
  font-weight: 600;
}

.card-appt svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mini-arrow {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mini-arrow svg {
  width: 12px;
  height: 12px;
}

.card-message {
  right: 2%;
  top: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  min-width: 220px;
}

.msg-avatar {
  position: relative;
}

.online {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* Stats */
.stats {
  position: relative;
  z-index: 6;
  margin: -72px clamp(20px, 6vw, 96px) 8px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(50, 90, 150, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 12px 30px;
}

.stat {
  text-align: center;
  padding: 8px 10px;
  position: relative;
  transition: transform 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: #edf2f8;
}

.stat-icon {
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  color: var(--blue);
  display: block;
}

.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
}

.stat span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Shared sections */
.section {
  padding: 84px clamp(20px, 6vw, 96px) 20px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2,
.emergency-card h2,
.app-card h2,
.page-hero h1,
.auth-card h1,
.article-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--navy);
}

.section-lead,
.emergency-card p,
.app-card p,
.blog-card p,
.specialty-card p,
.page-hero .lead {
  color: var(--muted);
}

.specialty-grid,
.doctor-row,
.quote-grid,
.blog-grid,
.step-grid,
.clinic-grid,
.faq-list,
.pathway-grid {
  display: grid;
  gap: 18px;
}

.specialty-grid {
  grid-template-columns: repeat(4, 1fr);
}

.specialty-card,
.doctor-card,
blockquote,
.blog-card,
.step-grid li,
.clinic-card,
.faq-item,
.pathway-card,
.legal-card {
  background: #fff;
  border: 1px solid #eef3fa;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(60, 100, 160, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.specialty-card:hover,
.doctor-card:hover,
.blog-card:hover,
.step-grid li:hover,
blockquote:hover,
.clinic-card:hover,
.pathway-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.specialty-card h3,
.clinic-card h3,
.pathway-card h3 {
  margin-bottom: 8px;
}

.doctor-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.doctor-card img,
.avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 800;
}

.doctor-card span.avail {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}

.emergency {
  padding-top: 64px;
}

.emergency-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 55%, #dceeff 100%);
  border-radius: 28px;
  padding: 48px;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.emergency-points {
  list-style: none;
  display: grid;
  gap: 16px;
  align-content: center;
}

.emergency-points li {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(70, 110, 170, 0.08);
}

.emergency-points strong {
  display: block;
  margin-bottom: 4px;
}

.emergency-points span {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-grid {
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.step-grid span {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 12px;
}

.quote-grid {
  grid-template-columns: 1fr 1fr;
}

blockquote p {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 18px;
}

blockquote footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

blockquote cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}

blockquote span {
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-thumb {
  height: 120px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #3b6fad;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tone-1 { background: linear-gradient(135deg, #d7ebff, #f4f9ff); }
.tone-2 { background: linear-gradient(135deg, #cfe4fb, #eaf4ff); }
.tone-3 { background: linear-gradient(135deg, #e3f0ff, #f7fbff); }

.meta {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app {
  padding: 40px clamp(20px, 6vw, 96px) 20px;
}

.app-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb 58%, #1d4ed8);
  color: #fff;
  border-radius: 32px;
  padding: 48px 52px;
  overflow: hidden;
}

.app-card .eyebrow.light,
.app-card p {
  color: rgba(255, 255, 255, 0.82);
}

.store-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.store-btn {
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-btn svg {
  width: 18px;
  height: 18px;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.phone {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 28px 24px;
  max-width: 260px;
  margin-left: auto;
  box-shadow: 0 20px 40px rgba(10, 40, 120, 0.18);
}

.phone span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone strong {
  display: block;
  font-size: 1.4rem;
  margin: 14px 0 8px;
}

.phone em,
.phone small {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

/* Inner pages */
.page-hero {
  padding: 36px clamp(20px, 6vw, 96px) 12px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -80px;
  background: #e7f3ff;
  border-radius: 58% 42% 47% 53% / 44% 56% 44% 56%;
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  margin-bottom: 28px;
  background: #f7fbff;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  padding: 12px;
}

.search-bar input,
.search-bar select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.auth-card input,
.auth-card select {
  width: 100%;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--navy);
}

.search-bar input:focus,
.search-bar select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.auth-card input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.25);
  border-color: var(--blue);
}

.clinic-grid {
  grid-template-columns: repeat(3, 1fr);
}

.clinic-card p,
.pathway-card p {
  color: var(--muted);
}

.faq-item {
  padding: 0;
}

.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item button span {
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item .faq-body {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-item.open .faq-body {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label,
.auth-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.form-grid label.full,
.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-wrap {
  padding: 48px clamp(20px, 6vw, 96px) 72px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.auth-card {
  background: #fff;
  border: 1px solid #eef3fa;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-card label {
  margin-bottom: 14px;
}

.auth-card label input {
  margin-top: 6px;
}

.auth-aside {
  background: linear-gradient(135deg, #eaf4ff, #f7fbff);
  border-radius: 28px;
  padding: 36px;
}

.auth-aside h2 {
  margin-bottom: 12px;
}

.auth-aside p,
.auth-aside li {
  color: var(--muted);
}

.auth-aside ul {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tabs button {
  border: 0;
  background: #eef5ff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--blue);
  color: #fff;
}

.hidden {
  display: none;
}

.article-wrap {
  padding: 20px clamp(20px, 6vw, 96px) 72px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

.article-body p {
  color: #4c5770;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.article-body h2 {
  margin: 28px 0 12px;
  letter-spacing: -0.03em;
}

.article-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 28px;
}

.article-side .blog-card {
  margin-bottom: 16px;
}

.pathway-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Footer */
.footer {
  padding: 56px clamp(20px, 6vw, 96px) 28px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  margin-top: 14px;
  max-width: 320px;
}

.footer-top h3 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-top a {
  display: block;
  background: none;
  border: 0;
  color: var(--muted);
  text-align: left;
  padding: 4px 0;
}

.footer-top a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes doctorDrift {
  0%, 100% { transform: translateX(18px) translateY(0); }
  50% { transform: translateX(18px) translateY(-8px); }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 0.95fr 1fr;
  }

  .specialty-grid,
  .doctor-row,
  .blog-grid,
  .clinic-grid,
  .pathway-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-wrap,
  .article-wrap,
  .contact-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
    display: none;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .nav a.is-active::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .hero-copy {
    padding-bottom: 20px;
    max-width: none;
  }

  .hero-visual {
    min-height: 520px;
    justify-content: center;
  }

  .hero-doctor {
    width: min(520px, 100%);
    transform: none;
    animation-name: doctorDriftMobile;
  }

  .emergency-card,
  .app-card,
  .quote-grid,
  .step-grid,
  .footer-top,
  .search-bar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card-doctor {
    left: 4%;
  }
}

@media (max-width: 700px) {
  .header {
    padding: 16px 16px 8px;
  }

  .hero,
  .section,
  .app,
  .footer,
  .page-hero,
  .auth-wrap,
  .article-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lead br {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin: -36px 16px 0;
    padding: 18px 6px;
    gap: 8px;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .specialty-grid,
  .doctor-row,
  .blog-grid,
  .clinic-grid,
  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 56px 1fr;
  }

  .doctor-card .btn {
    grid-column: 1 / -1;
  }

  .card-doctor,
  .card-message {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin: 10px 0 0;
    animation: none;
  }

  .hero-visual {
    display: block;
    min-height: 0;
    padding-bottom: 20px;
  }

  .hero-doctor {
    height: 420px;
    margin: 0 auto;
  }

  .float-card {
    margin-top: 12px;
  }

  .header-actions .link-btn {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .store-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat::after {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }
}

@keyframes doctorDriftMobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
