/* MXPracto Home - Practo-aligned clean stylesheet v20 */
* { box-sizing: border-box; }
.mxHome { font-family: var(--mx-font-sans); color: var(--mx-ink); background: var(--mx-white); }
.mxHome-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mxHome-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== SLIM INTRO BAND ===== */
.mxHome-intro { background: var(--mx-white); padding: 40px 0 24px; text-align: center; }
.mxHome-intro-title { font-size: 30px; font-weight: 800; color: var(--mx-ink); margin: 0; letter-spacing: -0.022em; line-height: 1.2; text-wrap: balance; }
.mxHome-intro-sub { font-size: 16px; color: var(--mx-ink-muted); margin: 8px 0 22px; line-height: 1.5; }
.mxHome-intro-search { display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto; background: var(--mx-white); border: 1.5px solid var(--mx-border); border-radius: 999px; box-shadow: 0 1px 3px rgba(16,24,40,0.06); padding: 5px 5px 5px 18px; transition: box-shadow 200ms ease, border-color 200ms ease; }
.mxHome-intro-search:focus-within { border-color: var(--mx-primary); box-shadow: 0 0 0 3px rgba(44,183,223,0.12); }
.mxHome-intro-search > i { color: var(--mx-primary); font-size: 16px; flex-shrink: 0; }
.mxHome-intro-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--mx-font-sans); font-size: 15px; color: var(--mx-ink); padding: 12px 0; font-weight: 500; }
.mxHome-intro-input::placeholder { color: var(--mx-ink-muted); font-weight: 400; }
.mxHome-intro-btn { flex-shrink: 0; background: var(--mx-primary); color: var(--mx-white); border: 0; border-radius: 999px; font-family: var(--mx-font-sans); font-size: 14.5px; font-weight: 600; padding: 12px 28px; cursor: pointer; transition: background 200ms ease, box-shadow 200ms ease; }
.mxHome-intro-btn:hover { background: var(--mx-primary-dark); box-shadow: 0 2px 8px rgba(44,183,223,0.3); }

/* ===== SERVICE CARDS ===== */
.mxHome-cards-section { padding: 8px 0 56px; background: var(--mx-white); }
.mxHome-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* D1 fix (Batch B): standardize secondary card radius to spec 10px. */
.mxHome-card { display: flex; flex-direction: column; background: var(--mx-white); border: 1px solid var(--mx-border-light); border-radius: 10px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,0.04); transition: box-shadow 250ms ease, border-color 250ms ease; position: relative; }
.mxHome-card:hover { box-shadow: 0 4px 12px rgba(16,24,40,0.08), 0 12px 28px rgba(16,24,40,0.06); border-color: var(--mx-border); }
.mxHome-card-icon { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--mx-gray-100); position: relative; }
.mxHome-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.mxHome-card:hover .mxHome-card-icon img { transform: scale(1.05); }
.mxHome-card-body { padding: 14px 16px 16px; background: var(--mx-white); display: flex; flex-direction: column; gap: 3px; }
.mxHome-card-body h3 { font-size: 15px; font-weight: 600; color: var(--mx-ink); margin: 0; line-height: 1.3; }
.mxHome-card-body p { font-size: 13px; color: var(--mx-ink-muted); margin: 0; line-height: 1.4; }

