/* ---- product page ---- */
/* Two rows: the picture beside the purchase column, then the certificate cards under the picture beside
   what you can count on and the fold-outs. The picture no longer follows the scroll, so it never rides
   down over the cards. */
.pdp__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "stage info" "coas details"; column-gap: clamp(8px, 3vw, 56px); row-gap: clamp(24px, 2.4vw, 32px); align-items: start; }
.pdp__stage { grid-area: stage; position: relative; display: grid; justify-items: center; }   /* anchors the Made in the USA tag laid on the picture */
.pdp__stage .vial { width: min(100%, 640px, calc((100svh - var(--header-h) - 24px) * .8)); }
@media (min-width: 1200px) { .pdp__stage .vial { margin-top: -7%; } }
/* the vial's ground fades out below the glass; the cards start inside that empty foot, closer to the purchase column */
@media (min-width: 900px) { .pdp__stage { margin-bottom: -5%; } }
.pdp__info { grid-area: info; padding-top: clamp(8px, 3vw, 48px); max-width: 500px; }
.pdp__details { grid-area: details; width: 94%; min-width: 0; margin-bottom: clamp(48px, 5vw, 72px); }
/* The card never stretches with the column beside it: holdHeight() in js/app.js sets its height to the column's
   with every fold-out closed, so opening one lengthens the column, not the card. */
.pdp__coas { grid-area: coas; justify-self: center; width: 94%; align-self: start; display: flex; flex-direction: column; min-width: 0; }
.pdp__coas.is-held { min-height: var(--held-h); }
/* compact rows: the summary's words sit close to their hairlines */
.pdp__details .qa--dark summary { min-height: calc(50px + var(--fold-fill, 0px)); padding: 12px 0; }
.pdp__coas > .kcoa-rail { flex: 1; }
.pdp__coas .kcoa-rail__track { flex: 1; }
.pdp__info { --nm: clamp(40px, 4.6vw, 64px); }
.pdp__name { font-size: var(--nm); font-weight: 300; line-height: 1.1; }
/* under the name: the purity, then the certificate a click away */
/* set by the name's ink, not its box: the outlined name sits .2em above the box's foot and its first
   letter starts about .1em in, so the line rises to it and starts where the letter does */
.pdp__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: calc(16px - var(--nm) * .2); padding-left: calc(var(--nm) * .05); font-size: 13.5px; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.pdp__tested { display: inline-flex; align-items: center; gap: 6px; }
.pdp__tested svg { width: 15px; height: 15px; flex: none; color: var(--bone-3); }
.pdp__proof span + .pdp__tested { padding-left: 16px; border-left: 1px solid var(--line-2); }
.pdp__tested a { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .25s; }
.pdp__tested a:hover { text-decoration-color: var(--bone); }
/* the product page sits close under the header: a back link, then the picture and the words */
.page:has(> [data-pdp]) { padding-top: calc(var(--header-h) + clamp(12px, 1.6vw, 20px)); }
.pdp__top { position: relative; z-index: 2; }
.pdp__back { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); background-size: 0 1px; transition: color .25s, background-size .35s var(--ease); }
.pdp__back:hover { color: var(--bone); background-size: 100% 1px; }
.pdp__back .arrow { scale: -1 1; }
.pdp__back:hover .arrow { transform: translateX(-4px); }
/* Made in the USA, the footer's tag, laid on the top left of the picture */
.pdp__made--row { display: none; }
.pdp__stage .pdp__made { position: absolute; z-index: 1; top: clamp(8px, 2vw, 24px); left: 0; margin: 0; }
/* on desktop the picture is wide and the vial sits mid-frame: the tag steps a little in toward it */
@media (min-width: 900px) { .pdp__stage .pdp__made { top: calc(clamp(8px, 2vw, 24px) + 16px); left: 40px; } }
.pdp__info .opts { margin-top: 30px; }
.pdp__info .buy { margin-top: 26px; }
/* the act row: quantity and Add to cart, one height, under the packs */
.pdp__info .buy--act { gap: 10px; margin-top: 16px; }
.pdp__info .buy--act .qty, .pdp__info .buy--act .qty button { height: 50px; }
.pdp__info .buy--act .qty button { width: 42px; }
.pdp__info .buy--act .qty output { min-width: 26px; font-size: 15px; }
.pdp__info .buy + .opts { margin-top: 18px; }
.pdp__label { margin-top: 32px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.pdp__info .pdp__label + .packs { margin-top: 20px; }
.pdp__incart { margin-left: 8px; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--bone-3); }
.pdp__incart[hidden] { display: none; }
/* The product page's selectors share one grammar with the packs: hairline tiles on the packs'
   four-column grid, the choice drawn in full ink. The one solid block in the column is Add to cart. */
