/* ---------------------------------------------------------------------------
   Quill Peptides — quality programme landing page.

   Brand tokens are lifted verbatim from the storefront theme
   (src/app/design/frontend/Quill/peptides/web/css/source/_extend.less) so this
   page and quillpeptides.com stay one visual system. The contrast rules baked
   into those tokens carry over and are NOT negotiable here either:

     --qp-ink   on --qp-paper    17.1:1
     --qp-muted on --qp-paper     5.4:1
     --qp-muted on --qp-surface   5.1:1
     --qp-ink   on --qp-accent     7.1:1   OK  — navy on cyan
     --qp-paper on --qp-accent     2.4:1   FAILS. Never white text on cyan.

   --qp-accent is a fill/border/marker colour. Text sitting on it is always
   --qp-ink.
--------------------------------------------------------------------------- */

/* Poppins, self-hosted — same four weights the storefront loads, so the page
   renders identically offline of Google Fonts and costs no third-party DNS. */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --qp-ink: #0f1d2e;
    --qp-ink-soft: #3a4654;
    --qp-accent: #16b8c9;
    --qp-accent-bright: #3fd0e0;
    --qp-accent-pale: #7fe3ef;
    --qp-paper: #ffffff;
    --qp-surface: #f5f7f9;
    --qp-surface-alt: #eef2f6;
    --qp-border: #e6ebf0;
    --qp-border-strong: #d7dee5;
    --qp-muted: #5d6b7a;

    --qp-shell-max: 1160px;
    --qp-gutter: 24px;
    --qp-band-y: 84px;
    --qp-radius: 12px;
    --qp-radius-s: 8px;
    --qp-shadow-sm: 0 1px 3px rgba(15, 29, 46, .05);
    --qp-shadow-md: 0 8px 26px rgba(15, 29, 46, .08);

    --qp-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --qp-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------- base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Sticky header is 64px; anchored sections must not slide under it. */
    scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--qp-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--qp-ink);
    background: var(--qp-paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--qp-accent); }

img, svg { max-width: 100%; }

:focus-visible {
    outline: 3px solid var(--qp-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.qp-shell {
    max-width: var(--qp-shell-max);
    margin: 0 auto;
    /* `viewport-fit=cover` lets the page paint under a notch, so the gutter has
       to clear the inset in landscape on a notched phone. max() keeps the
       normal gutter everywhere else, and browsers without env() fall back to
       the declaration above. */
    padding: 0 var(--qp-gutter);
    padding-left: max(var(--qp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--qp-gutter), env(safe-area-inset-right));
}

.qp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--qp-ink);
    color: var(--qp-paper);
    border-radius: 0 0 var(--qp-radius-s) 0;
}
.qp-skip:focus { left: 0; }

.qp-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------- header */

.qp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--qp-border);
}

.qp-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.qp-header__logo { display: inline-flex; align-items: center; }
.qp-header__logo img { height: 34px; width: auto; display: block; }

.qp-nav {
    display: none;
    margin-left: auto;
    gap: 28px;
}

