/* ==========================================================================
   Edamen Diagnostics — design system
   Brand tokens, typography, components. Mirrors the original site's palette
   (brand orange #ea580c, ink neutrals, Inter) and its glass / ambient-orb look.
   ========================================================================== */

:root {
  /* brand */
  --brand-50:#fff7ed; --brand-100:#ffedd5; --brand-200:#fed7aa; --brand-300:#fdba74;
  --brand-400:#fb923c; --brand-500:#f97316; --brand-600:#ea580c; --brand-700:#c2410c;
  --brand-800:#9a3412;

  /* ink */
  --ink-50:#f6f7f8; --ink-100:#eceef0; --ink-200:#d9dce1; --ink-300:#b6bbc4;
  --ink-400:#8b929e; --ink-500:#646b78; --ink-600:#4a505b; --ink-700:#343943;
  --ink-800:#24282f; --ink-900:#16191e; --ink-950:#0b0c0e;

  --gold-400:#fbbf24;
  --emerald-600:#059669;
  --emerald-700:#047857;
  --rose-600:#e11d48;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg:.5rem; --radius-xl:.75rem; --radius-2xl:1rem; --radius-3xl:1.5rem;
  --shadow-sm:0 1px 2px rgba(11,12,14,.06);
  --shadow-md:0 4px 16px -4px rgba(11,12,14,.10), 0 2px 6px -2px rgba(11,12,14,.06);
  --shadow-lg:0 18px 48px -18px rgba(11,12,14,.22), 0 8px 20px -12px rgba(11,12,14,.12);
  --shadow-xl:0 32px 80px -32px rgba(11,12,14,.30), 0 12px 32px -16px rgba(11,12,14,.14);

  --wrap: 80rem;
  --nav-h: 4.5rem;
}

/* --------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
/* Inline icons default to text-relative sizing so a bare icon never blows up
   the layout; component rules below set explicit sizes where needed. */
