/* testing/comprehensive-genomic · the purchase page (product.html)
   ---------------------------------------------------------------------------
   Only what the shared kit styles (cg.css) do not already draw is here:

     1 · the hero's rating line and headline in the buy column
     2 · the nine areas: a list on the left, the chosen area on the right
     3 · one test, many reports: the ring page's timeline and 3D phone
     4 · the other five tests' extra parts (they share this page's form)

   Colours are cg.css's navy tokens where the frame has its green. */

/* ---- 1 · hero ------------------------------------------------------------
   The page's own row as the catalogue top draws it (src/site/productTop.js):
   the frame on the left at the row's height and ONE
   column on the right, on white, no card. The frame's words run down the
   column in its order: eyebrow, rating, headline, lede, then the price block
   under cg.css's hairline. */
.cgp .cg-hero-eyebrow { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--cg-accent); }
.cgp .cg-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 12px; font-size: 15px; color: var(--cg-ink-2);
}
.cgp .cg-rating { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.cgp .cg-rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.cgp .cg-rating .cg-stars { font-size: 15px; letter-spacing: 1px; color: #f2a516; }
.cgp .cg-rating b { font-weight: 600; color: var(--cg-ink); }
.cgp .cg-hero-rule { width: 1px; height: 16px; background: var(--cg-rule); }
.cgp .cg-hero-explore { font-weight: 600; color: var(--cg-accent); text-decoration: none; }
.cgp .cg-hero-explore:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The product name is the page's h1 at cg.css's name size, the largest type
   in the column; the frame's headline sits under the
   rating line a step down, as a subhead. */
.cgp .cg-buy-v2 .cg-hero-meta { margin-top: 14px; }
.cgp .cg-buy-v2 .cg-hero-h {
  margin: 18px 0 0; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 600;
  letter-spacing: -0.01em; color: var(--cg-navy); text-wrap: balance;
}
.cgp .cg-buy-v2 .cg-hero-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--cg-ink); text-wrap: pretty; }
.cgp .cg-buy-v2 .cg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.cgp .cg-price-once { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--cg-ink-2); }
.cgp .cg-buy-v2 .cg-badge { margin-top: 16px; }

/* ---- 2 · the nine areas --------------------------------------------------
   The list reads as a numbered
   index (01–09, a CSS counter, so no new words to translate) with a navy bar
   on the chosen row; the chosen area is ONE navy card the list's height, its
   icon centred in a sequencing ring over a faint base-pair dot field, its
   name, paragraph and tags set in white at the card's foot. Before, the card
   was a mostly empty banner and the words sat under it on white. */
.cgp .cg-ex-head { max-width: 900px; }
.cgp .cg-ex-title { margin: 0; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; color: var(--ink-900, #10214b); }
.cgp .cg-ex-head .cg-lede { margin-top: 16px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; }
.cgp .cg-ex-row {
  display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(32px, 3.4vw, 48px); align-items: stretch;
}

/* The index */
.cgp .cg-ex-menu { display: grid; counter-reset: cg-ex; border-top: 1px solid var(--cg-rule); }
.cgp .cg-ex-tab {
  position: relative; counter-increment: cg-ex;
  display: grid; grid-template-columns: 28px 40px minmax(0, 1fr); align-items: center; gap: 16px;
  width: 100%; padding: 15px 18px 15px 16px;
  border: 0; border-bottom: 1px solid var(--cg-rule); border-radius: 0;
  background: transparent; color: var(--cg-ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.cgp .cg-ex-tab::before {
  content: counter(cg-ex, decimal-leading-zero);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--cg-ink-2); opacity: .55; transition: color .3s ease, opacity .3s ease;
}
.cgp .cg-ex-tab::after {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px;
  background: var(--cg-navy); transform: scaleY(0);
  transition: transform .45s var(--cg-ease);
}
.cgp .cg-ex-tab:hover { background: var(--cg-sunk); }
.cgp .cg-ex-tab[aria-selected="true"] { background: var(--cg-soft); }
.cgp .cg-ex-tab[aria-selected="true"]::after { transform: scaleY(1); }
.cgp .cg-ex-tab[aria-selected="true"]::before,
.cgp .cg-ex-tab:hover::before { color: var(--cg-navy); opacity: 1; }
.cgp .cg-ex-tab:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: -2px; }
.cgp .cg-ex-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: #fff; color: var(--cg-navy); box-shadow: inset 0 0 0 1px var(--cg-rule);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.cgp .cg-ex-tab[aria-selected="true"] .cg-ex-ic { background: var(--cg-navy); color: #fff; box-shadow: none; }
.cgp .cg-ex-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cgp .cg-ex-tt { display: grid; gap: 3px; min-width: 0; }
.cgp .cg-ex-tt b { font-size: 18px; line-height: 1.3; font-weight: 600; }
.cgp .cg-ex-tab[aria-selected="true"] .cg-ex-tt b { color: var(--cg-navy); }
.cgp .cg-ex-tt span { font-size: 15.5px; line-height: 1.4; color: var(--cg-ink-2); }

/* The chosen area */
.cgp .cg-ex-stage { display: grid; }
.cgp .cg-ex-panel {
  position: relative; isolation: isolate; overflow: hidden; outline: none;
  display: grid; grid-template-rows: minmax(220px, 1fr) auto;
  padding: clamp(24px, 2.6vw, 40px); border-radius: var(--cg-r-lg); color: #fff;
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(120, 150, 230, .22), transparent 70%),
    linear-gradient(160deg, var(--cg-navy-2), var(--cg-navy) 62%);
}
.cgp .cg-ex-panel[hidden] { display: none; }
/* base-pair dot field, fading out towards the words */
.cgp .cg-ex-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 36%, #000, transparent 75%);
          mask-image: radial-gradient(60% 55% at 50% 36%, #000, transparent 75%);
}
.cgp .cg-ex-panel:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 3px; }