.pdp__info .opts--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__info .opts--pills .opt, .pdp__info .opts--pills.is-one span { justify-content: center; min-width: 86px; min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--bone-2); }
.pdp__info .opts--pills .opt[aria-pressed="true"], .pdp__info .opts--pills.is-one span { background: none; color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); }
.pdp__info .price { min-width: 0; }
/* ---- quantity: four packs, each with its vials drawn in the chosen strength ----
   A hairline tile per pack, the chosen one drawn in full ink. A pack's flag is a sliver of label
   laid across the top edge, cut at the label's own angle. The tile stays on the page colour,
   which is what the vial pictures are built on; the vials are clipped to their glass so a row
   can sit close without one picture's ground covering the next. */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.pack { position: relative; container-type: inline-size; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 11px; text-align: center; color: var(--bone-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .3s var(--ease), color .3s; }
.pack:hover { box-shadow: inset 0 0 0 1px var(--bone-3); color: var(--bone); }
.pack[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--bone); color: var(--bone); }
.pack:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.pack:active { transform: translateY(1px); }
.pack__flag { position: absolute; z-index: 2; top: 0; left: 50%; display: inline-flex; align-items: center; height: 18px; padding: 0 14px; transform: translate(-50%, -50%); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: var(--bone); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
/* The stage is as tall as a front vial's glass; each picture is laid with its base on the stage
   floor (the glass ends 86.5% down the picture) and clipped to the vial's own outline, so a vial
   behind shows round the one in front instead of being cut by its square ground. */
.pack__vials::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -5px; width: calc(var(--h) * 1.05); height: 12px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.pack__vial { position: absolute; left: 50%; bottom: calc(var(--h) * -.135); height: var(--h); aspect-ratio: 4 / 5; background-position: center; background-size: cover; background-repeat: no-repeat; transform-origin: 50% 86.5%; transform: translateX(-50%) translate(calc(var(--x) * var(--h)), calc(var(--y) * var(--h) * -1)) scale(var(--s)); filter: brightness(var(--d)); clip-path: polygon(35% 18%, 65% 18%, 66.2% 19.5%, 66.2% 31.5%, 62% 33%, 62% 35.6%, 66.6% 37.4%, 66.8% 85.6%, 65.6% 86.6%, 34.4% 86.6%, 33.2% 85.6%, 33% 37.4%, 37.8% 35.6%, 37.8% 33%, 33.8% 31.5%, 33.8% 19.5%); transition: transform .5s var(--ease); }
.pack:hover .pack__vial { transform: translateX(-50%) translate(calc(var(--x) * var(--h)), calc(var(--y) * var(--h) * -1 - 2px)) scale(var(--s)); }
.pack__pic { --h: min(74px, 62cqi); position: relative; display: block; width: 100%; }
.pack__vials { position: relative; isolation: isolate; display: block; width: 100%; height: calc(var(--h) * .74); }
.pack__count { position: absolute; left: calc(50% + var(--h) * .22); bottom: -3px; padding: 2px 5px; font-size: 10.5px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--bone); background: var(--obsidian-3); }
.pack__text { display: flex; flex-direction: column; gap: 1px; }
.pack__price { display: none; }
.pack__qty { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pack__save { white-space: nowrap; font-size: 11.5px; color: var(--bone-3); font-variant-numeric: tabular-nums; transition: color .3s; }
.pack[aria-pressed="true"] .pack__save { color: var(--bone-2); }
.price { display: inline-flex; align-items: baseline; gap: 10px; }
.price__was { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--bone-3); text-decoration-thickness: 1px; }
.price__was[hidden] { display: none; }
.price__per { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--bone-3); }
@media (prefers-reduced-motion: reduce) { .pack, .pack__save, .pack__vial { transition: none; } .pack:active { transform: none; } }
/* the product page's one action: price and quantity on a line, the strip under them across the column */
.pdp__add { --h: 50px; flex: 1 1 auto; min-width: 0; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px; }
.assure li { padding-right: 16px; }
.assure li + li { padding-left: 16px; border-left: 1px solid var(--line-2); }
/* ---- under Add to cart: when it ships and arrives, then the two assurances and the card marks ----
   A hairline panel in the packs' grammar; the times are the only full-ink words in it. */
