/* MemoFix · memofixsupplement.com
   One stylesheet, no framework. Tokens mirror assets/design-tokens.json.
   Motif: "trace and terminal" - lines at 0/45/90 degrees ending in a hollow ring,
   taken from the circuit lines on the MemoFix label. Second shape: the stadium. */

@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f2fb;
  --surface: #ffffff;
  --surface-raised: #fbf9fe;
  --text: #3b3350;
  --heading: #1c0d33;
  --muted: #655d7a;
  --primary: #4a2385;
  --primary-hover: #381a68;
  --violet: #7a3fc4;
  --accent: #31ce23;
  --accent-hover: #27b51b;
  --accent-ink: #06260a;
  --border: #e3dcef;
  --border-strong: #8f84a8;
  --success: #197327;
  --focus: #7a3fc4;
  --shadow: 0 18px 40px -22px rgba(46, 22, 87, 0.38);
  --night: #1a0b2e;
  --night-2: #2a1548;
  --deep: #2e1657;
  --on-night: #f3eefb;
  --on-night-muted: #c9bce0;
  --trace: #a98fd6;
  --lav: #ece4f8;

  --font-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-s: 12px;
  --r-m: 20px;
  --r-pill: 999px;
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 2.875rem); line-height: 1.12; }
h3 { font: 700 1.25rem/1.3 var(--font-text); }
h4 { font: 700 1.0625rem/1.35 var(--font-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
strong, b { font-weight: 700; color: var(--heading); }
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
sup { font-size: 0.7em; line-height: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--heading); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 52px; padding: 13px 28px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--buy { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 22px -14px rgba(18, 128, 30, 0.95); }
.btn--buy::after { content: ""; width: 11px; height: 11px; flex: none; border: 2.5px solid currentColor; border-radius: 50%; transition: background-color 0.18s ease; }
.btn--buy:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--buy:hover::after { background: currentColor; }
.btn--line { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--line:hover { background: var(--primary); color: #fff; }
.btn--night { background: transparent; color: var(--on-night); border-color: var(--trace); }
.btn--night:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn--lg { min-height: 58px; padding: 15px 34px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }
.link-more { font-weight: 700; color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.micro { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.tag { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }

/* ---------- announcement bar ---------- */
.ann { background: var(--deep); color: var(--on-night); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; }
.ann ul { list-style: none; margin: 0; padding: 9px 0; display: flex; justify-content: center; align-items: center; gap: 14px; white-space: nowrap; overflow: hidden; }
.ann li { display: flex; align-items: center; gap: 14px; }
.ann li + li::before { content: ""; width: 7px; height: 7px; flex: none; border: 1.5px solid var(--trace); border-radius: 50%; }
.ann .s { display: none; }
@media (max-width: 919px) { .ann .l { display: none; } .ann .s { display: inline; } }
@media (max-width: 540px) {
  .ann { font-size: 0.75rem; }
  .ann ul { gap: 10px; }
  .ann li { gap: 10px; }
  .ann li:first-child { display: none; }
  .ann li:nth-child(2)::before { display: none; }
}
@media (max-width: 380px) {
  .ann ul { flex-wrap: wrap; gap: 1px 10px; padding: 7px 0; white-space: normal; text-align: center; }
  .ann li + li::before { display: none; }
}

/* ---------- header ---------- */
.hdr { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--heading); font: 400 1.625rem/1 var(--font-display); text-decoration: none; }
.logo:hover { color: var(--heading); }
.logo svg { width: 36px; height: 36px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 11px; border-radius: 10px; color: var(--heading); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--bg-alt); color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.hdr .btn { min-height: 44px; padding: 9px 20px; font-size: 0.9375rem; }
.menu-btn { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--heading); cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1100px) { .hdr { position: sticky; top: 0; } }
@media (max-width: 1099px) {
  .hdr__in { min-height: 62px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 1.4375rem; }
  .logo svg { width: 32px; height: 32px; }
  .hdr .btn { order: 2; }
  .menu-btn { display: inline-flex; order: 3; }
  .nav { display: none; order: 4; flex-basis: 100%; padding-bottom: 12px; }
  .nav.is-open, .no-js .nav { display: block; }
  .no-js .menu-btn { display: none; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 480px) {
  .hdr__in { gap: 8px; }
  .logo { gap: 8px; font-size: 1.3125rem; }
  .logo svg { width: 30px; height: 30px; }
  .hdr .btn { padding: 8px 15px; }
  .hdr .btn::after { display: none; }
}
@media (max-width: 380px) { .hdr .btn { padding: 8px 12px; font-size: 0.875rem; } }
@media (max-width: 350px) { .hdr .btn { display: none; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 78%); padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; padding: 6px 16px; border: 1.5px solid var(--primary); border-radius: var(--r-pill); color: var(--primary); font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.eyebrow span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: 0.08em; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.5rem, 1rem + 3.6vw, 4rem); }
.hero__sub { margin: 0; max-width: 33em; color: var(--heading); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); font-weight: 500; line-height: 1.5; }
.hero__sub sup a { padding: 0 2px; text-decoration: none; }
.hero__lead p { margin: 0 0 20px; max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero__stage { margin: 0; position: relative; }
.stage { position: relative; width: min(100% - 200px, 460px); margin-inline: auto; }
.stage__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-pill); background: var(--night); box-shadow: 0 34px 60px -36px rgba(46, 22, 87, 0.75); }
.stage__img img { width: 100%; height: 100%; object-fit: cover; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callout { position: absolute; width: 10.5rem; padding: 10px 14px 11px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 14px 28px -18px rgba(46, 22, 87, 0.6); color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.callout b { display: block; color: var(--heading); font-size: 1rem; line-height: 1.25; }
.callout--tl { right: 84.6%; bottom: 85.8%; }
.callout--tr { left: 84.6%; bottom: 85.8%; }
.callout--br { left: 91.6%; top: 70.8%; }
.stage__seal { position: absolute; left: -15%; bottom: -2%; width: 33%; min-width: 108px; filter: drop-shadow(0 12px 14px rgba(26, 11, 46, 0.28)); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.4; }
.facts .ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--lav); color: var(--primary); }
.facts b { display: block; }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; row-gap: 22px; align-items: start; }
  .hero__head { grid-column: 1; grid-row: 1; }
  .hero__stage { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .hero__lead { grid-column: 1; grid-row: 2; }
  .facts { grid-column: 1; grid-row: 3; }
  .buybox { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 1099px) { .stage { width: min(100% - 210px, 420px); margin-block: 26px 8px; } }
@media (max-width: 680px) {
  .stage { width: 100%; margin-block: 6px 0; }
  .stage__img { width: min(100%, 320px); margin-inline: auto; }
  .stage__seal { left: calc(50% - 176px); bottom: 96px; width: 104px; min-width: 0; }
  .callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .callout { position: static; width: auto; padding: 9px 10px; box-shadow: none; font-size: 0.75rem; }
  .callout b { font-size: 0.875rem; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .stage__seal { left: 0; }
}
@media (max-width: 359px) {
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .callout b { display: inline; margin-right: 6px; }
}

/* ---------- buy box ---------- */
.buybox { margin-top: 10px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.buybox__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.buybox__head h2 { margin: 0; font: 700 1.375rem/1.25 var(--font-text); letter-spacing: 0; }
.buybox__head p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.buybox fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pk { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.picks { display: grid; gap: 12px; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-content: start; min-height: 100%; padding: 16px 18px 18px; border: 1.5px solid var(--border-strong); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pick:hover { border-color: var(--primary); }
.pick__dot { position: relative; grid-row: 1 / span 3; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--border-strong); border-radius: 50%; background: #fff; }
.pick__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--heading); font-weight: 700; }
.pick__price { color: var(--heading); font: 400 2rem/1.15 var(--font-display); }
.pick__price small { color: var(--muted); font: 500 0.875rem/1 var(--font-text); }
.pick__meta { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
#pk-2:checked ~ .picks [for="pk-2"], #pk-3:checked ~ .picks [for="pk-3"], #pk-6:checked ~ .picks [for="pk-6"] { border-color: var(--primary); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--primary); }
#pk-2:checked ~ .picks [for="pk-2"] .pick__dot, #pk-3:checked ~ .picks [for="pk-3"] .pick__dot, #pk-6:checked ~ .picks [for="pk-6"] .pick__dot { border-color: var(--primary); box-shadow: inset 0 0 0 4px #fff; background: var(--primary); }
#pk-2:focus-visible ~ .picks [for="pk-2"], #pk-3:focus-visible ~ .picks [for="pk-3"], #pk-6:focus-visible ~ .picks [for="pk-6"] { outline: 3px solid var(--focus); outline-offset: 3px; }
.buybox__foot { display: grid; gap: 16px; align-items: center; margin-top: 18px; }
.sum { display: none; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 0.9375rem; line-height: 1.5; }
#pk-2:checked ~ .buybox__foot .sum-2, #pk-3:checked ~ .buybox__foot .sum-3, #pk-6:checked ~ .buybox__foot .sum-6 { display: block; }
@media (min-width: 760px) {
  .picks { grid-template-columns: repeat(3, 1fr); }
  .buybox__foot { grid-template-columns: 1fr auto; }
}

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 22px 14px 22px 0; }
.trust b { display: block; line-height: 1.25; }
.trust .sub { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.badge { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border: 1.5px solid var(--trace); border-radius: 50%; color: var(--primary); }
.badge::after { content: ""; position: absolute; right: -3px; bottom: 5px; width: 13px; height: 13px; border: 2.5px solid #fff; border-radius: 50%; background: var(--accent); }
@media (min-width: 960px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { padding: 26px 20px; }
  .trust li:first-child { padding-left: 0; }
  .trust li + li { border-left: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li { padding: 14px 0; }
  .trust li + li { border-top: 1px solid var(--border); }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec--night { background: var(--night); color: var(--on-night-muted); }
.sec--night h2, .sec--night h3, .sec--night b, .sec--night strong { color: #fff; }
.sec--night a:not(.btn) { color: var(--on-night); }
.sec--night :focus-visible, .cta-band :focus-visible, .ftr :focus-visible { outline-color: #d9c7ff; }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin: 0 0 14px; }
.sec-head p { margin: 0; font-size: 1.125rem; }
.sec-foot { margin: clamp(24px, 3vw, 40px) 0 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* trace divider: a hairline that jogs 45 degrees and ends in a ring terminal */
.trace-rule { display: flex; align-items: flex-start; height: 26px; color: var(--trace); }
.trace-rule::before { content: ""; flex: 1; border-top: 1.5px solid currentColor; }
.trace-rule svg { flex: none; width: 26px; height: 26px; margin-left: -1px; }
.trace-rule::after { content: ""; flex: none; width: 13px; height: 13px; margin: 18px 0 0 -1px; border: 1.5px solid currentColor; border-radius: 50%; }
.trace-rule span { flex: none; width: clamp(40px, 8vw, 110px); margin-top: 24.5px; border-top: 1.5px solid currentColor; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__img img { width: 100%; border-radius: 28px; }
.split__img figcaption, .figure figcaption { margin-top: 10px; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.sec--night .figure figcaption { color: var(--on-night-muted); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
}
.ticks { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.26em; width: 21px; height: 21px; border: 1.5px solid var(--success); border-radius: 50%; }
.ticks li::after { content: ""; position: absolute; left: 7.5px; top: calc(0.26em + 4.5px); width: 5px; height: 9px; border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sec--night .ticks li::before, .sec--night .ticks li::after { border-color: #7be36f; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { padding: 26px 26px 28px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin: 0 0 8px; }
.card .ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--lav); color: var(--primary); }
.card--flat { background: var(--bg-alt); border-color: transparent; }
.sec--night .card { border-color: #43276f; background: var(--night-2); color: var(--on-night-muted); }
.sec--night .card .ico { background: #3a1f63; color: var(--on-night); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: 24px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--trace); border-radius: 50%; background: var(--bg); color: var(--heading); font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 58px; right: -10px; top: 23px; border-top: 1.5px solid var(--trace); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 6px; font-size: 1.125rem; }
.steps p { margin: 0; font-size: 0.9375rem; }
.sec--alt .steps li::before { background: var(--bg-alt); }
.sec--night .steps li::before { background: var(--night); color: #fff; }
@media (max-width: 520px) {
  .steps li { padding: 0 0 0 64px; min-height: 52px; }
  .steps li::after { left: 23px; right: auto; top: 54px; bottom: -16px; border-top: 0; border-left: 1.5px solid var(--trace); }
}

.label-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 960px) {
  .label-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; }
  .label-grid > .figure { position: sticky; top: 96px; }
}
.stack { display: grid; gap: 16px; }

/* Supplement Facts, set in HTML from the label values */
.fp { max-width: 30rem; padding: 14px 16px 12px; border: 2px solid var(--heading); border-radius: 6px; background: #fff; color: var(--heading); }
.fp__title { margin: 0 0 4px; font: 800 1.75rem/1.1 var(--font-text); letter-spacing: -0.01em; }
.fp__serv { margin: 0; padding: 6px 0; border-top: 7px solid var(--heading); border-bottom: 3px solid var(--heading); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.fp table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fp caption { caption-side: top; text-align: left; }
.fp th, .fp td { padding: 6px 0; border-bottom: 1px solid #cfc6df; font-weight: 500; text-align: left; vertical-align: top; line-height: 1.4; }
.fp thead th { font-size: 0.8125rem; font-weight: 700; border-bottom: 3px solid var(--heading); }
.fp td { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.fp thead th + th { text-align: right; padding-left: 12px; }
.fp small { display: block; color: var(--text); font-size: 0.8125rem; font-weight: 500; }
.fp__note { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text); }

.rows { margin: 0; border-top: 1px solid var(--border); }
.rows > div { display: grid; gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.rows dt { display: flex; align-items: flex-start; gap: 12px; color: var(--heading); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.rows dt::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 0.38em; border: 2px solid var(--violet); border-radius: 50%; }
.rows dd { margin: 0; }
@media (min-width: 800px) { .rows > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-s); background: #fff; }
.data { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.data th, .data td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data thead th { background: var(--lav); color: var(--heading); font-weight: 700; white-space: nowrap; }
.data tbody th { color: var(--heading); font-weight: 600; }
.data:not(.data--facts) tbody th { white-space: nowrap; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data caption { caption-side: bottom; padding: 10px 16px; color: var(--muted); font-size: 0.8125rem; text-align: left; }
.data--facts { min-width: 0; }
.data--facts tbody th { width: 34%; }
.data .best { background: var(--surface-raised); }
.table-hint { display: none; margin: 8px 0 0; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 720px) { .table-hint { display: block; } .data--facts + .table-hint, .no-hint { display: none; } .data--facts th, .data--facts td { padding: 11px 12px; } }

/* ---------- pack cards ---------- */
.packs { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: #fff; }
.pack--best { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.pack .tag { position: absolute; left: 16px; top: 16px; z-index: 1; font-size: 0.8125rem; padding: 4px 13px; }
.pack__img { aspect-ratio: 1 / 1; background: var(--lav); }
.pack__img img { width: 100%; height: 100%; object-fit: cover; }
.pack__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.pack h3 { margin: 0; }
.pack__price { margin: 8px 0 2px; color: var(--heading); font: 400 3.25rem/1 var(--font-display); }
.pack__price small { color: var(--muted); font: 600 1rem/1 var(--font-text); }
.pack__total { margin: 0; color: var(--heading); font-weight: 600; }
.pack ul { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.45; }
.pack li { position: relative; padding-left: 22px; }
.pack li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; border: 2px solid var(--violet); border-radius: 50%; }
.pack .btn { margin-top: auto; }
@media (min-width: 620px) and (max-width: 959px) {
  .pack { flex-direction: row; }
  .pack__img { flex: none; width: 42%; aspect-ratio: auto; }
}

/* ---------- guarantee ---------- */
.guar { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.guar__seal { width: min(100%, 320px); margin-inline: auto; }
@media (min-width: 900px) { .guar { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.numlist { list-style: none; counter-reset: n; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.numlist li { counter-increment: n; position: relative; padding-left: 46px; }
.numlist li::before { content: counter(n); position: absolute; left: 0; top: -0.1em; display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--trace); border-radius: 50%; color: var(--heading); font-size: 0.875rem; font-weight: 700; }
.note { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: var(--bg-alt); font-size: 0.9375rem; }
.sec--alt .note { background: #fff; }
.note > :last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 2px; color: var(--heading); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--violet); border-radius: 50%; background: linear-gradient(var(--primary), var(--primary)) center / 11px 2px no-repeat, linear-gradient(var(--primary), var(--primary)) center / 2px 11px no-repeat; }
.faq details[open] > summary::after { background: var(--primary) linear-gradient(#fff, #fff) center / 11px 2px no-repeat; border-color: var(--primary); }
.faq summary:hover { color: var(--primary); }
.faq .ans { max-width: 46rem; padding: 0 2px 20px; }
.faq .ans > :last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: clamp(32px, 4vw, 52px); }
.faq-group h2 { font: 700 1.375rem/1.3 var(--font-text); letter-spacing: 0; margin: 0 0 12px; }

/* ---------- final CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--night); color: var(--on-night-muted); }
.cta-band__in { position: relative; display: grid; gap: 28px; align-items: center; padding-block: clamp(48px, 6vw, 84px); }
.cta-band h2 { margin: 0 0 12px; color: #fff; }
.cta-band p { margin: 0 0 16px; max-width: 36rem; }
.cta-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-night); font-weight: 600; font-size: 0.9375rem; }
.cta-band li { display: flex; align-items: center; gap: 9px; }
.cta-band li::before { content: ""; width: 9px; height: 9px; flex: none; border: 1.5px solid var(--accent); border-radius: 50%; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__art { position: absolute; right: 0; top: 0; width: min(46%, 520px); height: 100%; color: var(--trace); opacity: 0.4; pointer-events: none; }
@media (min-width: 900px) { .cta-band__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cta-band__btns { justify-content: flex-end; } }

/* ---------- footer ---------- */
.ftr { padding-block: 56px 28px; background: #150826; color: var(--on-night-muted); font-size: 0.9375rem; }
.ftr a { color: var(--on-night); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; gap: 32px; }
.ftr .logo { color: #fff; margin: 0 0 14px; }
.ftr__about p { max-width: 30rem; margin: 0; }
.ftr h2 { margin: 0 0 12px; color: #fff; font: 700 0.9375rem/1.3 var(--font-text); letter-spacing: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr__rule { margin-top: 36px; color: #5a3f86; }
.ftr__legal { display: grid; gap: 10px; margin-top: 18px; font-size: 0.8125rem; line-height: 1.6; }
.ftr__legal p { margin: 0; max-width: 62rem; }
@media (min-width: 860px) { .ftr__grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); } }

/* ---------- sticky mobile CTA ---------- */
.sticky { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 74px; }
  .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.97); box-shadow: 0 -12px 24px -20px rgba(46, 22, 87, 0.6); }
  .sticky p { margin: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
  .sticky b { display: block; font-size: 0.9375rem; }
  .sticky .btn { min-height: 48px; padding: 10px 22px; white-space: nowrap; }
}

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(24px, 3.5vw, 44px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.crumbs { margin: 0 0 18px; font-size: 0.875rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.crumbs li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; flex: none; border: 1.5px solid var(--trace); border-radius: 50%; }
.crumbs a { color: var(--primary); }
.page-hero h1 { margin: 0 0 14px; max-width: 19em; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.25rem); line-height: 1.08; }
.lede { margin: 0; max-width: 44rem; font-size: 1.1875rem; line-height: 1.6; }
.meta-line { margin: 14px 0 0; color: var(--muted); font-size: 0.875rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1040px) { .layout { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 64px; } .aside { position: sticky; top: 100px; } }
.prose { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.125rem); }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose li { margin-bottom: 0.4em; }
.prose .table-wrap, .prose .figure, .prose .fp, .prose .card, .prose .note { margin-block: 1.4em; }
.prose .data { min-width: 560px; }
.prose .data--facts { min-width: 0; }
/* pages without a sidebar let wide tables run past the text measure */
.prose--solo .table-wrap--wide { width: min(100vw - 2 * var(--gutter), 60rem); }
.aside .card + .card { margin-top: 16px; }
.aside h2 { margin: 0 0 10px; font: 700 1.125rem/1.3 var(--font-text); letter-spacing: 0; }
.aside dl { margin: 0 0 18px; display: grid; gap: 8px; font-size: 0.9375rem; }
.aside dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.aside dt { color: var(--muted); }
.aside dd { margin: 0; color: var(--heading); font-weight: 600; text-align: right; }
.sources { padding-left: 1.3em; font-size: 0.9375rem; }
.sources li { margin-bottom: 0.6em; }
.checklist { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; margin: 0; padding: 12px 14px 12px 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border: 1.5px solid var(--border-strong); border-radius: 6px; }
.posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #fff; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__body { padding: 20px 22px 24px; }
.post time { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.8125rem; }
.post h2, .post h3 { margin: 0 0 8px; font: 700 1.25rem/1.3 var(--font-text); letter-spacing: 0; }
.post h2 a, .post h3 a { color: var(--heading); text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { color: var(--primary); text-decoration: underline; }
.post p { margin: 0; font-size: 0.9375rem; }
.contact-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .i { margin-top: 2px; color: var(--primary); }
.center { text-align: center; }
.center .sec-head, .center p { margin-inline: auto; }

/* ---------- very narrow screens (under 360px): kept last so it overrides the component rules ---------- */
@media (max-width: 359px) {
  .card { padding: 20px 18px 22px; }
  .buybox { padding: 16px; }
  .pick { padding: 14px; }
  .pack__body { padding: 18px 18px 22px; }
  .pack__price { font-size: 2.75rem; }
  .fp { padding: 12px; }
  .fp__title { font-size: 1.375rem; }
  .fp td { white-space: normal; }
  /* callouts are stacked here, so the seal sits on the lower left of the picture instead of over them */
  .stage__seal { left: -4px; bottom: auto; top: calc((100vw - 2 * var(--gutter)) * 1.25 - 84px); width: 96px; }
  .callouts { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .ann, .hdr .btn, .menu-btn, .sticky, .cta-band, .nav { display: none !important; }
  body { padding: 0; }
}
