/* Abitnex landing. Mobile first: base rules are for phones, wider layouts are added at 681px, 900px and 1081px. */
:root {
  --indigo: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-100: #e0e7ff;
  --indigo-50: #eef2ff;
  --violet: #7c3aed;
  --violet-50: #f5f3ff;
  --cyan: #06b6d4;
  /* Cyan and teal are too light for text on white; these darker shades pass 4.5:1. */
  --cyan-text: #0e7490;
  --cyan-50: #ecfeff;
  --teal: #14b8a6;
  --teal-text: #0f766e;
  --teal-50: #f0fdfa;
  --blue: #3b82f6;
  --blue-text: #1d4ed8;
  --blue-50: #eff6ff;
  --red: #ef4444;
  --red-text: #dc2626;
  --rose: #e11d48;
  --red-50: #fef2f2;
  --success: #10b981;
  --success-text: #047857;
  --success-50: #ecfdf5;
  --warning: #f59e0b;
  --info: #3b82f6;
  --navy: #0f172a;
  --navy-2: #1e293b;

  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  --grad: linear-gradient(120deg, #4f46e5, #06b6d4);
  --grad-premium: linear-gradient(120deg, #6366f1, #8b5cf6 50%, #06b6d4);
  /* Text and white-label buttons end on a deeper cyan so contrast holds. */
  --grad-text: linear-gradient(100deg, #4f46e5 0%, #7c3aed 55%, #0891b2 100%);
  --grad-btn: linear-gradient(120deg, #4338ca 0%, #4f46e5 45%, #0891b2 100%);

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .04), 0 28px 64px -24px rgba(15, 23, 42, .28);
  --glow: 0 14px 34px -14px rgba(79, 70, 229, .55);

  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bar-h: 64px;
  --tab-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 93.75%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Touch screens scroll by swiping, so scroll bars are hidden there */
@media (pointer: coarse), (max-width: 680px) {
  * { scrollbar-width: none; }
  *::-webkit-scrollbar { display: none; }
}
section[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  min-width: 320px;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
svg { flex: none; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }

/* Shared icon sizing for inline stroke icons */
.bar svg, .field svg, .sel svg, .icon-btn svg,
.hero__note svg, .sos__icon svg, .help__icon svg, .tabbar svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--navy); color: #fff; border: 1px solid transparent;
  font: 650 0.98rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--grad-btn); box-shadow: var(--glow); }
.btn--ghost { background: rgba(255, 255, 255, .85); color: var(--text); border-color: var(--line-2); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--alert { background: var(--rose); color: #fff; box-shadow: 0 14px 30px -14px rgba(225, 29, 72, .7); }
.btn--light { background: #fff; color: var(--navy); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn__arrow { transition: transform .2s var(--ease); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(79, 70, 229, .65); }
  .btn--primary:hover .btn__arrow { transform: translateX(3px); }
  .btn--ghost:hover { border-color: var(--muted); background: #fff; }
  .btn--alert:hover { background: #be123c; }
  .btn--glass:hover { background: rgba(255, 255, 255, .18); }
}
.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto;
  color: var(--indigo); font-weight: 650; font-size: 0.95rem; text-decoration: none;
}
.link span { transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover span { transform: translateX(3px); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 14px; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); background: #fff; }
.icon-btn svg { width: 20px; height: 20px; }

.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); background: var(--bg); border: 1px solid var(--line);
}

/* Header */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 250, 252, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.bar.is-scrolled, .bar.is-open { background: rgba(255, 255, 255, .9); border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 23, 42, .45); }
.bar__inner { display: flex; align-items: center; gap: 8px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; padding: 6px 0; text-decoration: none; }
.brand img { flex: none; border-radius: 9px; box-shadow: 0 8px 18px -8px rgba(20, 184, 166, .7); }
.brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1; }
.brand__name { font: 800 1.16rem/1 var(--display); letter-spacing: -0.02em; color: var(--text); }
.brand__tag { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__actions { display: flex; align-items: center; gap: 6px; }
.bar__app { display: none; }
.bar__menu-close { display: none; }
.bar.is-open .bar__menu-open { display: none; }
.bar.is-open .bar__menu-close { display: block; }

/* Phone and tablet menu: a floating panel under the header. Hidden with visibility so closed links can't be focused. */
.bar__nav {
  position: fixed; left: 12px; right: 12px; top: calc(var(--bar-h) + 8px);
  display: grid; gap: 2px; padding: 10px;
  max-height: calc(100dvh - var(--bar-h) - var(--tab-h) - 32px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.bar.is-open .bar__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
.bar__nav > a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none;
}
.bar__nav > a:hover, .bar__nav > a[aria-current] { background: var(--indigo-50); color: var(--indigo-600); }
.bar__nav-sos { color: var(--red-text) !important; }
.bar__nav-extra { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Selection button in the header */
.sel {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font: 650 0.9rem var(--sans); color: var(--text); background: #fff;
  border: 1px solid var(--indigo-100); border-radius: 14px; cursor: pointer;
}
.sel[hidden] { display: none; }
.sel svg { width: 18px; height: 18px; color: var(--indigo); }
.sel > span:not(.sel__n) { display: none; }
.sel__n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--grad-btn); color: #fff; font-size: 0.78rem; font-weight: 700; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 18px 0 8px; }
.hero__bg { position: absolute; inset: calc(var(--bar-h) * -1) 0 -80px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 60% 20%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 60% 20%, #000 25%, transparent 75%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 30% at 92% 6%, rgba(6, 182, 212, .2), transparent 70%),
    radial-gradient(50% 34% at 4% 2%, rgba(99, 102, 241, .2), transparent 70%),
    radial-gradient(40% 26% at 70% 46%, rgba(139, 92, 246, .12), transparent 70%);
}
.hero__copy { min-width: 0; }

.hero__cta { display: grid; gap: 10px; margin-top: 0; }
.hero__cta .btn { width: 100%; }

.finder { margin-top: 22px; max-width: 640px; }

/* Offer banner: shown only while the server has an offer on */
.offer {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px 14px 8px 8px;
  text-decoration: none; border-radius: 16px; color: var(--text);
  background: linear-gradient(90deg, var(--success-50), #f0fdfa); border: 1px solid #a7f3d0;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.offer[hidden] { display: none; }
.offer:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(4, 120, 87, .5); }
.offer__pct { flex: none; padding: 7px 10px; border-radius: 11px; font-weight: 800; font-size: 0.98rem; color: #fff; background: var(--success-text); }
.offer__text { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.offer__text b { font-weight: 700; font-size: 0.94rem; }
.offer__text small { color: var(--muted-2); font-size: 0.8rem; }
.offer__go { margin-left: auto; color: var(--success-text); font-weight: 700; }

/* Hero search */
.hero-search {
  position: relative; z-index: 6; padding: 8px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .12), 0 22px 50px -26px rgba(79, 70, 229, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.field--hero { min-height: 56px; padding: 4px 4px 4px 14px; background: #fff; border-color: var(--line); box-shadow: none; }
.field--hero:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.field--hero input { padding: 10px 0; }
.field--hero .btn { flex: none; min-height: 46px; padding: 0 16px; border-radius: 14px; box-shadow: none; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 4px 2px; }
.try__label { margin-right: 2px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.try__chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 0.86rem var(--sans); color: var(--indigo-600); background: var(--indigo-50); border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.try__chip:hover { border-color: var(--indigo-100); background: #fff; }
.hero-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  max-height: min(64vh, 540px); overflow: auto; padding: 12px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.hero-results[hidden] { display: none; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.hero__note svg { width: 16px; height: 16px; color: var(--teal-text); }

.hits__status { padding: 2px 8px; font-size: 0.9rem; color: var(--muted); }
.hits { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hits__title { padding: 0 8px 6px; font-size: 0.66rem; color: var(--muted); }
.hit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.hit:hover { background: var(--bg); }
.hit__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hit__text b { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.hit__meta { font-size: 0.8rem; color: var(--muted); }
.hits__more { min-height: 40px; margin-top: 4px; padding: 0 8px; background: none; border: 0; cursor: pointer; color: var(--indigo); font: 650 0.88rem var(--sans); }
.hits__more:hover { text-decoration: underline; }
.hits__note { margin-top: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* Ads and offers added by admins. Not called "ad" in class names: ad blockers hide those. */
.spot { margin-top: 20px; }
.spot__track {
  display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; list-style: none; overflow-x: auto; scroll-padding: 0 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.spot__track::-webkit-scrollbar { display: none; }
.spot__track:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 4px; border-radius: var(--r); }
.spot__item { flex: 0 0 88%; scroll-snap-align: start; }
.spot__item:only-child { flex-basis: 100%; }
.spot__card {
  position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
}
.spot__card:is(a, button) { transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.spot__card:is(a, button):hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.spot__card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; background: var(--bg); }
.spot__text { display: block; padding: 10px 14px 12px; }
.spot__title { display: block; font-weight: 650; line-height: 1.3; }
.spot__sub { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.spot__tag {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  color: var(--muted-2); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.spot__dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.spot__dots[hidden] { display: none; }
.spot__dots button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.spot__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .2s, background-color .2s; }
.spot__dots button[aria-current="true"]::before { width: 20px; background: var(--indigo); }

/* Sections */
.section { padding: 56px 0 8px; }
.section.section--catalog { padding-top: 32px; }
.section__head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 24px; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 { font-size: clamp(1.4rem, 5.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.section__note { max-width: 40em; color: var(--muted); font-size: 0.98rem; }

/* Catalog: search, chips, cards */
.field {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field svg { width: 20px; height: 20px; color: var(--muted); }
/* 16px minimum stops iOS from zooming into the field. */
.field input {
  flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 400 max(16px, 1rem) var(--sans);
}
.field input::placeholder { color: var(--faint); font-size: 0.9rem; }
.chips {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 12px -16px 0; padding: 0 16px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 0.88rem var(--sans); color: var(--muted-2); background: #fff; border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.status { margin-top: 12px; min-height: 1.5em; font-size: 0.9rem; color: var(--muted); }
.status a { color: var(--indigo); font-weight: 600; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
@media (hover: hover) { .card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); } }
.card__top { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  padding: 4px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan-text); background: var(--cyan-50);
}
.badge--alert { color: var(--red-text); background: var(--red-50); }
.badge--offer { color: var(--success-text); background: var(--success-50); }
.was { margin-right: 4px; color: var(--faint); font-weight: 500; font-size: 0.82em; }
.card__name { font-size: 1.02rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card__price { font: 750 1.1rem var(--display); letter-spacing: -0.01em; }
.is-muted { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.add {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 72px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 650 0.9rem var(--sans); color: #fff; background: var(--indigo); border: 1px solid var(--indigo);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.add:hover { background: var(--indigo-600); box-shadow: var(--glow); }
.add[aria-pressed="true"] { color: var(--indigo-600); background: var(--indigo-50); border-color: var(--indigo-100); box-shadow: none; }
.add:disabled { cursor: not-allowed; color: var(--muted); background: var(--bg); border-color: var(--line); box-shadow: none; }
.more { width: 100%; margin-top: 14px; }
.more[hidden] { display: none; }

/* Phone test cards: name on the left, price and Add on the right */
.card:not(.card--doctor) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 14px; }
.card:not(.card--doctor) .card__top { grid-column: 1; }
.card:not(.card--doctor) .card__name { grid-column: 1; font-size: 0.98rem; }
.card:not(.card--doctor) .card__foot { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; }

.doc { display: flex; align-items: center; gap: 12px; }
.doc__avatar {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  font-weight: 750; color: var(--indigo-600);
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent;
}
.doc__avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc__spec { margin-top: 2px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
.card--doctor .card__foot { padding-top: 12px; border-top: 1px solid var(--line); }
.fees { display: flex; flex-wrap: wrap; gap: 6px; }
.fee { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 650; }
.fee.is-muted { font-weight: 500; }

/* Emergency: deliberately dark so it reads apart from everyday services */
.sos {
  position: relative; display: grid; gap: 22px; padding: 24px 20px; overflow: hidden; border-radius: var(--r-xl); color: #cbd5e1;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(225, 29, 72, .34), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(79, 70, 229, .3), transparent 70%),
    var(--navy);
  box-shadow: var(--shadow-lg);
}
.sos::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000);
}
.sos > * { position: relative; }
.sos h2 { margin-top: 12px; color: #fff; }
.sos__copy > p:not(.kicker):not(.sos__note) { margin-top: 12px; max-width: 34em; }
.sos__copy strong { color: #fff; font-weight: 650; }
.sos__actions { margin-top: 20px; }
.sos__actions .btn { width: 100%; }
.sos__note { margin-top: 12px; font-size: 0.84rem; color: #94a3b8; }
.kicker--alert { color: #fda4af; }
.kicker--alert::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--alert { background: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, .2); animation: pulse 2.4s ease-in-out infinite; }
.sos__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sos__list li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r); text-align: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.sos__list b { color: #fff; font-size: 0.84rem; font-weight: 650; line-height: 1.25; }
.sos__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fda4af; background: rgba(244, 63, 94, .16); border: 1px solid rgba(251, 113, 133, .25); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.partner { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 10px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s var(--ease); }
@media (hover: hover) { .partner:hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
.partner__logo { display: flex; height: 92px; margin-bottom: 10px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.partner__logo img { width: 100%; height: 100%; object-fit: contain; }
/* Background must match the solid colour of that partner's artwork. */
.partner__logo--fill { padding: 3px; border-color: transparent; background: #0a529d; }
.partner__logo--cream { padding: 3px; border-color: transparent; background: #f6f0e4; }
.partner h3 { padding: 0 4px; font-size: 0.92rem; line-height: 1.25; overflow-wrap: anywhere; }
.partner p { padding: 0 4px; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

/* Help */
.help { display: grid; gap: 10px; }
.help__card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.help__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; color: var(--indigo); background: var(--indigo-50); }
.help__icon--lab { color: var(--blue-text); background: var(--blue-50); }
.help__icon--doctor { color: var(--indigo); background: var(--indigo-50); }
.help__icon--alert { color: var(--red-text); background: var(--red-50); }
.help__card h3 { font-size: 1.08rem; }
.help__card p { color: var(--muted); font-size: 0.94rem; }
.help__card b { color: var(--text); font-weight: 650; }
.help__card--alert { border-color: #fee2e2; background: linear-gradient(170deg, #fff5f5, #fff 55%); }
.help__card--alert h3, .help__card--alert .link { color: var(--red-text); }

/* Vision */
.vision { padding-bottom: 8px; }
.vision__text { max-width: 26em; font: 650 clamp(1.1rem, 4.6vw, 1.85rem)/1.35 var(--display); letter-spacing: -0.02em; text-wrap: pretty; }
.vision__text span { color: var(--muted); font-weight: 550; }
.vision__sign { display: inline-flex; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--muted-2); }

/* Final call to action */
.cta-section { padding: 48px 0 8px; }
.cta {
  position: relative; display: grid; gap: 20px; padding: 28px 22px; overflow: hidden; border-radius: var(--r-xl); color: #cbd5e1;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(99, 102, 241, .55), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(6, 182, 212, .42), transparent 60%),
    radial-gradient(40% 80% at 75% 0%, rgba(139, 92, 246, .45), transparent 60%),
    var(--navy);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; max-width: 15em; }
.cta__copy p { margin-top: 10px; }
.cta__actions { display: grid; gap: 10px; }

/* Footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: #fff; }
.foot__base { padding: 18px 0 24px; font-size: 0.86rem; color: var(--muted); text-align: center; }

/* Phone tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.tabbar a, .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  color: var(--muted); font: 650 0.72rem var(--sans); text-decoration: none; border-radius: 14px;
}
.tabbar button { padding: 0; background: none; border: 0; cursor: pointer; }
.tabbar__badge {
  position: absolute; top: 6px; left: calc(50% + 6px); padding: 1px 5px; border-radius: 999px;
  font: 700 0.56rem/1.3 var(--sans); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-50); border: 1px solid #ddd6fe;
}
.tabbar a span, .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--indigo); }
.tabbar a[aria-current] svg { filter: drop-shadow(0 4px 8px rgba(79, 70, 229, .35)); }
.tabbar .tabbar__sos, .tabbar .tabbar__sos[aria-current] { color: var(--red-text); }
.tabbar .tabbar__sos[aria-current] svg { filter: drop-shadow(0 4px 8px rgba(220, 38, 38, .35)); }

/* Selection drawer */
.is-locked { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[hidden], .drawer__book[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%);
  background: var(--bg); box-shadow: var(--shadow-lg); animation: slide .24s var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__list { flex: 1; overflow-y: auto; padding: 4px 16px; }
.drawer__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer__item b { display: block; font-weight: 650; font-size: 0.96rem; overflow-wrap: anywhere; }
.drawer__item .mono { font-size: 0.64rem; }
.drawer__price { font-weight: 650; }
.drawer__empty { padding: 24px 0; color: var(--muted); }
.drawer__foot { display: grid; gap: 10px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
.drawer__sum { display: flex; justify-content: space-between; font-size: 1.05rem; }
.drawer__sum[hidden] { display: none; }
.drawer__sum--sub { font-size: 0.92rem; color: var(--muted); }
.drawer__sum--save { font-size: 0.92rem; font-weight: 650; color: var(--success-text); }
.drawer__book { width: 100%; }

/* Toast sits above the phone tab bar */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; font-size: 0.92rem; font-weight: 550;
  color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); animation: rise .2s ease-out;
}
.toast[hidden] { display: none; }

/* Scroll reveal: only applied by main.js to things below the first screen, and never with reduced motion. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(251, 113, 133, .06); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } }

/* Phones: icon beside the title to keep cards short */
@media (max-width: 680px) {
  .bar:has(.sel:not([hidden])) .brand__tag { display: none; }
  .help__card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 8px;
    padding: 18px;
  }
  .help__card > :not(.help__icon):not(h3) { grid-column: 1 / -1; }
  .help__icon { width: 44px; height: 44px; margin: 0; }
  .help__card .link { min-height: 40px; margin-top: 0; }
}

/* Small phones: keep the header to logo and icons */
@media (max-width: 379px) {
  .brand__tag { display: none; }
  .tabbar a, .tabbar button { font-size: 0.64rem; }
  .sos__list { gap: 6px; }
  .sos__list b { font-size: 0.78rem; }
}

@media (min-width: 400px) {
  .hero__cta { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 560px) {
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__cta .btn { width: auto; }
  .help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__actions { display: flex; flex-wrap: wrap; }
  .sos__actions .btn { width: auto; }
}

/* Tablets and up */
@media (min-width: 681px) {
  :root { --bar-h: 72px; --tab-h: 0px; }
  .wrap { width: min(1200px, 100% - 56px); }
  .tabbar { display: none; }
  .bar__search { display: none; }
  .bar__app { display: inline-flex; }
  .sel > span:not(.sel__n) { display: inline; }
  .toast { bottom: 24px; }

  .hero { padding: 40px 0 16px; }
  .hero__copy { max-width: 720px; margin-inline: auto; text-align: center; }
  .hero__cta, .try, .hero__note { justify-content: center; }
  .finder { margin: 28px auto 0; }
  .offer, .hero-results { text-align: left; }
  .hero-search { padding: 10px; }
  .field--hero { min-height: 60px; }
  .field--hero input { font-size: 1.05rem; }

  .spot { margin-top: 28px; }
  .spot__track { gap: 12px; margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .spot__item { flex-basis: calc(50% - 6px); }

  .section { padding: 88px 0 16px; }
  .section__head { gap: 12px; margin-bottom: 36px; }
  h2 { font-size: clamp(1.75rem, 3.6vw, 2.2rem); }
  .section__note { font-size: 1.05rem; }

  .chips { flex-wrap: wrap; margin: 16px 0 0; padding: 0; overflow: visible; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .card { padding: 20px; }
  .card:not(.card--doctor) { display: flex; align-items: stretch; padding: 20px; }
  .card:not(.card--doctor) .card__foot { flex-direction: row; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
  .card:not(.card--doctor) .card__name { font-size: 1.04rem; }
  .more { width: auto; }

  .sos { gap: 28px; padding: 40px; }
  .sos__list li { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px; text-align: left; }
  .sos__list b { font-size: 0.92rem; }
  .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .partner__logo { height: 110px; }
  .partner h3 { font-size: 0.98rem; }

  .cta-section { padding: 88px 0 8px; }
  .cta { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 48px; }
  .foot { margin-top: 88px; }
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .help { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Desktop */
@media (min-width: 1081px) {
  .bar__menu { display: none; }
  .bar__nav {
    position: static; display: flex; gap: 2px; margin: 0 auto; padding: 0; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .bar__nav > a { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 0.93rem; font-weight: 550; color: var(--muted-2); }
  .bar__nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .9); }
  .bar__nav > a[aria-current] { color: var(--indigo-600); background: var(--indigo-50); }
  .bar__nav-extra { display: none; }
  .brand { margin-right: 0; }

  .hero { padding: 72px 0 32px; }

  .section { padding: 112px 0 24px; }
  .section__head { margin-bottom: 44px; }
  h2 { font-size: clamp(2.1rem, 2.6vw, 2.5rem); }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .sos { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 48px; padding: 56px; }
  .sos__list { grid-template-columns: 1fr; gap: 10px; }
  .sos__list li { padding: 16px 18px; }
  .sos__list b { font-size: 1rem; }
  .vision__text { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
  .cta { padding: 64px; }
  .cta-section { padding-top: 112px; }
  .foot { margin-top: 112px; }
}

@media (min-width: 1440px) {
  .wrap { width: min(1280px, 100% - 96px); }
}

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