/* ==========================================================================
   Haute Bot Market · shared stylesheet · Collection 01
   One file for every page. Tokens first, then base, then components.
   Port note: in Astro, keep this as src/styles/hbm.css and import it once
   in the base layout. Class names match the component names in tools/lib.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, latin subset, plus № and → added) ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/public-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/public-sans-700.woff2") format("woff2"); }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;

  /* Color. Text pairs measured on white unless noted. */
  --paper: #ffffff;          /* ground */
  --ink: #111111;            /* text, rules, primary action · 18.9:1 */
  --ink-2: #555555;          /* secondary text · 7.5:1 (6.9:1 on pattern, 6.5:1 on surface) */
  --surface: #f0f0f0;        /* backstage grey band */
  --pattern: #f5f6f2;        /* product page ground (pattern paper) */
  --grid: #e3e5e0;           /* grid-paper lines, decoration only */
  --rule-soft: #dddddd;      /* soft dividers, decoration only (1.4:1) */
  --control: #767676;        /* chip and control edges on white · 4.5:1 */
  --disabled: #6b6b6b;       /* disabled text */
  --on-dark: #ffffff;        /* text on ink · 18.9:1 */
  --on-dark-2: #c9c9c9;      /* secondary text on ink · 11.4:1 */
  --rule-dark: #444444;      /* dividers on ink, decoration only */
  --error-on-dark: #ff6b55;  /* error text on ink · 6.7:1 */

  --lane-marketing: #d63a24;     /* white on it 4.7:1 */
  --lane-ecommerce: #2a52be;     /* white on it 6.9:1 */
  --lane-merchandising: #0f7b5f; /* white on it 5.2:1 */
  --lane-design: #8f6400;        /* white on it 5.3:1 */

  --red: #d63a24;    /* YOUR CALL, Free, errors · text on white only (4.7:1) */
  --green: #0f7b5f;  /* checks, success · 5.2:1 */
  --focus: #111111;  /* focus ring on light grounds */

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, "Helvetica Neue", sans-serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(52px, 7.4vw, 124px);
  --fs-1: clamp(44px, 5.2vw, 80px);
  --fs-2: clamp(34px, 4vw, 56px);
  --fs-3: clamp(22px, 2vw, 26px);
  --fs-lede: clamp(17px, 1.4vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;
  --lh-body: 1.55;
  --track-label: .12em;

  /* Space and layout */
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --measure: 68ch;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s7: 32px; --s8: 40px; --s9: 56px; --s10: 88px;
  --section: clamp(48px, 6vw, 88px);
  --tap: 44px;

  /* Lines: square corners everywhere, no radius token on purpose */
  --rule: 2px solid var(--ink);
  --box: 1px solid var(--ink);
  --soft: 1px solid var(--rule-soft);

  /* Motion (removed under reduced motion) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .18s;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark { --focus: #ffffff; color: var(--on-dark); }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
code, kbd { font-family: var(--font-text); }
s { text-decoration-thickness: 2px; }

/* ---------- 4. Utilities ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--grey { background: var(--surface); }
.section--pattern { background: var(--pattern); }
.section--dark { background: var(--ink); color: var(--on-dark); --focus: #ffffff; }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.h-hero { font: 400 var(--fs-hero)/.92 var(--font-display); text-transform: uppercase; }
.h1 { font: 400 var(--fs-1)/.95 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; }
.h2 { font: 400 var(--fs-2)/.95 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; }
.h3 { font: 400 var(--fs-3)/1.05 var(--font-display); text-transform: uppercase; }
.eyebrow { font: 700 13px/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; }
.label { font: 700 var(--fs-label)/1.35 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.on-dark .label, .section--dark .label { color: var(--on-dark-2); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.section--dark .lede { color: var(--on-dark-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.price { font-family: var(--font-display); font-weight: 400; line-height: 1; text-transform: uppercase; }
.price--free { color: var(--red); }
.ph { background: var(--surface); padding: 0 .2em; outline: 1px dashed var(--control); outline-offset: -1px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3) var(--s6); }
.text-link { width: fit-content; font: 700 14px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding-block: 12px; display: inline-flex; gap: 8px; align-items: flex-end; min-height: var(--tap); border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.text-link:hover { border-bottom-width: 4px; padding-bottom: 4px; }
.link-btn { background: none; border: 0; padding: 0 2px; min-height: var(--tap); font: 700 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .25em; }
.link-btn:hover { text-decoration-thickness: 2px; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 300; background: var(--ink); color: var(--on-dark); padding: 12px 18px; font-weight: 700; text-decoration: none; --focus: #ffffff; }
.skip-link:focus { top: 12px; }
.lane-dot { display: inline-block; width: 12px; height: 12px; flex: none; }
.lane-strip { display: flex; height: 8px; }
.lane-strip span { flex: 1; }

/* ---------- 5. Header, navigation, mobile menu ---------- */
.site-header { border-bottom: var(--rule); background: var(--paper); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; min-height: 76px; padding-block: 12px; }
.logo { font: 400 clamp(22px, 2.4vw, 28px)/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 10px; display: inline-flex; align-items: center; min-height: var(--tap); }
.nav { display: none; }
.nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font: 600 14px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.nav__link { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover { border-bottom-color: var(--ink); }
.nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__cta { margin-left: 6px; }
html:not(.js) .nav, .no-dialog .nav { display: block; }
html:not(.js) .menu-btn, .no-dialog .menu-btn { display: none !important; }
main:focus { outline: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); font: 700 13px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; }
.menu-btn__bars { display: grid; gap: 4px; width: 18px; }
.menu-btn__bars span { display: block; height: 2px; background: currentColor; }
@media (min-width: 900px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}
.menu { margin: 0; padding: 0; border: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--paper); color: var(--ink); }
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: rgba(17, 17, 17, .4); }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px var(--gutter); border-bottom: var(--rule); }
.menu__list { display: flex; flex-direction: column; padding: var(--s6) var(--gutter); gap: 2px; }
.menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font: 400 clamp(36px, 10vw, 52px)/1 var(--font-display); text-transform: uppercase; text-decoration: none; border-bottom: var(--soft); }
.menu__link[aria-current="page"]::after { content: ""; width: 14px; height: 14px; background: var(--ink); }
.menu__foot { margin-top: auto; padding: var(--s6) var(--gutter) max(var(--s6), env(safe-area-inset-bottom)); display: grid; gap: var(--s4); }
.menu__lanes { display: flex; height: 10px; }
.menu__lanes span { flex: 1; }

