/* livertreats.net design system. Tokens follow sniffandshift.com sns-theme.css (read 2026-10-15).
   See brand/BRAND.md for usage rules and measured contrast. 16px root; sizes in rem. */

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #F8F7F4;
  --bg-2: #F0EFEC;
  --surface: #FFFFFF;
  --text: #1D1B18;
  --muted: #6E6A63;           /* 5.02:1 on bg */
  --border: rgba(29, 27, 24, .14);
  --image-well: #F2F1ED;
  --red: #A81820;             /* brand red, fills and accent text (6.96:1) */
  --red-hover: #8A1119;
  --red-soft: #F7E9E9;
  --accent-text: #A81820;
  --on-red: #FFFFFF;          /* 7.46:1 on --red */
  --btn: #A81820;
  --btn-hover: #8A1119;
  --focus: #A81820;
  --success: #2F7D4F;
  --warning: #9A6410;
  --error: #B3261E;
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-bg-strong: rgba(248, 247, 244, .86);
  --glass-border: rgba(29, 27, 24, .10);
  --glass-highlight: rgba(255, 255, 255, .9);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(29, 27, 24, .04), 0 10px 28px -12px rgba(29, 27, 24, .14);
  --glow: rgba(168, 24, 32, .10);
  --glow-2: rgba(154, 100, 16, .07);
  --shade: rgba(16, 16, 15, .45);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --w-bold: 700;
  --w-semi: 650;
  /* radii: one tight scale, nested radii step down by the padding between them */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --pill: 999px;
  --page: 1200px;
  --gutter: 1rem;
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --blur: blur(14px) saturate(1.3);

  /* Easing curves after Open Props (MIT, open-props.style): a few named curves instead of ad-hoc beziers */
  --ease-2: cubic-bezier(.25, 0, .4, 1);
  --ease-out-2: cubic-bezier(0, 0, .5, 1);
  --ease-out-3: cubic-bezier(0, 0, .3, 1);
  --ease-out-4: cubic-bezier(0, 0, .1, 1);
  --ease-in-2: cubic-bezier(.5, 0, 1, 1);
  --ease-in-out-3: cubic-bezier(.5, 0, .5, 1);
  /* Springs as linear() curves, sampled from a damped spring (stiffness/damping): bounce 380/18 (19% overshoot,
     ~760ms), soft 260/26 (1% overshoot, ~530ms), settle 210/29 (no overshoot, ~640ms). Zero JS. */
  --spring-bounce: linear(0, .095, .316, .581, .826, 1.015, 1.135, 1.189, 1.19, 1.157, 1.108, 1.057, 1.014, .984, .967, .962, .965, .974, .984, .993, 1, 1.005, 1.007, 1.007, 1.006, 1.004, 1.002, 1.001, .999, .999, .999, .999, 1);
  --spring-soft: linear(0, .031, .106, .206, .317, .428, .533, .628, .712, .782, .841, .888, .925, .954, .975, .99, 1.001, 1.007, 1.011, 1.013, 1.014, 1.013, 1.012, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.002, 1);
  --spring-settle: linear(0, .034, .114, .215, .321, .423, .516, .599, .671, .732, .783, .825, .86, .888, .911, .93, .944, .956, .966, .973, .979, .983, .987, .99, .992, .994, .995, .996, .997, .998, .998, .999, 1);

  /* Layered shadows (ambient + key light), quieter than a single blur */
  --shadow-rgb: 29, 27, 24;
  --shadow-sm: 0 1px 1px rgba(var(--shadow-rgb), .04), 0 2px 4px -1px rgba(var(--shadow-rgb), .06);
  --shadow-md: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 4px 8px -2px rgba(var(--shadow-rgb), .06), 0 14px 28px -10px rgba(var(--shadow-rgb), .12);
  --shadow-lg: 0 2px 4px rgba(var(--shadow-rgb), .04), 0 12px 24px -6px rgba(var(--shadow-rgb), .08), 0 36px 72px -18px rgba(var(--shadow-rgb), .22);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring-bounce: cubic-bezier(.34, 1.56, .64, 1); --spring-soft: cubic-bezier(.22, 1, .36, 1); --spring-settle: cubic-bezier(.22, 1, .36, 1); }
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10100F;
    --bg-2: #171716;
    --surface: #1D1D1B;
    --text: #F5F3EF;
    --muted: #B8B6B1;
    --border: rgba(245, 243, 239, .16);
    --image-well: #252523;
    --red: #E25353;
    --red-hover: #C0272E;
    --red-soft: #2A1B1A;
    --accent-text: #EE7272;
    --on-red: #FFFFFF;
    --btn: #C0272E;
    --btn-hover: #A81820;
    --focus: #E25353;
    --success: #5CB380;
    --warning: #E0A94F;
    --error: #E07268;
    --glass-bg: rgba(28, 28, 26, .78);
    --glass-bg-strong: rgba(23, 23, 22, .88);
    --glass-border: rgba(245, 243, 239, .12);
    --glass-highlight: rgba(255, 255, 255, .10);
    --glass-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -12px rgba(0, 0, 0, .55);
    --shadow-rgb: 0, 0, 0;
    --glow: rgba(168, 24, 32, .22);
    --glow-2: rgba(224, 169, 79, .06);
    --shade: rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10100F;
  --bg-2: #171716;
  --surface: #1D1D1B;
  --text: #F5F3EF;
  --muted: #B8B6B1;
  --border: rgba(245, 243, 239, .16);
  --image-well: #252523;
  --red: #E25353;
  --red-hover: #C0272E;
  --red-soft: #2A1B1A;
  --accent-text: #EE7272;
  --on-red: #FFFFFF;
  --btn: #C0272E;
  --btn-hover: #A81820;
  --focus: #E25353;
  --success: #5CB380;
  --warning: #E0A94F;
  --error: #E07268;
  --glass-bg: rgba(28, 28, 26, .78);
  --glass-bg-strong: rgba(23, 23, 22, .88);
  --glass-border: rgba(245, 243, 239, .12);
  --glass-highlight: rgba(255, 255, 255, .10);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -12px rgba(0, 0, 0, .55);
  --shadow-rgb: 0, 0, 0;
  --glow: rgba(168, 24, 32, .22);
  --glow-2: rgba(224, 169, 79, .06);
  --shade: rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); hanging-punctuation: first allow-end last; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; letter-spacing: .01rem;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  font-kerning: normal; font-optical-sizing: auto;
}
body.is-locked { overflow: hidden; }
/* soft ambient glow so glass surfaces have something to refract */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 85% 8%, var(--glow), transparent 70%),
    radial-gradient(36vw 36vw at 5% 60%, var(--glow-2), transparent 70%),
    radial-gradient(30vw 30vw at 70% 95%, var(--glow), transparent 70%);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: .3rem; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.02em; font-weight: var(--w-bold); text-wrap: balance; }