svg { width: 1.1em; height: 1.1em; flex: none; }
.ico svg, .btn svg, .book-btn svg, .pill svg, .footer__contact svg,
.hero__stat svg, .hero__check svg, .strip__item svg, .breadcrumb svg,
.search-box svg, .select-wrap svg, .empty svg, .nav__phone svg, .nav__burger svg,
.footer__brand svg, .fab-wa svg, .drawer__link svg { width: auto; height: auto; }
.pill svg { width: .85em; height: .85em; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.18; color: var(--ink-900); letter-spacing: -.022em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.0625rem; }
p { text-wrap: pretty; }
::selection { background: var(--brand-200); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

/* Decorative orbs sit outside the content box; clip them per section so they
   can never widen the page on small screens (clip, not hidden, so that
   position:sticky children keep working). */
section { position: relative; overflow-x: clip; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--ink { background: var(--ink-950); color: rgba(255,255,255,.72); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--soft { background: linear-gradient(180deg, #fff 0%, var(--ink-50) 100%); }

.stack > * + * { margin-top: var(--gap, 1rem); }

/* ---------------------------------------------------------- typography --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--light { color: var(--brand-300); }

.lede { font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.68; color: var(--ink-600); }
.section--ink .lede { color: rgba(255,255,255,.66); }
.muted { color: var(--ink-500); }
.small { font-size: .8125rem; line-height: 1.55; }
.tiny { font-size: .72rem; letter-spacing: .04em; }
.num { font-variant-numeric: tabular-nums; }
.grad-text {
  background: linear-gradient(100deg, var(--brand-600), var(--brand-400) 55%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.85rem; padding-inline: 1.35rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .22s, transform .18s, border-color .18s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 10px 26px -12px rgba(234,88,12,.75); }
.btn--primary:hover { background: var(--brand-700); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-800); }
.btn--ghost { background: #fff; color: var(--ink-800); border-color: var(--ink-200); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--light:hover { background: rgba(255,255,255,.16); }
.btn--sm { height: 2.35rem; padding-inline: 1rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--wa svg { color: #25d366; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .875rem; color: var(--brand-700);
  transition: gap .18s, color .18s;
}
.link-arrow:hover { gap: .62rem; color: var(--brand-800); }

/* -------------------------------------------------------------- cards ---- */
.card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s, transform .25s;
}
.card--hover:hover { box-shadow: var(--shadow-lg); border-color: var(--ink-200); transform: translateY(-2px); }
.card--pad { padding: 1.5rem; }
@media (min-width: 768px) { .card--pad { padding: 1.85rem; } }

.glass {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
}
.glass-dark {
  background: rgba(11,12,14,.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.09);
}

/* ambient decoration */
.orb {
  position: absolute; border-radius: 999px; filter: blur(90px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.orb--orange { background: radial-gradient(circle, rgba(234,88,12,.18), rgba(234,88,12,0)); }
.orb--ember  { background: radial-gradient(circle, rgba(36,40,47,.16), rgba(36,40,47,0)); }
.orb--smoke  { background: radial-gradient(circle, rgba(52,57,67,.12), rgba(52,57,67,0)); }
.dot-pattern { background-image: radial-gradient(rgba(249,115,22,.16) 1px, transparent 1px); background-size: 20px 20px; }
.dot-pattern--light { background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
.noise { position: absolute; inset: 0; opacity: .035; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* icon tile */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; border-radius: var(--radius-xl); flex: none;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.ico svg { width: 1.3rem; height: 1.3rem; }
.ico--sm { width: 2.15rem; height: 2.15rem; border-radius: .6rem; }
.ico--sm svg { width: 1.05rem; height: 1.05rem; }
.ico--dark { background: rgba(255,255,255,.06); color: var(--brand-300); border-color: rgba(255,255,255,.12); }
.ico--solid { background: var(--brand-600); color: #fff; border-color: transparent; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .62rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .01em;
  background: var(--ink-100); color: var(--ink-600); border: 1px solid var(--ink-100);
  white-space: nowrap;
}
.pill--brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.pill--emerald { background: #ecfdf5; color: var(--emerald-700); border-color: #d1fae5; }
.pill--ink { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.pill--light { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.14); }
.pill--gold { background: rgba(251,191,36,.14); color: #a16207; border-color: rgba(251,191,36,.28); }

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--ink-100);
  box-shadow: 0 1px 0 rgba(11,12,14,.02), 0 8px 28px -24px rgba(11,12,14,.4);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; width: 100%; }
.nav__brand { display: flex; align-items: center; flex: none; }
/* Supplied logo artwork: 1100x416 includes the tagline. */
.brand-img { width: auto; height: 3.15rem; display: block; }
.brand-img--dark { display: none; }
.brand-mark { width: 2.4rem; height: 2.4rem; display: block; }
@media (min-width: 768px) { .brand-img { height: 3.5rem; } }
@media (max-width: 400px) { .brand-img { height: 2.75rem; } }

.nav__links { display: none; align-items: center; gap: .15rem; margin-left: auto; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  position: relative; padding: .5rem .72rem; border-radius: 999px;
  font-size: .855rem; font-weight: 500; color: var(--ink-600);
  transition: color .16s, background .16s;
}
.nav__link:hover { color: var(--ink-900); background: var(--ink-50); }
.nav__link.is-active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }

.nav__cta { display: none; align-items: center; gap: .5rem; margin-left: .6rem; }
@media (min-width: 1024px) { .nav__cta { display: flex; } }
.nav__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-700);
  padding: .5rem .7rem; border-radius: 999px;
}
.nav__phone:hover { background: var(--ink-50); color: var(--ink-900); }
.nav__phone svg { width: .95rem; height: .95rem; color: var(--brand-600); }

.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto; width: 2.6rem; height: 2.6rem; border-radius: .7rem;
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-800);
}
@media (min-width: 1024px) { .nav__burger { display: none; } }
.nav__burger svg { width: 1.25rem; height: 1.25rem; }

.drawer {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(11,12,14,.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.drawer.is-open { display: block; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(21rem, 88vw);
  background: #fff; padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem;
  box-shadow: var(--shadow-xl); overflow-y: auto;
  animation: slideIn .26s cubic-bezier(.22,1,.36,1);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .9rem; border-radius: .7rem; font-weight: 600; font-size: .95rem; color: var(--ink-800);
}
.drawer__link:hover, .drawer__link.is-active { background: var(--brand-50); color: var(--brand-700); }
.drawer__link svg { width: 1rem; height: 1rem; color: var(--ink-300); }

/* --------------------------------------------------------------- hero ---- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 1rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(1100px 520px at 82% -8%, rgba(249,115,22,.13), transparent 62%),
  radial-gradient(760px 420px at 8% 4%, rgba(36,40,47,.055), transparent 60%),
  linear-gradient(180deg, #fff 40%, #fdfdfd 100%); }
.hero__grid { position: relative; display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 3.5rem; } }

.hero__stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.hero__stat {
  display: flex; align-items: center; gap: .55rem; padding: .5rem .8rem .5rem .6rem;
  background: rgba(255,255,255,.8); border: 1px solid var(--ink-100); border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm);
}
.hero__stat svg { width: .95rem; height: .95rem; color: var(--brand-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero__checks { display: grid; gap: .55rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
@media (max-width: 1023px) { .hero__checks { display: none; } }
.hero__check { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--ink-600); }
.hero__check svg { width: 1rem; height: 1rem; color: var(--emerald-600); flex: none; margin-top: .12rem; }

/* hero visual */
.hero__visual { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--radius-3xl); overflow: hidden;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-xl); aspect-ratio: 4 / 4.4;
  background: var(--ink-100);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0) 42%, rgba(11,12,14,.62) 100%);
}
.hero__badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--ink-800);
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-md);
}
.hero__badge svg { width: .95rem; height: .95rem; }
.hero__badge--tl { top: 1.05rem; left: 1.05rem; }
.hero__badge--br { bottom: 1.05rem; right: 1.05rem; }

