/* HiPuppy Supply styles.
   Every color on the site comes from the variables below. Change a value
   here and it changes everywhere. Contrast ratios (WCAG) are noted where
   they matter; AA needs 4.5:1 for text and 3:1 for controls. */
:root {
  /* brand palette */
  --bg: #FAFAF7;            /* warm white: main background */
  --panel: #EAF7FA;         /* pale blue: selected sections, image panels */
  --surface: #FFFFFF;       /* cards, inputs */
  --navy: #142D45;          /* headings, nav, body text, footer. 13.5:1 on bg */
  --navy-2: #1E3F5E;        /* owner bar only */
  --muted: #526171;         /* slate: secondary text. 6.1:1 on bg, 5.8:1 on panel */
  --sky: #77CDDF;           /* decorative accents only (1.7:1 on bg, never for text) */
  --sky-strong: #1B7F97;    /* icons and marks that must be seen. 4.4:1 on bg */
  --link: #0F6A7F;          /* text links. 5.9:1 on bg, 5.7:1 on panel */

  /* primary action (join, shop, add to cart, checkout) */
  --cta: #A3E635;           /* lime */
  --cta-hover: #93D526;
  --cta-ink: #365314;       /* dark green text. 5.8:1 on lime, 4.9:1 on hover */
  --cta-edge: #4D7C0F;      /* button outline. 4.8:1 on bg */

  /* status */
  --error: #A8301B;         /* 6.5:1 on bg */
  --error-on-dark: #FFB7A8; /* 8.4:1 on navy */
  --success: #365314;       /* 8.4:1 on bg */

  /* lines */
  --line: rgba(20, 45, 69, 0.16);        /* quiet dividers */
  --control-line: #6B7A88;               /* edges of unselected controls. 4.2:1 on bg */
  --line-on-dark: rgba(250, 250, 247, 0.26);
  --on-dark-muted: #C9D3DB;              /* secondary text on navy. 9.3:1 */

  /* product colors, used only for the small part markers */
  --p-blue: #86D2E6;
  --p-white: #F6F4EE;
  --p-green: #8FDC5E;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 4px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); text-decoration-thickness: 2.5px; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
section[tabindex="-1"]:focus, form[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible, .owner-banner :focus-visible, .sticky-bar :focus-visible { outline-color: var(--sky); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; background: var(--navy); color: var(--bg); padding: 10px 14px; z-index: 50; border-radius: var(--radius); }
.skip:hover { color: var(--bg); }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 9.5vw, 5.1rem); }
h2 { font-size: clamp(2rem, 5.6vw, 3.25rem); }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; max-width: 34em; color: var(--navy); }
.fine { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.selectable { user-select: all; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--body); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* Primary action: lime. One per section. Same style for waitlist and purchasing. */
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta-edge); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-ink); border-color: var(--cta-ink); transform: translateY(-1px); box-shadow: 0 3px 0 var(--cta-edge); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-primary:focus-visible { outline-color: var(--navy); }
.on-navy .btn-primary:focus-visible, .sticky-bar .btn-primary:focus-visible { outline-color: var(--bg); }
/* Disabled and loading: faded, striped, and the label changes (for example "Joining…"), so it is not color alone. */
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; transform: none; box-shadow: none; opacity: .7; background-image: repeating-linear-gradient(135deg, rgba(54, 83, 20, .16) 0 6px, transparent 6px 12px); }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; border-style: dotted; } }
.btn-block { width: 100%; }
/* Secondary action: quiet navy outline. */
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--panel); color: var(--navy); }
.check { display: grid; gap: 8px; }
.check li { padding-left: 22px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border: 2px solid var(--navy); border-radius: 2px; }
.link-btn { background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; color: var(--link); min-height: 40px; }
.link-btn:hover { color: var(--navy); }
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding-block: 10px; }
.icon-btn { width: 48px; height: 48px; background: none; border: 0; color: var(--navy); font-size: 1.9rem; line-height: 1; cursor: pointer; }