/* ===== SECTION SHELL ===== */
.mxHome-section { padding: 56px 0; }
.mxHome-section--alt { background: var(--mx-surface-alt); }
.mxHome-section--tinted { background: var(--mx-surface-alt); }
.mxHome-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.mxHome-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.mxHome-section-title { font-size: 24px; font-weight: 700; color: var(--mx-ink); margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.mxHome-section-desc { font-size: 14px; color: var(--mx-ink-muted); margin: 6px 0 0; line-height: 1.5; }
.mxHome-see-all { font-size: 14px; font-weight: 600; color: var(--mx-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color 200ms ease; }
.mxHome-see-all:hover { color: var(--mx-primary-dark); }
.mxHome-see-all i { font-size: 11px; transition: transform 200ms ease; }
.mxHome-see-all:hover i { transform: translateX(2px); }

/* ===== SPECIALITY CIRCLES ===== */
.mxHome-spec-row { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mxHome-spec-row::-webkit-scrollbar { height: 5px; }
.mxHome-spec-row::-webkit-scrollbar-thumb { background: var(--mx-gray-300); border-radius: 4px; }
.mxHome-spec-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; width: 108px; }
.mxHome-spec-circle { width: 84px; height: 84px; border-radius: 50%; background: var(--mx-white); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--mx-white); box-shadow: 0 2px 6px rgba(15,23,42,0.06), 0 0 0 1px var(--mx-border-light); transition: box-shadow 220ms ease, transform 220ms ease; }
.mxHome-spec-item:hover .mxHome-spec-circle { box-shadow: 0 6px 16px rgba(44,183,223,0.18), 0 0 0 2px var(--mx-primary-surface); }
.mxHome-spec-item:hover .mxHome-spec-name { color: var(--mx-primary); }
.mxHome-spec-circle img { width: 100%; height: 100%; object-fit: cover; }
.mxHome-spec-circle i { font-size: 28px; color: var(--mx-primary); }
.mxHome-spec-name { font-size: 13.5px; font-weight: 500; color: var(--mx-ink); text-align: center; line-height: 1.3; transition: color 200ms ease; }

/* ===== CARE DISCOVERY ===== */
.mxHome-discover-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
/* D1 fix (Batch B): .mxHome-discover-card radius → 10px (spec). */
.mxHome-discover-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--mx-white); border: 1px solid var(--mx-border); border-radius: 10px; padding: 28px 24px; text-decoration: none; color: inherit; transition: box-shadow 300ms ease, border-color 300ms ease; }
.mxHome-discover-card:hover { box-shadow: 0 4px 12px rgba(16,24,40,0.08); border-color: var(--mx-gray-300); }
.mxHome-discover-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--mx-primary-surface); color: var(--mx-primary-dark); font-size: 18px; margin-bottom: 8px; }
.mxHome-discover-card h3 { font-size: 18px; font-weight: 700; color: var(--mx-ink); margin: 0; }
.mxHome-discover-card p { font-size: 14px; color: var(--mx-ink-muted); line-height: 1.6; margin: 0; flex: 1; }
.mxHome-discover-cta { font-size: 14px; font-weight: 600; color: var(--mx-primary); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.mxHome-discover-card:hover .mxHome-discover-cta i { transform: translateX(2px); }

/* ===== DOCTOR CARDS ===== */
.mxHome-doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mxHome-dcard { display: flex; flex-direction: column; background: var(--mx-white); border: 1px solid var(--mx-border-light); border-radius: 12px; text-decoration: none; overflow: hidden; transition: box-shadow 250ms ease, border-color 250ms ease; }
.mxHome-dcard:hover { box-shadow: 0 4px 12px rgba(16,24,40,0.08), 0 14px 32px rgba(16,24,40,0.06); border-color: var(--mx-border); }
.mxHome-dcard-photo { position: relative; width: 100%; aspect-ratio: 5/4; background: var(--mx-primary-surface); overflow: hidden; }
.mxHome-dcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.mxHome-dcard:hover .mxHome-dcard-photo img { transform: scale(1.04); }
.mxHome-dcard-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; background: var(--mx-success); color: var(--mx-white); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.mxHome-dcard-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.mxHome-dcard-name { font-size: 14.5px; font-weight: 700; color: var(--mx-ink); margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxHome-dcard-spec { font-size: 13px; color: var(--mx-primary); font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxHome-dcard-meta { font-size: 12.5px; color: var(--mx-ink-muted); margin: 0; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.mxHome-dcard-meta i { font-size: 12px; flex-shrink: 0; color: var(--mx-ink-muted); }
.mxHome-dcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--mx-border-light); }
.mxHome-dcard-rating { display: inline-flex; align-items: center; gap: 4px; background: var(--mx-success-surface); color: var(--mx-success); font-weight: 600; font-size: 12.5px; padding: 3px 8px; border-radius: 999px; }
.mxHome-dcard-fee { text-align: right; line-height: 1.1; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.mxHome-dcard-fee-amt { font-size: 15px; font-weight: 700; color: var(--mx-ink); }
.mxHome-dcard-fee-cap { font-size: 12px; color: var(--mx-ink-muted); }
.mxHome-dcard-book { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mx-primary); transition: color 200ms ease; }
.mxHome-dcard-book i { font-size: 12px; transition: transform 200ms ease; }
.mxHome-dcard:hover .mxHome-dcard-book { color: var(--mx-primary-dark); }
.mxHome-dcard:hover .mxHome-dcard-book i { transform: translateX(3px); }

/* ===== ARTICLES ===== */
.mxHome-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mxHome-article-card { display: flex; flex-direction: column; background: var(--mx-white); border: 1px solid var(--mx-border-light); border-radius: 12px; overflow: hidden; text-decoration: none; transition: box-shadow 250ms ease; }
.mxHome-article-card:hover { box-shadow: 0 4px 12px rgba(16,24,40,0.08), 0 14px 32px rgba(16,24,40,0.06); }
.mxHome-article-img { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--mx-gray-100); }
.mxHome-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.mxHome-article-card:hover .mxHome-article-img img { transform: scale(1.04); }
.mxHome-article-tag { position: absolute; top: 10px; left: 10px; background: var(--mx-white); color: var(--mx-primary); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.mxHome-article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.mxHome-article-title { font-size: 15px; font-weight: 600; color: var(--mx-ink); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mxHome-article-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mxHome-article-author { font-size: 12px; color: var(--mx-primary); font-weight: 600; }
.mxHome-article-time { font-size: 12px; color: var(--mx-ink-muted); display: inline-flex; align-items: center; gap: 5px; }
.mxHome-article-time i { font-size: 11px; }

/* ===== TESTIMONIALS ===== */
.mxHome-testimonial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mxHome-testimonial-card { position: relative; background: var(--mx-white); border: 1px solid var(--mx-border-light); border-radius: 12px; padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 250ms ease; }
.mxHome-testimonial-card:hover { box-shadow: 0 4px 12px rgba(16,24,40,0.08), 0 14px 32px rgba(16,24,40,0.06); }
.mxHome-testimonial-stars { color: var(--mx-star); font-size: 13px; letter-spacing: 2px; }
.mxHome-testimonial-text { font-size: 14px; color: var(--mx-ink); line-height: 1.6; margin: 0; flex: 1 1 auto; }
.mxHome-testimonial-by { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--mx-border-light); }
.mxHome-testimonial-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mx-primary); color: var(--mx-white); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mxHome-testimonial-name { font-size: 13px; font-weight: 600; color: var(--mx-ink); }

/* ===== APP DOWNLOAD SECTION ===== */
.mxHome-section--app { position: relative; background: var(--mx-brand); padding: 64px 0; overflow: hidden; color: var(--mx-white); }
/* Gradient corner glow removed per spec — decorative only, no functional role. */
.mxHome-section--app .mxHome-container { position: relative; z-index: 1; }
.mxHome-app-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.mxHome-app-text { display: flex; flex-direction: column; gap: 14px; }
.mxHome-app-eyebrow { display: inline-block; background: var(--mx-white-a15); color: var(--mx-white); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; align-self: flex-start; }
.mxHome-app-text h2 { font-size: 28px; font-weight: 700; color: var(--mx-white); margin: 0; letter-spacing: -0.02em; line-height: 1.25; }
.mxHome-app-text p { font-size: 15px; color: var(--mx-white-a80); margin: 0; max-width: 480px; line-height: 1.6; }

/* ===== STORE BADGES (CSS-based, no images) ===== */
.mxHome-app-stores { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.mxHome-app-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--mx-white-a10); border: 1px solid var(--mx-white-a20); border-radius: 8px; padding: 8px 16px; text-decoration: none; color: var(--mx-white); transition: background 200ms ease, border-color 200ms ease; }
.mxHome-app-badge:hover { background: var(--mx-white-a15); border-color: var(--mx-white-a50); }
.mxHome-app-badge i { font-size: 26px; color: var(--mx-white); flex-shrink: 0; }
.mxHome-app-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.mxHome-app-badge-sm { font-size: 13px; font-weight: 500; opacity: 1; }
.mxHome-app-badge-lg { font-size: 15px; font-weight: 700; }