/* Pinned while the nine are read (cg-product.js adds .is-pin, --cg-ex-n and
   --cg-ex-top). The block sticks and the section grows by one --cg-ex-step of
   scroll per area, the step shared.css .pin approved, so the page holds this
   screen until the ninth area has had its turn and then carries on. */
.cgp .cg-ex.is-pin { --cg-ex-step: 33vh; }
.cgp .cg-ex.is-pin > .cg-wrap { position: sticky; top: var(--cg-ex-top, var(--ph-nav-h, 44px)); }
.cgp .cg-ex.is-pin::after { content: ""; display: block; height: calc(var(--cg-ex-n, 9) * var(--cg-ex-step)); }
/* A laptop screen is too short for nine full rows under the bar, so while
   pinned the rows close up to keep the whole list in view. */
@media (min-width: 1024px) and (max-height: 860px) {
  .cgp .cg-ex.is-pin .cg-ex-tab { padding-block: 8px; }
  .cgp .cg-ex.is-pin .cg-ex-tt span { font-size: 14px; }
}
.cgp .cg-ex-art { position: relative; display: grid; place-items: center; min-height: 0; }
/* the sequencing ring: a soft inner disc, a slowly turning dashed orbit */
.cgp .cg-ex-art::before,
.cgp .cg-ex-art::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%;
}
.cgp .cg-ex-art::before {
  width: clamp(132px, 13vw, 184px); aspect-ratio: 1;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 26px rgba(255, 255, 255, .03), 0 0 80px 10px rgba(120, 150, 230, .25);
}
.cgp .cg-ex-art::after {
  width: clamp(200px, 20vw, 276px); aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, .28);
  animation: cg-ex-orbit 60s linear infinite;
}
@keyframes cg-ex-orbit { to { rotate: 360deg; } }
.cgp .cg-ex-chip {
  position: absolute; left: 0; top: 0; z-index: 1;
  padding: 7px 15px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.cgp .cg-ex-big {
  position: relative; z-index: 1; width: clamp(56px, 5.4vw, 76px); height: auto; aspect-ratio: 1;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.cgp .cg-ex-panel h3 { margin: 20px 0 0; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.cgp .cg-ex-panel p { margin: 14px 0 0; max-width: 58ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .76); text-wrap: pretty; }
.cgp .cg-ex-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cgp .cg-ex-tags .tag {
  height: 38px; margin: 0; padding: 0 17px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 15.5px; pointer-events: none;
}

/* Choosing an area: the card's parts arrive in turn */
.cgp .cg-ex-panel.is-in .cg-ex-big { animation: cg-ex-pop .6s var(--cg-ease) both; }
.cgp .cg-ex-panel.is-in .cg-ex-art::before { animation: cg-ex-pop .7s var(--cg-ease) both; }
.cgp .cg-ex-panel.is-in > h3,
.cgp .cg-ex-panel.is-in > p,
.cgp .cg-ex-panel.is-in > .cg-ex-tags { animation: cg-ex-in .5s var(--cg-ease) both; }
.cgp .cg-ex-panel.is-in > p { animation-delay: .05s; }
.cgp .cg-ex-panel.is-in > .cg-ex-tags { animation-delay: .1s; }
@keyframes cg-ex-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cg-ex-pop { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }

/* ---- 3 · one test, many reports ------------------------------------------
   Drawn the way the ring page draws "Useful on night
   one": the kit's timeline (phenome-glass.css § ph-tl) on the left, one pill
   per report, and the app's genetic screens on the 3D phone on the right,
   turning with the rail (cg-product.js). The PDF link is the closing chip. */
.cgp .cg-rg-head { text-align: center; }
.cgp .cg-rg-h { font-size: clamp(34px, 4.4vw, 68px); }
.cgp .cg-rg .ph-tl-step { padding-bottom: 30px; }
.cgp .cg-rg-d { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--ph-text-1); }
.cgp .cg-rg .ph-tl-media { display: flex; justify-content: center; }
.cgp .ph-tl-big.cg-rg-fig {
  display: flex; justify-content: center;
  width: min(100%, 540px); aspect-ratio: auto; overflow: visible;
  background: none; border-radius: 0;
}
/* The phone's drawing is wider than its frame: the section keeps it inside the
   page's width, so a narrow screen does not scroll sideways. */
.cgp .cg-rg { overflow-x: clip; }
.cgp .cg-rg-phone { position: relative; width: 300px; height: 623px; }
.cgp .cg-rg-phone > img { border-radius: 44px; }
.cgp .cg-rg-link { text-decoration: none; transition: box-shadow .25s ease; }
.cgp .cg-rg-link:hover { box-shadow: inset 0 0 0 1.5px var(--cg-navy); }
.cgp .cg-rg-ic { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--ph-accent, var(--cg-accent)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cgp .cg-rg-go { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--cg-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--cg-ease); }
.cgp .cg-rg-link:hover .cg-rg-go { translate: 4px 0; }
@media (max-width: 640px) {
  .cgp .cg-rg-phone { width: min(260px, 64vw); height: auto; aspect-ratio: 300 / 623; }
  .cgp .cg-rg-phone > img { border-radius: 36px; }
}

/* ---- 4 · the other five tests' parts --------------------------------------
   The five test pages share this sheet. What they have and the genomic one
   does not: purchase choices in the buy column, a lede, a power-to-endurance scale,
   a step number, a "+" and a label line in the timeline. */
.cgp .cg-opts { display: grid; gap: 8px; margin-top: 22px; }
.cgp .cg-opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  padding: 13px 16px; border: 1px solid var(--cg-rule); border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color .25s ease, background .25s ease;
}
.cgp .cg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cgp .cg-opt-dot {
  grid-row: span 2; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--cg-ink-2); transition: border-color .25s ease, box-shadow .25s ease;
}
.cgp .cg-opt-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--cg-ink); }
.cgp .cg-opt-s { grid-column: 2; margin-top: 2px; font-size: 14.5px; line-height: 1.35; color: #55555a; }
.cgp .cg-opt-p { grid-column: 3; grid-row: 1 / span 2; font-size: 17px; font-weight: 600; color: var(--cg-navy); font-variant-numeric: tabular-nums; }
.cgp .cg-opt-badge {
  padding: 2px 8px; border-radius: 99px; background: var(--cg-navy); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}
.cgp .cg-opt-badge[hidden] { display: none; }
.cgp .cg-opt:has(input:checked) { border-color: var(--cg-navy); background: var(--cg-soft); }
.cgp .cg-opt:has(input:checked) .cg-opt-dot { border-color: var(--cg-navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--cg-navy); }
.cgp .cg-opt:has(input:focus-visible) { outline: 2px solid var(--cg-accent); outline-offset: 2px; }
.cgp .cg-opt.is-soon { cursor: default; opacity: .55; }
.cgp .cg-opts + .cg-cta { margin-top: 16px; }

.cgp .cg-rg-lede { max-width: 60ch; margin: 18px auto 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--cg-ink-2); text-wrap: pretty; }
.cgp .cg-rg-scale {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  max-width: 720px; margin: 26px auto 0;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cg-navy);
}
.cgp .cg-rg-scale i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--cg-soft), var(--cg-accent) 55%, var(--cg-navy)); }
.cgp .cg-rg .ph-tl-step-h { display: flex; align-items: center; gap: 10px; }
.cgp .cg-rg-n {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--cg-navy); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cgp .cg-rg-plus { font-size: 20px; font-weight: 600; color: var(--cg-ink-2); }
.cgp .cg-rg-k { margin: 10px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--cg-ink); }
.cgp .cg-rg-k + .cg-rg-d { margin-top: 4px; }