.hero__flow {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1rem;
  display: grid; gap: .4rem;
}
.hero__flow-row {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: .7rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: .74rem; font-weight: 500;
}
.hero__flow-row b { font-weight: 600; }
.hero__flow-row i {
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px;
  background: rgba(249,115,22,.9); font-size: .62rem; font-style: normal; font-weight: 700; flex: none;
}
.hero__float {
  position: absolute; z-index: 3; display: grid; gap: .1rem;
  padding: .7rem .9rem; border-radius: var(--radius-xl); background: #fff;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.hero__float b { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.hero__float span { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.hero__float--a { top: -1.1rem; right: -1rem; }
.hero__float--b { bottom: 34%; left: -1.5rem; animation-delay: -3s; }
@media (max-width: 1023px) { .hero__float--a { right: .4rem; top: -.8rem; } .hero__float--b { left: .4rem; bottom: 32%; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ------------------------------------------------------------- marquee --- */
.strip { border-block: 1px solid var(--ink-100); background: var(--ink-50); overflow: hidden; }
.strip__track { display: flex; gap: 2.5rem; width: max-content; padding-block: .82rem; animation: marquee 42s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-500); white-space: nowrap;
}
.strip__item svg { width: .9rem; height: .9rem; color: var(--brand-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ category --- */
.cat-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.cat {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem;
  border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .22s, transform .2s;
}
.cat:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.cat__name { font-size: .95rem; font-weight: 650; color: var(--ink-900); letter-spacing: -.012em; line-height: 1.3; }
.cat__blurb { font-size: .775rem; color: var(--ink-500); line-height: 1.5; }
.cat__count { font-size: .7rem; font-weight: 700; color: var(--brand-700); letter-spacing: .02em; }

/* --------------------------------------------------------- test results -- */
.toolbar { display: grid; gap: .7rem; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: .95rem; width: 1.05rem; height: 1.05rem; color: var(--ink-400); pointer-events: none; }
.search-box input {
  width: 100%; height: 3.1rem; padding: 0 2.9rem 0 2.7rem;
  border-radius: 999px; border: 1px solid var(--ink-200); background: #fff;
  font-size: .93rem; color: var(--ink-900); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .22s;
}
.search-box input::placeholder { color: var(--ink-400); }
.search-box input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.search-box__clear {
  position: absolute; right: .6rem; display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem; border-radius: 999px; color: var(--ink-400);
}
.search-box__clear:hover { background: var(--ink-100); color: var(--ink-700); }
.search-box__clear svg { width: .95rem; height: .95rem; }

.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap svg { position: absolute; right: .95rem; width: .95rem; height: .95rem; color: var(--ink-400); pointer-events: none; }
.select-wrap select {
  appearance: none; width: 100%; height: 3.1rem; padding: 0 2.6rem 0 1rem;
  border-radius: 999px; border: 1px solid var(--ink-200); background: #fff;
  font-size: .875rem; font-weight: 500; color: var(--ink-800); box-shadow: var(--shadow-sm); cursor: pointer;
}
.select-wrap select:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }

.chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1px solid var(--ink-200); color: var(--ink-600);
  transition: all .16s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-300); color: var(--ink-900); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chip__n { font-weight: 500; opacity: .55; margin-left: .28rem; font-size: .74rem; }

.result-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; font-size: .8rem; color: var(--ink-500); }
.result-meta b { color: var(--ink-900); font-weight: 650; }

.test-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.test {
  display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.05rem;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  transition: border-color .18s, box-shadow .22s, transform .18s;
}
.test:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.test__code {
  align-self: flex-start; font-size: .63rem; font-weight: 700; letter-spacing: .09em;
  color: var(--ink-500); background: var(--ink-50); border: 1px solid var(--ink-100);
  padding: .16rem .42rem; border-radius: .35rem;
}
.test__name { font-size: .93rem; font-weight: 600; color: var(--ink-900); line-height: 1.34; letter-spacing: -.012em; }
.test__name a:hover { color: var(--brand-700); }
.test__meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.test__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem;
  margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--ink-100);
}
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price__label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.price__val { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.book-btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 2.1rem; padding-inline: .8rem;
  border-radius: 999px; background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100); font-size: .78rem; font-weight: 650;
  transition: background .16s, color .16s, border-color .16s;
}
.book-btn:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.book-btn svg { width: .85rem; height: .85rem; }