/* App phone mockup */
.mxHome-app-phone { display: flex; justify-content: center; align-items: center; }
.mxHome-app-phone img { width: 100%; max-width: 420px; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.18); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .mxHome-cards { grid-template-columns: repeat(2, 1fr); }
  .mxHome-doctor-grid { grid-template-columns: repeat(3, 1fr); }
  .mxHome-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .mxHome-doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .mxHome-article-grid { grid-template-columns: repeat(1, 1fr); }
  .mxHome-testimonial { grid-template-columns: repeat(2, 1fr); }
  .mxHome-app-inner { grid-template-columns: 1fr; }
  .mxHome-app-phone img { max-width: 100%; }
}
@media (max-width: 900px) {
  .mxHome-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .mxHome-intro { padding: 28px 0 16px; }
  .mxHome-intro-title { font-size: 22px; }
  .mxHome-intro-sub { font-size: 14px; }
  .mxHome-intro-search { flex-direction: column; align-items: stretch; border-radius: 12px; padding: 10px; gap: 8px; max-width: 100%; }
  .mxHome-intro-search > i { display: none; }
  .mxHome-intro-input { padding: 8px 0; }
  .mxHome-intro-btn { width: 100%; padding: 12px; }

  .mxHome-cards-section { padding: 4px 0 32px; }
  .mxHome-cards { grid-template-columns: 1fr; }

  .mxHome-section { padding: 36px 0; }
  .mxHome-section--alt { padding: 36px 0; }
  .mxHome-section-title { font-size: 20px; }
  .mxHome-doctor-grid { grid-template-columns: 1fr; }
  .mxHome-testimonial { grid-template-columns: 1fr; }
  .mxHome-discover-row { grid-template-columns: 1fr; }
  .mxHome-section--app { padding: 40px 0; }
  .mxHome-app-text h2 { font-size: 22px; }
  .mxHome-app-stores { gap: 8px; }
  .mxHome-app-badge { padding: 6px 12px; }
  .mxHome-app-badge i { font-size: 22px; }
  .mxHome-app-badge-lg { font-size: 13px; }
}
@media (max-width: 480px) {
  .mxHome-cards { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .mxHome-card, .mxHome-card-icon img, .mxHome-dcard, .mxHome-dcard-photo img,
  .mxHome-article-card, .mxHome-article-img img, .mxHome-spec-circle, .mxHome-spec-name,
  .mxHome-pill, .mxHome-dcard-book i, .mxHome-see-all i, .mxHome-discover-card,
  .mxHome-discover-card:hover .mxHome-discover-cta i {
    transition: none !important; transform: none !important;
  }
}

/* ============================================================
   DOCCURE CHARACTER LAYER v21 — surface accents for the home page.
   Tokens-only (no raw hex). CTAs use solid --mx-primary +
   --mx-primary-dark with explicit CTA shadow; no gradient fills.
   Tokens in play: --mx-secondary-dark (AA green text),
   --mx-orange-dark (AA fee), --mx-brand / --mx-brand-surface
   (brand blue family).
   ============================================================ */

/* ---- Hero intro: solid white with subtle color-mix tint (no radial washes) ---- */
.mxHome-intro {
  background: var(--mx-white);
}
.mxHome-intro-search:focus-within {
  border-color: var(--mx-brand, var(--mx-primary));
  box-shadow: 0 0 0 3px var(--mx-brand-glow, var(--mx-primary-glow));
}
.mxHome-intro-search > i { color: var(--mx-brand, var(--mx-primary)); }

/* ---- Search CTA: gradient fill (Doccure signature blue→green) ---- */
/* Doccure gradient on the search CTA. Composite specificity (0,2,1) +
   source order beats the AA-flatten composite at listing_mx.css ~9663. */
a.mxHome-intro-btn.mxHome-intro-btn,
button.mxHome-intro-btn.mxHome-intro-btn {
  background: var(--mx-primary);
  color: var(--mx-white);
  border: 0;
  box-shadow: 0 4px 14px rgba(44,183,223,0.3);
}
a.mxHome-intro-btn.mxHome-intro-btn:hover,
button.mxHome-intro-btn.mxHome-intro-btn:hover {
  background: var(--mx-primary-dark);
  color: var(--mx-white);
  box-shadow: var(--mx-shadow-cta-hover);
}

/* ---- Section eyebrows (Doccure signature): uppercase letter-spaced label.
        Uses --mx-secondary-dark (AA pair on white 4.76:1); surface form
        sits on tinted --mx-secondary-surface with same dark ink. ---- */
.mxHome-section-title[data-eyebrow]::before,
.mxHome-section-title[data-eyebrow-brand]::before {
  content: attr(data-eyebrow);
  display: block;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mx-secondary-dark);
  background: var(--mx-secondary-surface);
  padding: 4px 10px;
  border-radius: var(--mx-radius-pill, 999px);
  margin-bottom: 10px;
}
.mxHome-section-head--center .mxHome-section-title[data-eyebrow]::before,
.mxHome-section-head--center .mxHome-section-title[data-eyebrow-brand]::before {
  margin-left: auto;
  margin-right: auto;
}
.mxHome-section-title[data-eyebrow-brand]::before { color: var(--mx-brand); background: var(--mx-brand-surface); }
.mxHome-app-text h2 { color: var(--mx-white); }

/* ---- Cards: friendlier hover — translateY(-3px) + shadow deepen ---- */
.mxHome-card,
.mxHome-dcard,
.mxHome-article-card,
.mxHome-discover-card,
.mxHome-testimonial-card {
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.mxHome-card:hover,
.mxHome-dcard:hover,
.mxHome-article-card:hover,
.mxHome-discover-card:hover,
.mxHome-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16,24,40,0.10), 0 16px 40px rgba(16,24,40,0.07);
  border-color: var(--mx-gray-300);
}
.mxHome-card:focus-visible,
.mxHome-dcard:focus-visible,
.mxHome-article-card:focus-visible,
.mxHome-discover-card:focus-visible {
  outline: 2px solid var(--mx-brand, var(--mx-primary));
  outline-offset: 2px;
}

/* ---- Speciality circles: brand hover ---- */
.mxHome-spec-item:hover .mxHome-spec-circle {
  box-shadow: 0 6px 16px var(--mx-brand-glow, var(--mx-primary-glow)), 0 0 0 2px var(--mx-brand-surface, var(--mx-primary-surface));
}
.mxHome-spec-item:hover .mxHome-spec-name { color: var(--mx-brand, var(--mx-primary-dark)); }
.mxHome-spec-circle i { color: var(--mx-brand, var(--mx-primary)); }

