/* ============================================================================
   REPORT SHOWCASE - "Your DNA Report, Decoded" (homepage #features)

   Three chapters behind tabs: Ancestry (every kit), Health DNA (Decode) and
   Blood & Body (Infinite). Every class starts rx- and avoids the substrings the
   site-wide catch-alls match (card, item, grid, list, title, header, content,
   container, button, submit, input, shadow, desktop, modal).

   Motion: everything animates once, when it scrolls into view or its tab opens.
   Nothing loops. Without JS (.rx without .is-js) everything is simply shown.
   ============================================================================ */

.rx {
  --rx-spring: cubic-bezier(.34, 1.4, .64, 1);
  --rx-glide: cubic-bezier(.22, 1, .36, 1);
  --rx-glow: 0, 210, 255;
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  isolation: isolate;
}
@supports (transition-timing-function: linear(0, 1)) {
  .rx {
    --rx-spring: linear(0, .057, .198, .381, .573, .751, .9, 1.013, 1.089, 1.132, 1.147, 1.142, 1.123,
      1.097, 1.068, 1.041, 1.018, 1.001, .988, .981, .978, .979, .981, .985, .989, .993, .997, .999,
      1.001, 1.003, 1.003, 1.003, 1.003, 1.002, 1.002, 1.001, 1);
  }
}
.rx[data-ch="health"]   { --rx-glow: 192, 132, 252; }
.rx[data-ch="infinite"] { --rx-glow: 0, 245, 160; }

/* the chapter colour washes the whole section */
.rx::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(var(--rx-glow), .10), transparent 70%),
    radial-gradient(40% 30% at 85% 60%, rgba(var(--rx-glow), .05), transparent 70%);
  transition: background 1s ease;
}

.rx__wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Intro ------------------------------------------------------------------ */
.rx__intro { text-align: center; margin: 0 auto 36px; max-width: 720px; }
.rx .rx__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #94A3B8;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rx .rx__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--rx-glow));
  box-shadow: 0 0 10px rgb(var(--rx-glow));
  transition: background .6s ease, box-shadow .6s ease;
}
.rx .rx__h {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  background: var(--gradient-heading, linear-gradient(135deg, #E2E8F0, #00D2FF 50%, #A855F7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #E2E8F0;
}
.rx .rx__sub { margin: 0; color: #B8C4D4; font-size: 1.0625rem; line-height: 1.6; }

/* ---- Tabs ------------------------------------------------------------------- */
.rx-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .025);
}
.rx-tabs__ink {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 16px;
  background: rgba(var(--rx-glow), .12);
  box-shadow: inset 0 0 0 1px rgba(var(--rx-glow), .55), 0 10px 30px -12px rgba(var(--rx-glow), .6);
  transition: transform .6s var(--rx-spring), width .6s var(--rx-spring), background .5s ease, box-shadow .5s ease;
  pointer-events: none;
}
.rx .rx-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #94A3B8;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease, transform .3s var(--rx-spring);
  -webkit-tap-highlight-color: transparent;
}
.rx .rx-tab:hover { color: #E2E8F0; }
.rx .rx-tab:active { transform: scale(.97); }
.rx .rx-tab:focus-visible { outline: 2px solid rgb(var(--rx-glow)); outline-offset: 2px; border-radius: 16px; }

/* kit art from the buy page, dimmed until its tab is chosen */
.rx-tab__art {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: .55;
  filter: saturate(.6);
  transition: opacity .4s ease, filter .4s ease, transform .5s var(--rx-spring);
}
.rx .rx-tab:hover .rx-tab__art { opacity: .8; filter: saturate(.85); }
.rx .rx-tab[aria-selected="true"] .rx-tab__art { opacity: 1; filter: none; transform: scale(1.06); }

.rx-tab__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rx-tab__eyebrow {
  color: #94A3B8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
}
/* product names in the buy page's gradients */
.rx-tab__kit {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #00D2FF, #0099CC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rx-tab--dec .rx-tab__kit { background-image: linear-gradient(135deg, #C4B5FD, #A78BFA); }
.rx-tab--inf .rx-tab__kit { background-image: linear-gradient(135deg, #00F5A0, #00D9F5); }


/* ---- Chapters --------------------------------------------------------------- */
.rx-ch { outline: none; }
.rx-ch[hidden] { display: none; }
.rx.is-js .rx-ch { transition: opacity .18s ease, filter .18s ease, transform .18s ease; }
.rx.is-js .rx-ch.is-leaving { opacity: 0; filter: blur(6px); transform: translateY(6px); }

.rx-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 16px;
}
.rx-mosaic--anc > .rx-tile--tapestry { grid-column: span 7; grid-row: span 2; }
.rx-mosaic--anc > .rx-tile--states   { grid-column: span 5; }
.rx-mosaic--anc > .rx-tile--clusters { grid-column: span 5; }
.rx-mosaic--anc > .rx-tile--archaic,
.rx-mosaic--anc > .rx-tile--lines,
.rx-mosaic--anc > .rx-tile--global   { grid-column: span 4; }
.rx-mosaic--anc > .rx-tile--chromo   { grid-column: span 7; }
.rx-mosaic--anc > .rx-tile--traits   { grid-column: span 5; }
.rx-mosaic--dec > .rx-tile--prs,
.rx-mosaic--dec > .rx-tile--carrier  { grid-column: span 6; }
.rx-mosaic--dec > .rx-tile--pgx      { grid-column: span 12; }

/* ---- Tile ------------------------------------------------------------------- */
.rx-tile {
  --a: 0, 210, 255;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 22px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--a), .07), transparent 60%),
    linear-gradient(180deg, rgba(17, 25, 46, .82), rgba(9, 14, 30, .9));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -32px rgba(0, 0, 0, .9);
  transition: transform .5s var(--rx-spring), border-color .35s ease, box-shadow .45s ease, opacity .6s ease, filter .6s ease;
}
.rx-tile::before {
  /* thin accent line along the top edge */
  content: '';
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--a), .8), transparent);
  opacity: .6;
}
@media (hover: hover) and (pointer: fine) {
  .rx-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--a), .35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -30px rgba(var(--a), .45);
  }
}