.empty { display: grid; place-items: center; gap: .7rem; padding: 4rem 1rem; text-align: center; }
.empty svg { width: 2.5rem; height: 2.5rem; color: var(--ink-300); }

.pager { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-top: 2rem; }
.pager button {
  min-width: 2.35rem; height: 2.35rem; padding-inline: .6rem; border-radius: .6rem;
  border: 1px solid var(--ink-200); background: #fff; font-size: .82rem; font-weight: 600;
  color: var(--ink-600); transition: all .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--ink-300); color: var(--ink-900); }
.pager button.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .gap { color: var(--ink-400); padding-inline: .15rem; }

/* ---------------------------------------------------------- detail page -- */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-400); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb svg { width: .8rem; height: .8rem; }
.breadcrumb b { color: var(--ink-700); font-weight: 600; }

.detail-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 22rem; gap: 2rem; } }

.kv { display: grid; gap: 0; }
.kv__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--ink-100); }
.kv__row:last-child { border-bottom: 0; }
.kv__k { font-size: .78rem; font-weight: 600; color: var(--ink-500); letter-spacing: .01em; }
.kv__v { font-size: .85rem; font-weight: 600; color: var(--ink-900); text-align: right; }

.sticky-aside { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.pricebox { padding: 1.35rem; border-radius: var(--radius-2xl); background: linear-gradient(180deg,#fff, var(--ink-50)); border: 1px solid var(--ink-200); box-shadow: var(--shadow-md); }
.pricebox__val { font-size: 2.1rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- packages -- */
.pkg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.pkg {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s, transform .25s;
}
.pkg:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); transform: translateY(-3px); }
.pkg__stripe { height: 3px; background: linear-gradient(90deg, var(--brand-600), var(--brand-400), var(--gold-400)); }
.pkg__body { display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem; flex: 1; }
.pkg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.pkg__name { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.022em; line-height: 1.25; }
.pkg__tag { font-size: .8rem; color: var(--ink-500); line-height: 1.5; }
.pkg__list { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .1rem; }
.pkg__list li {
  font-size: .7rem; font-weight: 500; color: var(--ink-600); background: var(--ink-50);
  border: 1px solid var(--ink-100); padding: .18rem .45rem; border-radius: .35rem;
}
.pkg__more { font-size: .7rem; font-weight: 600; color: var(--brand-700); padding: .18rem .3rem; }
.pkg__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--ink-100); }
.pkg__mrp { font-size: .76rem; color: var(--ink-400); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pkg__offer { font-size: 1.35rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.save-flag {
  position: absolute; top: .85rem; right: .85rem; z-index: 2;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: .22rem .5rem;
  border-radius: 999px; background: var(--emerald-600); color: #fff;
}

.pkg-detail { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 1024px) { .pkg-detail { grid-template-columns: 1fr 21rem; gap: 2.25rem; } }
.pkg-tests { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(16rem,1fr)); }

/* --------------------------------------------------------------- steps --- */
.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.4rem 1.25rem; border-radius: var(--radius-2xl);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.step__n {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff;
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -10px rgba(234,88,12,.8);
}
.step__t { margin-top: .9rem; font-size: .98rem; font-weight: 650; color: #fff; }
.step__d { margin-top: .35rem; font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.6); }

/* ---------------------------------------------------------- split media -- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--rev > :first-child { order: 2; } }
.split__media { position: relative; border-radius: var(--radius-3xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-100); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__note {
  position: absolute; inset: auto .85rem .85rem .85rem; padding: .7rem .85rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .75rem; color: var(--ink-600);
}
.split__note b { display: block; color: var(--ink-900); font-size: .8rem; }

.feature { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--ink-100); }
.feature:last-child { border-bottom: 0; }
.feature__t { font-size: .93rem; font-weight: 650; color: var(--ink-900); }
.feature__d { margin-top: .2rem; font-size: .82rem; line-height: 1.6; color: var(--ink-500); }
.section--ink .feature { border-bottom-color: rgba(255,255,255,.08); }
.section--ink .feature__t { color: #fff; }
.section--ink .feature__d { color: rgba(255,255,255,.58); }

/* ---------------------------------------------------------------- CTA ---- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-3xl); padding: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(135deg, var(--ink-950), var(--ink-800) 58%, #3a1d0c 130%); color: rgba(255,255,255,.72); }
.cta h2 { color: #fff; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* -------------------------------------------------------------- footer --- */
.footer { background: var(--ink-950); color: rgba(255,255,255,.6); padding-block: 3.5rem 2rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer h4 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: .9rem; }
.footer a:hover { color: #fff; }
.footer__links { display: grid; gap: .55rem; font-size: .85rem; }
.footer__brand { margin-bottom: 1rem; }
.footer__brand .brand-img { height: 4.25rem; }
.footer__brand .brand-img--light { display: none; }
.footer__brand .brand-img--dark { display: block; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 2.75rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .74rem; color: rgba(255,255,255,.4);
}
.footer__contact { display: grid; gap: .55rem; font-size: .85rem; }
.footer__contact a, .footer__contact div { display: flex; align-items: flex-start; gap: .55rem; }
.footer__contact svg { width: .95rem; height: .95rem; color: var(--brand-400); flex: none; margin-top: .2rem; }

/* ------------------------------------------------------- float actions --- */
.fab-wa {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 55;
  display: inline-flex; align-items: center; gap: .5rem; height: 3.15rem; padding-inline: 1.1rem;
  border-radius: 999px; background: #25d366; color: #06301b; font-weight: 700; font-size: .85rem;
  box-shadow: 0 14px 34px -12px rgba(37,211,102,.7); transition: transform .18s, box-shadow .2s;
}
.fab-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37,211,102,.8); }
.fab-wa svg { width: 1.35rem; height: 1.35rem; }
@media (max-width: 640px) { .fab-wa span { display: none; } .fab-wa { padding-inline: 0; width: 3.15rem; justify-content: center; } }