/* ---- Doctor card: verified green, fee orange, gradient book CTA ---- */
.mxHome-dcard-badge { background: var(--mx-success-surface); color: var(--mx-success-dark); border: 1px solid color-mix(in srgb, var(--mx-success) 26%, transparent); }
.mxHome-dcard-badge i { color: var(--mx-success-dark); }
.mxHome-dcard-rating { background: var(--mx-success-surface); color: var(--mx-success-dark); }
.mxHome-dcard-fee-amt { color: var(--mx-orange-dark, var(--mx-warning-dark)); }
.mxHome-dcard-fee-cap { color: var(--mx-ink-muted); }
.mxHome-dcard-book {
  align-self: flex-start;
  background: var(--mx-primary);
  color: var(--mx-white);
  padding: 8px 16px;
  border-radius: var(--mx-radius-pill, 999px);
  box-shadow: var(--mx-shadow-cta);
}
.mxHome-dcard-book i { color: var(--mx-white); }
.mxHome-dcard:hover .mxHome-dcard-book {
  background: var(--mx-primary-dark);
  color: var(--mx-white);
  box-shadow: var(--mx-shadow-cta-hover);
}

/* ---- Discover icons: brand surface ---- */
.mxHome-discover-icon {
  background: var(--mx-brand-surface, var(--mx-primary-surface));
  color: var(--mx-brand, var(--mx-primary-dark));
}

/* ---- App band: keep token-driven (Worker 1 remaps --mx-brand) ---- */
.mxHome-section--app { background: var(--mx-brand); }
.mxHome-app-eyebrow { color: var(--mx-white); }

/* ---- Reduced motion: kill the new lift ---- */
@media (prefers-reduced-motion: reduce) {
  .mxHome-card, .mxHome-dcard, .mxHome-article-card,
  .mxHome-discover-card, .mxHome-testimonial-card {
    transition: none !important; transform: none !important;
  }
}

/* ============================================================
   DOCCURE V2 PUBLIC CHARACTER LAYER (Worker B)
   Full-bleed vertical gradient hero, white pill search card,
   44px pill gradient CTAs, 10px cards + diffuse 34px shadow,
   42px section titles. Fallbacks match doccure_anatomy.json
   exactly in case Worker A token remap has not landed yet.
   ============================================================ */

/* ===== HERO (solid primary, white text) ===== */
.mxHome-hero {
  position: relative;
  background: var(--mx-primary);
  padding: 56px 0 96px;
  overflow: hidden;
}
.mxHome-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}
.mxHome-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  color: var(--mx-white);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--mx-radius-pill, 9999px);
  margin-bottom: 18px;
}
.mxHome-hero-eyebrow i { color: var(--mx-white); font-size: 12px; }
.mxHome-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--mx-white);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.mxHome-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.92);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 46ch;
}