.qp-nav a {
    color: var(--qp-ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.qp-nav a:hover {
    color: var(--qp-ink);
    border-bottom-color: var(--qp-accent);
}

.qp-header__cta { margin-left: auto; }

@media (min-width: 900px) {
    .qp-nav { display: flex; }
    /* Once the nav is visible it owns the auto margin, so the CTA sits
       directly beside it rather than being flung to the far edge. */
    .qp-header__cta { margin-left: 0; }
}

/* ------------------------------------------------------------------ buttons */

.qp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.qp-btn svg { flex: none; }

.qp-btn--primary {
    /* Navy on cyan — 7.1:1. The one accepted use of the accent as a fill
       behind text. */
    background: var(--qp-accent);
    color: var(--qp-ink);
}
.qp-btn--primary:hover {
    background: var(--qp-accent-bright);
    transform: translateY(-1px);
}

.qp-btn--solid {
    background: var(--qp-ink);
    color: var(--qp-paper);
}
.qp-btn--solid:hover {
    background: #16283d;
    transform: translateY(-1px);
}

.qp-btn--ghost {
    background: transparent;
    color: var(--qp-paper);
    border-color: rgba(255, 255, 255, .34);
}
.qp-btn--ghost:hover {
    border-color: var(--qp-accent-pale);
    background: rgba(255, 255, 255, .06);
}

.qp-btn--sm { padding: 9px 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
    .qp-btn:hover { transform: none; }
}

/* --------------------------------------------------------------------- hero */

.qp-hero {
    position: relative;
    overflow: hidden;
    color: var(--qp-paper);
    background: linear-gradient(120deg, #0a1420 0%, #0f1d2e 46%, #123f52 100%);
    padding: 76px 0 84px;
}

.qp-hero::before,
.qp-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.qp-hero::before {
    left: 10%;
    top: 16%;
    width: 17rem;
    height: 17rem;
    background: rgba(22, 184, 201, .18);
    animation: qp-glow 19s ease-in-out infinite;
}

.qp-hero::after {
    right: 14%;
    bottom: 8%;
    width: 13rem;
    height: 13rem;
    background: rgba(63, 208, 224, .13);
    animation: qp-glow 27s ease-in-out infinite reverse;
}

/* The glow discs breathe rather than move: a transform on a blurred element
   re-rasterises the blur every frame, opacity is applied after rasterisation
   and costs nothing. Lifted from the storefront hero for the same reason. */
@keyframes qp-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.qp-hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 699px) {
    .qp-hero {
        background: linear-gradient(160deg, #0a1420 0%, #0f1d2e 52%, #123f52 100%);
        padding: 56px 0 64px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .qp-hero::before,
    .qp-hero::after { animation: none; }
}

.qp-hero__trace {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    pointer-events: none;
    opacity: .3;
}

.qp-hero__trace svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* The trace draws itself once, then holds. `stroke-dashoffset` animates on the
   compositor without re-rasterising anything, unlike the blurred glow discs
   above, so this one is allowed to move. */
.qp-hero__trace .qp-trace__line {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: qp-trace-draw 2.6s ease-out .25s forwards;
}

@keyframes qp-trace-draw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .qp-hero__trace .qp-trace__line {
        animation: none;
        stroke-dashoffset: 0;
    }
}

@media (min-width: 900px) {
    .qp-hero__trace {
        width: 46%;
        height: 78%;
        bottom: 6%;
        opacity: .62;
    }
}

.qp-hero__inner {
    position: relative;
}

.qp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(127, 227, 239, .34);
    background: rgba(22, 184, 201, .12);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--qp-accent-pale);
}

.qp-hero__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--qp-accent);
    box-shadow: 0 0 0 0 rgba(22, 184, 201, .6);
    animation: qp-pulse 2.6s ease-out infinite;
}

@keyframes qp-pulse {
    to { box-shadow: 0 0 0 9px rgba(22, 184, 201, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .qp-hero__pulse { animation: none; }
}

.qp-hero__title {
    margin: 22px 0 0;
    font-size: clamp(2.1rem, 6vw, 3.4rem);
}

@media (min-width: 720px) {
    .qp-hero__title { max-width: 16ch; }
}

.qp-hero__accent { color: var(--qp-accent-pale); }

.qp-hero__lead {
    margin: 20px 0 0;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, .84);
    max-width: 58ch;
}

.qp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* ---------------------------------------------------------------- stat strip */

.qp-stats {
    border-bottom: 1px solid var(--qp-border);
    background: var(--qp-surface);
}

.qp-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--qp-border);
    border-left: 1px solid var(--qp-border);
    border-right: 1px solid var(--qp-border);
}

.qp-stat {
    background: var(--qp-surface);
    padding: 26px 20px;
    text-align: center;
}

.qp-stat__value {
    display: block;
    font-size: clamp(1.05rem, 4.4vw, 1.65rem);
    text-wrap: balance;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--qp-ink);
}

.qp-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--qp-muted);
}

@media (min-width: 760px) {
    .qp-stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------- bands */

.qp-band { padding: var(--qp-band-y) 0; }
.qp-band--tint { background: var(--qp-surface); }
.qp-band--ruled { border-top: 1px solid var(--qp-border); }

.qp-band__head {
    max-width: 680px;
    margin-bottom: 44px;
}

.qp-band__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.qp-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--qp-accent);
    margin-bottom: 12px;
}

.qp-band__title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.qp-band__lead {
    margin-top: 16px;
    font-size: 1.02rem;
    color: var(--qp-muted);
}

/* -------------------------------------------------------------------- cards */