/* Helvetica has no optical axis, so size-specific tracking does the job: tighter as type gets bigger */
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.034em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); letter-spacing: -.026em; }
h3 { font-size: 1.25rem; letter-spacing: -.012em; }
/* figures that change or line up (prices, counts, calculator output) never jiggle */
.price, .cart-count, .cart-line__price, [data-cart-subtotal], .calc__num, .stat__value, .qty input, .cart-line__qty input, .size-picker small, .rating-summary strong { font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li + li { margin-top: .35em; }
strong { font-weight: var(--w-bold); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--red); color: var(--on-red); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Lucide icons (inlined at build). One stroke weight everywhere; sizes come from the component. */
.i { flex: none; stroke-width: 1.75; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem;
  background: var(--btn); color: var(--on-red); border-radius: var(--radius-sm); font-weight: var(--w-semi); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section { padding: 3.5rem 0; }
.section--tight { padding: 2rem 0; }
.section--alt { background: var(--bg-2); }
@media (min-width: 768px) { :root { --gutter: 2rem; } .section { padding: 5.5rem 0; } }
@media (min-width: 1100px) { .section { padding: 6.5rem 0; } }
@media (min-width: 1680px) { :root { --page: 1320px; } }

.eyebrow {
  display: inline-block; margin: 0 0 .75rem; color: var(--accent-text);
  font-size: .8125rem; font-weight: var(--w-bold); letter-spacing: .14em; text-transform: uppercase;
}
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

/* ---------- Glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
/* top-edge highlight */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, var(--glass-highlight), transparent 38%);
  opacity: .55;
}
/* pointer-following light; ui.js sets --mx/--my */
.glass--lit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%), var(--glass-highlight), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease); mix-blend-mode: soft-light;
}
.glass--lit:hover::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .site-header, .drawer__panel, .sticky-atc, .consent, .mobile-nav, .toast { background: var(--surface) !important; }
  .btn--ghost, .chip { background: var(--surface); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: var(--w-semi); letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease-2), color .18s var(--ease-2), border-color .18s var(--ease-2), transform .3s var(--spring-soft), box-shadow .2s var(--ease-2);
}
.btn:active:not([disabled]) { transform: scale(.98); transition-duration: .08s; }
.btn--primary { background: var(--btn); color: var(--on-red); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 1px 2px rgba(168, 24, 32, .22), 0 8px 20px -8px rgba(168, 24, 32, .45); }
.btn--primary:hover { background: var(--btn-hover); color: var(--on-red); transform: translateY(-1px); }
.btn--ghost { background: var(--glass-bg); color: var(--text); border-color: var(--border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
/* Add to cart: "Added" face shares the grid cell with the label, so the width never changes */
.btn--atc { display: inline-grid; grid-template-areas: "face"; overflow: hidden; }
.btn--atc > .btn__face { grid-area: face; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: opacity .18s var(--ease-out-3), transform .45s var(--spring-soft); }
.btn__face--done { opacity: 0; transform: translateY(60%); }
.btn--atc[data-state="added"] > .btn__face:first-child { opacity: 0; transform: translateY(-60%); }
.btn--atc[data-state="added"] > .btn__face--done { opacity: 1; transform: none; }
.btn--atc[data-state="added"] .btn__face--done path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .42s .08s var(--ease-out-3) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.link-strong { font-weight: var(--w-semi); color: var(--accent-text); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: var(--pill); border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .18s var(--ease-2), border-color .18s var(--ease-2), transform .3s var(--spring-soft);
}
.icon-btn:hover { background: var(--glass-bg); border-color: var(--border); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.94); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}
.site-header__inner { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--text); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.1875rem; font-weight: var(--w-bold); letter-spacing: -.02em; }
.brand__by { margin-top: .25rem; font-size: .625rem; font-weight: var(--w-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav li + li { margin: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .875rem; border-radius: var(--pill);
  color: var(--text); font-size: .9375rem; font-weight: var(--w-semi); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.header-shop { display: none; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill);
  background: var(--btn); color: var(--on-red); font-size: .75rem; font-weight: var(--w-bold); line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-count[data-count="0"], .cart-count:empty { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: inline-grid; }
@media (min-width: 900px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-shop { display: inline-flex; min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }
}
/* mobile menu */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; padding: .5rem var(--gutter) 1.25rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .16s var(--ease-in-2), transform .2s var(--ease-in-2), visibility 0s .2s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .22s var(--ease-out-3), transform .5s var(--spring-soft); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { margin: 0; border-top: 1px solid var(--border); }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; color: var(--text); font-size: 1.125rem; font-weight: var(--w-semi); text-decoration: none; }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3.5rem; overflow: hidden; overflow: clip; } /* clip: not a scroll container, so view() timelines see the page */
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__copy .lede { margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.hero__chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .375rem .875rem; border-radius: var(--pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: .875rem; font-weight: var(--w-semi); color: var(--text);
}
.chip svg { width: 16px; height: 16px; color: var(--accent-text); }
.hero__media { position: relative; }
.hero__frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-xl); overflow: hidden; background: #000;
  box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out-4); }