/* reveal: hidden only once JS has taken over */
.rx.is-js .rx-tile:not(.is-on) { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); }
.rx.is-js .rx-tile { transition-delay: calc(var(--d, 0) * 60ms); }
.rx.is-js .rx-tile.is-on:hover { transition-delay: 0s; }

.rx-tile__top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.rx-tile__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(var(--a));
  box-shadow: 0 0 12px rgba(var(--a), .9);
}
.rx .rx-tile__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #F1F5F9;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.rx .rx-tile__say {
  margin: 0 0 18px;
  color: #B8C4D4;
  font-size: .9375rem;
  line-height: 1.55;
}
.rx .rx-tile__note {
  margin: auto 0 0;
  padding-top: 16px;
  color: #94A3B8;
  font-size: .8125rem;
  line-height: 1.5;
}
.rx .rx-tile__note strong { color: #E2E8F0; font-weight: 700; }

.rx-tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.rx-tag--all    { color: #94A3B8; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.rx-tag--decode { color: #D8B4FE; background: rgba(168, 85, 247, .14); border: 1px solid rgba(192, 132, 252, .35); }
.rx-tag--inf    { color: #050A18; background: linear-gradient(135deg, #FBBF24, #00F5A0 60%, #00D9F5); }


/* ---- Shared: bars, chips --------------------------------------------------- */
.rx-bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.rx-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--c), .55), rgb(var(--c)));
  box-shadow: 0 0 12px rgba(var(--c), .5);
  transform-origin: left center;
  transition: transform 1.2s var(--rx-glide) calc(var(--d, 0) * 60ms + .25s);
}
.rx.is-js .rx-tile:not(.is-on) .rx-bar i,
.rx.is-js .rx-score:not(.is-on) .rx-bar i { transform: scaleX(0); }
.rx-bar--big { height: 10px; }

.rx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-chips > span {
  padding: 6px 12px;
  border: 1px solid rgba(var(--a), .3);
  border-radius: 999px;
  background: rgba(var(--a), .07);
  color: #E2E8F0;
  font-size: .8125rem;
  font-weight: 600;
  transition: opacity .5s ease, transform .5s var(--rx-spring);
}
.rx.is-js .rx-tile:not(.is-on) .rx-chips > span { opacity: 0; transform: translateY(6px) scale(.9); }
.rx-chips > span:nth-child(1) { transition-delay: .25s; }
.rx-chips > span:nth-child(2) { transition-delay: .31s; }
.rx-chips > span:nth-child(3) { transition-delay: .37s; }
.rx-chips > span:nth-child(4) { transition-delay: .43s; }
.rx-chips > span:nth-child(5) { transition-delay: .49s; }
.rx-chips > span:nth-child(n+6) { transition-delay: .55s; }
.rx-chips--soft > span { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #CBD5E1; }

/* ---- Tapestry streams ------------------------------------------------------ */
.rx-streams {
  position: relative;
  margin: 4px 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
}
.rx-streams svg {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 220px);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.8s var(--rx-glide) .2s;
}
.rx.is-js .rx-tile:not(.is-on) .rx-streams svg { clip-path: inset(0 100% 0 0); }
.rx-streams__you { stroke: #fff; stroke-width: 3; opacity: .8; }
.rx-streams__you-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #050A18;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: opacity .5s ease 1.6s, transform .6s var(--rx-spring) 1.6s;
}
.rx.is-js .rx-tile:not(.is-on) .rx-streams__you-label { opacity: 0; transform: translateY(-50%) scale(.6); }