/* ---------- 6. Buttons (default, hover, focus, active, loading, disabled) ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-dark); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 2px solid var(--btn-bd); border-radius: 0;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; text-align: center;
  font: 700 14px/1.1 var(--font-text); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn.is-hover { --btn-bg: var(--paper); --btn-fg: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--outline:hover, .btn--outline.is-hover { --btn-bg: var(--ink); --btn-fg: var(--on-dark); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--light:hover, .btn--light.is-hover { --btn-bg: var(--ink); --btn-fg: var(--on-dark); box-shadow: 4px 4px 0 var(--paper); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: var(--paper); }
.btn--outline-light:hover, .btn--outline-light.is-hover { --btn-bg: var(--paper); --btn-fg: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.btn--sm { min-height: var(--tap); padding: 0 16px; font-size: 12.5px; gap: 8px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled {
  --btn-bg: var(--paper); --btn-fg: var(--disabled); --btn-bd: #b3b3b3;
  border-style: dashed; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn.is-loading { color: transparent; cursor: progress; }
.btn.is-loading:hover { box-shadow: none; transform: none; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid var(--btn-fg); border-top-color: transparent; animation: hb-spin .7s linear infinite;
}
@keyframes hb-spin { to { transform: rotate(360deg); } }
.btn__arrow { font-weight: 400; }

/* ---------- 7. Status badges and tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); white-space: nowrap;
  font: 700 12px/1.25 var(--font-text); letter-spacing: .08em; text-transform: uppercase;
}
.badge svg { width: 11px; height: 11px; flex: none; }
.badge--tested { background: var(--ink); color: var(--on-dark); }
.badge--sm { padding: 1px 7px; font-size: 11.5px; gap: 6px; }
.badge--sm svg { width: 10px; height: 10px; }
.tag { display: inline-block; padding: 3px 8px; font: 700 11.5px/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tag--call { background: var(--red); color: #ffffff; }
.tag--grey { background: var(--surface); color: var(--ink); white-space: normal; }
.tag--ink { background: var(--ink); color: var(--on-dark); }
.tag--line { border: 2px solid var(--ink); padding: 1px 7px; }
.flag { color: var(--red); background: var(--paper); padding: 0 2px; font-weight: 700; letter-spacing: .02em; }

/* ---------- 8. Product card, grid and cover art ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: var(--s5); }
.grid > li { display: flex; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; width: 100%; background: var(--paper); border: var(--box); color: var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover, .card.is-hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card__meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: var(--soft); font: 700 12px/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card__meta .price-tag { color: var(--ink); }
.card__meta .price-tag--free { color: var(--red); }
.card__meta { order: -2; }
.card__art { display: block; background: var(--paper); order: -1; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 18px; border-top: var(--box); flex: 1; }
.card__title { font: 700 18px/1.25 var(--font-text); }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible), .card.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
@supports not selector(:has(*)) { .card__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; } }
.card__tagline { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.card__plats { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.plat-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13.5px; line-height: 1.4; }
.plat-line .badge { align-self: center; }
.plat-line__names { font-weight: 600; }
.plat-line__note { color: var(--ink-2); }
.cover { display: block; width: 100%; height: auto; }
.cover text { font-family: var(--font-display); }
.cover .cover__label { font-family: var(--font-text); font-weight: 700; }
.frame { border: var(--box); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; padding: clamp(16px, 3vw, 28px); }
.frame .cover { border: var(--box); }

@media (max-width: 599px) {
  .grid--rows { gap: 12px; }
  .grid--rows .card { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: start; }
  .grid--rows .card__meta { grid-column: 1 / -1; grid-row: 1; }
  .grid--rows .card__art { grid-column: 1; grid-row: 2; border-right: var(--box); align-self: stretch; }
  .grid--rows .card__body { grid-column: 2; grid-row: 2; border-top: 0; padding: 12px 12px 14px; gap: 8px; }
  .grid--rows .card__title { font-size: 16.5px; }
  .grid--rows .card__tagline { font-size: 14px; }
  .grid--rows .plat-line { font-size: 12.5px; }
  .grid--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .grid--scroll > li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- 9. Home sections ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); position: relative; }
.hero__grid { display: grid; gap: var(--s8) var(--s9); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__title { font: 400 var(--fs-hero)/.92 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__line > span { display: block; }
.hero__chips { display: flex; gap: 6px; }
.hero__chips span { width: 44px; height: 10px; }
.hero__fade { display: flex; flex-direction: column; gap: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 13px/1.5 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero__meta li:not(:last-child)::after { content: "·"; margin-left: 14px; }
.hero__panel { display: flex; justify-content: center; min-width: 0; }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--control); background: var(--paper); font: 700 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.replay:hover { border-color: var(--ink); }
.replay svg { width: 12px; height: 12px; }
html:not(.js) .replay { display: none; }

.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.lane-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 168px; padding: 20px; color: #ffffff; text-decoration: none; position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.lane-tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.lane-tile__name { font: 400 clamp(30px, 3vw, 38px)/1 var(--font-display); text-transform: uppercase; }
.lane-tile__foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.lane-tile__count { white-space: nowrap; font-weight: 700; }

.feature { display: grid; gap: var(--s8) var(--s9); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.feature__art { max-width: 520px; width: 100%; }
.feature__body { display: flex; flex-direction: column; gap: var(--s5); }
.feature__quote { font: 600 clamp(22px, 2.4vw, 32px)/1.25 var(--font-text); letter-spacing: -.005em; max-width: 30ch; }
.feature__title { font: 400 clamp(32px, 3.4vw, 48px)/1 var(--font-display); text-transform: uppercase; }
.feature__outcome { max-width: 58ch; }
.feature__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.feature__price { font: 400 44px/1 var(--font-display); text-transform: uppercase; }

.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: var(--rule); }
.steps4 li { padding: var(--s5) var(--s5) var(--s6) 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.steps4__n { font: 400 44px/1 var(--font-display); }
.steps4__name { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.steps4 p { color: var(--ink-2); max-width: 34ch; }

.plat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border-top: var(--rule); }
.plat-band li { padding: var(--s5) var(--s4) var(--s5) 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.plat-band__name { font: 400 26px/1.05 var(--font-display); text-transform: uppercase; }
.plat-band__count { font-weight: 700; }
.plat-band__split { font-size: 14px; color: var(--ink-2); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 var(--s6); border-top: var(--box); }
.legend > div { padding: var(--s4) 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.legend__note { font-size: 13.5px; color: var(--ink-2); }
.compat { display: grid; gap: var(--s7) var(--s9); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .compat { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: var(--rule); }
.standards li { padding: var(--s5) var(--s5) var(--s6) 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.standards__name { font: 400 24px/1.05 var(--font-display); text-transform: uppercase; }
.standards p { color: var(--ink-2); }
@media (min-width: 600px) { .standards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 2px solid var(--paper); }
.sets li { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 24px 0; border-bottom: 1px solid var(--rule-dark); }
.sets__name { font: 400 30px/1 var(--font-display); text-transform: uppercase; }
.sets__pitch { color: var(--on-dark-2); font-size: 15px; }
.sets__pieces { font: 700 12.5px/1.4 var(--font-text); letter-spacing: .1em; color: var(--on-dark-2); }
.sets__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; }
.sets__price .price { font-size: 40px; }
.sets__sum { color: var(--on-dark-2); font-size: 14px; }

.newsletter { display: grid; gap: var(--s6) var(--s9); align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- 10. Forms, newsletter, search ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.input, .select {
  min-height: 52px; width: 100%; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font-size: 16px;
}
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 240px; }
.form-msg { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; min-height: 1.45em; }
.form-msg--error { color: var(--red); font-weight: 600; }
.form-msg--ok { color: var(--ink); font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
:is(.on-dark, .section--dark, .site-footer, .cx-dark) .input { border-color: var(--paper); }
:is(.on-dark, .section--dark, .site-footer, .cx-dark) .form-msg--error { color: var(--error-on-dark); }
:is(.on-dark, .section--dark, .site-footer, .cx-dark) .form-msg--ok { color: var(--on-dark); }
:is(.on-dark, .section--dark, .site-footer, .cx-dark) .input[aria-invalid="true"] { border-color: var(--error-on-dark); box-shadow: inset 0 0 0 1px var(--error-on-dark); }
:is(.on-dark, .section--dark, .site-footer, .cx-dark) .field__label { color: var(--on-dark); }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); --focus: #ffffff; }
.site-footer a { color: var(--on-dark); }
.footer__top { display: grid; gap: var(--s8) var(--s9); padding-block: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.footer__brand { font: 400 clamp(40px, 5vw, 72px)/.92 var(--font-display); text-transform: uppercase; }
.footer__tag { color: var(--on-dark-2); margin-top: 12px; max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s6); }
.footer__col h2 { font: 700 12px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 8px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; font-weight: 600; }
.footer__col a:hover { text-decoration: underline; }
.footer__news { border-top: 1px solid var(--rule-dark); padding-block: var(--s7); display: grid; gap: var(--s5) var(--s9); align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer__news { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer__news-title { font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--font-display); text-transform: uppercase; }
.footer__bottom { border-top: 1px solid var(--rule-dark); padding-block: var(--s5) max(var(--s6), env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13.5px; color: var(--on-dark-2); }

/* ---------- 12. Page headers and prose ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); border-bottom: var(--rule); }
.page-head__inner { display: flex; flex-direction: column; gap: var(--s4); }
.page-head .lede { margin-top: 4px; }
.prose { max-width: var(--measure); font-size: 17px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 400 clamp(28px, 3vw, 36px)/1.05 var(--font-display); text-transform: uppercase; margin-top: 1.8em; padding-top: .6em; border-top: var(--rule); scroll-margin-top: 16px; }
.prose h3 { font: 700 19px/1.3 var(--font-text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { font-weight: 600; }

/* ---------- 13. Notices and toasts ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--ink); background: var(--paper); }
.notice__tag { flex: none; }
.notice p { font-size: 15px; line-height: 1.5; }
.notice--draft { border-color: var(--red); }
.notice--info { background: var(--pattern); }
.toast-region { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 250; width: min(560px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--ink); color: var(--on-dark); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(17,17,17,.18); --focus: #ffffff; font-size: 15px; line-height: 1.45; }
.toast__body { flex: 1; }
.toast__title { font-weight: 700; display: block; }
.toast__close { flex: none; min-width: var(--tap); min-height: var(--tap); margin: -10px -8px -10px 0; background: none; border: 0; color: inherit; display: grid; place-items: center; }
.toast__close svg { width: 14px; height: 14px; }
.toast--static { position: static; transform: none; width: auto; }
.has-buybar .toast-region { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- 14. Catalog ---------- */
.catalog { display: grid; gap: var(--s7); padding-block: var(--s7) var(--section); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .catalog { grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: var(--s8); } }
.filters-panel { display: none; }
/* Sticky, but never taller than the screen: the panel scrolls on its own so every filter (and its focus ring) stays reachable. */
@media (min-width: 1000px) { .filters-panel { display: block; position: sticky; top: 16px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 8px 10px 16px 8px; margin: -8px -10px 0 -8px; scroll-padding-block: 16px; } }
.filters { display: flex; flex-direction: column; gap: var(--s5); }
/* When focus lands near the edge of the scrolling panel (or sheet), scroll it fully into view, ring included. */
.filters input, .filters button { scroll-margin-block: 24px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; border-bottom: var(--rule); padding-bottom: 8px; }
.filters__title { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { padding: 0; margin-bottom: 4px; font: 700 12px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; font-size: 15px; border-bottom: var(--soft); }
.check { position: relative; }
.check input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check input:disabled { cursor: not-allowed; }
.check__box { flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.check__box::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--on-dark); border-bottom: 2.5px solid var(--on-dark); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.check input:checked + .check__box { background: var(--ink); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.check__label { flex: 1; display: flex; align-items: center; gap: 8px; }
.check__count { font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 2ch; text-align: right; }
.check.is-disabled, .check:has(input:disabled) { cursor: not-allowed; color: var(--disabled); }
.check input:disabled + .check__box { border-color: #b3b3b3; border-style: dashed; }
.check.is-checked .check__box { background: var(--ink); }
.check.is-checked .check__box::after { opacity: 1; }
.check.is-focus .check__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); }
.seg label { position: relative; display: grid; place-items: center; min-height: var(--tap); cursor: pointer; font: 700 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 0 -1px -1px 0; }
.seg input { position: absolute; opacity: 0; inset: 0; z-index: 1; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { position: relative; pointer-events: none; }
.seg label:has(input:checked), .seg label.is-checked { background: var(--ink); color: var(--on-dark); }
.seg label:has(input:focus-visible), .seg label.is-focus { outline: 3px solid var(--focus); outline-offset: 2px; z-index: 1; }
.toolbar { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.toolbar > .field:first-child { grid-column: 1 / -1; }
.toolbar .filters-btn { grid-row: 2; grid-column: 1; min-height: 52px; }
@media (min-width: 700px) { .toolbar { grid-template-columns: minmax(0, 1fr) 220px auto; } .toolbar > .field:first-child { grid-column: auto; } .toolbar .filters-btn { grid-row: auto; grid-column: auto; } }
.toolbar__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.toolbar__count { font: 700 14px/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.toolbar__sort { display: flex; flex-direction: column; gap: 6px; }
.toolbar__sort .select { font-size: 15px; }
.filters-btn { display: inline-flex; }
@media (min-width: 1000px) { .filters-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 6px 0 12px; border: 2px solid var(--ink); background: var(--paper); font: 700 12.5px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.chip-btn svg { width: 10px; height: 10px; }
.chip-btn:hover { background: var(--ink); color: var(--on-dark); }
.results-head { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s5); }
.empty { border: 2px dashed var(--ink); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); background: var(--paper); }
.empty__title { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--font-display); text-transform: uppercase; }
.more { display: flex; justify-content: center; margin-top: var(--s7); }
.sheet { margin: auto 0 0; padding: 0; border: 0; border-top: 2px solid var(--ink); width: 100%; max-width: none; max-height: 86vh; max-height: 86dvh; background: var(--paper); color: var(--ink); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(17, 17, 17, .35); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter); border-bottom: var(--soft); }
.sheet__body { overflow: auto; padding: var(--s4) var(--gutter) var(--s6); flex: 1; }
.sheet__foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); border-top: var(--rule); background: var(--paper); }
.sheet .filters__head { display: none; }
.close-btn { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); background: none; border: 0; }
.close-btn svg { width: 18px; height: 18px; }