.hero__frame:hover img { transform: scale(1.05); }
.hero__badge {
  position: absolute; left: .75rem; bottom: .75rem; padding: .875rem 1.125rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: .75rem; max-width: 80%;
}
.hero__badge strong { display: block; font-size: 1.0625rem; line-height: 1.2; }
.hero__badge span { display: block; color: var(--muted); font-size: .8125rem; }
.hero__badge .mark { width: 40px; height: 40px; flex: none; }
.hero__float {
  position: absolute; right: .75rem; top: .75rem; width: 32%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--bg); box-shadow: var(--shadow-md); background: var(--image-well);
}
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .hero__badge { left: -2rem; }
  .hero__float { right: -2rem; }
}
/* landscape phones (e.g. 844x390): put the photo beside the copy and calm the H1 so the hero is not 3 screens tall */
@media (min-width: 640px) and (max-width: 899px) and (max-height: 520px) and (orientation: landscape) {
  h1 { font-size: clamp(1.875rem, 4.2vw, 2.5rem); }
  .hero { padding: 1.5rem 0 2.5rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 2rem; }
  .hero__chips { margin-top: 1.25rem; }
}

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.grid--1 { max-width: 920px; }
@media (min-width: 720px) {
  .grid--1 .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 2rem; padding: 1.25rem; }
  .grid--1 .card__media { grid-row: 1 / 4; margin: 0; }
  .grid--1 .card > :not(.card__media) { margin-left: 0; margin-right: 0; }
  .grid--1 .card__title { font-size: 1.5rem; align-self: end; margin-top: 1rem; }
  .grid--1 .card__meta .price { font-size: 1.5rem; }
  .grid--1 .card__foot { align-content: start; }
}
.card { display: flex; flex-direction: column; padding: .5rem .5rem 1rem; border-radius: var(--radius-lg); height: 100%; transition: transform .45s var(--spring-soft), box-shadow .3s var(--ease-2), border-color .2s var(--ease-2); }
.card > :not(.card__media) { margin-left: .5rem; margin-right: .5rem; }
.card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow), var(--shadow-md); }
/* nested radius = card radius minus the .5rem gap, so the corners run parallel */
.card__media { position: relative; aspect-ratio: 1; border-radius: calc(var(--radius-lg) - .5rem); overflow: hidden; background: var(--image-well); margin-bottom: 1rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out-4); }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: 1.125rem; font-weight: var(--w-semi); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .25rem; }
.card__title a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent-text); }
.card__meta { color: var(--muted); font-size: .875rem; margin: 0 0 .75rem; }
.card__foot { margin-top: auto; display: grid; gap: .75rem; }
.price { color: var(--accent-text); font-weight: var(--w-bold); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.price--lg { font-size: 1.75rem; }
.badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 1; padding: .25rem .625rem; border-radius: var(--pill);
  background: var(--red-soft); color: var(--accent-text); font-size: .75rem; font-weight: var(--w-bold); letter-spacing: .04em;
}
.badge--muted { background: var(--surface); color: var(--muted); }
.sold-out { color: var(--muted); font-weight: var(--w-semi); }