/* ---------- owner-only helpers ---------- */
.owner-banner { background: var(--navy-2); color: var(--bg); font-size: .86rem; line-height: 1.45; }
.owner-inner { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 10px; }
.owner-inner p { flex: 1 1 320px; min-width: 0; }
.owner-inner a, .owner-inner a:hover { color: inherit; }
.owner-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-toggle { display: flex; border: 1px solid var(--line-on-dark); border-radius: var(--radius); overflow: hidden; }
.owner-toggle button { background: transparent; color: var(--bg); border: 0; padding: 9px 12px; min-height: 40px; cursor: pointer; font-size: .82rem; }
.owner-toggle button[aria-pressed="true"] { background: var(--bg); color: var(--navy); font-weight: 700; }
.ph-text, .owner-note { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ph-text { border: 1px dashed var(--muted); padding: 2px 6px; border-radius: 2px; background: var(--surface); display: inline-block; line-height: 1.4; }
.owner-note { border-left: 3px solid var(--sky-strong); padding: 4px 0 4px 10px; margin-top: 12px; line-height: 1.45; }
.on-navy .owner-note { color: var(--bg); opacity: .85; }
.ph-img {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 18px;
  border: 2px dashed var(--muted); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--panel) 0 14px, var(--bg) 14px 28px);
}
.ph-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: var(--bg); padding: 3px 8px; border-radius: 2px; }
.ph-label { font-family: var(--mono); font-size: .82rem; color: var(--navy); max-width: 24ch; line-height: 1.4; }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.working { font-family: var(--mono); font-size: .75rem; color: var(--muted); border: 1px dashed var(--muted); padding: 2px 6px; border-radius: 2px; display: inline-block; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); position: relative; }
.logo, .logo:hover { color: var(--navy); }
.logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; min-height: 48px; align-items: center; }
.logo-mark { width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 3px; background: linear-gradient(180deg, var(--sky) 0 46%, var(--surface) 46% 58%, var(--cta) 58%); flex: none; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: none; }
.nav-links a, .nav-links a:hover { color: var(--navy); }
.nav-links a { text-decoration: none; font-weight: 600; padding: 14px 4px; display: block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sky-strong); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 2px solid var(--navy); padding: 6px var(--gutter) 14px; }
.nav-links.is-open a { border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; background: none; color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.cart-btn:hover { background: var(--panel); }
.cart-count { font-family: var(--mono); font-size: .8rem; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--panel); font-variant-numeric: tabular-nums; }
.cart-count.has-items { background: var(--cta); color: var(--cta-ink); font-weight: 500; }
.menu-btn { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; content: ""; transition: transform .2s ease; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 52px); max-width: 44rem; }
.on-navy { background: var(--navy); color: var(--bg); }
.on-navy .eyebrow, .on-navy .fine { color: var(--on-dark-muted); }
.on-navy .lead { color: var(--bg); }
.on-navy a, .on-navy a:hover { color: var(--bg); }
.band { background: var(--panel); }

/* hero */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
/* One flat underline under the second half of the headline. Not a decorative gradient. */
.hero h1 span { display: inline; background: linear-gradient(transparent 82%, var(--sky) 82% 94%, transparent 94%); }
.hero-media { min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }

