/* ============================================================
   LEADER ONLINE — DESIGN SYSTEM
   Bright Leader Blue · Enterprise tech distributor
   Type: Space Grotesk (display) · Hanken Grotesk (body) · Space Mono (technical)
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand blue */
  --brand-50:  #eaf3fd;
  --brand-100: #d2e6fb;
  --brand-200: #a6ccf6;
  --brand-300: #6fabef;
  --brand-400: #3d8ce8;
  --brand-500: #1f7ae2;
  --brand-600: #0a6fd6;  /* primary */
  --brand-700: #0858ab;
  --brand-800: #084a8c;
  --brand-900: #0a3f74;

  /* Ink / neutrals (cool) */
  --ink-900: #0b1018;   /* hero bands, headings */
  --ink-800: #131b27;
  --ink-700: #28323f;
  --ink-600: #475467;   /* body */
  --ink-500: #667085;
  --ink-400: #98a2b3;   /* muted */
  --ink-300: #cbd2dc;

  --surface:   #ffffff;
  --surface-2: #f4f6f9;  /* section fill */
  --surface-3: #eceff4;
  --line:      #e2e7ef;
  --line-2:    #d2d9e3;

  /* Accents */
  --amber:   #f5a623;   /* use-case / hot */
  --amber-50:#fdf3e0;
  --sale:    #e02424;   /* clearance / promo */
  --sale-50: #fdeaea;
  --green:   #16a34a;   /* in-stock / warranty */
  --green-50:#e9f7ee;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --sh-md: 0 6px 18px -6px rgba(16,24,40,.14);
  --sh-lg: 0 24px 56px -16px rgba(13,38,76,.22);
  --sh-blue: 0 14px 30px -10px rgba(10,111,214,.45);

  /* Type */
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 116px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
h1, .h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4, .h4 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-600); line-height: 1.55; }
.muted { color: var(--ink-500); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-600);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow--light { color: var(--brand-200); }
.eyebrow--ink   { color: var(--ink-400); }
.mono { font-family: var(--font-mono); }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1480px; }
.section { padding-block: clamp(44px, 5vw, 76px); }
.section--tight { padding-block: clamp(30px, 3.6vw, 48px); }
.section--fill { background: var(--surface-2); }
.section--ink { background: var(--ink-900); color: #fff; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.center { text-align: center; }
.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head p { margin-top: 14px; color: var(--ink-600); font-size: 1.05rem; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.gap-md { gap: 18px; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: var(--r-md); border: 1.5px solid transparent;
  transition: transform .14s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 18px 36px -12px rgba(10,111,214,.55); }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-800); }