/* ---------- Size picker ---------- */
.size-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.size-picker legend { padding: 0; margin-bottom: .5rem; font-size: .875rem; font-weight: var(--w-semi); color: var(--muted); }
.size-picker__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.size-picker label {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; min-height: 48px; padding: .375rem .875rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; line-height: 1.15;
  font-size: .9375rem; font-weight: var(--w-semi); color: var(--text);
  transition: border-color .15s var(--ease-2), background-color .15s var(--ease-2), box-shadow .15s var(--ease-2), transform .3s var(--spring-soft);
}
.size-picker label:active { transform: scale(.97); transition-duration: .08s; }
.size-picker label small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.size-picker label:hover { border-color: var(--text); }
.size-picker input:checked + label { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; background: var(--red-soft); }
.size-picker input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.size-picker input:disabled + label { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.card .size-picker label { min-width: 0; flex: 1 1 0; }

/* ---------- Buybox ---------- */
.buybox { display: grid; gap: 2rem; align-items: start; }
.buybox__gallery { display: grid; gap: .75rem; }
.buybox__main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--image-well); }
.buybox__main img { width: 100%; height: 100%; object-fit: cover; }
.buybox__thumbs { display: flex; gap: .5rem; }
.buybox__thumbs button { width: 72px; height: 72px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--image-well); cursor: pointer; }
.buybox__thumbs button[aria-current="true"] { border-color: var(--red); }
.buybox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox__panel { padding: 1.5rem; display: grid; gap: 1.25rem; }
.buybox__panel h2 { margin: 0; }
.buybox__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.buybox__note { font-size: .875rem; color: var(--muted); margin: 0; }
@media (min-width: 900px) { .buybox { grid-template-columns: 1.1fr .9fr; gap: 3rem; } .buybox__panel { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 2rem; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface); }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 1.25rem; cursor: pointer; border-radius: var(--pill); }
.qty button svg, .cart-line__qty button svg { width: 16px; height: 16px; }
.qty input { width: 3rem; height: 44px; border: 0; background: transparent; color: var(--text); text-align: center; font: inherit; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Purchase type (Subscribe and save is opt-in, never preselected) ---------- */
.buy-type { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; min-width: 0; }
.buy-type legend { padding: 0; margin-bottom: .5rem; font-size: .875rem; font-weight: var(--w-semi); color: var(--muted); }
.buy-type__opt { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.buy-type__opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.buy-type__opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.buy-type__opt > label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .75rem 1rem .75rem 2.75rem; cursor: pointer; position: relative; font-weight: var(--w-semi); }
.buy-type__opt > label::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.buy-type__opt > input:checked + label::before { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--surface); background: var(--red); }
.buy-type__opt > input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.buy-type__save { padding: .2rem .6rem; border-radius: var(--pill); background: var(--red-soft); color: var(--accent-text); font-size: .8125rem; font-weight: var(--w-bold); white-space: nowrap; }
.buy-type__plans { padding: 0 1rem 1rem 2.75rem; }
.buy-type__plans[hidden] { display: none; }
.buy-type__plans select { width: 100%; }
.buy-type__fine { margin: .5rem 0 0; font-size: .8125rem; color: var(--muted); }
.compare-at { color: var(--muted); font-size: 1rem; }
.compare-at:empty { display: none; }