.qp-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .qp-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .qp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
    .qp-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .qp-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.qp-card {
    background: var(--qp-paper);
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius);
    padding: 26px 24px;
    box-shadow: var(--qp-shadow-sm);
}

.qp-band--tint .qp-card { border-color: var(--qp-border-strong); }

.qp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(22, 184, 201, .12);
    color: var(--qp-ink);
    margin-bottom: 16px;
}

.qp-card__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qp-card__title {
    font-size: 1.06rem;
    margin-bottom: 9px;
}

.qp-card__body {
    font-size: 14.5px;
    color: var(--qp-muted);
    margin: 0;
}

/* ------------------------------------------------------------------- steps */

.qp-steps {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    counter-reset: qp-step;
}

@media (min-width: 720px) {
    .qp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
    .qp-steps { grid-template-columns: repeat(4, 1fr); }
}

.qp-step {
    position: relative;
    padding-top: 22px;
    border-top: 2px solid var(--qp-border-strong);
}

.qp-step::before {
    counter-increment: qp-step;
    content: '0' counter(qp-step);
    position: absolute;
    top: -13px;
    left: 0;
    padding-right: 10px;
    background: var(--qp-paper);
    font-family: var(--qp-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--qp-accent);
    letter-spacing: .04em;
}

.qp-band--tint .qp-step::before { background: var(--qp-surface); }

.qp-step__title {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.qp-step__body {
    font-size: 14.5px;
    color: var(--qp-muted);
    margin: 0;
}

/* --------------------------------------------------------------- COA anatomy */

.qp-split {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 940px) {
    .qp-split { grid-template-columns: 1.15fr .85fr; gap: 44px; }
}

.qp-rows {
    border: 1px solid var(--qp-border-strong);
    border-radius: var(--qp-radius);
    background: var(--qp-paper);
    overflow: hidden;
}

.qp-row {
    display: grid;
    gap: 4px 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--qp-border);
}
.qp-row:last-child { border-bottom: 0; }

@media (min-width: 620px) {
    .qp-row { grid-template-columns: 210px 1fr; align-items: baseline; }
}

.qp-row__term {
    font-style: normal;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--qp-ink);
}

.qp-row__meta {
    display: block;
    font-family: var(--qp-mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--qp-accent);
    text-transform: uppercase;
    margin-top: 2px;
}

.qp-row__desc {
    font-size: 14.5px;
    color: var(--qp-muted);
    margin: 0;
}

.qp-note {
    border: 1px solid var(--qp-border-strong);
    border-left: 3px solid var(--qp-accent);
    border-radius: var(--qp-radius-s);
    background: var(--qp-surface-alt);
    padding: 24px 24px;
}

.qp-band--tint .qp-note { background: var(--qp-paper); }

.qp-note__title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.qp-note ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--qp-muted);
}

.qp-note li { margin-bottom: 9px; }
.qp-note li:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- lot table */

.qp-table-wrap {
    border: 1px solid var(--qp-border-strong);
    border-radius: var(--qp-radius);
    background: var(--qp-paper);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 620px;
}

.qp-table th,
.qp-table td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--qp-border);
    white-space: nowrap;
}

.qp-table thead th {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--qp-muted);
    background: var(--qp-surface);
    border-bottom: 1px solid var(--qp-border-strong);
}

.qp-table tbody tr:last-child td { border-bottom: 0; }
.qp-table tbody tr:hover { background: var(--qp-surface); }

.qp-table__lot,
.qp-table__purity {
    font-family: var(--qp-mono);
    font-size: 13px;
}

.qp-table__purity { font-weight: 600; }

.qp-table a {
    color: var(--qp-ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--qp-accent);
}
.qp-table a:hover { color: var(--qp-accent); }

.qp-table-foot {
    margin-top: 14px;
    font-size: 13px;
    color: var(--qp-muted);
}

/* ------------------------------------------------------------------ pledge */

.qp-pledge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0a1420 0%, #0f1d2e 46%, #123f52 100%);
    color: var(--qp-paper);
    padding: var(--qp-band-y) 0;
}