/* ----------------------------------------------------------- animation --- */
/* Reveal is progressive enhancement: content is visible by default and only
   hidden once JS has confirmed it can animate and re-expose it. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-in, .no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero__float, .strip__track { animation: none !important; }
  html { scroll-behavior: auto; }
}

.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;
}
.skip-link {
  position: absolute; left: 50%; top: .5rem; transform: translate(-50%,-150%);
  background: var(--ink-900); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
  font-size: .82rem; font-weight: 600; z-index: 100; transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ------------------------------------------------------------ utilities -- */
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.head { display: grid; gap: .7rem; max-width: 42rem; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ------------------------------------------------- plain-language guide -- */
.explain {
  border: 1px solid var(--brand-100);
  background: linear-gradient(180deg, var(--brand-50), #fff 70%);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.2rem;
}
.explain__head {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-700);
}
.explain__head svg { width: .95rem; height: .95rem; }
.explain__plain {
  margin-top: .5rem; font-size: 1.02rem; font-weight: 600; line-height: 1.45;
  color: var(--ink-900); letter-spacing: -.012em;
}
.explain__grid { display: grid; gap: .95rem; margin-top: 1rem; }
@media (min-width: 640px) { .explain__grid { grid-template-columns: 1fr 1fr; } }
.explain__grid h4 { font-size: .8rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.005em; }
.explain__grid p { margin-top: .25rem; font-size: .825rem; line-height: 1.62; color: var(--ink-600); }
.explain__note {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--brand-200);
  font-size: .72rem; line-height: 1.55; color: var(--ink-500);
}