.rx-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rx-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(var(--c), .06);
  border: 1px solid rgba(var(--c), .18);
  line-height: 1.3;
}
.rx-legend__dot { width: 12px; height: 12px; border-radius: 4px; background: rgb(var(--c)); box-shadow: 0 0 10px rgba(var(--c), .7); }
.rx-legend__name { color: #E2E8F0; font-size: .9375rem; font-weight: 600; }
.rx-legend__name small { display: block; margin-top: 2px; color: #94A3B8; font-size: .8125rem; font-weight: 500; }
.rx-legend b { color: rgb(var(--c)); font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- State ranks ------------------------------------------------------------ */
.rx-ranks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rx-ranks li {
  display: grid;
  grid-template-columns: 26px 7.5rem 1fr 3rem;
  align-items: center;
  gap: 12px;
  margin: 0;
  line-height: 1.3;
}
.rx-ranks__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #CBD5E1;
  font-size: .75rem;
  font-weight: 800;
}
.rx-ranks li:first-child .rx-ranks__n { background: rgb(var(--a)); color: #050A18; }
.rx-ranks__name { color: #E2E8F0; font-size: .9375rem; font-weight: 600; }
.rx-ranks b { color: #F1F5F9; font-size: 1rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Community web ---------------------------------------------------------- */
.rx-web { position: relative; height: 210px; margin: 0 4px; }
.rx-web svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rx-web line {
  stroke: rgba(var(--a), .45);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 400;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s var(--rx-glide) .3s;
}
.rx.is-js .rx-tile:not(.is-on) .rx-web line { stroke-dashoffset: 400; }
.rx-web__you,
.rx-web__n {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  border-radius: 999px;
  text-align: center;
  line-height: 1.15;
}
.rx-web__you {
  left: 50%;
  top: 52%;
  padding: 10px 16px;
  background: rgb(var(--a));
  color: #050A18;
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(var(--a), .15), 0 0 30px rgba(var(--a), .6);
  z-index: 1;
}
.rx-web__n {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 16, 34, .95);
  color: #E2E8F0;
  font-size: .8125rem;
  font-weight: 600;
  transition: opacity .5s ease, transform .6s var(--rx-spring);
  transition-delay: calc(.55s + var(--i) * 70ms);
}
.rx-web__n small { display: block; color: rgb(var(--a)); font-size: .75rem; font-weight: 700; }
.rx-web__n--top { border-color: rgba(var(--a), .7); box-shadow: 0 0 20px -4px rgba(var(--a), .7); }
.rx.is-js .rx-tile:not(.is-on) .rx-web__n { opacity: 0; transform: translate(-50%, -50%) scale(.6); }

/* ---- Archaic ---------------------------------------------------------------- */
.rx .rx-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 16px;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rx .rx-stat small {
  flex-basis: 100%;
  margin-top: 8px;
  color: rgb(var(--a));
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rx-mini { display: grid; gap: 10px; }
.rx-mini > div { display: grid; grid-template-columns: 6.5rem 1fr 3.4rem; align-items: center; gap: 10px; }
.rx-mini span:first-child { color: #CBD5E1; font-size: .8125rem; }
.rx-mini b { color: #F1F5F9; font-size: .875rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Lines (haplogroups) ---------------------------------------------------- */
.rx-lines { display: grid; gap: 10px; }
.rx-lines__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "who code" "meta meta";
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.rx-lines__who { grid-area: who; color: #CBD5E1; font-size: .875rem; font-weight: 600; }
.rx-code {
  grid-area: code;
  color: rgb(var(--a));
  font: 700 1.25rem/1 var(--font-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  letter-spacing: .04em;
}
.rx-lines__row small { grid-area: meta; color: #94A3B8; font-size: .8125rem; }

/* ---- Global populations ----------------------------------------------------- */
.rx .rx-pops__k {
  margin: 0 0 8px;
  color: #94A3B8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rx-pops .rx-chips { margin-bottom: 14px; }

/* ---- Chromosome painting ---------------------------------------------------- */
.rx-chr { display: grid; gap: 4px; margin: 0 0 16px; }
.rx-chr__row { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; }
.rx-chr__n { color: #94A3B8; font-size: .75rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.rx-chr__bar {
  display: flex;
  width: var(--len);
  height: 7px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  clip-path: inset(0 0 0 0 round 7px);
  transition: clip-path .9s var(--rx-glide) calc(.2s + var(--r) * 35ms);
}
.rx.is-js .rx-tile:not(.is-on) .rx-chr__bar { clip-path: inset(0 100% 0 0 round 7px); }
.rx-chr__s { display: block; height: 100%; flex-basis: 0; }
.rx-chr__s--sas { background: linear-gradient(90deg, #00D2FF, #22D3EE); }
.rx-chr__s--was { background: #C084FC; }
.rx-chr__s--eur { background: #60A5FA; }
.rx-chr__s--eas { background: #FBBF24; }
.rx-chr__s--unk { background: #475569; }
.rx-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.rx-key li { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #CBD5E1; font-size: .8125rem; line-height: 1.3; }
.rx-key li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: rgb(var(--c)); }
.rx-key b { color: #F1F5F9; font-weight: 700; }

/* ---- Traits ----------------------------------------------------------------- */
.rx-traits { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rx-traits li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  line-height: 1.3;
  transition: opacity .5s ease, transform .6s var(--rx-spring);
}
.rx-traits li:nth-child(1) { transition-delay: .2s; }
.rx-traits li:nth-child(2) { transition-delay: .27s; }
.rx-traits li:nth-child(3) { transition-delay: .34s; }
.rx-traits li:nth-child(4) { transition-delay: .41s; }
.rx-traits li:nth-child(5) { transition-delay: .48s; }
.rx.is-js .rx-tile:not(.is-on) .rx-traits li { opacity: 0; transform: translateX(-10px); }
.rx-traits svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: rgb(var(--a)); background: rgba(var(--a), .1); }
.rx-traits span { color: #E2E8F0; font-size: .9375rem; font-weight: 600; }
.rx-traits b { color: rgb(var(--a)); font-size: .875rem; font-weight: 700; text-align: right; }

/* ---- Gauges (health traits) ------------------------------------------------- */
.rx-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; }
.rx-gauge {
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
  text-align: center;
}
.rx-gauge svg { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto; overflow: visible; }
.rx-gauge__track,
.rx-gauge__fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.rx-gauge__track { stroke: rgba(255, 255, 255, .07); }
.rx-gauge__fill {
  stroke: rgb(var(--c));
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p));
  filter: drop-shadow(0 0 6px rgba(var(--c), .6));
  transition: stroke-dashoffset 1.4s var(--rx-glide) .3s;
}
.rx-gauge__needle {
  stroke: #F1F5F9;
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 60px 62px;
  transform: rotate(calc(var(--p) * 1.8deg - 90deg));
  transition: transform 1.4s var(--rx-spring) .3s;
}
.rx-gauge circle { fill: #F1F5F9; }
.rx.is-js .rx-tile:not(.is-on) .rx-gauge__fill { stroke-dashoffset: 100; }
.rx.is-js .rx-tile:not(.is-on) .rx-gauge__needle { transform: rotate(-90deg); }
.rx .rx-gauge__v { margin: 6px 0 2px; color: #fff; font-size: 1.75rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rx .rx-gauge__v sup { font-size: .875rem; }
.rx .rx-gauge__v small { color: #94A3B8; font-size: .8125rem; font-weight: 600; }
.rx .rx-gauge__k { margin: 0; color: rgb(var(--c)); font-size: .875rem; font-weight: 700; }

.rx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-pills__x {
  padding: 7px 12px;
  border: 1px solid rgba(var(--c), .35);
  border-radius: 999px;
  background: rgba(var(--c), .08);
  color: #E2E8F0;
  font-size: .8125rem;
  font-weight: 600;
}
.rx-pills__x b { margin-left: 4px; color: rgb(var(--c)); font-weight: 800; }

/* ---- Carrier ---------------------------------------------------------------- */
.rx-carrier { display: grid; gap: 8px; }
.rx-carrier__row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}
.rx-glyph { width: 60px; height: 14px; }
.rx-glyph rect { fill: rgba(255, 255, 255, .12); }
.rx-glyph circle { fill: rgb(var(--a)); filter: drop-shadow(0 0 4px rgba(var(--a), .9)); }
.rx-carrier__k { color: #E2E8F0; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.rx-carrier__k small { display: block; color: #94A3B8; font-size: .75rem; font-weight: 500; font-family: var(--font-mono, ui-monospace, monospace); }
.rx-st { padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rx-st--amber { color: #FBBF24; background: rgba(251, 191, 36, .12); }
.rx-st--green { color: #34D399; background: rgba(52, 211, 153, .12); }

/* ---- PGx meters ------------------------------------------------------------- */
.rx-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
.rx-meter {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}
.rx .rx-meter__gene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  color: #F1F5F9;
  font: 700 1.0625rem/1.2 var(--font-mono, ui-monospace, monospace);
}
.rx-meter__res { padding: 4px 9px; border-radius: 8px; font: 800 .75rem/1.2 var(--font-primary, Inter, sans-serif); letter-spacing: .05em; text-transform: uppercase; }
.rx-meter__res--intermediate { color: #FBBF24; background: rgba(251, 191, 36, .12); }
.rx-meter__res--normal { color: #34D399; background: rgba(52, 211, 153, .12); }
.rx .rx-meter__drugs { margin: 0 0 14px; color: #94A3B8; font-size: .8125rem; line-height: 1.45; }
.rx-meter__scale { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding-top: 14px; }
.rx-meter__scale span {
  padding: 6px 0 0;
  border-top: 4px solid rgba(255, 255, 255, .08);
  color: #94A3B8;
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
  transition: color .4s ease .9s, border-color .4s ease .9s;
}
.rx-meter__scale span:first-child { border-top-left-radius: 4px; }
.rx-meter__scale span.is-on { color: #F1F5F9; border-top-color: rgb(var(--a)); }
.rx.is-js .rx-tile:not(.is-on) .rx-meter__scale span.is-on { color: #94A3B8; border-top-color: rgba(255, 255, 255, .08); }
.rx-meter__mark {
  position: absolute;
  top: 0;
  left: calc((var(--pos) + .5) * 25%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--a), .3), 0 0 14px rgba(var(--a), .9);
  transition: left 1.2s var(--rx-spring) .3s;
}
.rx.is-js .rx-tile:not(.is-on) .rx-meter__mark { left: 0; }

/* ============================================================================
   CHAPTER 3: BLOOD & BODY (Infinite)
   ============================================================================ */
.rx-inf {
  --a: 0, 245, 160;
  position: relative;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(0, 245, 160, .22);
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(0, 210, 255, .08), transparent 70%),
    radial-gradient(50% 40% at 90% 90%, rgba(251, 191, 36, .06), transparent 70%),
    linear-gradient(180deg, rgba(14, 24, 44, .9), rgba(7, 12, 26, .95));
  box-shadow: 0 40px 80px -40px rgba(0, 245, 160, .25);
  transition: opacity .6s ease, transform .7s var(--rx-spring), filter .6s ease;
}
.rx.is-js .rx-inf:not(.is-on) { opacity: 0; transform: translateY(18px); filter: blur(4px); }

.rx-inf__band { text-align: center; margin: 0 0 24px; }
.rx-inf__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24, #00F5A0 55%, #00D9F5);
  color: #050A18;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px -8px rgba(0, 245, 160, .7);
}
.rx .rx-inf__lede {
  margin: 14px 0 6px;
  color: #F1F5F9;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.rx .rx-inf__lede span {
  background: linear-gradient(135deg, #FBBF24, #00F5A0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rx .rx-inf__sub { margin: 0; color: #B8C4D4; font-size: 1rem; line-height: 1.55; }

.rx-inf__stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* body map: chips | figure | chips, info underneath */
.rx-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) minmax(0, 1fr);
  grid-template-areas: "l fig r" "info info info";
  gap: 14px 16px;
  align-items: center;
}
.rx-body__col { display: grid; gap: 10px; align-content: center; }
.rx-body__col--l { grid-area: l; }
.rx-body__col--r { grid-area: r; }
.rx-body__fig { grid-area: fig; position: relative; aspect-ratio: 200 / 460; }
.rx-body__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Hologram body: soft gradient fill, fine scan-line texture, a glowing edge,
   faint skeleton, lungs and vessels. */
.rx-fig__fill use { fill: url(#rxg-body); }
.rx-fig__tex { fill: url(#rxp-lines); }
.rx-fig__core { fill: url(#rxg-core); }
.rx-fig__edge use {
  fill: none;
  stroke: #5EEBFF;
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(0, 210, 255, .9)) drop-shadow(0 0 10px rgba(0, 210, 255, .45));
}
.rx-fig__bones path { fill: none; stroke: rgba(148, 233, 255, .22); stroke-width: .9; stroke-linecap: round; }
.rx-fig__lungs path { fill: rgba(125, 249, 255, .06); stroke: rgba(125, 249, 255, .22); stroke-width: .7; }
.rx-fig__veins path {
  fill: none;
  stroke: rgba(251, 113, 133, .45);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--rx-glide) 1.29s, stroke .35s ease;
}

/* the reveal: the whole figure is uncovered top to bottom, in step with the scan line */
.rx-fig {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.9s cubic-bezier(.45, .05, .35, 1) 0.25s;
}
.rx.is-js .rx-inf:not(.is-on) .rx-fig { clip-path: inset(0 0 100% 0); }
.rx.is-js .rx-inf:not(.is-on) .rx-fig__veins path { stroke-dashoffset: 1; }

.rx-body__fig::after {
  /* the scan line: one pass, top to bottom */
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 160, .2) 15%, #7DF9FF 50%, rgba(0, 245, 160, .2) 85%, transparent);
  box-shadow: 0 0 12px 2px rgba(0, 245, 160, .55), 0 0 40px 8px rgba(0, 210, 255, .18);
  opacity: 0;
  pointer-events: none;
}
.rx-inf.is-on .rx-body__fig::after { animation: rx-scan 1.9s cubic-bezier(.45, .05, .35, 1) 0.25s 1 both; }
@keyframes rx-scan {
  0%   { top: 0;    opacity: 0; }
  6%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* organs: dim until the scan reaches them, then light up with one flash */
.rx-o {
  transform-box: fill-box;
  transform-origin: center;
  fill: rgba(125, 249, 255, .16);
  stroke: rgba(125, 249, 255, .55);
  stroke-width: .8;
  transition: fill .35s ease, stroke .35s ease, opacity .5s ease var(--t), transform .7s var(--rx-spring) var(--t);
}
.rx.is-js .rx-inf:not(.is-on) .rx-o { opacity: 0; transform: scale(.6); }
.rx-inf.is-on .rx-o { animation: rx-flash 1s ease var(--t) 1 both; }
@keyframes rx-flash {
  0%   { filter: drop-shadow(0 0 0 rgba(125, 249, 255, 0)); }
  30%  { filter: drop-shadow(0 0 7px rgba(125, 249, 255, 1)); }
  100% { filter: drop-shadow(0 0 2px rgba(125, 249, 255, .4)); }
}
/* one heartbeat, once, after the scan */
.rx-inf.is-on .rx-o--heart { animation: rx-flash 1s ease var(--t) 1 both, rx-beat .9s ease 2.35s 1; }
@keyframes rx-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(.96); }
  60% { transform: scale(1.1); }
}

.rx-body[data-active="brain"] .rx-o--brain,
.rx-body[data-active="thyroid"] .rx-o--thyroid,
.rx-body[data-active="heart"] .rx-o--heart,
.rx-body[data-active="liver"] .rx-o--liver,
.rx-body[data-active="sugar"] .rx-o--sugar,
.rx-body[data-active="kidney"] .rx-o--kidney,
.rx-body[data-active="bone"] .rx-o--bone {
  fill: rgba(var(--hl, 0, 245, 160), .55);
  stroke: rgb(var(--hl, 0, 245, 160));
  filter: drop-shadow(0 0 6px rgba(var(--hl, 0, 245, 160), .9));
}
.rx-body[data-active="blood"] .rx-fig__veins path { stroke: rgba(var(--hl, 0, 245, 160), .95); stroke-width: 1.6; }

/* hotspots: 44px touch target, 14px dot, one ping when the scan passes */
.rx .rx-spot {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: opacity .4s ease var(--t), transform .6s var(--rx-spring) var(--t);
}
.rx .rx-spot i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0 3px rgba(var(--c), .3), 0 0 14px rgba(var(--c), .9);
  transition: transform .4s var(--rx-spring), box-shadow .4s ease;
}
.rx .rx-spot i::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1.5px solid rgb(var(--c));
  border-radius: 50%;
  opacity: 0;
}
.rx-inf.is-on .rx-spot i::after { animation: rx-ping 1.1s ease-out var(--t) 1; }
@keyframes rx-ping {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.rx .rx-spot:hover i,
.rx .rx-spot.is-active i { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(var(--c), .28), 0 0 22px rgb(var(--c)); }
.rx .rx-spot:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: -6px; border-radius: 50%; }
.rx.is-js .rx-inf:not(.is-on) .rx-spot { opacity: 0; transform: scale(.3); }

/* organ chips */
.rx .rx-organ {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "k v" "band v";
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid rgb(var(--c));
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity .5s ease, transform .6s var(--rx-spring), background-color .3s ease, border-color .3s ease, box-shadow .35s ease;
  transition-delay: calc(1.25s + var(--i) * 90ms), calc(1.25s + var(--i) * 90ms), 0s, 0s, 0s;
  -webkit-tap-highlight-color: transparent;
}
.rx .rx-organ:hover,
.rx .rx-organ.is-active {
  background: rgba(var(--c), .1);
  border-color: rgba(var(--c), .5);
  box-shadow: 0 10px 26px -14px rgba(var(--c), .9);
}
.rx .rx-organ:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: 2px; border-radius: 14px; }
.rx.is-js .rx-inf:not(.is-on) .rx-organ { opacity: 0; }
.rx.is-js .rx-inf:not(.is-on) .rx-body__col--l .rx-organ { transform: translateX(-14px); }
.rx.is-js .rx-inf:not(.is-on) .rx-body__col--r .rx-organ { transform: translateX(14px); }
.rx-organ__k { grid-area: k; color: #E2E8F0; font-size: .875rem; font-weight: 700; line-height: 1.25; }
.rx-organ__band { grid-area: band; color: rgb(var(--c)); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rx-organ__v { grid-area: v; color: #fff; font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.rx-organ__v small { color: #94A3B8; font-size: .75rem; font-weight: 600; }

/* organ detail */
.rx-info {
  grid-area: info;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--hl, 0, 245, 160), .35);
  border-radius: 18px;
  background: rgba(var(--hl, 0, 245, 160), .06);
  transition: border-color .4s ease, background-color .4s ease, opacity .6s ease 1.9s;
}
.rx.is-js .rx-inf:not(.is-on) .rx-info { opacity: 0; }
.rx-info__pane { animation: rx-pop .5s var(--rx-spring) both; }
@keyframes rx-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.rx .rx-info__k { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; color: #F1F5F9; font-size: 1.0625rem; font-weight: 800; }
.rx .rx-info__k b { color: rgb(var(--c)); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; }
.rx .rx-info__say { margin: 0 0 8px; color: #CBD5E1; font-size: .9375rem; line-height: 1.5; }
.rx .rx-info__m { margin: 0; color: #94A3B8; font-size: .8125rem; line-height: 1.5; }
.rx .rx-info__m span { display: inline-block; margin-right: 8px; color: #E2E8F0; font-weight: 700; }

/* side column */
.rx-side { display: grid; gap: 14px; }
.rx-age,
.rx-score,
.rx-panels,
.rx-idx {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
.rx-age { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 18px; position: relative; }
.rx-age__ring { grid-column: 1; grid-row: 1; width: 132px; height: 132px; transform: rotate(-90deg); }
.rx-age__ring circle { fill: none; stroke-linecap: round; }
.rx-age__track { stroke: rgba(255, 255, 255, .07); stroke-width: 7; }
.rx-age__track--in { stroke-width: 9; }
.rx-age__cal { stroke: #64748B; stroke-width: 7; stroke-dasharray: 100; stroke-dashoffset: 16; transition: stroke-dashoffset 1.4s var(--rx-glide) .3s; }
.rx-age__bio {
  stroke: #00F5A0;
  stroke-width: 9;
  stroke-dasharray: 100;
  stroke-dashoffset: 23;
  filter: drop-shadow(0 0 6px rgba(0, 245, 160, .7));
  transition: stroke-dashoffset 1.6s var(--rx-glide) .5s;
}
.rx.is-js .rx-age:not(.is-on) .rx-age__cal,
.rx.is-js .rx-age:not(.is-on) .rx-age__bio { stroke-dashoffset: 100; }
.rx-age__mid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  line-height: 1;
}
.rx-age__v { color: #fff; font-size: 1.875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rx-age__mid small { margin-top: 4px; color: #94A3B8; font-size: .75rem; font-weight: 600; }
.rx .rx-age__k { margin: 0 0 4px; color: #00F5A0; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rx .rx-age__big { margin: 0 0 6px; color: #CBD5E1; font-size: .9375rem; line-height: 1.45; }
.rx .rx-age__big b { display: block; color: #fff; font-size: 1.25rem; font-weight: 800; }
.rx .rx-age__how { margin: 0; color: #94A3B8; font-size: .75rem; }

.rx .rx-score__k,
.rx .rx-panels__k { margin: 0 0 8px; color: #94A3B8; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rx .rx-panels__k b { color: #F1F5F9; }
.rx .rx-score__v { margin: 0 0 10px; color: #fff; font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rx .rx-score__v small { color: #34D399; font-size: .9375rem; font-weight: 700; }

.rx-panels ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.rx-panels li { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #CBD5E1; font-size: .8125rem; line-height: 1.3; }
.rx-panels li b { color: #00F5A0; font-weight: 800; font-variant-numeric: tabular-nums; }
.rx-chips--idx > span { --a: 0, 245, 160; }

/* perks + CTA */
.rx-perks {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "k k" "ul go" "fine fine";
  gap: 14px 24px;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.rx .rx-perks__k { grid-area: k; margin: 0; color: #94A3B8; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rx-perks ul { grid-area: ul; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rx-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: #E2E8F0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
}
.rx-perks li svg { width: 18px; height: 18px; color: #00F5A0; }
.rx .rx-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FBBF24 0%, #00F5A0 55%, #00D9F5 100%);
  color: #050A18;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(0, 245, 160, .8);
  transition: transform .4s var(--rx-spring), box-shadow .3s ease;
}
.rx .rx-go:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0, 245, 160, .95); }
.rx .rx-perks__fine { grid-area: fine; margin: 0; color: #94A3B8; font-size: .8125rem; }

/* ---- Footer ----------------------------------------------------------------- */
.rx-foot { display: flex; justify-content: center; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 32px; }
.rx .rx-foot__sample {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #F1F5F9;
  font: 700 .9375rem/1 var(--font-primary, Inter, sans-serif);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, transform .35s var(--rx-spring);
}
.rx .rx-foot__sample:hover { border-color: rgba(0, 210, 255, .45); background: rgba(0, 210, 255, .08); transform: translateY(-2px); }
.rx .rx-foot__cmp { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: #7DD3FC; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.rx .rx-foot__cmp span { transition: transform .35s var(--rx-spring); }
.rx .rx-foot__cmp:hover span { transform: translateX(4px); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1099px) {
  .rx-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rx-mosaic--anc > .rx-tile { grid-column: span 3; }
  .rx-mosaic--anc > .rx-tile--tapestry,
  .rx-mosaic--anc > .rx-tile--chromo { grid-column: span 6; grid-row: auto; }
  .rx-mosaic--dec > .rx-tile--prs,
  .rx-mosaic--dec > .rx-tile--carrier { grid-column: span 3; }
  .rx-mosaic--dec > .rx-tile--pgx { grid-column: span 6; }
  .rx-inf__stage { grid-template-columns: 1fr; }
  .rx-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .rx { padding: 64px 0 56px; }
  .rx__wrap { padding: 0 16px; }
  .rx__intro { margin-bottom: 24px; }
  .rx .rx__sub { font-size: 1rem; }

  .rx-tabs { gap: 4px; padding: 4px; border-radius: 18px; margin-bottom: 20px; }
  .rx-tabs__ink { top: 4px; bottom: 4px; border-radius: 14px; }
  .rx .rx-tab {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 4px 10px;
    text-align: center;
    border-radius: 14px;
  }
  .rx-tab__art { width: 48px; height: 48px; }
  .rx-tab__txt { align-items: center; gap: 2px; }
  .rx-tab__eyebrow { font-size: .75rem; letter-spacing: .04em; }
  .rx-tab__brand { display: none; }
  .rx-tab__kit { font-size: 1rem; }

  .rx-mosaic { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rx-mosaic > .rx-tile,
  .rx-mosaic--anc > .rx-tile,
  .rx-mosaic--dec > .rx-tile { grid-column: 1 / -1; grid-row: auto; }
  .rx-tile { padding: 18px 16px 16px; border-radius: 18px; }
  .rx .rx-tile__name { font-size: 1.0625rem; }
  .rx .rx-tile__say { font-size: .875rem; margin-bottom: 14px; }

  .rx-ranks li { grid-template-columns: 24px 6.2rem 1fr 2.6rem; gap: 10px; }
  .rx-web { height: 220px; margin: 0; }
  .rx-meters { grid-template-columns: 1fr; }
  .rx-gauges { gap: 10px; }
  .rx .rx-gauge__v { font-size: 1.5rem; }
  .rx .rx-stat { font-size: 2.5rem; }

  .rx-inf { padding: 20px 14px; border-radius: 22px; }
  .rx-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "fig fig" "l r" "info info";
  }
  .rx-body__fig { width: min(200px, 56vw); justify-self: center; }
  .rx-side { grid-template-columns: 1fr; }
  .rx-age { grid-template-columns: 112px 1fr; gap: 14px; }
  .rx-age__ring { width: 112px; height: 112px; }
  .rx-age__v { font-size: 1.5rem; }
  .rx-perks { grid-template-columns: 1fr; grid-template-areas: "k" "ul" "go" "fine"; }
  .rx-perks li { font-size: .8125rem; }
  .rx .rx-go { width: 100%; }
}

@media (max-width: 380px) {
  .rx-ranks li { grid-template-columns: 22px 5.4rem 1fr 2.4rem; gap: 8px; }
  .rx-gauges { grid-template-columns: 1fr; }
  .rx-panels ul { grid-template-columns: 1fr; }
}

/* Reduced motion: final state at once, no draw, sweep or count. */
@media (prefers-reduced-motion: reduce) {
  .rx *,
  .rx *::before,
  .rx *::after,
  .rx-tile,
  .rx-inf { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}

/* The tapestry tile spans two rows on desktop: let the streams take the slack. */
@media (min-width: 1100px) {
  .rx-tile--tapestry .rx-streams { flex: 1 1 auto; display: flex; min-height: 190px; }
  .rx-tile--tapestry .rx-streams svg { flex: 1 1 auto; height: auto; min-height: 190px; }
}

/* ============================================================================
   PHONES: Ancestry and Health DNA become a sideways swipe instead of a stack
   of 8 and 3 tall tiles (the Ancestry tab alone was ~5 screens), so the kits
   and prices below are reached in a fraction of the scrolling.
   ============================================================================ */
.rx-dots,
.rx-swipe { display: none; }
@media (max-width: 760px) {
  .rx-mosaic--anc,
  .rx-mosaic--dec {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rx-mosaic--anc::-webkit-scrollbar,
  .rx-mosaic--dec::-webkit-scrollbar { display: none; }
  .rx-mosaic--anc > .rx-tile,
  .rx-mosaic--dec > .rx-tile {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .rx-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
  }
  /* 8px dots, but a 40x44 touch area around each: eight of them still fit a 360px
     phone (2026-11-07; it was 24x32, too small for a thumb). */
  .rx-dots { gap: 0; }
  .rx .rx-dot {
    position: relative;
    width: 40px;
    height: 44px;
    min-width: 40px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .rx .rx-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    transform: translate(-50%, -50%);
    transition: width .35s var(--rx-spring), background-color .3s ease;
  }
  .rx .rx-dot.is-on { width: 40px; }
  .rx .rx-dot.is-on::before { width: 22px; background: rgb(var(--rx-glow)); }
  .rx-swipe {
    display: block;
    margin: 2px 0 0;
    color: #94A3B8;
    font-size: .8125rem;
    text-align: center;
  }
}
