/* ============================================================
   ZaZa Bags 420 — main.css  ·  SOFT, ROUNDED, AIRY
   ------------------------------------------------------------
   Tokens only (tokens.css). Markup per design/BUILD-CONTRACT.md.

   THE LANGUAGE
   Nothing square: the smallest radius is --r-sm (14px). Pills on
   every control, big radii on cards. Elevation is soft tinted
   shadow, never a hard offset. Hairlines (1px --c-line) where a
   border is needed, never a black keyline. Separation comes from
   surface: white cards on pale washes. Product shots are cut out
   on transparency and float over an organic colour blob.

   THE ONE RULE THAT SURVIVES
   Brand colour is a FILL, never text on white. Text on a fill is
   --c-on-fill. Only --c-cyan-ink and --c-pink-ink may be text.

   CONTENTS
   01 Reset + base          10 Chip, stamp, eyebrow
   02 Display type          11 Plate + product card
   03 Layout shells         12 Spec rows
   04 Skip link + focus     13 Catalog layout + filter rail
   05 Header capsule        14 Form controls
   06 Mobile nav            15 Configurator + quote summary
   07 Buttons               16 Sticky quote bar
   08 Plane                 17 Footer
   09 Rules, data, states   18 Motion + print
   ============================================================

   @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
   @sophia-mark sx1 df5ae605af70 8e2f8ec843d2 IysJwPmoQ1-YHkBqWMa-tWpiTgh4aDTaIAKl_sjFDtLHBEfkpljkIpRCNPGdCS8lfszPvJp4qo1v06i1TtGNDg
 */


/* ============================================================
   01 · RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-8));
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* the catalog sits on a pale wash so white cards can lift off it */
body:has(.cat) { background: var(--c-wash-grey); }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not([class]) { color: var(--c-cyan-ink); text-decoration: underline; }
a:not([class]):hover { color: var(--c-pink-ink); }
[hidden] { display: none !important; }
::selection { background: var(--c-cyan); color: var(--c-on-fill); }
hr { border: 0; height: 1px; background: var(--c-line); margin: 0; }
b, strong { font-weight: 600; }
small { font-size: var(--t-label); }
em { font-style: italic; }
p { max-width: 68ch; }
table { border-collapse: collapse; }


/* ============================================================
   02 · DISPLAY TYPE
   Rubik Bubbles has one weight and bubble letterforms that need
   air, so line-height stays 1.05-1.15 and it never drops below
   18px. Everything else is Rubik.
   ============================================================ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
  color: var(--c-text);
}
h1 { font-size: var(--t-display-xl); line-height: 1.05; }
h2 { font-size: var(--t-display-l); }
h3 { font-size: var(--t-display-m); line-height: 1.12; }
h4, h5, h6 {
  font-family: var(--font-ui);
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.3;
}
.display--xl { font-size: var(--t-display-xl); line-height: 1.05; }
.display--l  { font-size: var(--t-display-l); }
.display--m  { font-size: var(--t-display-m); }
.display--s  { font-size: var(--t-display-s); line-height: 1.15; }
.lede { font-size: var(--t-body-l); color: var(--c-text-2); line-height: 1.6; }


/* ============================================================
   03 · LAYOUT SHELLS
   ============================================================ */