/* ---------- 15. Product page ---------- */
.pdp-top { background: var(--pattern); padding-block: var(--s5) clamp(32px, 4vw, 56px); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 700 12.5px/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.crumbs li { display: flex; align-items: center; }
.crumbs__sep { margin: 0 10px; color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.pdp-hero { display: grid; gap: var(--s7) var(--s8); align-items: start; margin-top: var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pdp-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.pdp-art { display: flex; flex-direction: column; gap: 8px; }
.pdp-art figcaption { font: 700 12px/1.4 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pdp-intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pdp-title { font: 400 var(--fs-1)/.95 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; }
.pdp-tagline { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; color: var(--ink-2); }
@media (max-width: 899px) { .pdp-intro { order: -1; } .pdp-art { max-width: 420px; } }
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 20px; background: var(--paper); border: var(--box); }
.buybox__price { display: flex; flex-direction: column; gap: 4px; }
.buybox__price .price { font-size: 46px; }
.buybox__license { font-size: 13.5px; color: var(--ink-2); }
.buybox__action { flex: 1 1 220px; display: flex; }
.buybox__action .btn { flex: 1; }
.buybox__note, .buybox__sets, .buybox__member { flex-basis: 100%; font-size: 14px; line-height: 1.5; }
.buybox__note { color: var(--ink-2); }
.buybox__sets { padding-top: 12px; border-top: var(--soft); }
.buybox__sets a { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; border-top: var(--box); }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { padding: 12px 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 3px; }
.facts dt { font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { font-size: 15px; font-weight: 600; line-height: 1.35; }
.facts-note { font-size: 13px; color: var(--ink-2); margin-top: -8px; }
.plat-summary { display: grid; gap: 8px; }

.tabs { position: relative; z-index: 15; background: var(--paper); border-top: var(--rule); border-bottom: var(--box); }
@media (min-width: 900px) { .tabs { position: sticky; top: 0; } html.pdp-page { scroll-padding-top: 72px; } }
.tabs__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; }
.tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--s5)); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--s5); white-space: nowrap; font: 700 13px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.tabs__link:hover { text-decoration: underline; text-underline-offset: .3em; }
.tabs__link[aria-current="true"], .tabs__link.is-active { background: var(--ink); color: var(--on-dark); }
.tabs__link:focus-visible { outline-offset: -3px; }
.tabs__link[aria-current="true"]:focus-visible { outline-color: var(--paper); }
.tabs__buy { display: none; align-items: center; gap: 14px; padding-block: 4px; }
@media (min-width: 900px) { .tabs__buy.is-on { display: flex; } }
.tabs__buy-name { font-weight: 700; font-size: 14px; white-space: nowrap; }
.tabs__buy-title { display: none; }
@media (min-width: 1200px) { .tabs__buy-title { display: inline; } }
.tabs__buy .price { font-size: 24px; }

