/* ==========================================================================
   Dial A Doctor — Design System
   Palette sampled from the brand logo (navy / teal / blue)
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0d1f47;
  --navy-800: #12275c;
  --navy-700: #1b3a7a;
  --blue-600: #2272ce;
  --blue-500: #3d8ae0;
  --teal-600: #12857c;
  --teal-500: #17a79b;
  --teal-400: #3cc0b4;
  --mint-100: #e8f4f2;
  --mint-50: #f3faf9;

  /* Neutrals */
  --white: #ffffff;
  --slate-50: #f8fafb;
  --slate-100: #eef2f5;
  --slate-200: #dde5ea;
  --slate-400: #8c9bab;
  --slate-600: #566473;
  --slate-800: #2b3644;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--mint-50);
  --surface: var(--white);
  --text: var(--slate-800);
  --text-muted: var(--slate-600);
  --text-on-dark: #dce6f5;
  --heading: var(--navy-800);
  --primary: var(--teal-500);
  --primary-hover: var(--teal-600);
  --accent: var(--blue-600);
  --border: var(--slate-200);
  --focus: var(--blue-600);

  /* Spacing scale (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(13, 31, 71, 0.06), 0 1px 3px rgba(13, 31, 71, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 31, 71, 0.07), 0 2px 4px rgba(13, 31, 71, 0.04);
  --shadow-lg: 0 12px 32px rgba(13, 31, 71, 0.1), 0 4px 8px rgba(13, 31, 71, 0.04);

  /* Layout */
  --container: 1180px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Visible, consistent focus ring — never remove this. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-8);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
  .container { padding-inline: var(--space-6); }
}

.section--soft { background: var(--bg-soft); }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-7);
}
.section__head p {
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--teal-600);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons — min 44px touch target
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.975); }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-lg); }

.btn--teal {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--teal:hover { background: var(--teal-600); box-shadow: var(--shadow-lg); }

.btn--outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--heading);
}
.btn--outline:hover { border-color: var(--teal-500); background: var(--mint-50); }

.btn--light {
  background: #fff;
  color: var(--navy-800);
}
.btn--light:hover { background: var(--mint-100); }

.btn--lg { min-height: 54px; padding-inline: var(--space-7); font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brand__text span:first-child { color: var(--navy-800); }
.brand__text span:last-child { color: var(--teal-500); }

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  position: relative;
  padding-block: var(--space-2);
  color: var(--slate-800);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--teal-600); }

/* Active location indicator — not colour alone, adds an underline bar */
.nav a[aria-current="page"] { color: var(--teal-600); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle:hover { background: var(--mint-50); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  display: block;
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-5) var(--space-5);
}
.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-2);
  min-height: 48px;
  color: var(--slate-800);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-nav a[aria-current="page"] { color: var(--teal-600); font-weight: 700; }
.mobile-nav .btn { margin-top: var(--space-4); }

@media (min-width: 900px) {
  .mobile-nav { display: none !important; }
}

/* ECG pulse divider — styled like a real heart-rate monitor:
   a dark screen with a faint graticule grid and a glowing teal PQRST trace
   that scrolls continuously across the page. */
.pulse-divider {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
  overflow: hidden;
  background: transparent;
}