.sect { padding: var(--s-12) 0; }
.sect__in {
  width: 100%;
  max-width: calc(var(--w-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sect--wide .sect__in,
.sect__in.sect--wide {
  max-width: calc(var(--w-wide) + var(--gutter) * 2);
}
@media (min-width: 768px)  { .sect { padding: var(--s-16) 0; } }
@media (min-width: 1280px) { .sect { padding: var(--s-24) 0; } }


/* ============================================================
   04 · SKIP LINK + FOCUS
   Never removed. Ink ring, with a cyan halo on filled controls.
   ============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.btn:focus-visible,
.chip:focus-visible,
.seg__btn:focus-visible,
.hdr__burger:focus-visible,
.hdr__link:focus-visible,
.rail__clear:focus-visible,
.sel:focus-visible,
.finp:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}
.srch__i:focus-visible { outline: 0; box-shadow: none; }
.srch:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}

.skip {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-6);
  background: var(--c-yellow);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease-pop);
}
.skip:focus { transform: translateY(0); }


/* ============================================================
   05 · HEADER — a floating rounded capsule
   The .hdr band is transparent and click-through; only the
   capsule (.hdr__in) is white, shadowed and interactive.
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--s-3) var(--gutter) 0;
  pointer-events: none;
}
.hdr__in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--w-shell);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 var(--s-3) 0 var(--s-5);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
}
.hdr__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.hdr__logo {
  width: auto;
  height: 46px;
  transition: transform .4s var(--ease-pop);
}
.hdr__brand:hover .hdr__logo { transform: rotate(-3deg) scale(1.05); }

.hdr__nav { display: none; }
.hdr__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-size: var(--t-body-s);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s var(--ease-soft);
}
.hdr__link:hover { background: var(--c-wash-cyan); }
.hdr__link.is-active,
.hdr__link[aria-current="page"] {
  background: var(--c-cyan);
  color: var(--c-on-fill);
  font-weight: 600;
}

.hdr__act { display: flex; align-items: center; gap: var(--s-2); }
.hdr__act .btn--ghost { display: none; }
.hdr__act .btn--primary { padding-inline: var(--s-5); }

.hdr__burger {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  background: var(--c-paper);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease-pop), box-shadow .3s var(--ease-out), background-color .2s;
}
.hdr__burger:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.hdr__burger:active { transform: translateY(0); }
.hdr__burger[aria-expanded="true"] { background: var(--c-yellow); }
.hdr__burger svg, .hdr__burger img { width: 22px; height: 22px; }

@media (max-width: 479px) {
  .hdr__act .btn--primary { display: none; }
  .hdr__in { padding-left: var(--s-4); }
  .hdr__logo { height: 40px; }
}
@media (min-width: 768px) {
  .hdr__act .btn--ghost { display: inline-flex; }
  .hdr__logo { height: 52px; }
}
@media (min-width: 1024px) {
  .hdr { padding-top: var(--s-4); }
  .hdr__in { padding: 0 var(--s-4) 0 var(--s-6); gap: var(--s-4); }
  .hdr__brand { margin-right: 0; }
  .hdr__nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    margin-left: auto;
    margin-right: var(--s-4);
  }
  .hdr__burger { display: none; }
}


/* ============================================================
   06 · MOBILE NAV — a floating rounded sheet under the capsule
   ============================================================ */
.mnav {
  position: fixed;
  top: calc(var(--header-h) + var(--s-3) + var(--s-3));
  left: var(--gutter);
  right: var(--gutter);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  max-height: calc(100vh - var(--header-h) - var(--s-8));
  max-height: calc(100dvh - var(--header-h) - var(--s-8));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-3);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  animation: mnav-in .35s var(--ease-pop) both;
}
@keyframes mnav-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.mnav a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  line-height: 1.15;
  text-decoration: none;
  transition: background-color .2s var(--ease-soft);
}
.mnav a:not(.btn)::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-top: 3px solid var(--c-text-mute);
  border-right: 3px solid var(--c-text-mute);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform .25s var(--ease-pop);
}
.mnav a:not(.btn):hover { background: var(--c-wash-cyan); }
.mnav a:not(.btn):hover::after { transform: translateX(4px) rotate(45deg); }
.mnav a.is-active,
.mnav a[aria-current="page"] { background: var(--c-cyan); color: var(--c-on-fill); }
.mnav a.is-active::after,
.mnav a[aria-current="page"]::after { border-color: var(--c-on-fill); }
.mnav .btn { width: 100%; margin-top: var(--s-2); }
@media (min-width: 1024px) { .mnav { display: none !important; } }


/* ============================================================
   07 · BUTTONS — pills, soft coloured lift
   Hover rises 2px with a bigger shadow; active settles back.
   ============================================================ */