/* ---------- Sticky mobile add to cart ---------- */
.sticky-atc {
  position: fixed; z-index: 35;
  left: max(.5rem, env(safe-area-inset-left)); right: max(.5rem, env(safe-area-inset-right)); bottom: max(.5rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .75rem; padding: .625rem .625rem .625rem 1rem; border-radius: var(--radius);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 1rem)); transition: transform .5s var(--spring-soft);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc__info { min-width: 0; flex: 1; line-height: 1.25; }
.sticky-atc__title { display: block; font-size: .875rem; font-weight: var(--w-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .price { font-size: 1rem; }
.sticky-atc .btn { min-height: 44px; padding: .625rem 1.125rem; }
@media (min-width: 900px) { .sticky-atc { display: none; } }
/* the consent banner owns the bottom edge until the visitor chooses */
html.lt-consent-pending .sticky-atc { visibility: hidden; }

/* ---------- Steps (how it's made) ---------- */
.steps { position: relative; display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { margin: 0; display: flex; }
.steps li > .step { flex: 1; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.75rem; border-radius: var(--radius-lg); min-height: 7rem; transition: transform .4s var(--ease), border-color .4s ease; }
.step__num {
  position: absolute; left: 1.25rem; top: 1.375rem; width: 2.5rem; height: 2.5rem; border-radius: var(--pill);
  display: grid; place-items: center; font-weight: var(--w-bold); font-size: 1rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .4s var(--ease);
}
.step h3 { margin: .35rem 0 .4rem; }
.step p { margin: 0; color: var(--muted); }
.step.is-active { border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.step.is-active .step__num { background: var(--btn); color: var(--on-red); border-color: var(--btn); transform: scale(1.06); }
.steps__rail { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1.25rem; padding-top: 4.5rem; }
  .step { padding: 1.75rem 1.5rem; }
  .step__num { position: absolute; left: 1.5rem; top: -3.75rem; width: 3rem; height: 3rem; }
  .steps__rail { display: block; position: absolute; left: 2.5rem; right: 2.5rem; top: 1.5rem; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
  .steps__rail span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
}

/* ---------- Split ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--image-well); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--reverse .split__media { order: 2; }
}
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: var(--pill); background: var(--red-soft); }
/* Lucide "check" as a mask, painted in the accent text colour, so it follows light and dark */
.checklist li::after {
  content: ""; position: absolute; left: .25rem; top: calc(.2em + .25rem); width: .75rem; height: .75rem; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.stat { padding: 1.5rem; border-radius: var(--radius-lg); }
.stat__value { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--w-bold); line-height: 1; letter-spacing: -.03em; color: var(--accent-text); margin-bottom: .5rem; }
.stat__label { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.compare th, .compare td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-bold); }
.compare tbody th { font-weight: var(--w-semi); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .is-hl { background: color-mix(in srgb, var(--red-soft) 70%, transparent); }
.compare thead .is-hl { color: var(--accent-text); }
.compare caption { caption-side: bottom; padding: .75rem 1rem; text-align: left; color: var(--muted); font-size: .8125rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 50rem; }
.faq--center { margin: 0 auto; }
.faq details { border-radius: var(--radius); padding: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 1rem 1.25rem;
  cursor: pointer; list-style: none; font-weight: var(--w-semi); font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .5s var(--spring-soft); }
.faq details[open] summary .i { transform: rotate(180deg); }
/* smooth open/close where the browser can animate to height:auto (Chromium 131+); instant elsewhere */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .34s var(--ease-out-4), content-visibility .34s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1rem; grid-auto-flow: column; grid-auto-columns: minmax(280px, 85%); overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin: 0 -.25rem; }
@media (min-width: 900px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.review { margin: 0; scroll-snap-align: start; padding: 1.5rem; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: .75rem; }
.review blockquote { margin: 0; font-size: 1rem; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: .875rem; }
.stars { display: inline-flex; gap: 2px; color: var(--warning); }
.stars svg { width: 18px; height: 18px; }
.rating-summary { min-height: 44px; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rating-summary strong { font-size: 1.5rem; }
.buybox__panel .rating-summary { margin-bottom: 0; gap: .5rem; font-size: .9375rem; }
.reviews-empty { padding: 1.5rem; border-radius: var(--radius-lg); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 2.5rem 1.5rem; border-radius: var(--radius-xl); text-align: center; background: #1D1B18; color: #F5F3EF; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 80% 0%, rgba(168, 24, 32, .65), transparent 70%), radial-gradient(50% 100% at 0% 100%, rgba(226, 83, 83, .25), transparent 70%); }
.cta-band h2 { color: #F5F3EF; }
.cta-band p { color: #D9D6D0; max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-band .eyebrow { color: #F07B7B; }
.cta-band .btn--primary { background: #C0272E; }
.cta-band .btn--primary:hover { background: #A81820; }
.cta-band .btn--ghost { background: rgba(255,255,255,.08); color: #F5F3EF; border-color: rgba(245,243,239,.3); }
.cta-band a:not(.btn) { color: #F5F3EF; }
@media (min-width: 768px) { .cta-band { padding: 4rem 3rem; } }
:root[data-theme="dark"] .cta-band { background: #1D1D1B; border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #1D1D1B; border: 1px solid var(--border); } }

/* ---------- Breadcrumbs / page header ---------- */
.crumbs { font-size: .875rem; color: var(--muted); padding-top: 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: var(--muted); }
.page-head { padding: 2rem 0 1rem; }
.page-top + .section { padding-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-2); font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer .muted { color: var(--muted); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.footer-base button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; cursor: pointer; }

/* ---------- Cart drawer (shell; cart.js toggles [hidden] and [data-open], fills [data-cart-items]) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: var(--shade); opacity: 0; transition: opacity .3s var(--ease-2); }
.drawer[data-open] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column;
  padding-right: env(safe-area-inset-right); padding-top: env(safe-area-inset-top);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border-left: 1px solid var(--glass-border); box-shadow: -1px 0 0 var(--glass-border), -24px 0 64px -16px rgba(0,0,0,.28);
  transform: translateX(104%); transition: transform .28s var(--ease-in-2);
}
/* opens on a spring with no overshoot (the panel is pinned to the right edge), closes quickly */
.drawer[data-open] .drawer__panel { transform: none; transition: transform .64s var(--spring-settle); }
@media (max-width: 520px) { .drawer__panel { width: 100%; border-left: 0; } }
html.lt-cart-open, html.lt-cart-open body { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer__head h2 { font-size: 1.25rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; overscroll-behavior: contain; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: grid; gap: .75rem; }
.drawer__foot[hidden] { display: none; }
.drawer__foot .row { display: flex; justify-content: space-between; font-weight: var(--w-semi); font-size: 1.0625rem; }
.drawer__fine { font-size: .8125rem; color: var(--muted); margin: 0; }
.cart-empty { text-align: center; padding: 2rem 0; color: var(--muted); }
.cart-empty[hidden] { display: none; }
.free-ship { padding: .875rem 1rem; margin-bottom: .5rem; border-radius: var(--radius-sm); background: var(--red-soft); font-size: .875rem; font-weight: var(--w-semi); }
.free-ship p { margin: 0 0 .5rem; }
.free-ship p:empty { display: none; }
.free-ship__track { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.free-ship__track span { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .5s var(--ease); }
.free-ship[data-reached="true"] { background: color-mix(in srgb, var(--success) 14%, transparent); }
.free-ship[data-reached="true"] .free-ship__track span { background: var(--success); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img info price" "img qty remove";
  gap: .25rem .875rem; align-items: center; padding: .875rem 0; border-bottom: 1px solid var(--border); margin: 0;
  animation: line-in .55s var(--spring-soft) backwards;
}
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
.cart-line__img { grid-area: img; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--image-well); }
.cart-line__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cart-line__title { font-weight: var(--w-semi); font-size: .9375rem; color: var(--text); text-decoration: none; }
.cart-line__title:hover { color: var(--accent-text); }
.cart-line__variant, .cart-line__plan { color: var(--muted); font-size: .8125rem; }
.cart-line__plan:empty, .cart-line__variant:empty { display: none; }
.cart-line__price { grid-area: price; font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.cart-line__qty { grid-area: qty; display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface); }
.cart-line__qty button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 1.125rem; cursor: pointer; border-radius: var(--pill); }
.cart-line__qty input { width: 2.5rem; height: 40px; border: 0; padding: 0; min-height: 0; background: transparent; color: var(--text); text-align: center; font: inherit; font-size: 1rem; -moz-appearance: textfield; }
.cart-line__qty input::-webkit-outer-spin-button, .cart-line__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line__remove { grid-area: remove; justify-self: end; background: none; border: 0; padding: 0 .25rem; min-height: 44px; color: var(--muted); font: inherit; font-size: .8125rem; text-decoration: underline; cursor: pointer; }
.cart-line__remove:hover { color: var(--accent-text); }

/* ---------- Consent banner (shell; track.js decides when to show) ---------- */
.consent {
  position: fixed; z-index: 70; max-width: 560px; margin-left: auto;
  left: max(.75rem, env(safe-area-inset-left)); right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom));
  max-height: calc(100dvh - var(--header-h) - 1.5rem); overflow-y: auto;
  padding: 1.125rem; border-radius: var(--radius); display: grid; gap: .875rem;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); font-size: .9375rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--text); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions .btn { min-height: 44px; padding: .5rem 1.125rem; flex: 1 1 auto; }
.consent p a { white-space: nowrap; }
.consent [data-gpc-note], .consent .consent-banner__gpc { color: var(--muted); font-size: .875rem; }
@media (min-width: 560px) { .consent__actions .btn { flex: 0 0 auto; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + .75rem); z-index: 80; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; padding: .75rem 1.125rem; border-radius: var(--pill); font-weight: var(--w-semi); font-size: .9375rem; transition: opacity .2s var(--ease-out-3), transform .5s var(--spring-soft); box-shadow: var(--shadow-md); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Forms ---------- */
input, select, textarea, button { font-family: inherit; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
  font-size: 1rem; min-height: 48px; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
}

/* steppers: the bare number sits inside the pill, without the generic input box */
.qty input[type="number"], .cart-line__qty input[type="number"] { border: 0; border-radius: 0; padding: 0; min-height: 0; background: transparent; }

/* ---------- Treat budget calculator ---------- */
.calc { display: grid; gap: 1.5rem; padding: 1.5rem; }
.calc label { display: block; font-weight: var(--w-semi); margin-bottom: .5rem; }
.calc__field { display: flex; align-items: center; gap: .75rem; }
.calc__field input { width: 100%; max-width: 14rem; font-size: 1.375rem; font-weight: var(--w-bold); min-height: 56px; }
.calc__field span, .calc__hint { color: var(--muted); font-size: .875rem; }
.calc__hint { margin: .5rem 0 0; }
.calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; align-content: start; }
.calc__stat { padding: 1rem .75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.calc__num { display: block; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: var(--w-bold); line-height: 1.1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.calc__unit { display: block; margin-top: .25rem; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.calc__bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .5s var(--ease); }
.calc__note { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); }
.calc__note > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .calc { grid-template-columns: .9fr 1.1fr; padding: 2.25rem; gap: 2rem 3rem; } }
@media (max-width: 420px) { .calc__out { grid-template-columns: 1fr 1fr; } .calc__stat:first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.page-head--legal { padding-bottom: 0; }
.updated { color: var(--muted); font-size: .9375rem; margin: 0; }
.section--legal { padding-top: 1.5rem; }
.legal { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.legal > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
/* wide tables in long-form text scroll inside themselves instead of widening the page (WebKit 320px) */
.prose table:not(.compare) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose--legal { max-width: 42rem; font-size: 1rem; line-height: 1.7; }
.prose--legal h2 { font-size: 1.375rem; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose--legal h3 { font-size: 1.0625rem; }
.prose--legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.toc { padding: 1.125rem 1.25rem; border-radius: var(--radius); font-size: .9375rem; align-self: start; }
.toc__title { font-weight: var(--w-bold); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 0; padding: .3rem 0; line-height: 1.4; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 1000px) { .legal--toc { grid-template-columns: 16rem minmax(0, 42rem); gap: 4rem; } .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ---------- Placeholder marker (dev only, removed once copy lands) ---------- */
.placeholder-flag { outline: 2px dashed var(--warning); outline-offset: 4px; }

/* ---------- Scroll reveal ---------- */
/* Visible by default. ui.js marks everything in (or above) the first viewport .is-in, then adds ONE of:
   .reveal-sda  browsers with scroll-driven animations: the reveal is tied to scroll position, off the main
                thread, over the first 140px of an element entering the viewport;
   .reveal-on   everyone else (Firefox today): IntersectionObserver toggles .is-in with a transition.
   First-viewport content never fades, and content stays visible if JS fails. */
.reveal-on .reveal { transition: opacity .35s var(--ease-out-3), transform .45s var(--spring-soft); transition-delay: var(--d, 0s); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
@supports (animation-timeline: view()) {
  .reveal-sda .reveal:not(.is-in) { animation: rise linear both; animation-timeline: view(); animation-range: entry 0 entry 140px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Scroll-linked progress (CSS only; absent where unsupported) ---------- */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  /* header gains a soft shadow over the first 64px of scroll */
  .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
    background: linear-gradient(rgba(var(--shadow-rgb), .07), transparent); opacity: 0;
    animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 0 64px;
  }
  /* reading progress hairline on guides */
  .read-progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red);
    transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
    animation: grow-x linear both; animation-timeline: scroll(root);
  }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Cross-document View Transitions (Chromium 126+, Safari 18.2+; others navigate normally) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.consent { view-transition-name: consent; }
/* header and consent banner are identical on both pages: swap instantly so they read as standing still */
::view-transition-old(site-header), ::view-transition-old(consent) { display: none; }
::view-transition-new(site-header), ::view-transition-new(consent) { animation: none; }
::view-transition-group(site-header), ::view-transition-group(consent) { animation: none; z-index: 2; }
/* page body: quick fade out, a short rise in */
::view-transition-old(root) { animation: vt-out .16s var(--ease-in-2) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out-3) .04s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
/* product photo (view-transition-name: pic-<handle>, set per card and product gallery by build.mjs) */
::view-transition-group(*) { animation-duration: .44s; animation-timing-function: var(--ease-out-4); }
::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: .2s; }
/* theme toggle: ui.js adds .vt-theme so the whole page cross-fades as one image */
.vt-theme .site-header, .vt-theme .consent, .vt-theme [style*="view-transition-name"] { view-transition-name: none !important; }
.vt-theme::view-transition-old(root) { animation: vt-out .3s var(--ease-2) both; }
.vt-theme::view-transition-new(root) { animation: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal-on .reveal:not(.is-in) { opacity: 1; transform: none; }
  .card:hover, .card:hover .card__media img, .hero__frame:hover img, .btn--primary:hover { transform: none; }
  .glass--lit::after { display: none; }
  /* scroll-linked (not time-based) progress stays: it only moves when the visitor scrolls */
  .read-progress, .site-header::after { animation-duration: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-nav, .sticky-atc, .drawer, .consent, .toast, .site-footer, .theme-toggle, .skip-link, .hero__actions, .cta-band, .card__foot, .buybox__thumbs, .calc__field input, .hero__float { display: none !important; }
  body::before { display: none; }
  :root { --bg: #fff; --bg-2: #fff; --surface: #fff; --text: #000; --muted: #333; --accent-text: #000; --glass-bg: #fff; --glass-bg-strong: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .section, .hero { padding: 1.25rem 0; }
  .glass { box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #ccc; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .read-progress, .site-header::after { display: none !important; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  .card, .step, .stat, .faq details, .review, figure, table, img { break-inside: avoid; }
  .faq details > .faq__a { display: block !important; }
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .hero__frame, .split__media { max-width: 60%; box-shadow: none; }
}