.pulse-divider__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Faint always-on baseline so the waveform's shape is visible. */
.pulse-divider__base {
  fill: none;
  stroke: rgba(23, 167, 155, 0.28);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* A short bright neon segment that travels along the whole path — sweeping
   across the flat line and rising up through each heartbeat, like a real
   monitor drawing the trace. The dash is 55/1000 of the path; the 945 gap
   keeps exactly one lit segment on screen so it loops seamlessly. */
.pulse-divider__runner {
  fill: none;
  stroke: #2fe3cf;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 55 945;
  filter:
    drop-shadow(0 0 2px #6bf0de)
    drop-shadow(0 0 5px rgba(64, 224, 205, 0.7))
    drop-shadow(0 0 9px rgba(64, 224, 205, 0.4));
  animation: ecg-run 2.6s linear infinite;
  will-change: stroke-dashoffset;
}

/* Decreasing offset moves the lit segment forward (left → right) along the path. */
@keyframes ecg-run {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-divider__runner { animation: none; stroke-dasharray: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--mint-100) 0%, #f6fbfb 45%, #eaf3f8 100%);
  padding-block: var(--space-8) 0;
  overflow: hidden;
}

/* Copy first, photo second — regardless of DOM order. */
.hero > .container { order: 1; flex: 1 1 auto; }

.hero__grid {
  position: relative; /* sits above .hero__media */
  z-index: 1;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

/* ---- Hero image ----------------------------------------------------------
   Mobile: sits in flow below the copy, fading in from the top.
   Desktop: full-bleed layer across the whole hero, fading out to the left so
   the headline reads against clean background rather than over the photo.
   -------------------------------------------------------------------------- */

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  order: 2;
  margin-top: var(--space-7);
  /* Fade the top edge into the hero background */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: 620px;
    padding-block: var(--space-8) var(--space-9);
  }

  /* Bleeds to the top, right and bottom edges of the hero; its left edge is
     anchored so the people in the photo stay clear of the headline, then
     dissolved by the mask so there is no visible seam. */
  .hero__media {
    position: absolute;
    inset: 0 0 0 50%;
    width: auto;
    aspect-ratio: auto;
    margin-top: 0;
    z-index: 0;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 18%,
      rgba(0, 0, 0, 0.45) 30%,
      #000 42%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 18%,
      rgba(0, 0, 0, 0.45) 30%,
      #000 42%
    );
  }

  .hero__media img { object-position: 60% center; }

  /* Keep the copy clear of the photo at every desktop width */
  .hero__content { max-width: 420px; }
}

@media (min-width: 1200px) {
  .hero__media { inset: 0 0 0 44%; }
  .hero__content { max-width: 540px; }
}

@media (min-width: 1500px) {
  .hero__media { inset: 0 0 0 40%; }
  .hero__content { max-width: 580px; }
}

.hero h1 { margin-bottom: var(--space-5); }

.hero__lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
.hero__trust svg { flex-shrink: 0; color: var(--teal-600); }

/* Boxed media frame (About section) — reserves aspect ratio to avoid CLS */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--mint-100), #dceef2);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo variant (About section) — show the full logo on white with breathing
   room, rather than cropping it like a photo. */
.media-frame--logo {
  background: #fff;
}
.media-frame--logo img {
  object-fit: contain;
  padding: clamp(16px, 6%, 40px);
}

/* Shown only while no real photo is present */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  color: var(--teal-600);
}
.media-placeholder svg { opacity: 0.55; }
.media-placeholder p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  max-width: 30ch;
}
.media-placeholder code {
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--navy-800);
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #c9dbe4; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--mint-100);
  color: var(--teal-600);
}

/* Raster icon variant. The source JPEGs have opaque white/cream backgrounds,
   so multiply blending drops those into the mint tile instead of showing a
   pale rectangle. Dark line-work is unaffected by the blend. */
.card__icon--image {
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  /* No tile behind raster icons — sit directly on the white card. */
  background: transparent;
  border-radius: 0;
}
.card__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* The source art carries wide internal margins; scaling up crops that
     whitespace so the glyph reads at small sizes. */
  transform: scale(1.28);
}

.card h3 { margin-bottom: var(--space-2); }
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Trust & Safety badges
   -------------------------------------------------------------------------- */

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--teal-600);
}
.badge h3 {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.35;
}
.badge p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.compliance-note {
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-5);
  max-width: 760px;
  text-align: center;
  background: var(--mint-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.compliance-note p { margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   How it works — numbered steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
}

.step__icon { margin-bottom: var(--space-4); color: var(--teal-600); }

/* Raster step icons. Source JPEGs had a light-cyan background flattened to
   white, so multiply blending drops it into the white step card. */
.step__icon--image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 92px;
  overflow: hidden;
  isolation: isolate;
}
.step__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.step h3 { margin-bottom: var(--space-2); font-size: 1.0625rem; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

/* Connector arrows between steps on wide screens */
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-6) * -1);
    width: var(--space-6);
    height: 2px;
    background: linear-gradient(90deg, var(--teal-400), transparent);
    transform: translateY(-50%);
  }
}