.btn {
  --btn-sh: var(--sh-sm);
  --btn-sh-hover: var(--sh-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-6);
  background: var(--c-paper);
  color: var(--c-on-fill);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  box-shadow: var(--btn-sh);
  font-family: var(--font-ui);
  font-size: var(--t-body-s);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-pop), box-shadow .3s var(--ease-out), background-color .2s var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-sh-hover); }
.btn:active { transform: translateY(0); box-shadow: var(--btn-sh); transition-duration: .12s; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--lg { min-height: 48px; padding: 0 var(--s-8); font-size: var(--t-body); }

.btn--primary {
  --btn-sh: var(--sh-cyan);
  --btn-sh-hover: 0 18px 42px rgba(0,163,204,.34);
  background: var(--c-cyan);
}
.btn--secondary {
  --btn-sh: var(--sh-pink);
  --btn-sh-hover: 0 18px 42px rgba(214,0,90,.34);
  background: var(--c-pink);
}
.btn--signal {
  --btn-sh: var(--sh-md);
  --btn-sh-hover: var(--sh-lg);
  background: var(--c-yellow);
}
.btn--ghost {
  background: var(--c-paper);
  border-color: var(--c-line-2);
  color: var(--c-text);
}
.btn--ghost:hover { background: var(--c-wash-cyan); }

/* text-style button used inline in copy */
.lnkbtn {
  display: inline;
  min-height: 0;
  color: var(--c-cyan-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lnkbtn:hover { color: var(--c-pink-ink); }


/* ============================================================
   08 · PLANE — a plain responsive grid with a real gap.
   Every child is its own rounded white card.
   ============================================================ */
.plane {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
.plane > * {
  min-width: 0;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
@media (min-width: 768px) {
  .plane { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
}
@media (min-width: 1024px) {
  .plane { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ============================================================
   09 · RULES, DATA, VISUALLY HIDDEN, STATE MARKERS
   ============================================================ */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--c-line);
}
.u-data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* money is a yellow highlighter pill, never yellow text */
.is-money {
  display: inline-block;
  padding: 1px var(--s-3);
  background: var(--c-yellow);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
}
.is-money i { font-style: normal; font-weight: 400; opacity: .7; }
.is-ph {
  color: var(--c-text-mute);
  font-style: italic;
  font-weight: 400;
}


/* ============================================================
   10 · CHIP, STAMP, EYEBROW, TAG
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--s-3);
  background: var(--c-wash-grey);
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--t-data-xs);
  line-height: 1;
  white-space: nowrap;
}
button.chip, a.chip {
  min-height: 36px;
  padding-inline: var(--s-4);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease-pop), background-color .2s;
}
button.chip:hover, a.chip:hover { background: var(--c-wash-cyan); transform: translateY(-1px); }
.chip--off { opacity: .4; text-decoration: line-through; }

.stamp, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--s-3);
  background: var(--c-paper);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.stamp--stock, .tag--yellow { background: var(--c-yellow); }
.stamp--custom, .tag--pink  { background: var(--c-pink); }
.stamp--lead  { background: var(--c-orange); }
.tag--cyan    { background: var(--c-cyan); }

.eyebrow {
  margin: 0;
  color: var(--c-text-mute);
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}


/* ============================================================
   11 · PLATE + PRODUCT CARD
   .plate is a transparent stage. The shot is a cut-out WebP
   that floats over a lopsided colour cloud with a soft contact
   shadow. No box, no border, no fill.
   ============================================================ */
.plate {
  --blob: var(--c-cyan);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: var(--s-6);
  background: none;
  border: 0;
  overflow: visible;
  isolation: isolate;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  background: radial-gradient(circle at 38% 36%, var(--blob) 0%, transparent 72%);
  border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%;
  opacity: .22;
  transition: transform .8s var(--ease-pop), border-radius 1.2s var(--ease-soft);
}
.plate__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 22px 22px rgba(20,18,23,.18));
  transition: transform .5s var(--ease-pop);
}
.plate__sku {
  position: absolute;
  left: 50%;
  bottom: var(--s-2);
  z-index: 2;
  transform: translateX(-50%);
  padding: 2px var(--s-3);
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--c-text-2);
  border-radius: var(--r-pill);
  font-size: var(--t-micro);
  letter-spacing: .04em;
  white-space: nowrap;
}
.plate .stamp { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; }
@media (min-width: 768px) { .plate { aspect-ratio: 1 / 1; } }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease-pop), box-shadow .4s var(--ease-out);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pcard:hover .plate__img { transform: translateY(-4px) scale(1.04) rotate(-1.5deg); }
.pcard:hover .plate::before { transform: scale(1.06) rotate(6deg); border-radius: 46% 54% 58% 42% / 54% 44% 56% 46%; }
.pcard:active { transform: translateY(-1px); }

/* rotate the cloud colour and shape across the grid */
.pcard:nth-child(4n+2) .plate { --blob: var(--c-pink); }
.pcard:nth-child(4n+3) .plate { --blob: var(--c-yellow); }
.pcard:nth-child(4n+4) .plate { --blob: var(--c-orange); }
.pcard:nth-child(4n+2) .plate::before { border-radius: 52% 48% 40% 60% / 48% 56% 44% 52%; }
.pcard:nth-child(4n+3) .plate::before { border-radius: 44% 56% 52% 48% / 56% 42% 58% 44%; }

.pcard__b {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5) var(--s-4);
}
.pcard__t {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
}
.pcard__link {
  color: var(--c-text);
  text-decoration: none;
  background-image: linear-gradient(var(--c-cyan), var(--c-cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: background-size .35s var(--ease-out);
}
.pcard__link:hover { background-size: 100% 3px; }
/* the whole card is one click target without nesting links */
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.pcard__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pcard__f {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-5) var(--s-5);
}
.pcard__f .btn { flex: 1 1 auto; padding-inline: var(--s-4); }


/* ============================================================
   12 · SPEC ROWS — hairline-divided label / value pairs
   ============================================================ */
.spec { margin: 0; margin-top: auto; }
.spec__r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--c-line);
}
.spec__r:first-child { border-top: 0; }
.spec__k {
  color: var(--c-text-mute);
  font-size: var(--t-label);
  font-weight: 400;
}
.spec__v {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--t-data-s);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}
.spec__v i { color: var(--c-text-mute); font-size: var(--t-data-xs); font-style: normal; font-weight: 400; }
.spec__v.is-ph { font-weight: 400; }