/* The delivery band (.eta, not .promise: the homepage owns that name): two figures in one band, split by a single rule, each with its caps label
   above and a caption below; the dial is the homepage's 24-hour dial, its arc the day left to ship.
   Shipment protection rides in the arrival caption, its note on the word. */
/* the 30-day guarantee: one centered line between Add to cart and the delivery band, its terms on the words */
.pdp__guarantee { display: flex; justify-content: center; margin-top: 12px; font-size: 13.5px; }
.pdp__guarantee .assurance__btn { min-height: 32px; gap: 7px; }
.pdp__guarantee .assurance__btn svg { width: 15px; height: 15px; color: var(--bone-2); }
.pdp__guarantee .assurance__tip { right: auto; left: 50%; width: 268px; max-width: calc(100vw - 32px); transform: translate(-50%, 4px); }
.pdp__guarantee .assurance__protect:not(.is-closed) .assurance__btn:focus-visible + .assurance__tip, .pdp__guarantee .assurance__protect.is-open .assurance__tip { transform: translate(-50%, 0); }
@media (hover: hover) { .pdp__guarantee .assurance__protect:hover .assurance__tip { transform: translate(-50%, 0); } }
.assurance__tip strong { display: block; margin-bottom: 3px; font-weight: 600; color: var(--bone); }
.eta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
.pdp__info .eta { border-bottom: 1px solid var(--line); }
.eta__cell { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.eta__cell:first-child { padding-right: 14px; }
.eta__cell + .eta__cell { padding-left: 22px; border-left: 1px solid var(--line); }
.eta__cell p { display: flex; flex-direction: column; min-width: 0; }
/* the two halves read across as rows: labels, values and captions start level even when a caption wraps */
.eta__cell { align-items: flex-start; }
.eta__dial { align-self: center; }
.eta__s .assurance__btn { line-height: inherit; }
.eta__k { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.eta__v { margin: 4px 0 2px; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--bone); font-variant-numeric: tabular-nums; }
.eta__s { font-size: 12px; line-height: 1.35; color: var(--bone-3); text-wrap: balance; }
.eta__dial { flex: none; width: 40px; height: 40px; rotate: -90deg; overflow: visible; }
.eta__dial circle { fill: none; stroke-width: 2.4; }
.eta__track { stroke: var(--line); }
.eta__arc { stroke: var(--bone); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.eta__ticks line { stroke: var(--bone-3); stroke-width: .7; }
.eta__ticks line.is-major { stroke: var(--bone-2); stroke-width: 1.1; }
.assurance__btn { display: inline-flex; align-items: center; gap: 7px; }
.assurance__btn svg { width: 14px; height: 14px; flex: none; color: var(--bone-3); }
.assurance__protect { position: relative; }
.assurance__btn { color: var(--bone-2); font-size: inherit; cursor: pointer; }
.eta__s .assurance__protect { display: inline-block; }
.eta__s .assurance__btn { gap: 4px; }
.eta__s .assurance__btn svg { width: 12px; height: 12px; }
.assurance__btn span { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--bone-3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.assurance__btn:hover span, .assurance__protect.is-open .assurance__btn span { color: var(--bone); text-decoration-color: var(--bone); }
.assurance__btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.assurance__tip { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 230px; padding: 10px 13px; font-size: 12.5px; line-height: 1.45; color: var(--bone-2); text-align: left; background: var(--obsidian-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s var(--ease), transform .25s var(--ease), visibility 0s .25s; pointer-events: none; }
.assurance__protect:not(.is-closed) .assurance__btn:focus-visible + .assurance__tip, .assurance__protect.is-open .assurance__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .assurance__protect:hover .assurance__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
@media (prefers-reduced-motion: reduce) { .assurance__tip, .eta__arc { transition: none; } }
/* ---- below the band: the three points the homepage makes, on a card cut at the label's corner,
   then the fold-outs ---- */
.pdp__counts { padding: clamp(22px, 2.6vw, 30px); background: var(--obsidian-2); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 25px, 100% 100%, 0 100%); }
.pdp__counts h2 { font-size: 21px; font-weight: 400; letter-spacing: -.01em; }
.pdp__counts ul { display: grid; gap: 18px; margin-top: 20px; }
.pdp__counts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 16px; }
.pdp__counts li::before { content: ""; grid-row: 1; width: 22px; height: 8px; margin-top: .55em; background: var(--bone); clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%); }
.pdp__counts h3 { font-size: 16.5px; font-weight: 400; line-height: 1.3; }
.pdp__counts li:has(.pdp__counts-tag)::before { margin-top: 10px; }
.pdp__counts-tag .foot__tag { margin-top: 0; }
.pdp__counts p { grid-column: 2; font-size: 14px; color: var(--bone-2); }
.pdp__details .pdp__more { margin-top: 30px; }
/* a fold-out's body: its paragraphs, then the guides it points to */
.pdp__fold { padding: 0 44px 16px 0; }
/* See COAs is the phone's place for the certificate cards; wider screens show them under the picture */
.pdp__coa-fold { display: none; }
.pdp__fold--coas { padding-right: 0; padding-bottom: 20px; }
@media (max-width: 899px) { .pdp__coa-fold { display: block; } }
.qa details .pdp__fold > p { padding: 0; }
.pdp__fold > * + * { margin-top: 12px; }
.qa details .pdp__fold > .pdp__guides { font-size: 14px; color: var(--bone-3); }
.pdp__guides a { color: var(--bone-2); }
.pdp__guides a:hover { color: var(--bone); }
.pdp__faq { padding: 0; }
.qa details .pdp__faq p:last-child { padding-bottom: 0; }
/* what is in the vial, and what is not: two short lists side by side */
.pdp__contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.pdp__contents h3 { margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.pdp__contents ul { list-style: none; padding: 0; }
.pdp__contents li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; line-height: 1.45; color: var(--bone); border-bottom: 1px solid var(--line); }
.pdp__contents li:last-child { border-bottom: 0; }
.pdp__contents li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 5px; border-left: 1.5px solid var(--bone); border-bottom: 1.5px solid var(--bone); transform: rotate(-45deg); }
.pdp__contents li.is-out { color: var(--bone-2); }
.pdp__contents li.is-out::before { top: 15px; width: 10px; height: 0; border-left: 0; border-bottom-color: var(--bone-3); transform: none; }
@media (max-width: 560px) { .pdp__contents { grid-template-columns: minmax(0, 1fr); } }