/* --------------------------------------------------------------------------
   Split promo panels (GP network + app download)
   -------------------------------------------------------------------------- */

.promo {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .promo { grid-template-columns: repeat(2, 1fr); } }

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
}

.panel--teal {
  background: linear-gradient(140deg, var(--teal-500), var(--teal-600));
  color: #fff;
}
.panel--teal h2,
.panel--navy h2 { color: #fff; }
.panel--teal p { color: rgba(255, 255, 255, 0.92); }

.panel--navy {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: var(--text-on-dark);
}
.panel--navy p { color: rgba(255, 255, 255, 0.85); }

.panel h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-2) var(--space-5);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.store-badge:hover { background: #1a1a1a; }
.store-badge:active { transform: scale(0.975); }
.store-badge svg { flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge__text small { font-size: 0.625rem; opacity: 0.85; }
.store-badge__text strong { font-size: 0.9375rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq { max-width: 820px; margin-inline: auto; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 60px;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq__question:hover { background: var(--mint-50); }

.faq__question svg {
  flex-shrink: 0;
  color: var(--teal-600);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__question[aria-expanded="true"] svg { transform: rotate(45deg); }

.faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer[hidden] { display: none; }

/* --------------------------------------------------------------------------
   About / feature list
   -------------------------------------------------------------------------- */

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-500); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-600);
  /* Tabular figures keep numeric columns from shifting */
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-900);
  color: var(--text-on-dark);
  padding-block: var(--space-8) var(--space-5);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.footer h3 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-decoration: none;
}
.footer a:hover { color: #fff; text-decoration: underline; }

/* Footer list links get a full 44px tap target rather than bare 17px text. */
.footer li { margin-bottom: 0; }
.footer li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-1);
}

.footer .brand__text span:first-child { color: #fff; }
.footer .brand__text span:last-child { color: var(--teal-400); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__bottom p { margin: 0; font-size: 0.8125rem; }

.social {
  display: flex;
  gap: var(--space-2);
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.social a:hover { background: var(--teal-500); }

/* --------------------------------------------------------------------------
   Forms (For Doctors page)
   -------------------------------------------------------------------------- */

.form-card {
  padding: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: var(--space-5); }

.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
}
.field .req { color: #c0392b; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 1rem; /* 16px avoids iOS zoom-on-focus */
  color: var(--text);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b9cbd6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(23, 167, 155, 0.18);
}

.field .hint {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Error state uses colour + icon + text, never colour alone */
.field .error {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #c0392b;
}
.field.is-invalid .error { display: flex; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.checkbox-field input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal-500);
}
.checkbox-field label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.form-status.is-visible { display: flex; }
.form-status--success {
  background: #e6f6f3;
  border: 1px solid var(--teal-500);
  color: #0b5f57;
}
.form-status--error {
  background: #fdecea;
  border: 1px solid #c0392b;
  color: #922b21;
}
.form-status svg { flex-shrink: 0; margin-top: 2px; }

@media (min-width: 640px) {
  .field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
  .field-row .field { margin-bottom: var(--space-5); }
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(160deg, var(--mint-100), #eef6fa);
  padding-block: var(--space-8);
  text-align: center;
}
.page-hero p {
  margin-inline: auto;
  color: var(--slate-600);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal — opt-in, and fully disabled under reduced-motion
   -------------------------------------------------------------------------- */

/* Scoped to .js so content stays visible if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .nav-toggle, .pulse-divider { display: none; }
}