/* ============================================================
   13 · CATALOG LAYOUT + FILTER RAIL
   Mobile: the rail is a rounded bottom sheet toggled by
   .cat__ftoggle. Desktop: a rounded sticky card.
   Open state accepted on several hooks so JS can pick one:
   .is-open on rail, .is-filters-open on .cat, [data-open="true"],
   body.filters-open, or the toggle's aria-expanded="true".
   ============================================================ */
.cat {
  display: block;
  width: 100%;
  max-width: calc(var(--w-shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding: var(--s-6) var(--gutter) var(--s-20);
}
.cat__main { min-width: 0; }

/* ---- toolbar ---- */
.cat__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.cat__bar .srch { flex: 1 1 100%; }
.cat__bar .sel  { flex: 1 1 0; min-width: 0; width: auto; }
.cat__bar .cat__ftoggle { flex: none; }

.cat__res {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-2);
  color: var(--c-text-mute);
  font-family: var(--font-data);
  font-size: var(--t-data-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.cat__grid { grid-template-columns: 1fr; gap: var(--s-5); }

.cat__empty {
  margin: var(--s-6) 0;
  padding: var(--s-12) var(--s-6);
  background: var(--c-wash-pink);
  border: 1px dashed var(--c-line-2);
  border-radius: var(--r-xl);
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  line-height: 1.2;
  text-align: center;
}

/* ---- rail: mobile bottom sheet ---- */
.cat__rail {
  position: fixed;
  left: var(--s-2); right: var(--s-2); bottom: var(--s-2);
  z-index: 140;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-6) var(--s-5) var(--s-6);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform .4s var(--ease-out), visibility 0s linear .4s;
}
/* grab handle */
.cat__rail::before {
  content: "";
  display: block;
  width: 44px; height: 5px;
  margin: calc(var(--s-3) * -1) auto var(--s-3);
  background: var(--c-line-2);
  border-radius: var(--r-pill);
}
.cat__rail.is-open,
.cat__rail[data-open="true"],
.cat.is-filters-open .cat__rail,
body.filters-open .cat__rail,
.cat__ftoggle[aria-expanded="true"] ~ .cat__rail {
  transform: none;
  visibility: visible;
  transition: transform .4s var(--ease-out), visibility 0s;
}
/* soft scrim behind the sheet */
.cat.is-filters-open::before,
body.filters-open .cat::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(20,18,23,.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.rail__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.rail__title {
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  line-height: 1.15;
}
.rail__count {
  display: inline-grid;
  place-items: center;
  min-width: 28px; height: 28px;
  padding: 0 var(--s-2);
  background: var(--c-cyan);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
  font-family: var(--font-data);
  font-size: var(--t-data-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.rail__clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 var(--s-4);
  background: transparent;
  color: var(--c-pink-ink);
  border-radius: var(--r-pill);
  font-size: var(--t-label);
  font-weight: 600;
  transition: background-color .2s var(--ease-soft);
}
.rail__clear:hover { background: var(--c-wash-pink); }

.rail__grp {
  padding: var(--s-4) 0 var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.rail__grp:last-child { border-bottom: 0; padding-bottom: 0; }
.rail__lbl {
  margin: 0 0 var(--s-3);
  color: var(--c-text-mute);
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.rail__grp .finp { display: inline-block; width: calc(50% - 6px); }
.rail__grp .finp + .finp { margin-left: var(--s-3); }

@media (min-width: 480px) {
  .cat__rail { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
}
@media (min-width: 768px) {
  .cat { padding-top: var(--s-10); }
  .cat__bar .srch { flex: 1 1 320px; }
  .cat__bar .sel  { flex: 0 0 240px; }
  .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .cat__rail { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}
@media (min-width: 1024px) {
  .cat {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }
  .cat__ftoggle { display: none; }
  .cat__rail {
    position: sticky;
    top: calc(var(--header-h) + var(--s-12));
    left: auto; right: auto; bottom: auto;
    z-index: 1;
    width: auto;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h) - var(--s-20));
    padding: var(--s-6) var(--s-5);
    box-shadow: var(--sh-md);
    transform: none;
    visibility: visible;
    transition: none;
  }
  .cat__rail::before { display: none; }
  .cat.is-filters-open::before, body.filters-open .cat::before { display: none; }
}
@media (min-width: 1280px) {
  .cat { grid-template-columns: 296px minmax(0, 1fr); gap: var(--s-10); }
  .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .cat { gap: var(--s-12); }
}


/* ============================================================
   14 · FORM CONTROLS
   Pills for search, select, segmented control; 18px radius for
   inputs. Hairline border, white fill, soft shadow on the pills.
   ============================================================ */

/* ---- search: magnifier drawn from two pseudo-elements ---- */
.srch {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-5) 0 calc(var(--s-5) + 26px);
  background: var(--c-paper);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s var(--ease-out);
}
.srch::before {
  content: "";
  position: absolute;
  left: var(--s-5); top: 50%;
  width: 13px; height: 13px;
  margin-top: -9px;
  border: 2px solid var(--c-text-mute);
  border-radius: 50%;
}
.srch::after {
  content: "";
  position: absolute;
  left: calc(var(--s-5) + 12px); top: 50%;
  width: 7px; height: 2px;
  margin-top: 6px;
  background: var(--c-text-mute);
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: 0 50%;
}
.srch:hover { box-shadow: var(--sh-md); }
.srch__i {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--c-text);
  font-size: var(--t-body);
  -webkit-appearance: none;
  appearance: none;
}
.srch__i::placeholder { color: var(--c-text-mute); opacity: 1; }
.srch__i::-webkit-search-cancel-button { cursor: pointer; }

/* ---- select: chevron built from two gradients, no data URI ---- */
.sel {
  min-height: 48px;
  padding: 0 calc(var(--s-5) + 22px) 0 var(--s-5);
  background-color: var(--c-paper);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-text) 50%),
    linear-gradient(135deg, var(--c-text) 50%, transparent 50%);
  background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-size: var(--t-body-s);
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .25s var(--ease-out);
}
.sel:hover { box-shadow: var(--sh-md); }
.sel option { color: var(--c-text); background: var(--c-paper); }

/* ---- number / text inputs ---- */
.finp {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--t-data-s);
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: textfield;
  transition: border-color .2s, box-shadow .25s var(--ease-out);
}
.finp:hover { border-color: var(--c-text-mute); }
.finp::placeholder { color: var(--c-text-mute); opacity: 1; font-weight: 400; }
.finp::-webkit-outer-spin-button,
.finp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- checkbox rows: 44px target, round check drawn in CSS ---- */
.fchk {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  margin: 0 calc(var(--s-3) * -1);
  padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .2s var(--ease-soft);
}
.fchk:hover { background: var(--c-wash-cyan); }
.fchk input,
.cfg label > input[type="radio"],
.cfg label > input[type="checkbox"] {
  display: grid;
  place-content: center;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  background: var(--c-paper);
  border: 1.5px solid var(--c-text-mute);
  border-radius: var(--r-pill);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .2s var(--ease-soft), border-color .2s, transform .3s var(--ease-pop);
}
.fchk input::after,
.cfg label > input[type="radio"]::after,
.cfg label > input[type="checkbox"]::after {
  content: "";
  width: 5px; height: 10px;
  margin-top: -2px;
  border-right: 2.5px solid var(--c-on-fill);
  border-bottom: 2.5px solid var(--c-on-fill);
  border-radius: 1px;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease-pop);
}
.fchk input:checked,
.cfg label > input:checked {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}
.fchk input:checked::after,
.cfg label > input:checked::after { transform: rotate(45deg) scale(1); }
.fchk input:active { transform: scale(.9); }
.fchk input:focus-visible,
.cfg label > input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}
.fchk__l { font-size: var(--t-body-s); line-height: 1.3; }
.fchk__n {
  min-width: 28px;
  padding: 2px var(--s-2);
  background: var(--c-wash-grey);
  color: var(--c-text-mute);
  border-radius: var(--r-pill);
  font-size: var(--t-data-xs);
  text-align: center;
}