.qp-pledge__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.qp-pledge__quote {
    font-size: clamp(1.5rem, 4.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.02em;
    margin: 14px 0 20px;
}

.qp-pledge__body {
    color: rgba(255, 255, 255, .8);
    font-size: 1.02rem;
    max-width: 62ch;
    margin: 0 auto;
}

.qp-pledge .qp-eyebrow { color: var(--qp-accent-pale); }

/* --------------------------------------------------------------------- faq */

.qp-faq { max-width: 820px; margin: 0 auto; }

.qp-faq__item {
    border-bottom: 1px solid var(--qp-border-strong);
}

.qp-faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.01rem;
    list-style: none;
}

.qp-faq__item summary::-webkit-details-marker { display: none; }

.qp-faq__item summary::after {
    content: '';
    flex: none;
    width: 11px;
    height: 11px;
    margin-top: 8px;
    border-right: 2px solid var(--qp-accent);
    border-bottom: 2px solid var(--qp-accent);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.qp-faq__item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 12px;
}

.qp-faq__answer {
    padding: 0 2px 22px;
    font-size: 15px;
    color: var(--qp-muted);
    max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
    .qp-faq__item summary::after { transition: none; }
}

/* ------------------------------------------------------------------ cta band */

.qp-cta {
    text-align: center;
    padding: var(--qp-band-y) 0;
    border-top: 1px solid var(--qp-border);
}

.qp-cta__title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    margin-bottom: 14px;
}

.qp-cta__body {
    color: var(--qp-muted);
    max-width: 52ch;
    margin: 0 auto 28px;
}

/* ------------------------------------------------------------------- footer */

.qp-footer {
    background: var(--qp-ink);
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 32px;
    font-size: 14px;
}

.qp-footer__top {
    display: grid;
    gap: 34px;
    grid-template-columns: 1fr;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

@media (min-width: 720px) {
    .qp-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}

.qp-footer__brand img { height: 30px; width: auto; }

.qp-footer__blurb {
    margin-top: 16px;
    max-width: 38ch;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
}

.qp-footer__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--qp-paper);
    margin-bottom: 14px;
}

.qp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qp-footer li { margin-bottom: 9px; }

.qp-footer a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}
.qp-footer a:hover { color: var(--qp-accent-pale); }

.qp-footer__legal {
    padding-top: 26px;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
}

.qp-footer__legal strong { color: rgba(255, 255, 255, .85); }

.qp-footer__legal p { margin-bottom: .8em; }

/* ===========================================================================
   MOBILE
   ---------------------------------------------------------------------------
   This page's traffic is a link in an Instagram profile, so the phone layout is
   the primary one and the desktop layout is the variant. Everything below is a
   narrow-screen correction to a rule further up the file, kept together at the
   end so the mobile pass can be read (and reverted) as one thing.
=========================================================================== */

