/*
 * Quuu Promote's public site (quuupromote.co). Hand-written, no build step.
 * Rebuilt from the Framer site (card #76): light page, black and grey rounded panels, yellow CTAs.
 * Every class is prefixed qp- so it can sit next to site-assets/app.css on the blog pages.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-display-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-display-700.woff2") format("woff2"); }

:root {
    --qp-yellow: #fde034;
    --qp-yellow-dark: #f0d000;
    --qp-purple: #6637ed;
    --qp-orange: #fa4812;
    --qp-green: #54fa80;
    --qp-blue: #0099ff;
    --qp-ink: #171a1e;
    --qp-grey: #303034;
    --qp-muted: #6b6a73;
    --qp-muted-dark: #a3a1aa;
    --qp-line: #e9e9f0;
    --qp-soft: #f5f6f6;
    --qp-radius: 24px;
    --qp-gap: 20px;
    --qp-max: 1240px;
    --qp-font: "Inter", "Inter Placeholder", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --qp-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.qp-body {
    margin: 0;
    background: #fff;
    color: var(--qp-ink);
    font-family: var(--qp-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.qp-body *, .qp-body *::before, .qp-body *::after { box-sizing: border-box; }
:where(.qp-body) img { max-width: 100%; height: auto; }
:where(.qp-body) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.qp-body) :where(ul, ol) { padding: 0; list-style: none; }
:where(.qp-body) a { color: inherit; }
:where(.qp-body) strong { font-weight: 600; }

.qp-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--qp-yellow); color: var(--qp-ink); padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 600; }
.qp-skip:focus { left: 0; }

.qp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:where(.qp-shell) a:focus-visible, :where(.qp-shell) button:focus-visible, :where(.qp-shell) summary:focus-visible {
    outline: 3px solid var(--qp-purple);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- Layout ---------- */