/* ---- segmented control: a pill track with a cyan thumb ---- */
.seg {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1);
  background: var(--c-wash-grey);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
}
.seg__btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 var(--s-3);
  background: transparent;
  color: var(--c-text-2);
  border-radius: var(--r-pill);
  font-size: var(--t-body-s);
  font-weight: 500;
  transition: background-color .25s var(--ease-soft), box-shadow .25s var(--ease-out), color .2s;
}
.seg__btn:hover { background: var(--c-paper); color: var(--c-text); }
.seg__btn.is-on,
.seg__btn[aria-checked="true"] {
  background: var(--c-cyan);
  color: var(--c-on-fill);
  box-shadow: var(--sh-sm);
  font-weight: 600;
}


/* ============================================================
   15 · CONFIGURATOR + QUOTE SUMMARY
   ============================================================ */
.cfg {
  position: relative;
  padding: var(--s-6) var(--s-5);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
@media (min-width: 768px) { .cfg { padding: var(--s-10); } }

.cfg__bar {
  height: 12px;
  margin-bottom: var(--s-5);
  background: var(--c-wash-grey);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.cfg__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
  border-radius: var(--r-pill);
  transition: transform .5s var(--ease-soft);
}

.cfg__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
  color: var(--c-text-2);
  font-size: var(--t-label);
  font-weight: 500;
}
.cfg__step [data-step-n] {
  padding: 3px var(--s-3);
  background: var(--c-yellow);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.cfg__step [data-step-name] {
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-text);
}