@media (max-width: 719px) {

    /* Bands were tuned at desktop and read as dead space on a phone, where the
       whole page is one column and the section breaks are already obvious from
       the tint changes. */
    :root {
        --qp-band-y: 54px;
        --qp-gutter: 20px;
    }

    /* The peak sits at 59% of the SVG, which on a phone is directly behind the
       secondary button. Overscaling and letting the hero clip the tail moves it
       to ~80% — clear of the buttons, which end around 62%. */
    .qp-hero__trace {
        left: 0;
        right: auto;
        width: 136%;
    }

    .qp-band__head { margin-bottom: 30px; }
    .qp-band__lead { font-size: .98rem; }

    /* A tap does not hover, so the default grey flash is the only feedback a
       phone gives. Make it the brand colour rather than the UA's. */
    a, button, summary {
        -webkit-tap-highlight-color: rgba(22, 184, 201, .18);
    }

    /* Headings wrap two or three times at this width; `pretty` stops the last
       line being a single orphaned word. */
    h1, h2, h3, .qp-pledge__quote { text-wrap: pretty; }

    /* ---- cards: icon beside the title, not above it ----------------------
       Stacked, the four standard cards cost ~1100px of scroll between the
       reader and the lot table. Moving the icon into the title row takes ~60px
       off each without shrinking any text. */
    .qp-card {
        padding: 20px 18px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "body body";
        column-gap: 14px;
        align-items: center;
    }

    .qp-card__icon {
        grid-area: icon;
        margin-bottom: 0;
        width: 38px;
        height: 38px;
    }

    .qp-card__title {
        grid-area: title;
        margin-bottom: 0;
        font-size: 1.02rem;
    }

    .qp-card__body {
        grid-area: body;
        margin-top: 12px;
    }

    .qp-grid { gap: 14px; }
    .qp-steps { gap: 26px; }

    /* ---- the certificate rows ---- */
    .qp-row { padding: 16px 18px; }
    .qp-note { padding: 20px 18px; }

    /* ---- published lots: a table becomes twelve cards --------------------
       At 390px the table was 620px wide inside an overflow-x scroller, so the
       first thing visible was "Product" and "Lot" and the purity column — the
       entire point of the section — sat off-screen behind a sideways swipe
       nobody makes. Each row is re-laid as a card instead:

           QP-1S 10 mg                 99.94%
           Lot QP-2608-014          2026-08-25
           ILS Laboratories    View certificate

       The markup stays a real table, so it is still a table to a screen
       reader and still correct on a desktop. */
    .qp-table-wrap {
        border: 0;
        background: none;
        overflow-x: visible;
    }

    .qp-table {
        min-width: 0;
        display: block;
    }

    .qp-table thead {
        /* Visually hidden, not display:none — removing it would take the column
           headers away from assistive tech too, and they are what makes the
           bare date and lab name mean something. */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .qp-table tbody { display: block; }

    .qp-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name lot"
            "date purity"
            "lab  cert";
        column-gap: 14px;
        row-gap: 2px;
        align-items: baseline;
        margin-bottom: 10px;
        padding: 16px 18px;
        background: var(--qp-paper);
        border: 1px solid var(--qp-border-strong);
        border-radius: var(--qp-radius);
        box-shadow: var(--qp-shadow-sm);
    }

    .qp-table tbody tr:hover { background: var(--qp-paper); }

    .qp-table td {
        display: block;
        padding: 0;
        border: 0;
        white-space: normal;
    }

    .qp-table td:nth-child(1) {
        grid-area: name;
        font-weight: 600;
        font-size: 15px;
        line-height: 1.3;
    }

    .qp-table td:nth-child(2) { grid-area: lot; text-align: right; }
    .qp-table td:nth-child(3) { grid-area: date; }
    .qp-table td:nth-child(4) { grid-area: purity; text-align: right; }
    .qp-table td:nth-child(5) { grid-area: lab; }
    .qp-table td:nth-child(6) { grid-area: cert; text-align: right; }

    /* Purity is what the section is for, so on a phone it is the second thing
       read rather than the fourth column of a scroller. */
    .qp-table td:nth-child(4) {
        /* Poppins, not the mono stack the desktop column uses: at 17px/700 the
           fallback mono's percent sign renders small and high, so "99.94%" read
           as a footnote marker. Tabular figures keep the column aligned. */
        font-family: var(--qp-font);
        font-variant-numeric: tabular-nums;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.01em;
        color: var(--qp-ink);
        margin-top: 4px;
    }

    .qp-table td:nth-child(2),
    .qp-table td:nth-child(3),
    .qp-table td:nth-child(5) {
        font-size: 12.5px;
        color: var(--qp-muted);
    }

    .qp-table td:nth-child(3),
    .qp-table td:nth-child(5) { margin-top: 4px; }

    /* The column headers are hidden, so the two cells that were only meaningful
       under one carry their own label. */
    .qp-table td[data-label]::before {
        content: attr(data-label) " ";
        font-family: var(--qp-font);
        letter-spacing: .04em;
        text-transform: uppercase;
        font-size: 10px;
        color: var(--qp-muted);
    }

    .qp-table td:nth-child(6) {
        margin-top: 4px;
    }

    .qp-table td:nth-child(6) a {
        display: inline-block;
        /* 44px of tappable height without 44px of visible chrome. */
        padding: 10px 0 10px 12px;
        margin: -10px 0;
        font-size: 13.5px;
        border-bottom: 0;
        color: var(--qp-accent);
    }

    .qp-table .qp-cert-word { display: inline; }

    .qp-table-foot { margin-top: 4px; }

    /* ---- FAQ ---- */
    .qp-faq__item summary { padding: 18px 2px; font-size: .98rem; }

    /* ---- footer: link rows were ~23px tall, well under a thumb ---- */
    .qp-footer { padding: 44px 0 28px; }
    .qp-footer__top { gap: 28px; }
    .qp-footer li { margin-bottom: 0; }

    .qp-footer li a {
        display: inline-block;
        padding: 9px 0;
    }
}

/* The extra word only earns its place once the column header is gone. */
.qp-cert-word { display: none; }