.btn--ghost { background: #fff; color: var(--ink-800); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); box-shadow: var(--sh-sm); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--soft { background: var(--brand-50); color: var(--brand-700); }
.btn--soft:hover { background: var(--brand-100); }
.btn--pill { border-radius: var(--r-pill); padding-inline: 30px; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 9px 15px; font-size: .85rem; border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }
.btn--link { padding: 0; color: var(--brand-600); font-weight: 600; }
.btn--link:hover { color: var(--brand-700); }
.btn--link svg { transition: transform .18s ease; }
.btn--link:hover svg { transform: translateX(3px); }

/* ---------- 6. CHIPS / BADGES ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink-600); border: 1px solid transparent; line-height: 1;
}
.chip--work { background: var(--amber-50); color: #9a6300; }
.chip--brand { background: var(--brand-50); color: var(--brand-700); }
.chip--sale { background: var(--sale-50); color: var(--sale); }
.chip--green { background: var(--green-50); color: var(--green); }
.chip--ghost { background: #fff; border-color: var(--line); color: var(--ink-600); }
.tag-mono {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink-900); color: #fff; padding: 4px 9px; border-radius: var(--r-xs); font-weight: 700;
}
.tag-mono--amber { background: var(--amber); color: #1a1200; }
.tag-mono--sale { background: var(--sale); }
.badge-dot { display:inline-flex; align-items:center; gap:7px; font-size:.85rem; font-weight:600; color: var(--ink-600); }
.badge-dot::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--green); box-shadow:0 0 0 3px var(--green-50); }

/* ---------- 7. CARDS ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; }
.card--pad { padding: clamp(20px, 2.4vw, 30px); }
.card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }

/* Product card */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.pcard__media { position: relative; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
/* Image is taken out of flow so it can never stretch the aspect-ratio box or
   overflow on mobile — every card gets an identical, fully-contained frame. */
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pcard__flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__acts { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 7px; z-index: 2; }
.pcard__act { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-500); backdrop-filter: blur(4px); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.pcard__act:hover { color: var(--brand-600); border-color: var(--brand-200); }
.pcard__act.is-on { color: var(--sale); }
.pcard__act.is-on svg { fill: currentColor; }
.pcard__act--cmp.is-on { color: var(--brand-600); }
.pcard__act--cmp.is-on svg { fill: none; }
.pcard__act--quote.is-on { color: var(--brand-600); background: var(--brand-50); }
.pcard__act--quote.is-on svg { fill: none; }
/* Quick view modal */
.qv { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; padding: 5vh 16px; background: rgba(12,18,26,.6); backdrop-filter: blur(3px); overflow-y: auto; }
.qv.open { display: flex; }
.qv__panel { position: relative; width: min(880px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; animation: qvIn .2s ease-out; }
@keyframes qvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qv__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--line); color: var(--ink-600); display: grid; place-items: center; }
.qv__x:hover { color: var(--ink-900); }
.qv__media { background: #fff; border-right: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.qv__main { position: relative; flex: 1; min-height: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.qv__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.qv__main--ph { display: grid; place-items: center; color: var(--ink-300); }
.qv__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.qv__thumb { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 5px; overflow: hidden; cursor: pointer; }
.qv__thumb.active { border-color: var(--brand-600); box-shadow: 0 0 0 2px var(--brand-100); }
.qv__thumb img { width: 100%; height: 100%; object-fit: contain; }
.qv__body { padding: 28px; display: flex; flex-direction: column; }
.qv__flag { margin-bottom: 10px; }
.qv__name { font-size: 1.3rem; line-height: 1.2; }
.qv__metaline { font-size: .8rem; color: var(--ink-500); margin-top: 8px; }
.qv__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.qv__price .lab { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); display: block; width: 100%; margin-bottom: 2px; }
.qv__price .v { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink-900); }
.qv__rrp { font-size: .85rem; color: var(--ink-400); }
.qv__specs { display: grid; gap: 6px; margin: 0 0 18px; }
.qv__specs li { position: relative; padding-left: 16px; font-size: .85rem; color: var(--ink-600); }
.qv__specs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-300); }
.qv__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.qv__row { display: flex; gap: 8px; }
.qv__icon-btn { flex: none; width: 46px; padding-inline: 0; }
.qv__icon-btn.is-on { color: var(--sale); border-color: var(--sale); }
.qv__icon-btn.is-on svg { fill: currentColor; }
.qv__icon-btn[data-cmp].is-on { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }
.qv__icon-btn[data-cmp].is-on svg { fill: none; }
.qv__docs { display: flex; gap: 8px; flex-wrap: wrap; }
.qv__share { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.qv__share-lab { font-size: .78rem; font-weight: 600; color: var(--ink-500); }
.qv__share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-600); cursor: pointer; }
.qv__share-btn:hover { color: var(--brand-600); border-color: var(--brand-200); }
.qv__more { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 720px) { .qv__panel { grid-template-columns: 1fr; } .qv__media { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; } .qv__main { min-height: 200px; } .qv__body { padding: 20px; } }
/* compare tray (fixed, bottom) */
.cmp-tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(160%); width: min(720px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 12px 16px; display: flex; align-items: center; gap: 16px; z-index: 1500; transition: transform .28s cubic-bezier(.4,0,.2,1); }
.cmp-tray.open { transform: translateX(-50%) translateY(0); }
.cmp-tray__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink-900); white-space: nowrap; }
.cmp-tray__label svg { color: var(--brand-600); }
.cmp-tray__n { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-400); font-weight: 400; }
.cmp-tray__items { display: flex; gap: 8px; flex: 1; overflow-x: auto; padding: 9px 10px; }
.cmp-tray__item { position: relative; width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; display: grid; place-items: center; padding: 5px; }
.cmp-tray__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cmp-tray__item .ph__glyph svg { width: 20px; height: 20px; }
.cmp-tray__x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-900); color: #fff; display: grid; place-items: center; border: 2px solid #fff; cursor: pointer; }
.cmp-tray__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.cmp-tray__clear { font-size: .82rem; color: var(--ink-500); font-weight: 600; cursor: pointer; }
.cmp-tray__clear:hover { color: var(--sale); }
.btn.cmp-disabled { opacity: .5; }
@media (max-width: 560px) { .cmp-tray { flex-wrap: wrap; gap: 10px; padding: 12px; } .cmp-tray__items { order: 3; width: 100%; } .cmp-tray__actions { margin-left: auto; } }
/* toast */
.lo-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(16px); background: var(--ink-900); color: #fff; padding: 11px 20px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 2000; }
.lo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.pcard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink-900); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a:hover { color: var(--brand-700); }
.pcard__specs { display: grid; gap: 5px; margin: 0; }
.pcard__specs li { display: flex; gap: 8px; font-size: .82rem; color: var(--ink-500); align-items: baseline; }
.pcard__specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-300); flex: none; transform: translateY(6px); }
.pcard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { display: flex; flex-direction: column; gap: 3px; }
.price__label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.price__main { display: flex; align-items: baseline; gap: 7px; }
.price__val { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink-900); letter-spacing: -.02em; }
.price__note { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.price__rrp { font-size: .8rem; color: var(--ink-400); text-decoration: line-through; }
.price--lg .price__val { font-size: 1.95rem; }
.price--lg .price__label, .price--lg .price__note { font-size: .64rem; }

/* ---------- 8. PLACEHOLDER IMAGERY ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(150deg, #eef2f7, #f6f8fb); display: grid; place-items: center; color: var(--ink-400); }
.ph::before {
  content: ""; position: absolute; inset: 0;
}
.ph__cap { position: relative; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); text-align: center; padding: 6px 12px; }
.ph__glyph { position: relative; opacity: .5; }
.ph__glyph svg { width: 54px; height: 54px; stroke: var(--ink-400); }
.ph--dark { background: linear-gradient(150deg, #11161f, #1d2733); color: #5b6878; }
.ph--dark::before { background-image: none; }
.ph--dark .ph__cap, .ph--dark .ph__glyph svg { color: #4a5566; stroke: #4a5566; }
.ph--brand { background: linear-gradient(150deg, var(--brand-700), var(--brand-500)); color: rgba(255,255,255,.7); }
.ph--brand::before { background-image: none; }
.ph--brand .ph__cap, .ph--brand .ph__glyph svg { color: rgba(255,255,255,.7); stroke: rgba(255,255,255,.7); }

/* ---------- 9. FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: .82rem; font-weight: 600; color: var(--ink-700); }
.label .req { color: var(--sale); }
.hint { font-size: .78rem; color: var(--ink-500); }
.input, .select, .textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 14px; font-size: .95rem; color: var(--ink-900); transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-50); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 44px; }
.input-group__icon { position: absolute; left: 14px; color: var(--ink-400); pointer-events: none; }
.input-group__icon svg { width: 19px; height: 19px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-600); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-600); margin-top: 2px; flex: none; }

/* ---------- 10. HEADER / CHROME ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: var(--sh-md); }
.topbar { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-600); display: grid; place-items: center; color: #fff; box-shadow: var(--sh-blue); }
.logo__mark svg { width: 22px; height: 22px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; color: var(--ink-900); }
.logo__sub { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .26em; color: var(--ink-400); text-transform: uppercase; margin-top: 2px; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.mainnav a { padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-700); border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; }
.mainnav a:hover, .mainnav a.active { color: var(--brand-700); background: var(--brand-50); }
.mainnav a svg { width: 15px; height: 15px; opacity: .7; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--ink-700); position: relative; transition: background .15s ease, color .15s ease; }
.icon-btn:hover { background: var(--surface-2); color: var(--brand-700); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__badge { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: #1a1200; font-size: .62rem; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono); }
.topbar__cta { margin-left: 6px; }

/* device category strip */
.catbar { background: var(--brand-600); position: relative; }
.catbar__inner { display: flex; align-items: stretch; gap: 2px; height: 44px; }
.catbar__link { display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; color: rgba(255,255,255,.92); font-weight: 600; font-size: .9rem; position: relative; transition: background .15s ease; }
.catbar__link svg { width: 19px; height: 19px; }
.catbar__link:hover, .catbar__item.open .catbar__link { background: rgba(255,255,255,.14); color: #fff; }
.catbar__item { position: relative; display: flex; }
.catbar__spacer { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); font-size: .86rem; font-weight: 600; font-family: var(--font-body); letter-spacing: .005em; }
.catbar__spacer svg { width: 15px; height: 15px; }
.catbar__flag { width: 18px !important; height: 18px !important; border-radius: 50%; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
/* mega dropdown */
.mega { position: absolute; top: 100%; left: 0; width: min(1060px, 94vw); background: #fff; border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: 0 26px 64px rgba(15,23,32,.18); display: none; grid-template-columns: 292px 1fr; grid-template-areas: "aside main" "trust trust"; z-index: 70; overflow: hidden; }
.catbar__item.open .mega { display: grid; }
/* left column — series list */
.mega__aside { grid-area: aside; padding: 24px 22px 20px; border-right: 1px solid var(--line); }
.mega__cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brand-600); padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega__subs { display: grid; gap: 2px; }
.mega__subs a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-md); color: var(--ink-800); font-weight: 600; font-size: .92rem; transition: background .15s ease; }
.mega__subs a .msi { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.mega__subs a .msi svg { width: 18px; height: 18px; }
.mega__subs a .mchev { margin-left: auto; color: var(--ink-300); display: inline-flex; transition: transform .15s ease, color .15s ease; }
.mega__subs a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega__subs a:hover .mchev { color: var(--brand-500); transform: translateX(2px); }
.mega__viewall { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--brand-600); font-weight: 700; font-size: .92rem; }
.mega__viewall svg { transition: transform .15s ease; }
.mega__viewall:hover svg { transform: translateX(3px); }
/* right column — featured product cards */
.mega__main { grid-area: main; padding: 24px 26px; }
.mega__ftitle { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brand-600); margin-bottom: 16px; }
.mega__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.mcard:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--brand-200); }
.mcard__img { aspect-ratio: 1/1; background: #fff; border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; }
.mcard__img .ph__glyph { color: var(--ink-300); }
.mcard__name { font-weight: 600; color: var(--ink-900); font-size: .85rem; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.25em; }
.mcard__price { margin-top: 9px; font-weight: 700; color: var(--brand-700); font-size: .95rem; }
.mcard__price small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-right: 5px; }
/* bottom trust bar */
.mega__trust { grid-area: trust; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 17px 26px; border-top: 1px solid var(--line); background: var(--surface-2, #f6f8fb); }
.mtrust { display: flex; align-items: center; gap: 11px; }
.mtrust__ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.mtrust__ic svg { width: 19px; height: 19px; }
.mtrust b { display: block; font-size: .82rem; color: var(--ink-900); line-height: 1.2; }
.mtrust span { font-size: .76rem; color: var(--ink-500); }
/* Catalogue nav mega (main nav) */
.navmega { position: relative; display: flex; }
.navmega > a { padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-700); border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.navmega > a svg { width: 14px; height: 14px; opacity: .6; transition: transform .18s ease; }
.navmega.open > a svg { transform: rotate(180deg); }
.navmega > a:hover, .navmega.open > a, .navmega > a.active { color: var(--brand-700); background: var(--brand-50); }
.catmega { position: absolute; top: 100%; right: 0; width: 340px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--sh-lg); padding: 18px; display: none; z-index: 70; }
.navmega.open .catmega { display: block; }
.catmega__cover { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: block; }
.catmega__cover img { width: 100%; height: auto; display: block; }
.catmega__cover--ph { display: grid; place-items: center; aspect-ratio: 3/4; color: var(--ink-300); }
.catmega__title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-900); margin-top: 12px; }
.catmega__foot { display: grid; gap: 10px; margin-top: 14px; }
.catmega__foot .btn { justify-content: center; }
/* .mainnav a (0,1,1) would otherwise override .btn--primary's white text (0,1,0) */
.catmega__foot .btn--primary { color: #fff; }
.catmega__foot .btn--soft { color: var(--brand-700); }

/* mobile */
.hamburger { display: none; }
.mobile-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-drawer.open { visibility: visible; }
.mobile-drawer__scrim { position: absolute; inset: 0; background: rgba(11,16,24,.5); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer.open .mobile-drawer__scrim { opacity: 1; }
.mobile-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: #fff; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-drawer.open .mobile-drawer__panel { transform: none; }
.mdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.mdrawer__body { padding: 12px 16px 30px; }
.mdrawer__sec { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); padding: 18px 10px 8px; }
.mdrawer__link { display: flex; align-items: center; gap: 12px; padding: 13px 10px; font-weight: 600; color: var(--ink-800); border-radius: var(--r-sm); }
.mdrawer__link:hover { background: var(--surface-2); }
.mdrawer__link svg { width: 20px; height: 20px; color: var(--brand-600); }

/* search overlay */
.search-ov { position: fixed; inset: 0; z-index: 90; display: none; }
.search-ov.open { display: block; }
.search-ov__scrim { position: absolute; inset: 0; background: rgba(11,16,24,.45); backdrop-filter: blur(3px); }
.search-ov__panel { position: relative; max-width: 720px; margin: clamp(60px, 12vh, 130px) auto 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 22px; }
.search-ov__suggest { margin-top: 18px; }
.search-ov__suggest h6 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 10px; }
.search-ov__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 11. FOOTER ---------- */
.site-footer { background: var(--ink-900); color: #cdd5e0; padding-block: clamp(48px, 6vw, 76px) 30px; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px 24px; }
.site-footer a { color: #9aa6b6; font-size: .9rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__sub { color: #6b7689; }
.footer-brand p { color: #8b97a9; font-size: .9rem; margin: 16px 0; max-width: 30ch; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 8px; max-width: 340px; }
.footer-newsletter .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.footer-newsletter .input::placeholder { color: #71798c; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-trust .chip { background: rgba(255,255,255,.07); color: #c4cdda; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .82rem; color: #71798c; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); display: grid; place-items: center; padding: 0; }
.footer-social a:hover { background: var(--brand-600); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- 12. HERO / SECTION HELPERS ---------- */
.hero-band { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.hero-band__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.pagehead { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 86px); }
.pagehead .breadcrumb a, .pagehead .breadcrumb span { color: rgba(255,255,255,.6); }
.pagehead h1 { color: #fff; }
.pagehead p { color: rgba(255,255,255,.72); max-width: 60ch; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

/* feature icon */
.featrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { display: flex; gap: 13px; align-items: flex-start; }
.feat__ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.feat__ic svg { width: 23px; height: 23px; }
.feat h4 { font-size: .98rem; }
.feat p { font-size: .85rem; color: var(--ink-500); margin-top: 3px; }

/* divider */
.hr { height: 1px; background: var(--line); border: 0; }

/* utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.fill-ink { color: var(--ink-900); }
.text-brand { color: var(--brand-600); }

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .catbar { display: none; }
  .hamburger { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featrow { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .topbar__cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .featrow { grid-template-columns: 1fr 1fr; }
  .logo__sub { display: none; }
}
@media (max-width: 480px) {
  .featrow { grid-template-columns: 1fr; }
}

/* reveal — transform-only entrance; opacity is NEVER touched so content can't stall invisible */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn .55s cubic-bezier(.2,.7,.3,1) both; }

  /* staggered reveal — a grid/row's children cascade in one after another.
     Transform-ONLY (like the plain reveal above): opacity is never touched, so
     content is always visible — no scroll-reveal "blink" when a section crosses
     the trigger line, and no stall-invisible risk if `.in` never lands. */
  .reveal--stagger.in { animation: none; }
  .reveal--stagger.in > * { animation: revealUp .5s cubic-bezier(.2,.7,.3,1) both; }
  .reveal--stagger.in > *:nth-child(1) { animation-delay: 0s; }
  .reveal--stagger.in > *:nth-child(2) { animation-delay: .06s; }
  .reveal--stagger.in > *:nth-child(3) { animation-delay: .12s; }
  .reveal--stagger.in > *:nth-child(4) { animation-delay: .18s; }
  .reveal--stagger.in > *:nth-child(5) { animation-delay: .24s; }
  .reveal--stagger.in > *:nth-child(6) { animation-delay: .30s; }
  .reveal--stagger.in > *:nth-child(7) { animation-delay: .36s; }
  .reveal--stagger.in > *:nth-child(n+8) { animation-delay: .40s; }
}
@keyframes revealIn { from { transform: translateY(16px); } to { transform: none; } }
@keyframes revealUp { from { transform: translateY(18px); } to { transform: none; } }