.cfg__s { margin: 0; padding: 0; border: 0; min-width: 0; }
.cfg__s h2, .cfg__s h3, .cfg__h {
  margin-bottom: var(--s-3);
  font-size: var(--t-display-m);
}
.cfg__help { margin-bottom: var(--s-5); color: var(--c-text-2); font-size: var(--t-body-s); }
.cfg__s [tabindex="-1"]:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 6px;
  border-radius: var(--r-sm);
}
.cfg__s legend {
  padding: 0;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  line-height: 1.15;
}

/* Option tiles: any label wrapping a radio or checkbox in the form */
.cfg label:has(> input[type="radio"]),
.cfg label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  margin-bottom: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--c-paper);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color .2s var(--ease-soft), box-shadow .3s var(--ease-out), transform .3s var(--ease-pop), border-color .2s;
}
.cfg label:has(> input[type="radio"]):hover,
.cfg label:has(> input[type="checkbox"]):hover {
  background: var(--c-wash-cyan);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}
.cfg label:has(> input:checked),
.cfg label:has(> input:checked):hover {
  background: var(--c-wash-cyan);
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 1px var(--c-cyan), var(--sh-md);
}

.cfg__msg { margin-top: var(--s-3); color: var(--c-pink-ink); font-size: var(--t-label); font-weight: 500; }