/* White pill search card: two icon+field groups + round gradient button */
.mxHome-hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mx-white);
  border-radius: var(--mx-radius-pill, 9999px);
  box-shadow: 0 4px 34px rgba(206,206,206,.25);
  padding: 7px 7px 7px 20px;
  max-width: 640px;
  transition: box-shadow 200ms ease;
}
.mxHome-hero-search:focus-within { box-shadow: 0 6px 40px rgba(1,107,231,.28); }
.mxHome-hero-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.mxHome-hero-field > i { color: var(--mx-primary, #2d67f0); font-size: 16px; flex-shrink: 0; }

/* ---- Hero search suggestions dropdown ---- */
.mxHome-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  right: -14px;
  background: var(--mx-white, #fff);
  border: 1px solid var(--mx-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
  padding: 6px;
  z-index: 60;
  max-height: 320px;
  overflow-y: auto;
}
.mxHome-suggest.is-open { display: block; }
.mxHome-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.mxHome-suggest-item:hover { background: var(--mx-primary-surface, #e9f0ff); }
.mxHome-suggest-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mx-ink, #0f172a);
}
.mxHome-suggest-sub {
  font-size: 13px;
  color: var(--mx-ink-muted, #64748b);
}
.mxHome-hero-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mx-font-sans);
  font-size: 15px;
  color: var(--mx-ink);
  padding: 12px 0;
  font-weight: 500;
}
.mxHome-hero-input::placeholder { color: var(--mx-ink-muted); font-weight: 400; }
.mxHome-hero-vline { width: 1px; align-self: stretch; margin: 10px 4px; background: var(--mx-border-light, #e6e9ef); flex-shrink: 0; }
.mxHome-hero-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--mx-primary);
  color: var(--mx-white);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, box-shadow 200ms ease;
  box-shadow: var(--mx-shadow-cta);
}
.mxHome-hero-btn:hover {
  background: var(--mx-primary-dark);
  box-shadow: var(--mx-shadow-cta-hover);
}


/* Quick links under search (white on blue zone - AA) */
.mxHome-hero-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 13px;
}
.mxHome-hero-quick-label { color: rgba(255,255,255,.85); }
.mxHome-hero-quick a {
  color: var(--mx-white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
}
.mxHome-hero-quick a:hover { border-bottom-color: var(--mx-white); }

/* Right-side art: patient image + floating stat chips */
.mxHome-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.mxHome-hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mx-white);
  color: var(--mx-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--mx-radius-pill, 9999px);
  box-shadow: 0 4px 34px rgba(206,206,206,.25);
  white-space: nowrap;
}
.mxHome-hero-chip strong { font-weight: 700; }
.mxHome-hero-chip i { color: var(--mx-primary, #2d67f0); font-size: 14px; }
.mxHome-hero-chip--appt { top: 8%; left: -2%; animation: mxHeroFloat 3.2s ease-in-out infinite; }
.mxHome-hero-chip--rate { bottom: 10%; right: -2%; animation: mxHeroFloat 3.2s .8s ease-in-out infinite; }
.mxHome-hero-chip--rate i { color: #f5a623; }
@keyframes mxHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mxHome-hero-chip { animation: none !important; }
}


/* ===== HERO ART: photo wrapper + decorative pulses + heartbeat ===== */
.mxHome-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 420px;
}
.mxHome-hero-art .mxHome-hero-photo {
  position: relative;
  display: inline-block;
  border-radius: var(--mx-radius-lg, 12px);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 420px;
  isolation: isolate;
}
.mxHome-hero-art .mxHome-hero-photo img {
  display: block;
  width: 100%;
  height: 420px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
/* ===== decorative pulse circles behind the photo (no gradient) ===== */
.mxHome-hero-pulse {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  animation: mxHeroPulse 4.6s ease-in-out infinite;
}
.mxHome-hero-pulse--1 {
  width: 280px;
  height: 280px;
  top: -8%;
  right: -10%;
  animation-delay: 0s;
}
.mxHome-hero-pulse--2 {
  width: 200px;
  height: 200px;
  bottom: -10%;
  left: -8%;
  animation-delay: 1.2s;
}
.mxHome-hero-pulse--3 {
  width: 140px;
  height: 140px;
  top: 38%;
  right: 6%;
  animation-delay: 2.4s;
  background: rgba(255, 255, 255, 0.12);
}
@keyframes mxHeroPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.12); opacity: 1; }
}
/* ===== heartbeat line drawn across the bottom of the hero photo ===== */
.mxHome-hero-heartbeat {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  width: 84%;
  height: 56px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.mxHome-hero-heartbeat-line {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ===== chip with stacked doctor avatars (verified trust signal) ===== */
.mxHome-hero-chip--doc {
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  animation: mxHeroFloat 3.6s 0.4s ease-in-out infinite;
}
.mxHome-hero-chip-avatars {
  display: inline-flex;
  align-items: center;
}
.mxHome-hero-chip-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mx-primary);
  color: var(--mx-white);
  font-size: 11px;
  font-weight: 700;
  margin-left: -8px;
  border: 2px solid var(--mx-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mxHome-hero-chip-av:first-child { margin-left: 0; }
.mxHome-hero-chip-av--1 { background: #2d67f0; }
.mxHome-hero-chip-av--2 { background: #04bd6c; }
.mxHome-hero-chip-av--3 { background: #f5a623; }

/* ===== TRUST STRIP (under hero): live counter + verified avatars + badges ===== */
.mxHome-truststrip {
  background: var(--mx-surface, #ffffff);
  border-top: 1px solid var(--mx-border-light, #e6e9ef);
  border-bottom: 1px solid var(--mx-border-light, #e6e9ef);
  padding: 18px 0;
}
.mxHome-truststrip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.mxHome-truststrip-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mx-ink, #1f2937);
}
.mxHome-truststrip-live strong {
  font-weight: 800;
  font-size: 18px;
  color: var(--mx-primary);
  letter-spacing: -0.01em;
}
.mxHome-truststrip-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mx-success, #04bd6c);
  box-shadow: 0 0 0 4px rgba(4, 189, 108, 0.18);
  animation: mxTrustPulse 1.6s ease-in-out infinite;
}
@keyframes mxTrustPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(4, 189, 108, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(4, 189, 108, 0.05); }
}
.mxHome-truststrip-avatars {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--mx-ink-muted);
}
.mxHome-ts-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: -10px;
  color: var(--mx-white);
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--mx-surface, #ffffff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.mxHome-ts-av:first-child { margin-left: 0; }
.mxHome-ts-av--1 { background: #2d67f0; }
.mxHome-ts-av--2 { background: #04bd6c; }
.mxHome-ts-av--3 { background: #f5a623; }
.mxHome-ts-av--4 { background: #c84ad9; }
.mxHome-ts-av--5 { background: #16a4b8; }
.mxHome-ts-av--6 { background: #d94a4a; }
.mxHome-truststrip-av-label {
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--mx-ink-muted);
}
.mxHome-truststrip-av-label strong {
  color: var(--mx-ink);
  font-weight: 700;
}
.mxHome-truststrip-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.mxHome-truststrip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--mx-surface-alt, #f8fafc);
  border-radius: var(--mx-radius-pill, 9999px);
  font-size: 13px;
  font-weight: 600;
  color: var(--mx-ink, #1f2937);
  border: 1px solid var(--mx-border-light, #e6e9ef);
}
.mxHome-truststrip-badge i {
  color: var(--mx-primary);
  font-size: 12px;
}

/* ===== HERO ENTRANCE MOTION (one-shot fade/slide) ===== */
@media (prefers-reduced-motion: no-preference) {
  .mxHome-hero-eyebrow,
  .mxHome-hero-title,
  .mxHome-hero-sub,
  .mxHome-hero-search,
  .mxHome-hero-quick {
    opacity: 0;
    transform: translateY(12px);
    animation: mxHeroRise 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .mxHome-hero-eyebrow  { animation-delay: 80ms; }
  .mxHome-hero-title    { animation-delay: 160ms; }
  .mxHome-hero-sub      { animation-delay: 240ms; }
  .mxHome-hero-search   { animation-delay: 320ms; }
  .mxHome-hero-quick    { animation-delay: 400ms; }
  .mxHome-hero-art {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    animation: mxHeroRise 800ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}
@keyframes mxHeroRise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== HERO pulse rings (behind photo) idle motion ===== */
@media (prefers-reduced-motion: reduce) {
  .mxHome-hero-pulse,
  .mxHome-hero-chip,
  .mxHome-truststrip-dot,
  .mxHome-hero-heartbeat-line {
    animation: none !important;
  }
  .mxHome-hero-heartbeat-line { stroke-dasharray: none; }
  .mxHome-hero-eyebrow,
  .mxHome-hero-title,
  .mxHome-hero-sub,
  .mxHome-hero-search,
  .mxHome-hero-quick,
  .mxHome-hero-art { opacity: 1 !important; transform: none !important; }
}

/* ===== HERO responsive collapse ===== */
@media (max-width: 980px) {
  .mxHome-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mxHome-hero-art  { min-height: auto; }
  .mxHome-hero-art .mxHome-hero-photo img { height: 320px; max-height: 320px; }
  .mxHome-hero-pulse--1 { width: 180px; height: 180px; }
  .mxHome-hero-pulse--2 { width: 140px; height: 140px; }
  .mxHome-hero-pulse--3 { display: none; }
  .mxHome-hero-heartbeat { height: 40px; }
  .mxHome-hero-chip--doc { right: 4%; }
}
@media (max-width: 640px) {
  .mxHome-truststrip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .mxHome-truststrip-badges { justify-content: center; }
  .mxHome-truststrip-avatars { justify-content: center; }
  .mxHome-hero-art .mxHome-hero-photo img { height: 260px; }
  .mxHome-hero-chip--doc { display: none; }
}




/* ===== Cards: 10px radius + signature diffuse shadow ===== */
.mxHome-card,
.mxHome-dcard,
.mxHome-article-card,
.mxHome-discover-card,
.mxHome-testimonial-card {
  border-radius: 10px;
  box-shadow: var(--mx-shadow-soft, 0 4px 34px rgba(206,206,206,.25));
}

/* ===== Section titles: 42px / 700 ===== */
.mxHome-section-title {
  font-size: var(--mx-title-xl, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* ===== Category strip -> Doccure icon tiles with hover ===== */
.mxHome-spec-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mxHome-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 108px;
  padding: 16px 10px 14px;
  background: var(--mx-white);
  border-radius: 10px;
  box-shadow: var(--mx-shadow-soft, 0 4px 34px rgba(206,206,206,.25));
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.mxHome-spec-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 44px rgba(206,206,206,.4);
}
.mxHome-spec-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mx-primary-surface, #eef3ff);
  transition: background 200ms ease;
}
.mxHome-spec-circle img { width: 100%; height: 100%; object-fit: cover; }
.mxHome-spec-circle i { font-size: 24px; color: var(--mx-primary, #2d67f0); }
.mxHome-spec-item:hover .mxHome-spec-circle { background: var(--mx-primary-surface, #eef3ff); }
.mxHome-spec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mx-ink);
  text-align: center;
  line-height: 1.3;
}


/* ===== Pill gradient CTAs (44px radius) everywhere on home ===== */
.mxHome-intro-btn,
button.mxHome-intro-btn.mxHome-intro-btn,
a.mxHome-intro-btn.mxHome-intro-btn,
.mxHome-discover-cta,
.mxHome-dcard-book,
.mxHome-see-all {
  border-radius: var(--mx-radius-pill, 9999px);
}
button.mxHome-intro-btn.mxHome-intro-btn,
a.mxHome-intro-btn.mxHome-intro-btn {
  background: var(--mx-primary) !important;
  border: 0 !important;
  color: var(--mx-white) !important;
  padding: 12px 32px;
  box-shadow: var(--mx-shadow-cta) !important;
}
button.mxHome-intro-btn.mxHome-intro-btn:hover,
a.mxHome-intro-btn.mxHome-intro-btn:hover {
  background: var(--mx-primary-dark) !important;
  box-shadow: var(--mx-shadow-cta-hover) !important;
}
.mxHome-dcard-book {
  background: var(--mx-primary);
  color: var(--mx-white);
  padding: 11px 22px;
  box-shadow: var(--mx-shadow-cta);
}
.mxHome-dcard:hover .mxHome-dcard-book {
  background: var(--mx-primary-dark);
  box-shadow: var(--mx-shadow-cta-hover);
}

/* ===== Hero responsive ===== */
@media (max-width: 1024px) {
  .mxHome-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mxHome-hero-art img { max-height: 320px; }
  .mxHome-hero { padding: 44px 0 72px; }
  .mxHome-hero-title { font-size: 36px; }
}
@media (max-width: 640px) {
  .mxHome-hero { padding: 32px 0 56px; }
  .mxHome-hero-title { font-size: 28px; }
  .mxHome-hero-sub { font-size: 14px; margin-bottom: 22px; }
  .mxHome-hero-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
  }
  .mxHome-hero-vline { display: none; }
  .mxHome-hero-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--mx-radius-pill, 9999px);
    font-size: 15px;
  }
  .mxHome-hero-btn::after { content: "Search"; margin-left: 8px; font-weight: 600; }
  .mxHome-hero-art { display: none; }
  .mxHome-section-title { font-size: 26px; }
  .mxHome-spec-item { width: calc(50% - 7px); }
}

/* ============================================================
   DOCCURE V2.1 — SPECIALITY PHOTO TILES (targeted fix)
   Reference: Doccure "Care & Support" slider. 220px tiles,
   rounded-20px photo filling tile, 16px slate label below,
   horizontal scroll-snap (no slick JS). Overrides the earlier
   icon-circle layers (equal specificity, later in file wins).
   ============================================================ */
.mxHome-spec-section { padding: 80px 0; }
.mxHome-spec-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mxHome-spec-row::-webkit-scrollbar { height: 6px; }
.mxHome-spec-row::-webkit-scrollbar-thumb { background: var(--mx-gray-300, #cbd5e1); border-radius: 4px; }

/* ---- Scroll strip with arrows (desktop affordance) ---- */
.mxHome-spec-strip {
  position: relative;
}
.mxHome-spec-strip .mxHome-spec-row {
  scroll-behavior: smooth;
}
.mxHome-spec-arrow {
  position: absolute;
  top: 84px;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: var(--mx-radius-pill, 9999px);
  background: var(--mx-white);
  color: var(--mx-ink);
  border: 1px solid var(--mx-border, #e2e8f0);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}
.mxHome-spec-arrow:hover {
  background: var(--mx-primary, #2d67f0);
  color: var(--mx-white);
  border-color: var(--mx-primary, #2d67f0);
}
.mxHome-spec-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}
.mxHome-spec-arrow--prev { left: -12px; }
.mxHome-spec-arrow--next { right: -12px; }
@media (max-width: 900px) {
  .mxHome-spec-arrow { display: none; }
}

.mxHome-spec-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 220px;
  width: 220px;
  text-decoration: none;
  scroll-snap-align: start;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 220ms ease;
}
.mxHome-spec-item:hover {
  transform: translateY(-4px);
  box-shadow: none;
  background: transparent;
}
.mxHome-spec-photo {
  position: relative;
  width: 220px;
  height: 262px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mx-primary-surface, #eef3ff);
  box-shadow: var(--mx-shadow-soft, 0 4px 34px rgba(206,206,206,.25));
  transition: box-shadow 220ms ease;
}
.mxHome-spec-item:hover .mxHome-spec-photo {
  box-shadow: 0 8px 44px rgba(206,206,206,.4);
}
.mxHome-spec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}
.mxHome-spec-item:hover .mxHome-spec-photo img { transform: scale(1.04); }
/* Icon fallback: tinted surface when both fullImage and Unsplash fail */
.mxHome-spec-photo.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mxHome-spec-photo.is-fallback .mxHome-spec-fallback-ico {
  font-size: 44px;
  color: var(--mx-primary, #2d67f0);
}
.mxHome-spec-photo .mxHome-spec-fallback-ico { display: none; }
.mxHome-spec-photo.is-fallback .mxHome-spec-fallback-ico { display: block; }
.mxHome-spec-name {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
  text-align: center;
  line-height: 1.35;
}
.mxHome-spec-item:hover .mxHome-spec-name { color: var(--mx-primary, #2d67f0); }

/* Responsive */
@media (max-width: 900px) {
  .mxHome-spec-item, .mxHome-spec-photo { flex-basis: 160px; width: 160px; }
  .mxHome-spec-photo { height: 190px; }
}
@media (max-width: 640px) {
  .mxHome-spec-item, .mxHome-spec-photo { flex-basis: 140px; width: 140px; }
  .mxHome-spec-photo { height: 166px; }
  .mxHome-spec-name { font-size: 14px; }
  .mxHome-spec-row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mxHome-spec-item, .mxHome-spec-photo img { transition: none !important; transform: none !important; }
}

/* ============================================================
   DOCCURE V2.1 — FULL SECTION FIDELITY LAYER (Agent 6)
   Measured from https://doccure.dreamstechnologies.com/react/template/
   at 1440 (v21_ref_sections.json / v21_ref_deep*.json):
   - section rhythm: 80px 0 padding every section
   - section title 42px/700 #0f172a + sub 16px/400 #475569
   - eyebrow chip: gradient pill 15px/500 white, radius 20px, pad 4px 26px
   - reason-style cards: r12, pad 40px, diffuse shadow 0 4px 34px
   - doctor cards: r10, 306x425, name 24px/700, img 304x194 r10 top
   - article badge: blue bg, white text 14px, r6, pad 5px 12px
   - see-all: dark (#0f172a) 44px-radius pill, 16px/600, pad 10px 20px
   - testimonial: 440px slides, name 18px/700
   - app band: white section, inner gradient rounded card, 42px white h2
   EXTENDS the V2 hero + spec tiles (do not revert those).
   ============================================================ */

/* ---- Global section rhythm: 80px like reference ---- */
.mxHome-section { padding: 80px 0; }
.mxHome-cards-section { padding: 24px 0 80px; }

/* ---- Section title + subcopy to measured Doccure anatomy ---- */
.mxHome-section-title {
  font-size: var(--mx-title-xl, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--mx-ink-deep, #0f172a);
}
.mxHome-section-desc {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
  margin-top: 10px;
  line-height: 1.5;
}
.mxHome-section-head { margin-bottom: 40px; align-items: flex-end; }

/* ---- Eyebrow chips -> measured gradient pill (15px/500 white r20 pad 4 26) ---- */
.mxHome-section-title[data-eyebrow]::before,
.mxHome-section-title[data-eyebrow-brand]::before {
  content: attr(data-eyebrow);
  display: block;
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mx-white);
  background: var(--mx-primary);
  padding: 4px 26px;
  border-radius: 20px;
  margin-bottom: 12px;
  line-height: 1.55;
}
.mxHome-section-title[data-eyebrow-brand]::before {
  background: var(--mx-primary);
  color: var(--mx-white);
}
.mxHome-section-head--center .mxHome-section-title[data-eyebrow]::before,
.mxHome-section-head--center .mxHome-section-title[data-eyebrow-brand]::before {
  margin-left: auto;
  margin-right: auto;
}

/* ---- See-all -> measured dark pill (176x44, 16px/600, r44) ---- */
.mxHome-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mx-ink-deep, #0f172a);
  color: var(--mx-white);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 44px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.mxHome-see-all:hover { background: #1e293b; color: var(--mx-white); }
.mxHome-see-all i { font-size: 13px; }

/* ---- Service cards: reason-item anatomy (r10 pad-shadow, no border) ---- */
.mxHome-card {
  border: 1px solid var(--mx-border-light);
  border-radius: 10px;
  box-shadow: var(--mx-shadow-soft, 0 4px 34px rgba(206,206,206,.25));
}

/* ---- Care discovery cards -> reason-item anatomy (416x295 r10 pad40) ---- */
.mxHome-discover-card {
  border: 1px solid var(--mx-border-light);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--mx-shadow-soft, 0 4px 34px rgba(206,206,206,.25));
}
.mxHome-discover-icon {
  width: 64px; height: 64px; border-radius: 50%;
}
.mxHome-discover-card h3 { font-size: 22px; font-weight: 600; color: var(--mx-ink-deep, #0f172a); margin: 14px 0 8px; }
.mxHome-discover-card p { font-size: 15px; color: #475569; line-height: 1.6; margin: 0; }
.mxHome-discover-cta { margin-top: 18px; }

/* ---- Doctor cards -> measured 306x425 r10 (name 24px/700, img ~304x194) ---- */
.mxHome-doctor-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mxHome-dcard { border: 1px solid var(--mx-border-light); border-radius: 10px; }
.mxHome-dcard-photo { aspect-ratio: 304/194; }
.mxHome-dcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mxHome-dcard-badge { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }
.mxHome-dcard-name { font-size: 24px; font-weight: 700; color: var(--mx-ink-deep, #0f172a); white-space: normal; overflow: visible; text-overflow: unset; }
.mxHome-dcard-spec { font-size: 14px; }
.mxHome-dcard-body { padding: 16px; }

/* ---- Articles -> measured badge (blue bg, white 14px, r6, pad 5 12) ---- */
.mxHome-article-card { border-radius: 10px; }
.mxHome-article-tag {
  background: var(--mx-brand, #2d67f0);
  color: var(--mx-white);
  font-size: 14px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.mxHome-article-title { font-size: 18px; font-weight: 600; }
.mxHome-article-body { padding: 20px; }
.mxHome-article-meta { padding-bottom: 2px; }

/* ---- Testimonials -> measured 440 slides (name 18px/700, quote 16px) ---- */
.mxHome-testimonial { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mxHome-testimonial-card { border-radius: 10px; padding: 32px 28px 24px; }
.mxHome-testimonial-text { font-size: 16px; color: #475569; line-height: 1.7; }
.mxHome-testimonial-name { font-size: 18px; font-weight: 700; color: var(--mx-ink-deep, #0f172a); }
.mxHome-testimonial-stars { font-size: 14px; letter-spacing: 3px; }

/* ---- App band -> white section + inner solid primary card ---- */
.mxHome-section--app {
  background: var(--mx-white);
  color: var(--mx-ink);
  padding: 80px 0;
}
.mxHome-section--app::before { display: none; }
.mxHome-app-inner {
  background: var(--mx-primary);
  border-radius: 20px;
  padding: 56px 64px;
  overflow: hidden;
  position: relative;
  align-items: center;
}
.mxHome-app-eyebrow {
  background: color-mix(in srgb, var(--mx-primary) 75%, var(--mx-ink) 25%);
  color: var(--mx-white);
  font-size: 15px; font-weight: 500;
  padding: 4px 26px;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0;
}
.mxHome-app-text h2 { font-size: 42px; font-weight: 700; color: var(--mx-white); }
.mxHome-app-text p { font-size: 16px; color: rgba(255,255,255,.92); max-width: 520px; }
.mxHome-app-badge { background: var(--mx-white); color: var(--mx-ink-deep, #0f172a); border: 0; border-radius: 12px; }
.mxHome-app-badge:hover { background: #f1f5f9; }
.mxHome-app-badge i { color: var(--mx-ink-deep, #0f172a); }
.mxHome-app-badge-sm { color: #475569; opacity: 1; }
.mxHome-app-badge-lg { color: var(--mx-ink-deep, #0f172a); }
.mxHome-app-phone img { border-radius: 20px; box-shadow: 0 24px 48px rgba(1,107,231,.25); }

/* ---- Hero title: keep 42px (V2 approved) but tighten reference tracking ---- */
.mxHome-hero-title { letter-spacing: -0.02em; }

/* ---- 13px floor guard + focus rings ---- */
.mxHome-article-time, .mxHome-article-author { font-size: 13px; }

/* ---- Responsive: keep measured sizes until tablet, then scale ---- */
@media (max-width: 1100px) {
  .mxHome-doctor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .mxHome-section-title { font-size: 34px; }
  .mxHome-app-inner { padding: 40px 32px; }
  .mxHome-app-text h2 { font-size: 34px; }
}
@media (max-width: 768px) {
  .mxHome-section { padding: 56px 0; }
  .mxHome-cards-section { padding: 16px 0 56px; }
  .mxHome-section-title { font-size: 28px; }
  .mxHome-section-desc { font-size: 15px; }
  .mxHome-dcard-name { font-size: 20px; }
  .mxHome-see-all { font-size: 14px; padding: 9px 16px; }
  .mxHome-discover-card { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .mxHome-section { padding: 44px 0; }
  .mxHome-section-title { font-size: 26px; }
  .mxHome-section-head { margin-bottom: 28px; }
  .mxHome-app-inner { padding: 32px 20px; border-radius: 16px; }
  .mxHome-app-text h2 { font-size: 27px; }
  .mxHome-dcard-name { font-size: 18px; }
  .mxHome-testimonial-text { font-size: 15px; }
  .mxHome-see-all { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .mxHome-see-all, .mxHome-discover-cta { transition: none !important; transform: none !important; }
}

/* ============================================================
   V2.1 PATCH — composite-specificity overrides for listing_mx.css
   AA fixes (doubled-class, cannot be beaten by single-class rules).
   Those rules forced dark-blue TEXT for the old text-link treatments.
   V2.1 adopts Doccure fills (dark pill / gradient / blue chip), where
   WHITE text is the AA pair (17:1 on #0f172a, 4.6:1+ on gradient).
   ============================================================ */
.mxHome-see-all.mxHome-see-all {
  color: var(--mx-white);
  background: var(--mx-ink-deep, #0f172a);
}
.mxHome-see-all.mxHome-see-all:hover {
  color: var(--mx-white);
  background: #1e293b;
}
.mxHome-dcard-book.mxHome-dcard-book {
  color: var(--mx-white);
  background: var(--mx-primary);
  box-shadow: var(--mx-shadow-cta);
}
.mxHome-dcard-book.mxHome-dcard-book:hover {
  color: var(--mx-white);
  background: var(--mx-primary-dark);
  box-shadow: var(--mx-shadow-cta-hover);
}
.mxHome-article-tag.mxHome-article-tag {
  color: var(--mx-white);
  background: var(--mx-brand, #2d67f0);
}
.mxHome-discover-cta.mxHome-discover-cta {
  color: var(--mx-primary-darker, var(--mx-primary-dark));
}
.mxHome-article-author.mxHome-article-author {
  color: var(--mx-primary-darker, var(--mx-primary-dark));
}
.mxHome-dcard-spec.mxHome-dcard-spec {
  color: var(--mx-primary-darker, var(--mx-primary-dark));
}
/* spec name hover: keep reference slate -> blue link transition AA */
.mxHome-spec-item:hover .mxHome-spec-name.mxHome-spec-name {
  color: var(--mx-primary-darker, var(--mx-primary-dark));
}

/* ============================================================
   V2.1 FINAL — mobile cascade repair.
   The V2.1 grid rules above sit AFTER the original responsive
   blocks, so they won at 390 (101px doctor cards, 165px reviews).
   Re-declare the small-viewport grids here (last rule wins) and
   stack the section head so titles get full width on phones.
   ============================================================ */
@media (max-width: 1100px) {
  .mxHome-doctor-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 1024px) {
  .mxHome-doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .mxHome-testimonial { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mxHome-section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .mxHome-doctor-grid { grid-template-columns: 1fr; }
  .mxHome-testimonial { grid-template-columns: 1fr; }
  .mxHome-article-grid { grid-template-columns: 1fr; }
  .mxHome-spec-photo { height: 166px; }
}

/* ============================================================
   V2.1 FLOOR FIX — 13px text floor on doctor card micro-copy
   (badge 12, meta 12.5, rating 12.5 were under the floor)
   ============================================================ */
.mxHome-dcard-badge { font-size: 13px; }
.mxHome-dcard-meta { font-size: 13px; }
.mxHome-dcard-meta i { font-size: 13px; }
.mxHome-dcard-rating { font-size: 13px; }
.mxHome-dcard-fee-cap { font-size: 13px; }
.mxHome-article-time i { font-size: 12px; }
