/* TestD shared blocks (10 Oct 2026), used by the homepage and every site page: the trust badge, the accreditation
   marks, the reviews band (reels + review carousel), the team grid on the topographic map, and the FAQ. */

/* ---------- Trust badge: the rating line above the hero heading; it scrolls down to the reviews ---------- */
.trust{display:inline-flex;align-items:center;gap:12px;height:40px;padding:0 8px 0 14px;border-radius:99px;background:#fff;border:1.5px solid rgba(0,0,0,.1);
  font-size:14px;font-weight:500;color:#000;text-decoration:none;transition:border-color .25s,box-shadow .25s,translate .3s cubic-bezier(.16,1,.3,1)}
.trust:hover{border-color:#000;box-shadow:0 10px 26px rgba(0,0,0,.08);translate:0 -1px}
.trust .stars{display:inline-flex;gap:2px}
.trust .stars svg{width:15px;height:15px;fill:#000}
.stars svg .bg{fill:currentColor;opacity:.2}
.trust b{font-weight:600}
.trust .sep{width:1px;height:16px;background:rgba(0,0,0,.18)}
.trust .go{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#000;color:#fff}
.trust .go svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.trust.dark{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}
.trust.dark .stars svg{fill:#fff}.trust.dark .sep{background:rgba(255,255,255,.3)}.trust.dark .go{background:#fff}.trust.dark .go svg{stroke:#000}
@media (max-width:520px){.trust{font-size:12.5px;gap:9px;padding-left:12px}.trust .stars svg{width:13px;height:13px}.trust .who{display:none}}

/* ---------- Accreditation marks ---------- */
.marks{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);border-bottom:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.marks li{display:flex;align-items:center;gap:12px;padding:16px 18px 16px 0;min-height:0}
.marks li+li{padding-left:20px;border-left:1px solid color-mix(in srgb,currentColor 8%,transparent)}
.marks .ic{flex:none;display:block;width:30px;height:30px}
.marks .ic svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.marks b{display:block;font-size:16.5px;font-weight:600;letter-spacing:-.02em;line-height:1.15}
.marks small{display:block;margin-top:3px;font-size:12.5px;line-height:1.35;opacity:.68}
.marks.compact li{min-height:0;padding-top:16px;padding-bottom:16px}
.marks.compact .ic,.marks.compact .ic svg{width:28px;height:28px}
.marks.compact b{font-size:15px}
@media (max-width:980px){.marks{grid-template-columns:repeat(2,minmax(0,1fr))}.marks li:nth-child(odd){padding-left:0;border-left:0}.marks li:nth-child(n+3){border-top:1px solid color-mix(in srgb,currentColor 8%,transparent)}}
@media (max-width:420px){.marks{grid-template-columns:minmax(0,1fr)}.marks li{padding-left:0!important;border-left:0!important}.marks li+li{border-top:1px solid color-mix(in srgb,currentColor 8%,transparent)}}

/* ---------- Reviews band ---------- */
.reviews{padding:clamp(72px,9vw,128px) 0 clamp(64px,8vw,112px);overflow:hidden;position:relative}
.rv-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:center;margin-bottom:clamp(32px,4vw,52px)}
.rv-head h2{font-size:clamp(40px,5.2vw,80px);font-weight:600;letter-spacing:-.045em;line-height:.95;max-width:14ch}
.rv-score{display:flex;flex-direction:column;gap:10px;justify-self:end;text-align:right}
.rv-score .row{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:16px}
.rv-score .num{font-size:28px;font-weight:600;letter-spacing:-.03em}
.rv-score .stars{display:inline-flex;gap:3px}.rv-score .stars svg{width:20px;height:20px;fill:#000}
.rv-score p{font-size:15px;line-height:1.45;max-width:36ch;margin-left:auto}
.rv-score p b{font-weight:600}
/* reels: portrait films and stills from test patients */
.reels{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(200px,18vw,250px);gap:14px;overflow-x:auto;padding:4px var(--gut,20px) 6px 0;scrollbar-width:none;margin-bottom:clamp(28px,3vw,40px);margin-right:calc(50% - 50vw);cursor:grab}
.reels.drag{cursor:grabbing}.reels.drag .reel{pointer-events:none}
.reels::-webkit-scrollbar{display:none}
.reel{position:relative;aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:#e9e9e9;color:#fff;isolation:isolate;cursor:pointer;border:0;padding:0;text-align:left}
.reel img,.reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.reel::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(0,0,0,.6),transparent 42%)}
.reel .cap{position:absolute;left:14px;right:14px;bottom:14px;font-size:13.5px;line-height:1.35}
.reel .cap b{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;opacity:.9}
.reel .play{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:grid;place-items:center}
.reel .play svg{width:13px;height:13px;fill:#fff;margin-left:2px}   /* the How it works film cards keep their play button */
/* the review cards: a continuous ticker like Rythm's (left, about 40 px a second), moved by blocks.js so you can
   grab it and slide it either way; it never pauses on hover */
.rv-ticker{position:relative;overflow:hidden;padding:6px 0 4px;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.rv-ticker.drag{cursor:grabbing}
.rv-row{display:flex;gap:12px;width:max-content;will-change:transform}
.rv-row img{-webkit-user-drag:none}
.rv-card{flex:0 0 auto;width:280px;min-height:312px;display:flex;flex-direction:column;gap:12px;padding:22px 22px 20px;border-radius:18px;background:#F2F2F2;color:#000;text-decoration:none}
.rv-card .stars{display:inline-flex;gap:3px}.rv-card .stars svg{width:16px;height:16px;fill:#000}
.rv-card h3{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.2}
.rv-card p{font-size:15.5px;line-height:1.42}
.rv-card .who{margin-top:auto;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding-top:14px;border-top:1px solid rgba(0,0,0,.07)}
.rv-card .who b{display:block;font-size:14.5px;font-weight:600}
.rv-card .who small{display:block;font-size:12.5px;opacity:.65;margin-top:2px}
.rv-card .ver{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px 0 6px;border-radius:99px;background:#fff;font-size:11.5px;font-weight:600;white-space:nowrap}
.rv-card .ver svg{width:14px;height:14px}
.rv-end{background:#000;color:#fff;justify-content:space-between}
.rv-end span{font-size:15px;opacity:.75}.rv-end b{font-size:30px;font-weight:600;letter-spacing:-.04em;line-height:1}
.rv-end i{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:#000}
.rv-end i svg{width:22px;height:22px;fill:none;stroke:#000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:980px){.rv-head{grid-template-columns:minmax(0,1fr)}.rv-score{justify-self:start;text-align:left}.rv-score .row{justify-content:flex-start}.rv-score p{margin-left:0}}
@media (max-width:760px){.reels{grid-auto-columns:46%}.rv-card{width:min(78vw,300px);min-height:0;padding:20px 20px 18px}
  .marks li{padding:12px 12px 12px 0;gap:10px}.marks li:nth-child(even){padding-left:12px}.marks .ic,.marks .ic svg{width:26px;height:26px}.marks b{font-size:15px}
  .h-marks{padding-bottom:36px}}

/* ---------- Team: white cards on the subtle grey topographic map ---------- */
.team{position:relative;isolation:isolate;padding:clamp(72px,9vw,128px) 0;background:#fff;overflow:hidden}
.team::before{content:"";position:absolute;inset:0;z-index:-1;background:#9A9AA2;opacity:.34;
  -webkit-mask:url(../assets/testd-topo-map.svg) center/cover no-repeat;mask:url(../assets/testd-topo-map.svg) center/cover no-repeat}
.team::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 40%,rgba(255,255,255,0) 30%,rgba(255,255,255,.85) 100%)}
.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}
.team .shead{border-top:1px solid rgba(0,0,0,.14);padding-top:28px}
.tcard{background:#fff;border-radius:18px;padding:12px 12px 18px;box-shadow:0 1px 0 rgba(0,0,0,.04),0 12px 34px rgba(0,0,0,.07);display:flex;flex-direction:column;gap:14px;transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .4s}
.tcard:hover{transform:translateY(-4px);box-shadow:0 1px 0 rgba(0,0,0,.04),0 22px 48px rgba(0,0,0,.1)}
.tcard .ph{aspect-ratio:1.07/1;border-radius:9px;overflow:hidden;background:#eee}
.tcard .ph img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.04);transition:transform .6s cubic-bezier(.16,1,.3,1)}
.tcard:hover .ph img{transform:scale(1.03)}
.tcard .nm{padding:0 4px;display:flex;flex-direction:column;gap:5px}
.tcard .nm span{font-size:15px;line-height:1.3}
.tcard .nm b{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
@media (max-width:1100px){.team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tcard{padding:8px 8px 14px;border-radius:14px}.tcard .nm span,.tcard .nm b{font-size:13.5px}}

/* ---------- FAQ: heading on the left, the questions on the right ---------- */
.faq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:clamp(28px,6vw,96px);align-items:start}
.faq .fhead{position:sticky;top:110px;display:flex;flex-direction:column;gap:18px}
.faq .fhead h2{font-size:clamp(36px,4.2vw,60px);font-weight:600;letter-spacing:-.045em;line-height:.96}
.faq .fhead p{font-size:16.5px;line-height:1.5;max-width:36ch}
.faq .fcats{display:flex;flex-wrap:wrap;gap:8px}
.faq .fcats a{height:36px;padding:0 14px;border-radius:99px;background:#F2F2F2;transition:background .2s;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center}
.faq .fgroup+.fgroup{margin-top:40px}
.faq .fgroup>h3{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;margin-bottom:6px}
.qa{border-bottom:1px solid rgba(0,0,0,.12)}
/* v49d (Michael): dividers only between questions, never above the first or below the last */
.qa:last-of-type{border-bottom:0}
.qa summary{list-style:none;display:grid;grid-template-columns:1fr 28px;gap:18px;align-items:center;padding:22px 0;font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.25;cursor:pointer}
.qa summary::-webkit-details-marker{display:none}
.qa summary i{position:relative;width:28px;height:28px;border-radius:50%;background:#000;justify-self:end}
.qa summary i::before,.qa summary i::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:#fff;border-radius:2px;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.qa summary i::after{transform:rotate(90deg)}
.qa[open] summary i::after{transform:rotate(0)}
.qa .a{overflow:hidden}
.qa .a>div{padding:0 46px 24px 0;font-size:16px;line-height:1.6;display:flex;flex-direction:column;gap:12px}
.qa .a a{text-decoration:underline;text-underline-offset:3px}
.dark .qa,.dark .qa:first-of-type{border-color:rgba(255,255,255,.2)}.dark .qa summary i{background:#fff}.dark .qa summary i::before,.dark .qa summary i::after{background:#000}
@media (max-width:980px){.faq{grid-template-columns:minmax(0,1fr)}.faq .fhead{position:static}.qa summary{font-size:17px}.qa .a>div{padding-right:0}}
.marks.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.marks.two li:nth-child(odd){padding-left:0;border-left:0}
.marks.two li:nth-child(n+3){border-top:1px solid color-mix(in srgb,currentColor 8%,transparent)}

/* ---------- Homepage helpers (the homepage doesn't load site.css) ---------- */
.reviews .wrap,.h-marks .wrap{max-width:1320px;margin:0 auto;padding:0 calc(var(--gut,20px) + 22px)}
.hero-trust{margin:0 0 26px}
.h-marks{padding:clamp(4px,1vw,12px) 0 clamp(40px,5vw,80px)}
.h-marks .lbl{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:18px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.h-marks .lbl a{letter-spacing:0;text-transform:none;font-size:14px;text-decoration:underline;text-underline-offset:3px}

/* ---------- Film lightbox: a portrait film over a dimmed page ---------- */
.flb{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:rgba(0,0,0,.78);opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s;padding:20px}
.flb.on{opacity:1;visibility:visible;transition:opacity .3s}
.flb .fr{position:relative;height:min(86vh,860px);aspect-ratio:9/16;max-width:100%;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 30px 90px rgba(0,0,0,.5);transform:scale(.96);transition:transform .4s cubic-bezier(.16,1,.3,1)}
.flb.on .fr{transform:none}
.flb video{width:100%;height:100%;object-fit:cover;display:block}
.flb .x{position:absolute;top:18px;right:18px;width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;z-index:2}
.flb .x svg{width:18px;height:18px;fill:none;stroke:#000;stroke-width:2;stroke-linecap:round}
.flb .cap{position:absolute;left:18px;right:80px;top:20px;color:#fff;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-shadow:0 1px 8px rgba(0,0,0,.5)}

/* shared with the homepage, which doesn't load site.css */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.foot-marks{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:64px;padding-top:24px;border-top:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.foot-marks span{display:inline-flex;align-items:center;gap:8px}
.foot-marks svg{width:16px;height:16px;flex:none;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.foot .legal{margin-top:28px}
.foot-cols.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:980px){.foot-cols.five{grid-template-columns:1fr 1fr}}

/* v49b (11 Oct 2026): a drop-down under How it works in the top menu (Blood test kit, DNA kit). Here, not in site.css,
   so the homepage (which has its own styles) gets it too. */
.nav .links .dd{position:relative;display:inline-flex}
.nav .links .dd-menu{position:absolute;top:100%;left:50%;z-index:5;display:grid;min-width:184px;padding:18px 0 0;transform:translate(-50%,6px);
  opacity:0;visibility:hidden;transition:opacity .2s var(--ease),transform .3s var(--ease),visibility 0s .3s}
.nav .links .dd-menu::before{content:"";position:absolute;inset:10px 0 0;z-index:-1;border-radius:16px;background:#fff;box-shadow:0 18px 44px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.05)}
.nav .links .dd-menu a{display:block;padding:11px 18px;font-size:15px;font-weight:500;white-space:nowrap;border-radius:10px;margin:0 6px}
.nav .links .dd-menu a:first-child{margin-top:6px}.nav .links .dd-menu a:last-child{margin-bottom:6px}
.nav .links .dd-menu a:hover{background:#F2F2F2}
.nav .links .dd-menu a::after{display:none}
.nav .links .dd:hover .dd-menu,.nav .links .dd:focus-within .dd-menu{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .2s var(--ease),transform .3s var(--ease),visibility 0s}
/* v49c: the footer is the same on every page, the homepage included: regular weight links, no circles on the icons */
footer.foot .foot-cols li{font-weight:400}
footer.foot .social a{border:0;background:none}
/* v49d: the homepage. A black play button inside each See how it works pill; the pain scores as TestD kit vs a clinic
   test, with "vs" between them, and the source line smaller, in black */
.atile .btn.shiw{gap:10px;padding:0 20px 0 7px}
.atile .btn.shiw .pl{position:relative;width:30px;height:30px;border-radius:50%;background:#000;flex:none}
.atile .btn.shiw .pl::after{content:"";position:absolute;left:50%;top:50%;margin:-6px 0 0 -3px;border-left:10px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent}
.pain.vs3{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.pain.vs3 .pvs{font-style:normal;font-size:17px;font-weight:700;color:#000;padding:0 4px}
.arm-note .src{font-size:10.5px;font-weight:400;line-height:1.4;color:#000;opacity:.8}
/* v50 (12 Oct 2026, Michael): a quieter footer. The tagline is a paragraph now (same size as the old heading); the links are
   smaller and lighter; the disclaimers smaller and softer */
footer.foot .foot-tag{font-size:50px;font-weight:600;letter-spacing:-.04em;line-height:1}
footer.foot .foot-cols li{font-size:14px;font-weight:400;padding:4px 0}
footer.foot .foot-cols a{opacity:.72}
footer.foot .foot-cols a:hover{opacity:1}
footer.foot .legal{font-size:12px;line-height:1.55}
footer.foot .legal p{opacity:.6}
footer.foot .legal .fn{opacity:.5}
footer.foot .legal nav{font-weight:400;opacity:.72}
@media (max-width:760px){footer.foot .foot-tag{font-size:40px}}
/* v50 (SEO audit): labels that used to be headings keep their look. The footer's column titles (homepage included), and the
   titles on the review ticker's hidden second copy */
footer.foot .foot-cols .fh{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin-bottom:18px}
.rv-card .rvt{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.2}
/* the menu's group titles are labels too (homepage included) */
.mp-group .mp-h{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#000;margin-bottom:8px}
/* v50b: For doctors in the footer ends with a small outlined button */
footer.foot .foot-cols li.fcta{padding-top:12px}
footer.foot .foot-cols a.fpill{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:99px;border:1px solid rgba(255,255,255,.5);
  opacity:1;background:none;font-size:13.5px;font-weight:500;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
footer.foot .foot-cols a.fpill:hover{background:#fff;color:#000;border-color:#fff}
footer.foot .legal nav{flex-wrap:wrap;row-gap:8px}
/* v50b: the homepage's statistic sources link to their papers */
.src a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* v50c (Michael): the homepage's source lines are black; only the reference is underlined */
article.card .src{color:#000;opacity:1}
/* v50c: the time card's bars to scale. Clinic side: 37 min travel and 84 at the clinic; TestD's 5 min against 120 */
.stat99 .track .out{flex:37}
.stat99 .track .in{flex:84}
.stat99 .track .home{width:4.2%}
/* v50c: three digits (120) on phones: the numbers a little smaller so "min" fits */
@media (max-width:560px){.card.stat99.vs .big99{font-size:clamp(44px,13.5vw,64px)}}
/* v50e (Michael): the hero's red ticks were two rotated borders with a hairline gap where they met; now one drawn path */
.hero .hero-side .bul li::after{left:0;top:2px;width:19px;height:19px;border:0;border-radius:0;transform:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l4.6 4.6L19.5 7' fill='none' stroke='%23FF0046' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* v50e: the closing band's longer line ("Test in five minutes. Picked up from your front door.") at a size that fits */
.band.close .close-copy h2{font-size:clamp(40px,4.6vw,66px);max-width:13ch}
.cta-band .copy h2{font-size:clamp(36px,4vw,60px);max-width:13ch}
/* v50h (Michael, 12 Oct): the closing band, "Test in 5 mins. / Picked up from / your front door.", 10% shorter */
.band.close{min-height:630px}
.band.close .close-copy{padding-top:84px;padding-bottom:72px}
.band.close .close-copy h2{max-width:none}