/* ---- small screens ------------------------------------------------------- */
@media (max-width: 1023px) {
  .cgp .cg-ex-row { grid-template-columns: minmax(0, 1fr); }
  /* The list becomes a row of the same buttons to swipe through, above the area. */
  .cgp .cg-ex-menu {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--ph-margin, 24px) * -1); padding-inline: var(--ph-margin, 24px);
  }
  .cgp .cg-ex-menu::-webkit-scrollbar { display: none; }
  .cgp .cg-ex-menu { border-top: 0; }
  .cgp .cg-ex-tab {
    flex: 0 0 auto; width: auto; max-width: 300px; scroll-snap-align: start;
    grid-template-columns: 22px 32px minmax(0, 1fr); gap: 10px; padding: 10px 16px 10px 12px;
    border: 0; border-radius: 14px; background: var(--cg-sunk);
  }
  .cgp .cg-ex-tab::after { display: none; }
  .cgp .cg-ex-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--cg-navy); }
  .cgp .cg-ex-ic { width: 32px; height: 32px; }
  .cgp .cg-ex-panel { grid-template-rows: 240px auto; }
  .cgp .cg-rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cgp .cg-hero-rule { display: none; }
  .cgp .cg-ex-panel { grid-template-rows: 200px auto; }
  .cgp .cg-ex-art { padding-top: 24px; }
  .cgp .cg-ex-art::before { width: 112px; }
  .cgp .cg-ex-art::after { width: 160px; }
  .cgp .cg-rg-grid { grid-template-columns: minmax(0, 1fr); }
  .cgp .cg-rg-link { flex-wrap: wrap; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cgp .cg-ex-panel.is-in *, .cgp .cg-ex-panel.is-in .cg-ex-art::before, .cgp .cg-ex-art::after { animation: none; }
}