.pdp-body { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); padding-block: clamp(28px, 4vw, 48px) var(--section); background: var(--pattern); }
.pdp-section { scroll-margin-top: 72px; display: flex; flex-direction: column; gap: var(--s5); }
.pdp-section__title { font: 400 var(--fs-3)/1.05 var(--font-display); text-transform: uppercase; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; border-top: var(--box); background: var(--paper); padding: 0 20px; }
@media (min-width: 760px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec > div { padding: 18px 0; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.spec dt { font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.spec dd { font-size: 15.5px; line-height: 1.55; }
.spec__quote { font-size: 18px; font-weight: 600; line-height: 1.45; }
.ticks { display: grid; gap: 6px; }
.ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 8px; height: 8px; background: var(--ink); transform: translateY(-2px); }
.panels { display: grid; gap: var(--s6) var(--s8); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .panels { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.panel { background: var(--paper); border: var(--box); display: flex; flex-direction: column; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: var(--box); }
.panel__title { font: 400 var(--fs-3)/1.05 var(--font-display); text-transform: uppercase; }
.panel__foot { padding: 12px 20px 16px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.panel-col { display: flex; flex-direction: column; gap: var(--s6); }
.runsteps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: var(--soft); align-items: baseline; }
.runsteps__n { font: 400 24px/1 var(--font-display); }
.runsteps__t { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 15.5px; line-height: 1.5; }
.runsteps li.is-call { background: linear-gradient(90deg, var(--red) 0 4px, transparent 4px); }
.prompts li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: var(--soft); }
.prompt__text { font-size: 15px; line-height: 1.45; }
.prompt__text .ph { font-style: normal; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--ink); background: var(--paper); font: 700 12px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.copy-btn:hover { background: var(--ink); color: var(--on-dark); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.is-done { background: var(--ink); color: var(--on-dark); }
.sample { background: var(--paper); border: 2px dashed var(--ink-2); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.sample__label { align-self: flex-start; white-space: normal; }
.sample__title { font: 700 16px/1.3 var(--font-text); }
.sample__text { font-size: 15px; line-height: 1.6; padding-left: 14px; border-left: 3px solid var(--rule-soft); }
.sample__note { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ptable-wrap { background: var(--paper); border: var(--box); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 10px 20px; border-bottom: var(--box); }
.ptable td { padding: 12px 20px; border-bottom: var(--soft); vertical-align: top; }
.ptable td:first-child { font-weight: 700; }
.ptable__detail { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.ptable__none { color: var(--ink-2); }
@media (max-width: 639px) {
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: var(--soft); }
  .ptable td { display: block; padding: 0; border: 0; }
  .ptable td:nth-child(2) { justify-self: end; }
  .ptable td:nth-child(3) { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
}
.tools-req { background: var(--paper); border: var(--box); padding: 16px 20px; display: grid; gap: 8px; }
.gov { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 28px; padding: 0 20px; }
.gov > div { padding: 14px 0 16px; border-bottom: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.gov dt { font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.gov dt::before { content: ""; width: 8px; height: 8px; background: var(--ink); flex: none; }
.gov dd { font-size: 15px; line-height: 1.5; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pair { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; background: var(--paper); border: var(--box); text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.pair:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.pair__n { font: 400 42px/1 var(--font-display); border-right: 6px solid var(--lane, var(--ink)); padding-right: 8px; }
.pair__title { font-weight: 700; display: block; line-height: 1.3; }
.pair__why { font-size: 13.5px; color: var(--ink-2); display: block; margin-top: 2px; }
.pair__price { font: 400 22px/1 var(--font-display); text-transform: uppercase; }
.pair__price--free { color: var(--red); }
.minisets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.miniset { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--ink); color: var(--on-dark); text-decoration: none; --focus: var(--ink); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.miniset:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--lane-ecommerce); }
.miniset__name { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.miniset__meta { font-size: 14px; color: var(--on-dark-2); }
.miniset__price { display: flex; gap: 10px; align-items: baseline; }
.miniset__price .price { font-size: 30px; }
.acc { border-top: var(--box); background: var(--paper); }
.acc details { border-bottom: var(--soft); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 20px; cursor: pointer; font: 700 16.5px/1.4 var(--font-text); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--pattern); }
.acc summary:focus-visible { outline-offset: -3px; }
.acc__icon { flex: none; width: 16px; height: 16px; position: relative; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc details[open] .acc__icon::after { transform: rotate(0deg); }
.acc__body { padding: 0 20px 20px; max-width: 72ch; font-size: 15.5px; line-height: 1.6; color: #2b2b2b; }
.acc__body > * + * { margin-top: .8em; }
.pdp-meta { font: 700 12px/1.5 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-top: var(--box); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--on-dark); --focus: #ffffff; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s; }
.buybar.is-on { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.buybar__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.buybar__n { font: 400 22px/1 var(--font-display); }
.buybar__title { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.buybar__buy { display: flex; align-items: center; gap: 14px; flex: none; }
.buybar__buy .price { font-size: 24px; }
@media (min-width: 900px) { .buybar { display: none; } }
html.has-buybar { scroll-padding-bottom: 96px; }
/* Keep the end of the footer clear of the phone buy bar (10px top padding + 44px button + bottom padding). */
@media (max-width: 899px) { html.has-buybar .site-footer { padding-bottom: calc(54px + max(10px, env(safe-area-inset-bottom))); } }
.buybar--demo { position: static; transform: none; visibility: visible; display: flex; }

/* ---------- 16. Bundles, pricing and membership ---------- */
.bundle { display: grid; gap: 0; background: var(--paper); border: var(--box); scroll-margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bundle { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.bundle__lanes { grid-column: 1 / -1; display: flex; height: 8px; }
.bundle__lanes span { flex: 1; }
.bundle__main { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; border-bottom: var(--soft); }
@media (min-width: 900px) { .bundle__main { border-bottom: 0; border-right: var(--soft); } }
.bundle__count { font: 700 12.5px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.bundle__name { font: 400 clamp(34px, 3.6vw, 52px)/.95 var(--font-display); text-transform: uppercase; }
.bundle__pitch { font-size: 17px; line-height: 1.5; max-width: 40ch; }
.bundle__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 6px; }
.bundle__price .price { font-size: 56px; }
.bundle__sum { color: var(--ink-2); font-size: 16px; }
.bundle__save { font-weight: 700; }
.bundle__fine { font-size: 13.5px; color: var(--ink-2); }
.bundle__items { padding: clamp(12px, 2vw, 20px) clamp(20px, 3vw, 32px); display: grid; align-content: start; }
.bundle__items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: var(--soft); }
.bundle__items li:last-child { border-bottom: 0; }
.bundle__n { font: 400 22px/1 var(--font-display); }
.bundle__item a { font-weight: 700; text-decoration: none; }
.bundle__item a:hover { text-decoration: underline; }
.bundle__fmt { display: block; font-size: 13px; color: var(--ink-2); }
.bundle__single { font-weight: 700; white-space: nowrap; }
.bundle__single--free { color: var(--red); }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s5); }
.path { border: var(--box); background: var(--paper); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.path__name { font: 400 30px/1 var(--font-display); text-transform: uppercase; }
.path__price { font: 400 22px/1.1 var(--font-display); text-transform: uppercase; }
.path ul { display: grid; gap: 6px; margin-top: 4px; }
.path .btn { margin-top: auto; align-self: flex-start; }
.path--free { background: var(--paper); border: 2px solid var(--red); }
.fine { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; display: grid; gap: 4px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s5); }
.tier { position: relative; border: var(--box); background: var(--paper); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.tier--best { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.tier__flag { position: absolute; top: -2px; right: -2px; }
.tier__name { font: 400 30px/1 var(--font-display); text-transform: uppercase; }
.tier__price { display: flex; align-items: baseline; gap: 8px; }
.tier__price .price { font-size: 56px; }
.tier__per { color: var(--ink-2); }
.tier ul { display: grid; gap: 8px; }
.tier .btn { margin-top: auto; }

/* ---------- 17. House, FAQ, legal, 404, thank-you ---------- */
.house-hero { padding-block: clamp(40px, 6vw, 88px); border-bottom: var(--rule); }
.house-hero__title { font: 400 clamp(44px, 9vw, 150px)/.9 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; }
.house-hero__sub { font: 600 clamp(22px, 2.6vw, 34px)/1.25 var(--font-text); max-width: 26ch; margin-top: var(--s6); }
.rules { counter-reset: rule; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: var(--rule); }
.rules li { counter-increment: rule; padding: var(--s5) var(--s6) var(--s6) 0; border-bottom: var(--soft); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; }
.rules li::before { content: counter(rule, decimal-leading-zero); grid-row: span 2; font: 400 30px/1 var(--font-display); }
.rules h3 { font: 400 24px/1.05 var(--font-display); text-transform: uppercase; }
.rules p { color: var(--ink-2); }
.split { display: grid; gap: var(--s7) var(--s9); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.legal { display: grid; gap: var(--s8); padding-block: var(--s7) var(--section); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.toc { border-top: var(--rule); padding-top: 10px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 16px; } }
.toc ol { list-style: none; padding: 0; display: grid; gap: 0; }
.toc a { display: flex; gap: 10px; min-height: var(--tap); align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: var(--soft); }
.toc a:hover { text-decoration: underline; }
.legal-tabs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-tabs a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 2px solid var(--ink); text-decoration: none; font: 700 12.5px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.big-num { font: 400 clamp(120px, 26vw, 360px)/.8 var(--font-display); }
.next-steps { counter-reset: ns; display: grid; border-top: var(--rule); }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: var(--s5) 0; border-bottom: var(--soft); }
.next-steps li::before { content: counter(ns, decimal-leading-zero); grid-row: span 2; font: 400 34px/1 var(--font-display); }
.next-steps h2 { font: 400 24px/1.05 var(--font-display); text-transform: uppercase; }
.next-steps p { color: var(--ink-2); max-width: 60ch; }

/* ---------- 18. Splash intro (home, first visit per session) ----------
   Base styles are the finished hero. html.intro-play (set in <head> before
   first paint) adds the timeline. Opacity and transform only, so no layout
   shift. Skip, Pause and Replay are wired in hbm.js. */
.intro, .intro-controls { display: none; }
.intro-play .intro { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.intro-play .intro-controls { display: flex; position: fixed; right: max(16px, 2vw); bottom: 18px; z-index: 210; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.intro-play.intro-done .intro, .intro-play.intro-done .intro-controls { display: none; }
.intro__stage { position: absolute; inset: 0; background: var(--paper); }
.intro__head { min-height: 76px; }
.intro__runway { height: 2px; background: var(--ink); transform-origin: 0 50%; }
.intro__eyebrow { padding-top: clamp(28px, 4vw, 56px); font: 700 13px/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.intro__ch { position: relative; opacity: 0; }
.intro__ch::after { content: ""; position: absolute; left: 100%; top: .05em; width: 9px; height: 1.1em; margin-left: 2px; background: var(--ink); opacity: 0; }
.intro__flash { position: absolute; inset: 0; background: var(--ink); opacity: 0; display: grid; place-items: center; }
.intro__flash-inner { display: grid; place-items: center; }
.intro__item { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; }
.intro__num { font: 400 clamp(150px, 30vw, 440px)/.8 var(--font-display); color: #ffffff; }
.intro__bar { width: min(220px, 40vw); height: 14px; }
.intro__name { font: 700 clamp(13px, 1.4vw, 18px)/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: #ffffff; text-align: center; padding: 0 16px; }
.intro__wipe { position: absolute; inset: 0; transform: translateX(-101%); }
.intro__progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.intro-controls .btn { --btn-bg: #ffffff; --btn-fg: var(--ink); --btn-bd: var(--ink); min-height: var(--tap); padding: 0 16px; font-size: 13px; box-shadow: 0 0 0 2px #ffffff; --focus: var(--ink); }
.intro-controls .btn:hover { --btn-bg: var(--ink); --btn-fg: #ffffff; transform: none; box-shadow: 0 0 0 2px #ffffff; }
.intro-controls .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px #ffffff; }

/* Intro rules sit outside the reduced-motion query on purpose: the head script
   never starts the intro for reduced-motion users, but Replay can. */
.intro-play .intro__runway { animation: ia-draw 1s var(--ease) both; }
.intro-play .intro__ch { animation: ia-show .01s linear calc(.15s + var(--c) * .035s) forwards; }
.intro-play .intro__ch::after { animation: ia-show .035s step-end calc(.15s + var(--c) * .035s); }
.intro-play .intro__ch:last-child::after { animation: ia-show .3s step-end calc(.15s + var(--c) * .035s); }
.intro-play .intro__head, .intro-play .intro__eyebrow-wrap { animation: ia-hide .01s linear 1s forwards; }
.intro-play .intro__flash { animation: ia-show .01s linear 1s forwards; }
.intro-play .intro__item { animation: ia-show .165s step-end calc(1s + var(--i) * .165s); }
.intro-play .intro__item:last-child { animation: ia-show .7s step-end 2.815s forwards; }
.intro-play .intro__flash-inner { animation: ia-shrink .4s var(--ease) 3.05s forwards; }
.intro-play .intro__stage { animation: ia-stage .4s linear 3.05s forwards; }
.intro-play .intro__wipe { animation: ia-wipe .76s cubic-bezier(.65, 0, .35, 1) calc(4.7s + var(--w) * .14s) forwards; }
.intro-play .intro__progress { animation: ia-progress 8.2s linear forwards; }
/* the real hero underneath */
.intro-play .site-header__inner { animation: ia-fade .7s var(--ease) 7s both; }
.intro-play .hero__line > span { animation: ia-hide-line .01s linear 1s forwards, ia-rise .52s var(--ease) calc(3.3s + var(--l) * .28s) forwards; }
.intro-play .hero__chips { animation: ia-fade .4s var(--ease) 5.6s both; }
.intro-play .hero__fade { animation: ia-fade-up .6s var(--ease) 5.9s both; }
.intro-play .hero__meta { animation: ia-fade .6s var(--ease) 7.3s both; }
.intro-play .hero__panel { animation: ia-fade .55s var(--ease) 5.95s both; }
.intro-play .hero .replay { animation: ia-fade .4s var(--ease) 7.8s both; }

@keyframes ia-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ia-show { from, to { opacity: 1; } }
@keyframes ia-hide { to { opacity: 0; visibility: hidden; } }
@keyframes ia-shrink { to { transform: scale(.65); } }
@keyframes ia-stage { to { opacity: 0; visibility: hidden; } }
@keyframes ia-wipe { from { transform: translateX(-101%); } to { transform: translateX(101%); } }
@keyframes ia-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ia-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ia-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ia-hide-line { to { transform: translateY(110%); } }
@keyframes ia-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---------- 19. "How it works" loop (hero panel) ----------
   Base styles are the still frame: the Approve beat of the first piece.
   Animations only run with JS on and motion allowed, and pause on demand. */
.hiw { --hiw-delay: 0s; width: 100%; max-width: 560px; border: var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.intro-play .hiw { --hiw-delay: 6.4s; }
.hiw__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-bottom: var(--box); }
.hiw__label { font: 700 12px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 520px) { .hiw__label { flex-basis: 100%; } .hiw__tab { font-size: 10.5px; padding: 4px 5px; } }
.hiw__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.hiw__tab { font: 700 11px/1 var(--font-text); letter-spacing: .08em; padding: 5px 7px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-transform: uppercase; }
.hiw__tab:last-child { background: var(--ink); color: var(--on-dark); }
.hiw__screen { position: relative; height: 340px; overflow: hidden; background-color: var(--pattern); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.hiw__item { position: absolute; inset: 0; opacity: 0; }
.hiw__item:first-child { opacity: 1; }
.hiw__scene { position: absolute; inset: 0; }
.hiw__s1, .hiw__s2 { opacity: 0; }
.hiw__cover { position: absolute; left: 50%; top: 22px; width: 172px; margin-left: -86px; background: var(--paper); border: var(--box); }
.hiw__cover-text { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px; text-align: center; }
.hiw__cover-text b { font-size: 15px; background: var(--paper); padding: 2px 8px; line-height: 1.3; }
.hiw__cover-text .price { font-size: 22px; background: var(--paper); padding: 0 8px; }
.hiw__card { position: absolute; left: 50%; top: 30px; width: min(260px, 80%); transform: translateX(-50%); background: var(--ink); color: var(--on-dark); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.hiw__card-kicker { font: 700 11px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; }
.hiw__card-title { font: 400 24px/1.05 var(--font-display); text-transform: uppercase; }
.hiw__card-bar { display: block; height: 6px; background: #555555; }
.hiw__plats { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 12px; }
.hiw__plat { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); background: var(--paper); font: 700 12.5px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.hiw__ghost { opacity: 0; white-space: pre; }
.hiw__plat-on { position: absolute; inset: -2px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--on-dark); border: 2px solid var(--ink); white-space: nowrap; padding: 0 12px; opacity: 0; }
.hiw__doc { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: min(400px, 86%); background: var(--paper); border: var(--box); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.hiw__doc-kicker { font: 700 11px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hiw__row { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.hiw__bar { display: block; height: 9px; background: #c9c9c9; transform-origin: 0 50%; }
.hiw__assume { font: 700 10.5px/1.2 var(--font-text); letter-spacing: .06em; color: var(--red); border: 1.5px solid var(--red); padding: 1px 5px; white-space: nowrap; }
.hiw__check { margin-left: auto; flex: none; width: 14px; height: 14px; }
.hiw__stamp { position: absolute; right: 10%; bottom: 26px; transform: rotate(-6deg); border: 3px solid var(--red); color: var(--red); background: var(--paper); padding: 8px 14px; display: flex; flex-direction: column; align-items: center; }
.hiw__stamp b { font: 400 30px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.hiw__stamp span { font: 700 11px/1.3 var(--font-text); letter-spacing: .16em; }
.hiw__caps { display: grid; padding: 16px 16px 6px; min-height: 76px; }
.hiw__cap { grid-area: 1 / 1; font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--font-display); text-transform: uppercase; opacity: 0; }
.hiw__cap:last-child { opacity: 1; }
.hiw__foot { display: flex; align-items: center; gap: 12px; padding: 8px 14px 14px; }
.hiw__segs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hiw__seg { display: block; height: 4px; background: var(--rule-soft); overflow: hidden; }
.hiw__seg i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
.hiw__toggle { min-width: 84px; }
html:not(.js) .hiw__toggle { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .hiw__item { animation: hiw-item 32s linear calc(var(--hiw-delay) + var(--k) * 8s) infinite; }
  .js .hiw__item:first-child { animation-fill-mode: backwards; }
  .js .hiw__s1 { animation: hiw-s1 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cover { animation: hiw-slide 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cover-text { animation: hiw-s1-text 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__s2 { animation: hiw-s2 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__card { animation: hiw-drop 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__plats { animation: hiw-plats 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__plat-on { animation: hiw-installed 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__s3 { animation: hiw-s3 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__bar { animation: hiw-bar 8s linear calc(var(--hiw-delay) + var(--r) * .26s) infinite both; }
  .js .hiw__assume { animation: hiw-assume 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__check { animation: hiw-check 8s linear calc(var(--hiw-delay) + var(--r) * .09s) infinite both; }
  .js .hiw__stamp { animation: hiw-stamp 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__tab:nth-child(1) { animation: hiw-tab1 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__tab:nth-child(2) { animation: hiw-tab2 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__tab:nth-child(3) { animation: hiw-tab3 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__tab:nth-child(4) { animation: hiw-tab4 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cap:nth-child(1) { animation: hiw-cap1 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cap:nth-child(2) { animation: hiw-cap2 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cap:nth-child(3) { animation: hiw-cap3 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__cap:nth-child(4) { animation: hiw-cap4 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__seg:nth-child(1) i { animation: hiw-seg1 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__seg:nth-child(2) i { animation: hiw-seg2 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__seg:nth-child(3) i { animation: hiw-seg3 8s linear var(--hiw-delay) infinite both; }
  .js .hiw__seg:nth-child(4) i { animation: hiw-seg4 8s linear var(--hiw-delay) infinite both; }
  .hiw.is-paused *, .hiw.is-paused *::before, .hiw.is-paused *::after { animation-play-state: paused !important; }
}
@keyframes hiw-item { 0%, 24.99% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes hiw-s1 { 0% { opacity: 0; } 3.125%, 21.875% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes hiw-slide { 0% { transform: translateX(260px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); } 8.75%, 100% { transform: translateX(0); } }
@keyframes hiw-s1-text { 0%, 6.25% { opacity: 0; } 12.5%, 100% { opacity: 1; } }
@keyframes hiw-s2 { 0%, 25% { opacity: 0; } 28.125%, 46.875% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hiw-drop { 0%, 26.25% { transform: translateX(-50%) translateY(-170px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); } 33.75%, 100% { transform: translateX(-50%) translateY(0); } }
@keyframes hiw-plats { 0%, 28.75% { opacity: 0; } 33.75%, 100% { opacity: 1; } }
@keyframes hiw-installed { 0%, 38.75% { opacity: 0; } 42.5%, 100% { opacity: 1; } }
@keyframes hiw-s3 { 0%, 50% { opacity: 0; } 53.125%, 96.875% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hiw-bar { 0%, 51.25% { transform: scaleX(0); animation-timing-function: cubic-bezier(.2, .7, .2, 1); } 57.75%, 100% { transform: scaleX(1); } }
@keyframes hiw-assume { 0%, 62.5% { opacity: 0; } 66.25%, 100% { opacity: 1; } }
@keyframes hiw-check { 0%, 81.25% { opacity: 0; transform: scale(.5); } 84.375%, 100% { opacity: 1; transform: scale(1); } }
@keyframes hiw-stamp { 0%, 75% { opacity: 0; transform: rotate(-6deg) scale(1.5); animation-timing-function: cubic-bezier(.2, .7, .2, 1); } 79.375%, 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes hiw-tab1 { 0%, 24.99% { background: var(--ink); color: var(--on-dark); } 25%, 100% { background: var(--paper); color: var(--ink); } }
@keyframes hiw-tab2 { 0%, 24.99% { background: var(--paper); color: var(--ink); } 25%, 49.99% { background: var(--ink); color: var(--on-dark); } 50%, 100% { background: var(--paper); color: var(--ink); } }
@keyframes hiw-tab3 { 0%, 49.99% { background: var(--paper); color: var(--ink); } 50%, 74.99% { background: var(--ink); color: var(--on-dark); } 75%, 100% { background: var(--paper); color: var(--ink); } }
@keyframes hiw-tab4 { 0%, 74.99% { background: var(--paper); color: var(--ink); } 75%, 100% { background: var(--ink); color: var(--on-dark); } }
@keyframes hiw-cap1 { 0%, .6% { opacity: 0; } 4.4%, 22.5% { opacity: 1; } 24.9%, 100% { opacity: 0; } }
@keyframes hiw-cap2 { 0%, 25.6% { opacity: 0; } 29.4%, 47.5% { opacity: 1; } 49.9%, 100% { opacity: 0; } }
@keyframes hiw-cap3 { 0%, 50.6% { opacity: 0; } 54.4%, 72.5% { opacity: 1; } 74.9%, 100% { opacity: 0; } }
@keyframes hiw-cap4 { 0%, 75.6% { opacity: 0; } 79.4%, 97.5% { opacity: 1; } 99.9%, 100% { opacity: 0; } }
@keyframes hiw-seg1 { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }
@keyframes hiw-seg2 { 0%, 25% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes hiw-seg3 { 0%, 50% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
@keyframes hiw-seg4 { 0%, 75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* ---------- 20. Component sheet helpers (components.html only) ---------- */
.cx-nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: var(--box); }
.cx-nav ol { list-style: none; padding-left: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; padding-block: 10px; font: 700 12px/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; }
.cx-nav a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; }
.cx-nav a:hover { text-decoration: underline; }
.cx-section { padding-block: var(--s9); border-top: var(--rule); scroll-margin-top: 64px; }
.cx-section > .wrap > h2 { margin-bottom: var(--s6); }
.cx-row { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: flex-start; }
.cx-cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-cap { font: 700 11.5px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cx-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.cx-swatch { display: flex; flex-direction: column; gap: 6px; }
.cx-swatch__chip { height: 64px; border: var(--box); }
.cx-swatch b { font-size: 14px; }
.cx-swatch span { font-size: 12.5px; color: var(--ink-2); }
.cx-dark { background: var(--ink); color: var(--on-dark); padding: var(--s5); --focus: #ffffff; }
.cx-dark .cx-cap { color: var(--on-dark-2); }
.cx-pattern { background: var(--pattern); padding: var(--s5); }
.cx-phone { width: 390px; max-width: 100%; border: var(--box); overflow: hidden; background: var(--paper); }
.cx-scale > div { display: flex; align-items: baseline; gap: var(--s5); padding: 10px 0; border-bottom: var(--soft); flex-wrap: wrap; }
.cx-scale code { font-size: 12.5px; color: var(--ink-2); min-width: 200px; }
.cx-menu-demo { position: relative; height: 640px; border: var(--box); overflow: hidden; }
.cx-menu-demo .menu { display: flex; flex-direction: column; position: absolute; inset: 0; }

/* ---------- 21. Motion preferences and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .lane-tile:hover, .pair:hover, .miniset:hover { transform: none; }
  .btn.is-loading::after { animation: none; border-top-color: var(--btn-fg); clip-path: inset(0 0 50% 0); }
}
@media print {
  .site-header nav, .menu-btn, .buybar, .tabs, .intro, .intro-controls, .toast-region, .site-footer .footer__news, .hiw { display: none !important; }
  body { font-size: 12pt; }
  .pdp-top, .pdp-body { background: #fff; }
}

/* ---------- Scroll lock while the menu or filter sheet is open ----------
   CSS only, so it needs no script: overflow on both html and body stops the
   page behind from scrolling (iOS Safari 16+ honors it on the root), and
   overscroll-behavior keeps scrolling inside the dialog from chaining to the page. */
html:has(dialog.menu[open]), html:has(dialog.sheet[open]) { overflow: hidden; }
html:has(dialog.menu[open]) body, html:has(dialog.sheet[open]) body { overflow: hidden; overscroll-behavior: none; }
dialog.menu, dialog.sheet { overscroll-behavior: contain; }