.cfg__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
}
.cfg__nav .btn { flex: 1 1 0; }
@media (min-width: 768px) { .cfg__nav .btn { flex: 0 0 auto; min-width: 160px; } }

.cfg__done {
  padding: var(--s-8) var(--s-6);
  background: var(--c-wash-cyan);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.cfg__done h2, .cfg__done h3 { margin-bottom: var(--s-3); }

/* ---- quote summary ---- */
.qsum {
  margin-top: var(--s-8);
  overflow: hidden;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.qsum__l { margin: 0; padding: var(--s-2) 0; }
.qsum__r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
}
.qsum__r + .qsum__r { border-top: 1px solid var(--c-line); }
.qsum__r dt {
  color: var(--c-text-mute);
  font-size: var(--t-label);
  font-weight: 400;
}
.qsum__r dd { margin: 0; font-size: var(--t-data-m); text-align: right; }
.qsum__r--tot {
  margin: var(--s-2) var(--s-3) var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-yellow);
  border-top: 0 !important;
  border-radius: var(--r-md);
}
.qsum__r--tot dt { color: var(--c-on-fill); font-size: var(--t-label); font-weight: 600; }
.qsum__r--tot dd {
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  font-weight: 400;
  line-height: 1.1;
}
.qsum__min {
  margin: 0 var(--s-3) var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--c-orange);
  color: var(--c-on-fill);
  border-radius: var(--r-md);
  font-size: var(--t-label);
  font-weight: 600;
}
@media (min-width: 1024px) {
  .qsum {
    position: sticky;
    top: calc(var(--header-h) + var(--s-12));
    align-self: start;
    margin-top: 0;
  }
}


/* ============================================================
   16 · STICKY QUOTE BAR — floats, inset from the bottom
   ============================================================ */
.qbar {
  position: fixed;
  left: var(--s-3); right: var(--s-3);
  bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  max-width: var(--w-content);
  margin-inline: auto;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  animation: qbar-in .5s var(--ease-pop) both;
}
@keyframes qbar-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.qbar__spec {
  flex: 1 1 100%;
  order: 1;
  margin: 0;
  overflow: hidden;
  color: var(--c-text-2);
  font-size: var(--t-data-xs);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qbar__tot {
  order: 2;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 auto 0 0;
}
.qbar__tot [data-qbar-count] {
  display: inline-grid;
  place-items: center;
  min-width: 32px; height: 32px;
  padding: 0 var(--s-2);
  background: var(--c-yellow);
  color: var(--c-on-fill);
  border-radius: var(--r-pill);
  font-size: var(--t-data-m);
  font-weight: 600;
}
.qbar .btn { order: 3; }
@media (min-width: 768px) {
  .qbar { flex-wrap: nowrap; border-radius: var(--r-pill); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-8); }
  .qbar__spec { flex: 1; order: 0; }
  .qbar__tot  { margin: 0; }
}
/* keep page content clear of the bar */
body:has(.qbar:not([hidden])) { padding-bottom: 112px; }