.qp-shell { padding: var(--qp-gap); display: flex; flex-direction: column; gap: var(--qp-gap); }
.qp-panel { position: relative; border-radius: var(--qp-radius); overflow: hidden; isolation: isolate; }
.qp-panel--dark { background: #000; color: #fff; }
.qp-panel--soft { background: var(--qp-soft); }
.qp-panel--yellow { background: var(--qp-yellow); color: var(--qp-ink); }
.qp-inner { position: relative; z-index: 1; max-width: var(--qp-max); margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }
.qp-section { padding: clamp(56px, 8vw, 104px) 0; }
.qp-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.qp-center { text-align: center; }
.qp-topo { position: absolute; inset: 0; z-index: 0; background: url("img/topo-lines.webp") center / cover no-repeat; opacity: .12; pointer-events: none; }

.qp-doodle { position: absolute; z-index: 0; pointer-events: none; }
@media (max-width: 809px) { .qp-doodle--hide-sm { display: none; } }

/* ---------- Type ---------- */

.qp-h1 { font-family: var(--qp-display); font-weight: 600; font-size: clamp(40px, 6.2vw, 82px); line-height: 1.05; letter-spacing: -0.045em; }
.qp-h2 { font-family: var(--qp-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.04em; }
.qp-h2--md { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; }
.qp-h3 { font-family: var(--qp-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.02em; }
.qp-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.qp-lead strong { font-weight: 700; }
.qp-muted { color: var(--qp-muted); }
.qp-panel--dark .qp-muted { color: var(--qp-muted-dark); }
.qp-small { font-size: 13px; }

.qp-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.qp-pill--orange { background: var(--qp-orange); color: #fff; }
.qp-pill--yellow { background: var(--qp-yellow); color: var(--qp-ink); }

/* ---------- Buttons ---------- */

.qp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-family: var(--qp-font); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.qp-btn:hover { transform: translateY(-1px); }
.qp-btn--yellow { background: var(--qp-yellow); color: var(--qp-ink); }
.qp-btn--yellow:hover { background: var(--qp-yellow-dark); }
.qp-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.qp-btn--outline:hover { background: #fff; color: #000; }
.qp-btn--dark { background: var(--qp-ink); color: #fff; }
.qp-btn--dark:hover { background: #000; }
.qp-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.qp-btn--block { width: 100%; }

/* ---------- Nav ---------- */

.qp-nav { position: relative; z-index: 20; }
.qp-nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(16px, 2vw, 20px); }
.qp-nav__logo { display: inline-flex; align-items: center; }
.qp-nav__logo img { display: block; width: 169px; height: 37px; }
.qp-nav__links { display: flex; align-items: center; gap: 4px; }
.qp-nav__links a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 400; padding: 8px 10px; border-radius: 10px; transition: color .2s, background-color .2s; }
.qp-nav__links a:hover, .qp-nav__links a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.qp-nav__actions { display: flex; align-items: center; gap: 14px; }
.qp-nav__login { color: #fff; text-decoration: none; font-size: 15px; }
.qp-nav__login:hover { text-decoration: underline; }
.qp-nav__toggle { display: none; background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.qp-nav__toggle svg { display: block; width: 28px; height: 28px; }
.qp-nav__mobile { display: none; padding: 4px 20px 24px; }
.qp-nav__mobile a:not(.qp-btn) { display: block; color: #fff; text-decoration: none; font-size: 17px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.qp-nav__mobile .qp-btn { margin-top: 18px; }
.qp-nav--open .qp-nav__mobile { display: block; }

@media (max-width: 1023px) {
    .qp-nav__links, .qp-nav__actions { display: none; }
    .qp-nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */

.qp-hero { min-height: min(860px, 92vh); display: flex; flex-direction: column; }
.qp-hero__body { padding: clamp(40px, 6vw, 72px) 0 0; position: relative; z-index: 1; }
.qp-hero__copy { max-width: 820px; }
.qp-hero__copy .qp-lead { margin-top: 22px; max-width: 560px; color: #fff; }
.qp-hero__cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qp-hero__shot { position: relative; z-index: 1; margin: clamp(40px, 6vw, 72px) auto 0; width: min(100% - 40px, 1100px); }
.qp-hero__shot img { display: block; width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 60px rgba(253, 224, 52, .12); }

.qp-hero--split .qp-hero__body { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 24px; padding-bottom: 0; }
.qp-hero--split .qp-hero__copy { padding-bottom: clamp(48px, 8vw, 110px); }
.qp-hero__photo { position: relative; align-self: end; }
.qp-hero__photo img.qp-hero__person { display: block; width: 100%; max-width: 520px; margin-left: auto; }
.qp-hero__photo .qp-hero__arcs { position: absolute; left: -12%; bottom: -4%; width: 72%; z-index: -1; }
.qp-hero--split { min-height: 0; }

.qp-social-proof { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: #fff; }
.qp-avatars { display: flex; }
.qp-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--qp-yellow); margin-left: -10px; background: #222; }
.qp-avatars img:first-child { margin-left: 0; }

@media (max-width: 809px) {
    .qp-hero { min-height: 0; }
    .qp-hero--split .qp-hero__body { grid-template-columns: 1fr; }
    .qp-hero--split .qp-hero__copy { padding-bottom: 0; }
    .qp-hero__photo img.qp-hero__person { margin: 0 auto; max-width: 360px; }
}

.qp-page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(48px, 7vw, 90px); text-align: center; }
.qp-page-hero .qp-lead { margin-top: 14px; color: #fff; }

/* ---------- Press logos ---------- */

.qp-press h2 { font-family: var(--qp-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.qp-press__row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); }
.qp-press__row img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.qp-press__row img:hover { filter: none; opacity: 1; }
.qp-press__row img.qp-press--tall { height: 64px; }
.qp-press__note { margin-top: 40px; text-align: center; font-size: 14px; color: var(--qp-muted); }
.qp-press__note strong { color: var(--qp-ink); }

/* ---------- How it works ---------- */

.qp-how__grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--qp-gap); align-items: stretch; }
.qp-how__photo { border-radius: 16px; overflow: hidden; min-height: 320px; }
.qp-how__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qp-steps { background: #fff; border-radius: 16px; padding: clamp(24px, 3vw, 40px); position: relative; }
.qp-steps h3 { font-family: var(--qp-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 26px; }
.qp-steps ol { display: flex; flex-direction: column; gap: 22px; }
.qp-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; font-size: 15px; line-height: 1.55; font-weight: 500; }
.qp-steps li strong { font-weight: 700; }
.qp-steps__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--qp-purple); font-weight: 600; box-shadow: 0 2px 10px rgba(23, 26, 30, .08); background: #fff; }
.qp-steps a { color: var(--qp-orange); font-weight: 700; }
@media (max-width: 809px) { .qp-how__grid { grid-template-columns: 1fr; } .qp-how__photo { min-height: 240px; max-height: 340px; } }

/* ---------- Features ---------- */

.qp-features__intro { max-width: 760px; margin: 0 auto; text-align: center; }
.qp-features__intro .qp-h2 { margin-top: 18px; }
.qp-features__intro p { margin-top: 18px; }
.qp-features__grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.qp-feature { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--qp-grey); }
.qp-feature svg { width: 18px; height: 18px; margin-top: 5px; color: var(--qp-purple); }
.qp-feature strong { color: var(--qp-ink); font-weight: 600; }
@media (max-width: 809px) { .qp-features__grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */

.qp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--qp-gap); }
.qp-stat { padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 64px); text-align: center; }
.qp-stat__n { font-family: var(--qp-display); font-weight: 600; font-size: clamp(52px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.qp-stat__label { margin-top: 12px; font-family: var(--qp-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; color: var(--qp-muted-dark); line-height: 1.2; }
.qp-stat p:not(.qp-stat__n) { margin: 18px auto 0; max-width: 440px; font-size: 14px; line-height: 1.6; color: var(--qp-muted-dark); }
@media (max-width: 809px) { .qp-stats { grid-template-columns: 1fr; } }

/* ---------- Featured testimonial ---------- */

.qp-quote { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.qp-quote__photo { position: relative; justify-self: center; background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .12); max-width: 300px; }
.qp-quote__photo img { display: block; width: 100%; border-radius: 6px; }
.qp-quote__badge { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #111; color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.qp-quote__mark { font-family: Georgia, serif; font-size: 72px; line-height: .6; color: rgba(23, 26, 30, .35); height: 34px; display: block; }
.qp-quote blockquote { margin-top: 18px; font-family: var(--qp-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; }
.qp-quote blockquote strong { font-weight: 700; }
.qp-quote figcaption { margin-top: 24px; font-size: 14px; }
.qp-quote figcaption strong { display: block; font-weight: 600; }
@media (max-width: 809px) { .qp-quote { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.qp-faq { max-width: 820px; margin: clamp(28px, 4vw, 44px) auto 0; display: flex; flex-direction: column; gap: 4px; }
.qp-faq details { background: #fff; border-radius: 12px; }
.qp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 20px; font-weight: 600; font-size: 16px; }
.qp-faq summary::-webkit-details-marker { display: none; }
.qp-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.qp-faq details[open] summary::after { content: "\00d7"; }
.qp-faq details p { padding: 0 20px 22px; color: var(--qp-grey); font-size: 15px; line-height: 1.65; }
.qp-faq__more { margin-top: 28px; text-align: center; font-size: 14px; color: var(--qp-muted); }
.qp-faq__more a { color: var(--qp-ink); font-weight: 600; }

/* ---------- Testimonials wall ---------- */

.qp-wall__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.qp-wall__head .qp-h2 { margin-top: 18px; }
.qp-wall__head p { color: #fff; font-size: 17px; }
.qp-wall__grid { margin-top: clamp(36px, 5vw, 56px); columns: 4 260px; column-gap: 16px; }
.qp-review { break-inside: avoid; margin: 0 0 16px; background: #141416; border: 1px solid #26262b; border-radius: 16px; padding: 20px; font-size: 14px; line-height: 1.6; color: #d6d5dc; }
.qp-review__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qp-review__who img, .qp-review__initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.qp-review__initials { display: grid; place-items: center; background: var(--qp-purple); color: #fff; font-weight: 600; }
.qp-review__name { color: #fff; font-weight: 600; display: block; }
.qp-review__handle { color: var(--qp-muted-dark); font-size: 13px; }
.qp-review strong { color: #fff; }
.qp-review p + p { margin-top: 10px; }
.qp-review a { color: inherit; text-decoration: none; }
.qp-review a:hover strong { text-decoration: underline; }
@media (max-width: 809px) { .qp-wall__head { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */

.qp-video { padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 40px); background: #111 url("img/video-backdrop.webp") center / cover no-repeat; }
.qp-video__frame { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.qp-video__frame iframe, .qp-video__frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qp-video__frame button { padding: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.qp-video__frame button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.qp-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--qp-yellow); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: transform .2s; }
.qp-video__frame button:hover .qp-video__play { transform: translate(-50%, -50%) scale(1.06); }
.qp-video__play svg { width: 28px; height: 28px; margin-left: 4px; color: var(--qp-ink); }

/* ---------- CTA + footer ---------- */

.qp-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 5vw, 56px); }
.qp-cta .qp-h2 { max-width: 640px; }
.qp-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0; }
.qp-footer__row + .qp-footer__row { border-top: 1px solid rgba(255, 255, 255, .12); }
.qp-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.qp-footer__links a { color: #fff; text-decoration: none; font-size: 14px; }
.qp-footer__links a:hover { text-decoration: underline; }
.qp-footer__social { display: flex; gap: 18px; }
.qp-footer__social a { color: #fff; display: inline-flex; }
.qp-footer__social svg { width: 18px; height: 18px; }
.qp-footer__legal { font-size: 14px; color: #fff; }
.qp-footer__bottom { padding-bottom: 40px; }
@media (max-width: 809px) { .qp-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- Not-an-agency nudge ---------- */

.qp-nudge { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qp-nudge span { background: #fff; color: var(--qp-ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.qp-nudge a { background: var(--qp-ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.qp-nudge a:hover { background: #000; }
/* The support bubble sits bottom right too, so lift the nudge above it when the widget is on. */
.qp-has-widget .qp-nudge { bottom: 96px; }
@media (max-width: 809px) { .qp-nudge { display: none; } }

/* ---------- Pricing ---------- */

.qp-billing-toggle { margin: 28px auto 0; display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; gap: 4px; }
.qp-billing-toggle button { font: inherit; font-size: 15px; color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.qp-billing-toggle button small { font-size: 11px; opacity: .75; margin-top: 2px; }
.qp-billing-toggle button[aria-pressed="true"] { background: var(--qp-yellow); color: var(--qp-ink); }

.qp-plans { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qp-gap); text-align: left; }
.qp-plan { background: #fff; color: var(--qp-ink); border-radius: 20px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; position: relative; }
.qp-plan--featured { outline: 3px solid var(--qp-yellow); }
.qp-plan__tag { position: absolute; top: 18px; right: 18px; }
.qp-plan__tag .qp-pill { padding: 5px 12px; font-size: 12px; }
.qp-plan__name { font-family: var(--qp-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.qp-plan__price { margin-top: 18px; font-family: var(--qp-display); font-weight: 600; font-size: clamp(36px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.05; }
.qp-plan__price small { font-family: var(--qp-font); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--qp-muted); }
.qp-plan__note { margin-top: 6px; min-height: 22px; font-size: 13px; color: var(--qp-muted); }
.qp-plan__desc { margin-top: 16px; font-size: 15px; color: var(--qp-grey); min-height: 48px; }
.qp-plan ul { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.qp-plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.qp-plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--qp-purple); }
.qp-plan .qp-btn { margin-top: 28px; }
[data-billing="monthly"] [data-price="annual"], [data-billing="annual"] [data-price="monthly"] { display: none; }
@media (max-width: 1023px) { .qp-plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.qp-compare { margin-top: clamp(28px, 4vw, 44px); background: #fff; border-radius: 16px; overflow-x: auto; }
.qp-compare table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.qp-compare th, .qp-compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--qp-line); vertical-align: top; }
.qp-compare thead th { font-family: var(--qp-display); font-size: 18px; font-weight: 600; }
.qp-compare tbody th { font-weight: 600; color: var(--qp-ink); width: 28%; }
.qp-compare tbody tr:last-child th, .qp-compare tbody tr:last-child td { border-bottom: 0; }
.qp-compare td { color: var(--qp-grey); }

@media (prefers-reduced-motion: reduce) {
    .qp-body *, .qp-body *::before, .qp-body *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header placement ---------- */

.qp-shell { position: relative; }
.qp-main { display: flex; flex-direction: column; gap: var(--qp-gap); }
.qp-header--overlay { position: absolute; top: var(--qp-gap); left: var(--qp-gap); right: var(--qp-gap); z-index: 30; background: transparent; }
.qp-header--overlay:has(.qp-nav--open) { background: #000; }
.qp-hero--under-nav { padding-top: 76px; }
.qp-section.qp-hero--under-nav { padding-top: calc(76px + clamp(28px, 4vw, 56px)); }

/* ---------- Shares Calculator (/calculator, card #81) ---------- */

.qp-calc [hidden] { display: none !important; }
.qp-calc__intro { max-width: 820px; margin: 0 auto; }
.qp-calc__intro .qp-h2 { margin-top: 18px; }
.qp-calc__intro .qp-lead { margin-top: 14px; color: #fff; }
.qp-calc { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--qp-gap); align-items: start; text-align: left; }
.qp-calc__picker, .qp-calc__results { background: #fff; color: var(--qp-ink); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.qp-calc__label { display: block; font-family: var(--qp-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.qp-calc__search { width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--qp-line); border-radius: 999px; background: var(--qp-soft); font: inherit; font-size: 16px; color: var(--qp-ink); }
.qp-calc__search:focus { outline: 3px solid var(--qp-purple); outline-offset: 2px; background: #fff; }
.qp-calc__status { margin-top: 12px; color: var(--qp-muted); }
.qp-calc__list { margin-top: 12px; max-height: 420px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 2px; }
.qp-calc__list li[hidden] { display: none; }
.qp-calc__list button { font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--qp-ink); background: var(--qp-soft); border: 1px solid var(--qp-line); border-radius: 999px; padding: 10px 14px; min-height: 40px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.qp-calc__list button:hover { border-color: var(--qp-ink); }
.qp-calc__list button[aria-pressed="true"] { background: var(--qp-yellow); border-color: var(--qp-yellow); font-weight: 600; }
.qp-calc__results { min-height: 320px; scroll-margin-top: 24px; }
.qp-calc__results:focus { outline: none; }
.qp-calc__empty { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; max-width: 380px; margin: 0 auto; }
.qp-calc__results [data-qp-calc-result] > * + * { margin-top: 14px; }
.qp-calc__results p { font-size: 16px; color: var(--qp-grey); }
.qp-calc__results .qp-muted { color: var(--qp-muted); }
.qp-calc__results .qp-calc__lead { color: var(--qp-ink); }
.qp-calc__new { background: var(--qp-soft); border-radius: 12px; padding: 12px 16px; }
.qp-calc__results .qp-calc__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.qp-calc__stats li { background: #000; color: #fff; border-radius: 16px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.qp-calc__n { font-family: var(--qp-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; color: var(--qp-yellow); overflow-wrap: anywhere; }
.qp-calc__k { font-size: 13px; color: var(--qp-muted-dark); }
.qp-calc__results .qp-btn { margin-top: 24px; }
@media (max-width: 809px) {
    .qp-calc { grid-template-columns: 1fr; }
    .qp-calc__list { max-height: 300px; }
    .qp-calc__results { min-height: 0; }
    .qp-calc__empty { min-height: 140px; }
}
@media (max-width: 480px) { .qp-calc__results .qp-calc__stats { grid-template-columns: 1fr; } }

/* ---------- Blog (/blog, card #81): same panels, type scale and colours as the pages above ---------- */

.qp-blog-hero .qp-inner { max-width: 900px; }
.qp-blog-hero .qp-h1 { margin-top: 18px; }
.qp-blog-hero .qp-lead { margin-top: 14px; color: #fff; }

.qp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qp-gap); }
@media (max-width: 1023px) { .qp-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .qp-posts { grid-template-columns: 1fr; } }

.qp-post-card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.qp-post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(23, 26, 30, .08); }
.qp-post-card__media { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.qp-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qp-post-card__ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, .86), rgba(0, 0, 0, .86)), #000 url("img/topo-lines.webp") center / cover no-repeat; }
.qp-post-card__ph img { width: 56%; height: auto; object-fit: contain; }
.qp-post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.qp-post-card__meta { font-size: 13px; color: var(--qp-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.qp-post-card__meta strong { color: var(--qp-ink); font-weight: 600; }
.qp-post-card h2, .qp-post-card h3 { margin-top: 10px; font-family: var(--qp-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
.qp-post-card h2 a, .qp-post-card h3 a { text-decoration: none; }
.qp-post-card h2 a::after, .qp-post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.qp-post-card__excerpt { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--qp-grey); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qp-post-card__foot { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--qp-muted); }

.qp-blog-empty { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.qp-blog-empty p { margin-top: 12px; color: var(--qp-grey); }
.qp-blog-empty .qp-btn { margin-top: 24px; }

.qp-pager { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.qp-pager > a, .qp-pager > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--qp-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.qp-pager > a:hover { background: var(--qp-ink); color: #fff; }
.qp-pager [aria-current="page"] { background: var(--qp-yellow); font-weight: 600; }
.qp-pager [aria-disabled="true"] { opacity: .45; }
.qp-pager .qp-pager__gap { background: transparent; min-width: 0; padding: 0 4px; }

.qp-post-hero .qp-inner { max-width: 900px; }
.qp-post-hero .qp-h2 { margin-top: 14px; }
.qp-post-hero .qp-lead { margin-top: 18px; color: #fff; }
.qp-crumbs { font-size: 14px; color: var(--qp-muted-dark); display: flex; flex-wrap: wrap; gap: 8px; }
.qp-crumbs a { color: #fff; text-decoration: none; }
.qp-crumbs a:hover { text-decoration: underline; }
.qp-post-meta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--qp-muted-dark); }
.qp-post-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--qp-yellow); }
.qp-post-meta strong { color: #fff; font-weight: 600; }

.qp-post-body { padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px); }
.qp-post-figure { max-width: 960px; margin: 0 auto clamp(32px, 5vw, 56px); }
.qp-post-figure img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--qp-radius); }

/* Reading typography: ~68ch measure, the site's display face for headings. */
.qp-prose { max-width: 68ch; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--qp-grey); overflow-wrap: break-word; }
.qp-prose > * + * { margin-top: 1.25em; }
.qp-prose h2, .qp-prose h3, .qp-prose h4 { font-family: var(--qp-display); font-weight: 600; color: var(--qp-ink); letter-spacing: -0.02em; scroll-margin-top: 24px; }
.qp-prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; margin-top: 2em; }
.qp-prose h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.3; margin-top: 1.75em; }
.qp-prose h4 { font-size: 19px; line-height: 1.4; margin-top: 1.5em; }
.qp-prose h2 + *, .qp-prose h3 + *, .qp-prose h4 + * { margin-top: .6em; }
.qp-prose a { color: var(--qp-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--qp-yellow-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qp-prose a:hover { background: var(--qp-yellow); text-decoration-color: var(--qp-ink); }
.qp-prose strong { color: var(--qp-ink); }
.qp-prose ul, .qp-prose ol { padding-left: 1.4em; }
.qp-prose ul { list-style: disc; }
.qp-prose ol { list-style: decimal; }
.qp-prose li + li { margin-top: .45em; }
.qp-prose li::marker { color: var(--qp-ink); }
.qp-prose li > ul, .qp-prose li > ol { margin-top: .45em; }
.qp-prose blockquote { border-left: 4px solid var(--qp-yellow); padding: 4px 0 4px 22px; font-family: var(--qp-display); font-size: 21px; line-height: 1.5; color: var(--qp-ink); }
.qp-prose img, .qp-prose video, .qp-prose iframe { display: block; max-width: 100%; border-radius: 16px; }
.qp-prose figure img { margin: 0 auto; }
.qp-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--qp-muted); text-align: center; }
.qp-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--qp-soft); border: 1px solid var(--qp-line); border-radius: 6px; padding: .1em .35em; color: var(--qp-ink); }
.qp-prose pre { background: var(--qp-ink); color: #f5f6f6; border-radius: 16px; padding: 20px 22px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.qp-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.qp-prose hr { border: 0; border-top: 1px solid var(--qp-line); margin: 2.5em 0; }
.qp-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.qp-prose th, .qp-prose td { padding: 10px 14px; border-bottom: 1px solid var(--qp-line); text-align: left; vertical-align: top; }
.qp-prose th { color: var(--qp-ink); font-weight: 600; }
@media (max-width: 640px) { .qp-prose { font-size: 17px; } .qp-prose blockquote { font-size: 19px; } }

.qp-related .qp-h2 { margin-bottom: clamp(28px, 4vw, 44px); }
/* Four related posts (card #74): four across on wide screens, two by two below. */
@media (min-width: 641px) and (max-width: 1199px) { .qp-posts--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .qp-posts--four { grid-template-columns: repeat(4, 1fr); } }
.qp-related__more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