/* ---------------------------------------------------------------- blog -- */
.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.post {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s, transform .25s;
  display: flex;
}
.post:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); transform: translateY(-3px); }
.post__link { display: flex; flex-direction: column; gap: .6rem; padding: 1.35rem; width: 100%; }
.post__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.post__title { font-size: 1.08rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.022em; line-height: 1.3; }
.post:hover .post__title { color: var(--brand-700); }
.post__excerpt { font-size: .845rem; line-height: 1.62; color: var(--ink-500); }

.article-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0,1fr) 20rem; gap: 2.5rem; } }
.article { max-width: 44rem; }
.article h2 {
  font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 700; color: var(--ink-900);
  letter-spacing: -.022em; margin-top: 2.1rem; margin-bottom: .6rem; line-height: 1.28;
}
.article h3 {
  font-size: 1rem; font-weight: 700; color: var(--ink-900);
  margin-top: 1.35rem; margin-bottom: .35rem;
}
.article p { font-size: .95rem; line-height: 1.75; color: var(--ink-600); margin-bottom: .9rem; }
.article ul, .article ol { margin: 0 0 1.1rem 0; display: grid; gap: .45rem; }
.article li {
  position: relative; padding-left: 1.15rem;
  font-size: .92rem; line-height: 1.68; color: var(--ink-600);
}
.article ul > li::before {
  content: ""; position: absolute; left: 0; top: .62rem;
  width: .38rem; height: .38rem; border-radius: 999px; background: var(--brand-500);
}
.article ol { counter-reset: art; }
.article ol > li { counter-increment: art; }
.article ol > li::before {
  content: counter(art) "."; position: absolute; left: 0; top: 0;
  font-size: .82rem; font-weight: 700; color: var(--brand-700);
}
.article strong { color: var(--ink-900); font-weight: 650; }
.article .callout {
  margin: 1.5rem 0; padding: 1.05rem 1.15rem;
  border-left: 3px solid var(--brand-600);
  background: var(--brand-50); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: .9rem; line-height: 1.68; color: var(--brand-800);
}
.article .callout strong { color: var(--brand-800); }
.article__foot {
  margin-top: 2.5rem; padding: 1.35rem;
  background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
}
.article__foot h4 { font-size: .95rem; }
.article__foot p { font-size: .82rem; line-height: 1.65; color: var(--ink-500); margin: .45rem 0 0; }