/* ---- certificate cards: one per tested strength, swiped sideways, the page's own surface and hairline ---- */
.kcoa-rail { display: flex; flex-direction: column; }
.kcoa-rail__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.kcoa-rail__track::-webkit-scrollbar { display: none; }
.kcoa-rail__track:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.kcoa { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; padding: 20px 24px 22px; background: var(--obsidian-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); font-variant-numeric: tabular-nums; }
.kcoa__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kcoa__lab { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.kcoa__id { font-size: 12px; line-height: 1.5; color: var(--bone-3); }
.kcoa__hero { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.kcoa__pct { font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.kcoa__pct small { margin-left: 1px; font-size: 18px; letter-spacing: 0; color: var(--bone-3); }
.kcoa__sub { display: flex; align-items: center; font-size: 12.5px; line-height: 1.4; color: var(--bone-3); }
.kcoa__status { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-weight: 500; color: var(--bone); }
.kcoa__status::before { content: "\00b7"; margin-right: 5px; color: var(--bone-3); }
.kcoa__status svg { width: 12px; height: 12px; }
.kcoa__rows { display: flex; flex: 1; flex-direction: column; }
.kcoa__row { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.kcoa__row dt { font-size: 14.5px; line-height: 1.45; color: var(--bone-3); }
.kcoa__row dd { font-size: 14px; line-height: 1.45; text-align: right; }
.kcoa__row dd.is-good { color: var(--good); font-weight: 600; }
.kcoa__foot { margin-top: 12px; padding: 9px 0 6px; font-size: 11px; line-height: 1.5; color: var(--bone-3); border-top: 1px solid var(--line); }
.kcoa__foot b { font-weight: 600; color: var(--bone); }
.kcoa__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 12px; background: var(--bone); color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color .25s var(--ease); }
.kcoa__cta .arrow { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.kcoa__cta:hover { background: var(--paper); }
.kcoa__cta:hover .arrow { transform: translateX(3px); }
.kcoa__cta:active { transform: translateY(1px); }
.kcoa__cta:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.kcoa-rail__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.kcoa-rail__count { min-width: 44px; text-align: center; font-size: 12px; line-height: 1; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.kcoa-rail__count b { font-weight: 600; color: var(--bone); }
.round.kcoa-rail__btn { width: 44px; height: 44px; }
.kcoa-rail__btn svg { width: 15px; height: 15px; }
[data-rail-prev] svg { scale: -1 1; }
@media (prefers-reduced-motion: reduce) { .kcoa__cta, .kcoa__cta .arrow { transition: none; } .kcoa__cta:active { transform: none; } }
.pdp__faq h3 { font-size: 15px; font-weight: 500; color: var(--bone); }
.pdp__faq p { padding: 3px 0 16px; }
.qa details .pdp__faq p { padding-right: 0; }
.pdp__missing { padding-block: 12vh 20vh; text-align: center; }
.pdp__missing p { margin: 18px auto 30px; color: var(--bone-2); }
.shelf--more { padding-top: 0; }
/* after the questions band, the shelf opens with the band's own breathing room */
.story .shelf--more { padding-top: var(--story-pad); }

/* phone: price and add stay in reach while the page scrolls */
.buybar { position: fixed; inset: auto 0 0 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(24, 24, 26, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .45s var(--ease); }
.buybar.is-on { transform: none; }
.buybar .price { font-size: 22px; min-width: 0; gap: 6px; }
.buybar .price__per { font-size: 12.5px; }
/* the dock on phones: strength and quantity on a row above price and Add to cart */
.buybar { flex-direction: column; align-items: stretch; gap: 10px; }
.buybar__opts, .buybar__act { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* strength over quantity, one column wide, so the two controls stack as a pair on the left */
.buybar { --ctl: 104px; }
.buybar__dose { flex: none; width: var(--ctl); height: 44px; padding-left: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.buybar__dose.is-one { padding: 0 14px; }
.buybar__dose:not(.is-one)::after { right: 13px; }
.buybar__dose .dd-trigger { width: 100%; padding-right: 30px; text-align: left; }
.buybar .qty { flex: none; width: var(--ctl); justify-content: space-between; }
.buybar .qty, .buybar .qty button { height: 44px; }
.buybar .qty button { width: 34px; }
/* the bar's strip takes the rest of the row, one step lower than on the page: it sits in a thumb's reach, not under a heading */
.buybar .btn { --h: 44px; flex: 1 1 auto; min-width: 0; }

@media (max-width: 899px) {
  .pdp__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "info" "coas" "details"; row-gap: 0; }
  .pdp__stage { position: relative; margin-top: -2%; }
  .pdp__coas:not(:empty) { margin-top: 40px; }
  .pdp__coas:empty { display: none; }
  .pdp__details { width: auto; margin-top: 32px; margin-bottom: clamp(32px, 8vw, 44px); }
  .pdp__coas { width: auto; justify-self: stretch; }
  .pdp__coas.is-held { min-height: 0; }
  /* on a phone the tag stays at the top left, under the back link, with room between the two and
     set a size down so the pair reads as two quiet labels, not a stack */
  .pdp__back { font-size: 11px; padding-block: 4px; }
  .pdp__stage .pdp__made { top: 26px; --h: 26px; font-size: 10px; letter-spacing: .14em; gap: 7px; padding-left: 10px; padding-right: calc(var(--t) + 6px); }
  .pdp__stage .pdp__made .foot__flag { width: 15px; height: 8px; }
  .pdp__stage .vial { margin-top: 10px; }
  .pdp__stage .vial { width: min(88%, 420px); }
  .pdp__info { padding-top: 0; max-width: none; margin-top: -9%; position: relative; }
  .buybar { display: flex; }
  .has-buybar .foot { padding-bottom: max(136px, var(--buybar-h, 0px)); }
}
@media (max-width: 719px) {
  .eta__cell { gap: 10px; }
  .eta__cell + .eta__cell { padding-left: 16px; }
  .eta__dial { width: 34px; height: 34px; }
  .eta__v { font-size: 17px; }
  /* phones keep the desktop row of four, scaled down: tighter tiles, smaller words and tags */
  .packs { gap: 6px; margin-top: 30px; }
  .pack { gap: 6px; padding: 14px 2px 9px; }
  .pack__flag { height: 15px; padding: 0 8px; font-size: 7.5px; letter-spacing: .05em; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
  .pack__count { bottom: -2px; padding: 1px 3px; font-size: 9px; }
  .pack__qty { font-size: 12.5px; }
  .pack__save { font-size: 10.5px; white-space: nowrap; }
}

/* ---- below the certificate card and fold-outs: our commitment, quality control, the comparison and the FAQ,
   with a tab bar that stays under the header. Bands alternate the page and the raised surface; inside a
   band, a table sits on the page colour so it reads as a sheet laid on it. ---- */
.story { --story-pad: clamp(32px, 3.4vw, 48px); }
.story__tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(24, 24, 26, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-block: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.story__tabs .wrap { display: flex; gap: clamp(22px, 3vw, 40px); height: 54px; overflow-x: auto; scrollbar-width: none; }
.story__tabs .wrap::-webkit-scrollbar { display: none; }
.story__tabs a { position: relative; display: flex; align-items: center; flex: none; font-size: 13.5px; color: var(--bone-3); transition: color .25s; }
.story__tabs a:hover, .story__tabs a.is-on { color: var(--bone); }
.story__tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bone); }
.story__tabs a:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.story__sec { padding-block: var(--story-pad); }
.story__sec--band { background: var(--obsidian-2); }
.story__h { display: flex; align-items: center; gap: .32em; margin-bottom: clamp(22px, 2.6vw, 32px); }
/* Made in the USA heads its section as the tag used everywhere else, set a size up */
.story__made { margin-bottom: clamp(22px, 2.6vw, 32px); }
/* The tag carries the section's title in its own capitals, as everywhere else on the site: sized so its letters
   stand as tall as the other section titles', its strip starting on the same edge as everything below it. */
.story__made .foot__tag { --h: 1.9em; gap: .55em; margin-top: 0; padding-left: .5em; padding-right: calc(var(--t) + .5em); font-size: clamp(22px, 2.5vw, 34px); font-weight: 400; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.story__made .foot__flag { width: 1.1em; height: .58em; }
.story__made { font-size: clamp(22px, 2.5vw, 34px); }
.story__label { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); text-indent: 3px; }   /* the words step in a touch; the rule under them keeps the column's edge */
/* a label straight above the process rail or the specification sheet takes no rule of its own: the rail or the sheet is the line */
.story__label--bare { padding-bottom: 0; margin-bottom: 16px; border-bottom: 0; }
.story__label--gap { margin-top: 28px; }
.story__p { max-width: 560px; font-size: 14.5px; line-height: 1.65; color: var(--bone-2); }

/* our commitment beside how it's made */
.story__commit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 4vw, 56px); }
.story__std > div + div { margin-top: 14px; }
.story__std dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 5px; font-size: 14.5px; font-weight: 500; color: var(--bone); }
.story__std dt small { font-size: 11.5px; font-weight: 400; letter-spacing: .02em; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.story__std dd { max-width: 560px; font-size: 14px; line-height: 1.65; color: var(--bone-2); }
.story__proc { display: flex; flex-direction: column; min-width: 0; }
/* free scrolling: a swipe stops wherever it is let go; the buttons still page a card at a time */
.story__track { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.story__track::-webkit-scrollbar { display: none; }
.story__track:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.story__step { flex: 0 0 calc((100% - 12px) / 2); display: flex; flex-direction: column; padding: 20px 24px 24px; background: var(--obsidian-2); box-shadow: inset 0 0 0 1px var(--line); }
.story__step-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 14px; font-size: 12px; line-height: 1.4; }
.story__n { flex: none; font-weight: 500; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.story__tag { min-width: 0; overflow: hidden; color: var(--bone-3); white-space: nowrap; text-overflow: ellipsis; }
.story__tag::before { content: "\00b7"; margin-right: 8px; }
.story__step h4 { margin: 0 0 8px; font-size: 20px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
.story__step p:last-child { font-size: 14.5px; line-height: 1.6; color: var(--bone-2); }
/* the cards take the column's spare height, so the buttons end just above the standards' last line beside them */
.story__proc .story__track { flex: 1; }
.story__nav { margin-top: 16px; margin-bottom: 3px; }

/* quality control: four steps on a line, then the release specification as a sheet */
/* The process reads left to right: a rail of the label's slanted markers, each joined to the next by a hairline,
   with each step's card hanging from its marker. A card is Amino's card, its lower right corner cut at the
   label's angle; on the band it takes the page colour. */
.story__qc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.story__qc li { position: relative; display: flex; flex-direction: column; }
.story__qc li:not(:last-child)::after { content: ""; position: absolute; top: 9px; left: 96px; right: -16px; height: 1px; background: var(--line-2); }
.story__qc-step { display: flex; align-items: center; gap: 10px; height: 18px; margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.story__qc-mark { flex: none; width: 26px; height: 9px; background: var(--bone); clip-path: polygon(12.4px 0, 100% 0, calc(100% - 12.4px) 100%, 0 100%); }
.story__qc-card { flex: 1; padding: 22px 24px 30px; background: var(--obsidian); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 30px) 100%, 0 100%); }
.story__qc h4 { margin: 0 0 8px; font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
.story__qc-card p { font-size: 14px; line-height: 1.6; color: var(--bone-2); }
.story__sheet { background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--line); }
.story__sheet-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 2fr) 160px 120px; gap: 20px; align-items: baseline; padding: 11px 24px; font-variant-numeric: tabular-nums; }
.story__sheet-row + .story__sheet-row { border-top: 1px solid var(--line); }
.story__sheet-row--head { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.story__sheet-row--head span:last-child, .story__sheet-v { text-align: right; }
.story__sheet-row b { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.story__sheet-d { font-size: 14px; line-height: 1.5; color: var(--bone-2); }
.story__sheet-m { font-size: 12.5px; color: var(--bone-3); }
.story__sheet-v { font-size: 13.5px; font-weight: 500; }
.story__sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 13px 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--bone-3); }
.story__sheet-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--bone); }
.story__sheet-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.story__sheet-foot svg { width: 14px; height: 14px; }

/* the comparison: Amino's column raised and marked along its top */
.story__cmp { box-shadow: inset 0 0 0 1px var(--line); }
.story__cmp-h, .story__cmp-r { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
.story__cmp-h > span { display: flex; align-items: center; justify-content: center; padding: 18px 24px; font-size: 14.5px; color: var(--bone-3); }
.story__cmp-r > span { display: flex; align-items: center; gap: 12px; padding: 15px 24px; font-size: 14.5px; line-height: 1.5; border-top: 1px solid var(--line); }
.story__cmp-k { font-weight: 500; color: var(--bone); }
.story__cmp-a { background: var(--obsidian-2); color: var(--bone); }
.story__cmp-b { color: var(--bone-3); }
.story__cmp-h > .story__cmp-brand { gap: 10px; box-shadow: inset 0 2px 0 var(--bone); color: var(--bone); }
.story__cmp-brand .brand__mark { width: auto; height: 15px; }
.story__cmp-brand .brand__word { width: auto; height: 12px; }
.story__cmp-r svg { flex: none; box-sizing: content-box; width: 12px; height: 12px; padding: 4px; }
.story__cmp-r .story__cmp-a svg { background: var(--bone); color: var(--ink); }
.story__cmp-r .story__cmp-b svg { padding: 3px; color: var(--bone-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* the FAQ: one fold-out per question */
.story__faq { border-top: 1px solid var(--line); }
.story__faq summary h3 { font-size: inherit; font-weight: 400; line-height: 1.4; }
.story__faq details p { max-width: 46em; }
.story__ruo { margin-top: 22px; font-size: 12px; color: var(--bone-3); }

@media (max-width: 1000px) {
  .story__commit { grid-template-columns: minmax(0, 1fr); }
  .story__qc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__qc li:nth-child(2n)::after { display: none; }
  .story__sheet-row { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.6fr) 130px 100px; gap: 16px; }
}
@media (max-width: 719px) {
  .story__step { flex-basis: 86%; padding: 20px 20px 22px; }
  .story__qc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story__qc li:not(:last-child)::after { display: none; }
  .story__sheet-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
  .story__sheet-row--head { display: none; }
  .story__sheet-d { grid-column: 1 / -1; grid-row: 2; }
  .story__sheet-m { display: none; }
  .story__sheet-foot { padding: 12px 16px; }
  .story__cmp-h, .story__cmp-r { grid-template-columns: 1fr 1fr; }
  .story__cmp-h > span:first-child { display: none; }
  .story__cmp-h > span { padding: 14px 16px; font-size: 13.5px; }
  .story__cmp-k { grid-column: 1 / -1; padding-bottom: 4px !important; font-size: 13px !important; color: var(--bone-3) !important; }
  .story__cmp-r > span { align-items: flex-start; gap: 10px; padding: 12px 16px; font-size: 14px; }
  .story__cmp-r > .story__cmp-a, .story__cmp-r > .story__cmp-b { border-top: 0; }
  .story__cmp-r svg { margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) { .story__tabs a { transition: none; } }