/* ============================================================
   17 · FOOTER — a deep ink panel with rounded shoulders
   Text on ink is paper. Layout of the children lives with the
   page styles; this is surface and type only.
   ============================================================ */
.ftr {
  position: relative;
  margin-top: var(--s-20);
  padding: var(--s-16) var(--gutter) var(--s-10);
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.ftr > * { max-width: var(--w-shell); margin-inline: auto; }
.ftr h2, .ftr h3, .ftr h4 {
  margin-bottom: var(--s-3);
  color: var(--c-paper);
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  font-weight: 400;
  line-height: 1.15;
}
.ftr p { color: rgba(255,255,255,.72); font-size: var(--t-body-s); }
.ftr a { color: var(--c-paper); text-decoration: none; }
.ftr a:hover { color: var(--c-cyan); text-decoration: underline; }
.ftr ul { list-style: none; }
.ftr li a { display: inline-flex; align-items: center; min-height: 44px; }
.ftr :focus-visible { outline-color: var(--c-paper); }
.ftr hr, .ftr .rule { background: rgba(255,255,255,.14); }
@media (min-width: 768px) { .ftr { border-radius: 48px 48px 0 0; } }


/* ============================================================
   18 · MOTION + PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  /* no travel, no spring. Opacity and colour changes stay. */
  .btn, .btn:hover, .btn:active,
  .hdr__burger, .hdr__burger:hover, .hdr__burger:active,
  .hdr__brand:hover .hdr__logo,
  .pcard, .pcard:hover, .pcard:active,
  .pcard:hover .plate__img,
  .pcard:hover .plate::before,
  .plate__img, .plate::before,
  button.chip:hover, a.chip:hover,
  .fchk input, .fchk input:active,
  .cfg label:has(> input), .cfg label:has(> input):hover,
  .mnav a:not(.btn)::after, .mnav a:not(.btn):hover::after {
    transform: none !important;
    transition-property: opacity, background-color, color, border-color !important;
  }
  .fchk input::after,
  .cfg label > input::after { transition: none; }
  .mnav, .qbar { animation: none; }
  .skip { transform: none; opacity: 0; transition: opacity .01s; }
  .skip:focus { opacity: 1; }
  .cfg__fill, .pcard__link { transition: none; }
  .cat__rail { transition: opacity .01s linear, visibility 0s !important; transform: none; opacity: 0; }
  .cat__rail.is-open, .cat__rail[data-open="true"], .cat.is-filters-open .cat__rail,
  body.filters-open .cat__rail, .cat__ftoggle[aria-expanded="true"] ~ .cat__rail { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .cat__rail { opacity: 1; }
}

@media print {
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html, body, body:has(.cat) { background: #fff; color: #000; }
  body { padding-bottom: 0 !important; overflow: visible; font-size: 11pt; }
  .hdr, .mnav, .skip, .qbar, .cat__rail, .cat__bar, .cat__ftoggle, .cfg__nav { display: none !important; }
  .sect { padding-block: 16pt; }
  .cat { display: block; padding: 0; }
  .cat__grid { grid-template-columns: repeat(2, 1fr); gap: 12pt; }
  .pcard { break-inside: avoid; border: 1pt solid #999; }
  .pcard__f, .btn { display: none !important; }
  .plate::before { display: none; }
  .plate__img { mix-blend-mode: normal; }
  a { color: #000; text-decoration: underline; background: none !important; }
  .ftr { background: #fff; color: #000; margin-top: 16pt; padding: 12pt 0 0; border-top: 1pt solid #000; border-radius: 0; }
  .ftr p, .ftr a, .ftr h2, .ftr h3, .ftr h4 { color: #000; }
  .qsum { position: static; }
  .is-money { background: none; padding: 0; }
}