.diagram { border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--navy); max-width: 520px; margin-inline: auto; box-shadow: 8px 8px 0 var(--panel); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-family: var(--mono); font-size: .74rem; padding: 9px 12px; background: var(--surface); color: var(--muted); border-top: 2px solid var(--navy); }
.dg-label { font-family: var(--mono); font-size: 17px; letter-spacing: 1.6px; font-weight: 500; }
.dg-sub { font-family: var(--body); font-size: 15px; opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  .dg-bag { animation: bag-in .7s cubic-bezier(.2, .8, .2, 1) .55s both; }
  .dg-div { transform-origin: 240px 0; animation: div-in .6s ease-out .1s both; }
  .dg-top { animation: top-out .7s ease .2s both; }
  @keyframes bag-in { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes div-in { from { transform: scaleY(0); } to { transform: none; } }
  @keyframes top-out { from { transform: translateY(8px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* product images: always shown whole on a light panel */
.shot { display: grid; gap: 8px; min-width: 0; }
.shot-frame { --pad: clamp(16px, 4vw, 32px); position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--shot-bg, var(--panel)); border-radius: var(--radius); }
.shot .photo { position: absolute; left: var(--pad); top: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; background: none; border-radius: 0; }
.shot figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.band .shot-frame { --shot-bg: var(--surface); }
.shot-hero .shot-frame { aspect-ratio: 5 / 6; }
.shot-how .shot-frame { aspect-ratio: 4 / 5; }
@media (prefers-reduced-motion: no-preference) {
  .shot-hero .photo { animation: shot-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes shot-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.view-btn { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 12px 6px 6px; color: var(--navy); border: 2px solid var(--control-line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 700; font-size: .95rem; text-align: left; }
.view-btn img { width: 40px; height: 44px; object-fit: contain; flex: none; }
.view-btn:hover { border-color: var(--navy); background: var(--panel); }
/* Selected: darker edge, a bar along the bottom, and a dot before the label (shape, not just color). */
.view-btn[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 -5px 0 var(--sky-strong); }
.view-btn[aria-pressed="true"] span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-right: 7px; vertical-align: middle; }

/* how it works */
.how-grid { display: grid; gap: 28px; }
.how-head { margin-bottom: 0; }
.how-figure { display: grid; gap: 18px; min-width: 0; align-content: start; }
.how-steps { display: grid; gap: 24px; min-width: 0; align-content: start; }
.parts { display: grid; gap: 10px; }
.parts li { display: flex; gap: 12px; align-items: baseline; font-size: .98rem; line-height: 1.45; }
.part-dot { flex: none; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--navy); transform: translateY(2px); }
.part-top { background: var(--p-blue); }
.part-mid { background: var(--p-white); }
.part-bottom { background: var(--p-green); }
.reload { border-left: 3px solid var(--sky-strong); padding-left: 12px; color: var(--navy); font-size: .98rem; }

/* status + price */
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.status-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); border: 1.5px solid var(--navy); }
.on-navy .status-chip .dot { border-color: var(--bg); }
.price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.price-was { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price .ph-text { font-weight: 400; }

/* waitlist form */
.waitlist { display: grid; gap: 8px; max-width: 520px; }
.waitlist label { font-weight: 600; font-size: .92rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 12px; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 10px 14px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--surface); color: var(--navy); font-size: 1rem; }
.waitlist input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.waitlist input[type="email"]:hover { border-color: var(--sky-strong); }
.waitlist input[aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.waitlist .btn { flex: 1 1 auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.form-msg:empty { display: none; }
/* Errors carry an "!" mark and plain words, not just red. */
.form-msg.is-error { color: var(--error); }
.form-msg.is-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .45em; border-radius: 50%; border: 2px solid currentColor; font-size: .85em; font-weight: 800; line-height: 1; }
.on-navy .form-msg.is-error, .waitlist.on-dark .form-msg.is-error { color: var(--error-on-dark); }
/* Success carries a check mark and plain words, not just green. */
.form-done { border: 2px solid var(--success); border-left-width: 8px; padding: 14px 16px; background: var(--surface); color: var(--navy); border-radius: var(--radius); }
.form-done::before { content: "\2713"; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: .5em; border-radius: 50%; background: var(--success); color: var(--surface); font-size: .85em; font-weight: 800; }
.waitlist.on-dark input[type="email"] { border-color: var(--bg); }
.waitlist.on-dark .fine { color: var(--on-dark-muted); }
.waitlist.on-dark .fine a { color: var(--bg); }

/* problem */
.problem-grid { display: grid; gap: 24px; }
.problem-copy { display: grid; gap: 16px; max-width: 36rem; font-size: 1.12rem; }
.problem-copy p:last-child { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.problem-copy p:last-child span { border-bottom: 3px solid var(--sky); }

/* steps */
.steps { display: grid; gap: 34px; counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--navy); padding-top: 16px; min-width: 0; }
.step-num { font-family: var(--mono); font-size: .85rem; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.step-num b { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.step p { color: var(--muted); }
.step-img { margin-top: 6px; }

/* benefits */
.benefits { border-bottom: 2px solid var(--navy); }
.benefit { display: grid; gap: 8px; padding-block: 24px; border-top: 2px solid var(--navy); }
.benefit p { color: var(--muted); max-width: 38em; }

/* featured + product */
.product-grid { display: grid; gap: 32px; align-items: start; }
.product-info { display: grid; gap: 18px; min-width: 0; }
.product-info h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.name-row { display: grid; gap: 8px; justify-items: start; }
.points { display: grid; gap: 10px; }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--sky); border: 1.5px solid var(--navy); border-radius: 2px; }
.buybox { display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius); }
.buybox .waitlist { max-width: none; }
.buy-lead { font-size: .98rem; color: var(--muted); }
.gallery { min-width: 0; display: grid; gap: 12px; }
.gallery .diagram { max-width: none; box-shadow: none; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1; min-height: 48px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; overflow: hidden; }
.thumb[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 -5px 0 var(--sky-strong); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { font-family: var(--mono); font-size: .9rem; color: var(--muted); }

.options { display: grid; gap: 10px; }
.opt-name { font-weight: 700; font-size: .95rem; }
.opt-name span { font-weight: 400; }
.opt-list { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 2px solid var(--control-line); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.opt input:checked + span { border-color: var(--navy); box-shadow: inset 0 -5px 0 var(--sky-strong); }
.opt input:checked + span::before { content: "\2713"; font-weight: 800; }
.opt input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qty-row label { font-weight: 700; font-size: .95rem; }
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 48px; min-height: 48px; background: var(--surface); color: var(--navy); border: 0; font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: var(--panel); }
.qty input, .qty span { width: 52px; text-align: center; border: 0; border-inline: 2px solid var(--navy); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; display: grid; place-items: center; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 44px; min-height: 44px; }
.assurances { display: grid; gap: 8px; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 14px; }
.assurances li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.assurances li > span:first-child { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* two-compartment explainer */
.split { display: grid; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.split > div { padding: clamp(24px, 5vw, 48px); display: grid; gap: 12px; align-content: start; }
.split-clean { background: var(--panel); }
.split-used { background: var(--navy); color: var(--bg); border-top: 5px solid var(--sky); }
.split .eyebrow { color: inherit; opacity: .75; }
.split h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); }

/* specs + faq */
.spec { border-top: 2px solid var(--navy); }
.spec > div { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.faq-list { border-top: 2px solid var(--navy); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary:hover { color: var(--link); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 18px; height: 18px; position: relative; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2.5px; background: var(--navy); transition: transform .2s ease; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding-bottom: 20px; max-width: 42em; color: var(--muted); }

/* final cta */
.final { display: grid; gap: 22px; }
.final h2 { max-width: 16ch; }

/* policies */
.policy { padding-block: 28px; border-top: 2px solid var(--navy); display: grid; gap: 12px; max-width: 46rem; }
.policy h2 { font-size: 1.7rem; }
.policy h3 { font-size: 1.2rem; margin-top: 14px; }
.fine a { color: var(--link); }

/* footer: navy, with a thin line separating it from the navy section above */
.site-footer { background: var(--navy); color: var(--bg); border-top: 1px solid var(--line-on-dark); padding-block: 40px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
.site-footer .logo, .site-footer .logo:hover { color: var(--bg); }
.site-footer .logo-mark { border-color: var(--bg); }
.site-footer .logo-sub, .footer-line, .legal { color: var(--on-dark-muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer nav a { display: inline-block; padding-block: 12px; text-underline-offset: 4px; }
.site-footer a, .site-footer a:hover { color: var(--bg); }
.legal { font-size: .85rem; }

/* cart drawer */
.cart { margin: 0 0 0 auto; width: min(430px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; border-left: 2px solid var(--navy); padding: 0; background: var(--bg); color: var(--navy); }
.cart[open] { display: flex; flex-direction: column; }
.cart::backdrop { background: rgba(20, 45, 69, .55); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 2px solid var(--navy); }
.cart-head h2 { font-size: 1.5rem; }
.cart-empty { padding: 28px 20px; display: grid; gap: 14px; justify-items: start; }
.cart-lines { flex: 1; overflow-y: auto; padding: 0 20px; }
.cart-lines li { display: flex; justify-content: space-between; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cart-lines li > div:first-child { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.line-name { font-weight: 700; line-height: 1.25; }
.line-opt { font-size: .9rem; color: var(--muted); }
.line-end { display: grid; justify-items: end; align-content: space-between; }
.line-end .price { font-size: 1.15rem; }
.cart-foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--navy); display: grid; gap: 12px; background: var(--surface); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }

/* sticky mobile purchase bar */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--navy); color: var(--bg); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .25s ease; visibility: hidden; }
.sticky-bar.is-visible { transform: none; visibility: visible; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-text span { color: var(--on-dark-muted); }
.sticky-text { display: grid; min-width: 0; font-size: .85rem; line-height: 1.25; }
.sticky-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-text .price { font-size: 1rem; }
.sticky-bar .btn { min-height: 48px; padding-inline: 18px; }
body.has-sticky .site-footer { padding-bottom: 124px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .menu-btn { display: none; }
  .nav-links, .nav-links.is-open { display: flex; flex-direction: row; position: static; gap: 30px; background: none; border: 0; padding: 0; }
  .nav-links.is-open a { border: 0; font-size: inherit; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .problem-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps.steps-stack { grid-template-columns: 1fr; gap: 26px; }
  .how-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "fig head" "fig steps"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 32px; }
  .how-head { grid-area: head; }
  .how-figure { grid-area: fig; }
  .how-steps { grid-area: steps; }
  .shot-hero .shot-frame { aspect-ratio: 4 / 5; }
  .shot-how .shot-frame { aspect-ratio: 3 / 4; }
  .benefit { grid-template-columns: 1fr 1.5fr; gap: 32px; padding-block: 30px; align-items: baseline; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .pdp .gallery { position: sticky; top: calc(var(--header-h) + 20px); }
  .split { grid-template-columns: 1fr 1fr; }
  .split-used { border-top: 0; border-left: 5px solid var(--sky); }
  .spec > div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .legal { grid-column: 1 / -1; }
  .sticky-bar { display: none; }
  body.has-sticky .site-footer { padding-bottom: 40px; }
}
