/* ============================================================
   COMPONENTS — header, buttons, marquee, cards, form, media
   Brand rules: black CTAs w/ white text; green is an accent only.
   ============================================================ */

/* ---------- Section connector — dot / line / dot divider between folds ----------
   Fixed-height box, content centered inside it: the connector alone IS the
   1-inch (--fold-gap) gap between every pair of folds. No per-neighbour
   tuning — every plain fold now sits flush (0 vertical padding) against
   it, so the total whitespace is the same everywhere by construction. */
.green-dot-separator {
  display: block;
  overflow: visible;
  margin-inline: auto;
  height: var(--fold-gap);
  background: var(--bg);
  pointer-events: none;
}

.separator-dot {
  fill: #006B50;
  opacity: 0;
  transform: scale(0.72);
  transform-origin: center;
  transform-box: fill-box;
  transition:
    opacity 280ms ease,
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.separator-line {
  fill: none;
  stroke: #D2D2CE;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform: scaleY(0);
  transform-origin: top center;
  transform-box: fill-box;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.green-dot-separator.is-drawn .separator-line {
  transform: scaleY(1);
}

.green-dot-separator.is-drawn .separator-dot {
  opacity: 1;
  transform: scale(1);
}

.green-dot-separator.is-drawn .separator-dot--bottom {
  transition-delay: 550ms;
}

@media (prefers-reduced-motion: reduce) {
  .separator-line {
    transform: scaleY(1);
    transition: none;
  }

  .separator-dot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Buttons — exact recykal.market CTA component ----------
   Measured from their Framer button ("Dark • Small") + modal submit:
   black pill, 1px black border, radius 200px, h 50px (39px small),
   padding 0 24px, gap 12px, Geist 14px w500 lh 1.3 white label,
   hover → brand green #1b8b3a. */
.btn {
  display: inline-flex;
  flex-flow: row;
  place-content: center;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 22px;
  width: min-content;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  /* Click-drag scrolling (trackpads especially) selects any text the
     cursor passes over. Without this, that selection paints the global
     ::selection green across the button label mid-scroll. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.btn--sm { height: 39px; padding: 0 20px; }

/* Primary: black pill, white text, hover green (their modal submit hover) */
.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid var(--cta-bg);
}
.btn--primary:hover { background: #2c2c2c; border-color: #2c2c2c; }

/* Secondary on light: white pill, black text, black border (inverse of primary) */
.btn--ghost { background: var(--white); color: var(--ink); border: 1px solid var(--black); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Secondary on dark bands: transparent pill, white border */
.btn--ghost-dark { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn--ghost-dark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* White pill (over hero video) — hover dims to a soft gray, stays legible on dark video */
.btn--white { background: var(--white); color: var(--ink); border: 1px solid var(--white); }
.btn--white:hover { background: #e7e7e2; border-color: #e7e7e2; color: var(--ink); }

.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Ask CTA — ChatGPT logo + label. The inline SVG collapses to 0 width in
   the button's flex row without an explicit basis, so pin its box. */
.btn--ask { gap: 8px; }
.btn--ask .ask-icon { flex: 0 0 18px; width: 18px; height: 18px; }

/* Flip CTA — hovering "Call Now" tumbles the label over (rotateX) to
   reveal the phone number, recykal.market-style. Both faces share one
   grid cell so the pill is sized by the wider label (no width jump). */
.btn-flip { perspective: 420px; }
.btn-flip__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.btn-flip__face {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.btn-flip__face--alt { transform: rotateX(180deg); }
.btn-flip:hover .btn-flip__inner { transform: rotateX(180deg); }
@media (prefers-reduced-motion: reduce) {
  .btn-flip__inner { transition: none; }
}

/* Exact Inter build copied from the main page (its Framer font bundle) so
   the nav links' glyph metrics match the main page pixel-for-pixel —
   Google Fonts' Inter is a slightly different build/width. Latin subset
   (the nav text is all Latin). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/Inter-Regular-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/Inter-Medium-latin.woff2") format("woff2");
}
/* ---------- Header / nav (light, blur on scroll) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* nav matched to recykal.market's actual measured header: 64px tall
     (9px top/bottom padding + the 46px logo, the tallest element — the
     39px CTA pills end up vertically centered within the same 64px bar),
     logo at 16px from the edge. recykal.market carries no hairline under
     its nav at any scroll position — measured directly, not assumed —
     so none here either. Fixed 64px height (not padding-derived) so the
     bar stays 64px regardless of which child is tallest, matching main. */
  height: 64px;
  padding: 0 16px;
  /* divider line under the nav — identical to the main page, whose nav
     draws a 1px rgba(0,0,0,.12) bottom border (via its ::after). */
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: background-color var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 250, 250, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* header sits over the dark hero at top: use white logo/links until scrolled */
.site-header .logo { flex-shrink: 0; }
/* logo sized to match recykal.market's actual PAINTED artwork: 214x32.
   (The main SVG sits letterboxed inside a 46px box; 32px is its true
   visible height.) The category PNG shares the same ~6.66:1 ratio, so
   32px tall renders ~213px wide — pixel-identical to the main page. */
.site-header .logo img { height: 32px; width: auto; flex-shrink: 0; }
@media (max-width: 380px) { .site-header .logo img { height: 26px; } }
.site-header .logo .logo-dark { display: none; }
.site-header.is-scrolled .logo .logo-dark { display: block; }
.site-header.is-scrolled .logo .logo-light { display: none; }
/* mobile menu overlay has a light backdrop, so force the dark logo while
   it's open regardless of scroll position — otherwise the white logo
   goes near-invisible on the light panel. */
body.menu-open .site-header .logo .logo-dark { display: block; }
body.menu-open .site-header .logo .logo-light { display: none; }

.main-nav { display: none; align-items: center; gap: 36px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
/* each item padded 6px 8px like recykal.market's .rcyk-nav-item, so the
   centred link cluster ends up the same width as the main page's */
.main-nav > li:not(.nav-divider) { display: flex; align-items: center; padding: 6px 8px; }
/* font matched to recykal.market's actual computed nav-link style — Inter
   16px/400 — measured directly in-browser; the injected script's own
   source claims Geist 15px/500, but a Framer text-preset class overrides
   that on the real rendered <a>, so Inter/400/16 is what a visitor
   actually sees. */
.main-nav .nav-link {
  font-family: "Inter", var(--font-body), system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--white);
  opacity: .85;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.site-header.is-scrolled .main-nav .nav-link { color: var(--ink); }
.main-nav .nav-link:hover { opacity: 1; }
/* "Categories" is a plain label, not a link — same weight as the nav links
   beside it, just not interactive. The divider sits at a lower opacity
   than either so it reads as a hairline, not a third label. */
.main-nav .nav-label {
  font-family: "Inter", var(--font-body), system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--white);
  opacity: .85;
  cursor: default;
}
/* CSS-drawn bar (not a text "|" glyph, which rendered inconsistently
   across fonts) — matches recykal.market's own divider construction. */
.main-nav .nav-divider {
  width: 1px;
  height: 20px;
  align-self: center;
  background: var(--white);
  opacity: .35;
}
.site-header.is-scrolled .main-nav .nav-label { color: var(--ink); }
.site-header.is-scrolled .main-nav .nav-divider { background: var(--ink); }
/* current page: underlined, non-interactive (dead click) — inherits the
   white→ink nav colour from .nav-link above */
.main-nav .nav-link--current { text-decoration: underline; text-underline-offset: 5px; opacity: 1; cursor: default; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header:not(.is-scrolled) .header-actions .btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.site-header:not(.is-scrolled) .header-actions .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
/* "Ask" is a plain icon+label button (no fill/border) — white over the hero,
   ink once the header flips light; Buy (black) and Sell (outline) sit beside it. */
.header-actions .btn--ask { background: transparent; border: 0; color: var(--white); padding: 0 10px; border-radius: 8px; opacity: .9; }
.header-actions .btn--ask:hover { opacity: 1; }
.site-header.is-scrolled .header-actions .btn--ask { color: var(--ink); }
/* Sell (ghost) pill keeps a hairline border on the light header rather than a
   hard black outline — matches recykal.market */
.site-header.is-scrolled .header-actions .btn--ghost { border-color: rgba(0, 0, 0, .16); }
/* thin separator between Ask and the Buy/Sell pills — matches recykal.market's
   rk-ask-divider; white over the hero, ink once the header flips light */
.header-actions .ask-divider { width: 1px; height: 20px; background: var(--white); opacity: .3; }
.site-header.is-scrolled .header-actions .ask-divider { background: var(--ink); }
/* Below 560px there isn't room for logo + two CTA pills + burger without
   squeezing the logo — both buttons already live in the mobile drawer,
   so just show the burger here. */
@media (max-width: 559px) { .header-actions .btn, .header-actions .ask-divider { display: none; } }

.burger { display: grid; place-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; margin: -7px -11px -7px 0; }
.burger span { width: 22px; height: 1.5px; background: var(--white); transition: transform var(--dur-fast), opacity var(--dur-fast), background var(--dur-fast); }
.site-header.is-scrolled .burger span { background: var(--ink); }
@media (min-width: 1024px) { .burger { display: none; } }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 6rem var(--grid-margin) 2rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu a:not(.btn) { color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: var(--ls-display); }
.mobile-menu__ask { display: inline-flex; align-items: center; gap: .6rem; }
.mobile-menu__ask .ask-icon { flex: 0 0 22px; width: 22px; height: 22px; }
.mobile-menu .nav-label { color: var(--ink); opacity: .5; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: var(--ls-display); cursor: default; }
/* current page in the drawer: underlined, non-interactive (dead click) */
.mobile-menu .nav-current { color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: var(--ls-display); text-decoration: underline; text-underline-offset: 5px; cursor: default; }
body.menu-open .burger span { background: var(--ink); }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Featured-in logo grid — bordered cells with corner
   crosshair ticks that light up on hover (original build, inspired
   by the reference's decorative corner-mark pattern). ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px)  { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px)  { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1120px) { .logo-grid { grid-template-columns: repeat(7, 1fr); } } /* 14 logos → 2 even rows */

.logo-grid__cell {
  position: relative;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: transparent;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease);
  z-index: 0;
}
.logo-grid__cell:hover { background: var(--paper-2); z-index: 1; }

.logo-grid__logo {
  max-width: 85%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .95;
  filter: grayscale(1) contrast(1.1);
  transition: opacity var(--dur-fast) var(--ease);
}
.logo-grid__cell:hover .logo-grid__logo { opacity: 1; }
/* The old source logos varied wildly in aspect ratio (wide wordmarks vs.
   near-square marks), so each needed its own max-height to land at a
   consistent visual footprint under the shared 30px cap. The current set
   is uniform (384×234, same ratio for all 14), so that per-logo tuning is
   gone — the shared .logo-grid__logo rule above sizes every one
   consistently on its own. */

/* Border beam — on hover, a green light ray with a fading tail travels
   around the card's edge. An oversized conic gradient rotates inside the
   cell, clipped to a thin ring by mask compositing (content-box XOR
   border-box). Plain transform animation, so no @property dependency —
   works on iOS Safari. */
.logo-grid__beam {
  position: absolute;
  inset: 0;
  padding: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
  overflow: hidden;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.logo-grid__beam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 350%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0turn);
  background: conic-gradient(
    transparent 0turn,
    transparent .62turn,
    rgba(27, 139, 58, .06) .7turn,
    rgba(27, 139, 58, .38) .88turn,
    var(--green) .97turn,
    #b9f0c9 .995turn,
    transparent 1turn
  );
}
.logo-grid__cell:hover .logo-grid__beam { opacity: 1; }
.logo-grid__cell:hover .logo-grid__beam::before {
  animation: logo-beam-spin 2.2s linear infinite;
}
@keyframes logo-beam-spin {
  to { transform: translate(-50%, -50%) rotate(1turn); }
}

/* corner crosshair ticks — faintly visible always (graph-paper feel),
   snap to full green intensity on hover */
.logo-grid__cross { position: absolute; width: 10px; height: 10px; opacity: .3; transition: opacity var(--dur-fast) var(--ease); }
.logo-grid__cross::before, .logo-grid__cross::after { content: ""; position: absolute; background: var(--muted-2); transition: background-color var(--dur-fast) var(--ease); }
.logo-grid__cross::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.logo-grid__cross::after { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.logo-grid__cross--tl { top: -5px; left: -5px; }
.logo-grid__cross--tr { top: -5px; right: -5px; }
.logo-grid__cross--br { bottom: -5px; right: -5px; }
.logo-grid__cross--bl { bottom: -5px; left: -5px; }
.logo-grid__cell:hover .logo-grid__cross { opacity: 1; }
.logo-grid__cell:hover .logo-grid__cross::before,
.logo-grid__cell:hover .logo-grid__cross::after { background: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .logo-grid__cross, .logo-grid__logo, .logo-grid__cell, .logo-grid__beam { transition: none; }
  .logo-grid__cell:hover .logo-grid__beam::before { animation: none; }
}

/* ---------- Media frame (videos / generated scenes / images) ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--band);
}
.media-frame--light { background: var(--paper-2); border: 1px solid var(--line); }
.media-frame > video, .media-frame > img, .media-frame > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-frame > canvas { object-fit: fill; }
.media-frame > img.contain { object-fit: contain; padding: 1rem; }

/* ---------- Natural-ratio media: image keeps its own aspect, never distorted ----------
   White, not paper-2: the buyer mockup (mockup-buyer-catalogue.webp) has an
   alpha channel, so a tinted container background showed through as an
   off-white cast behind it — the opaque seller mockup was unaffected, which
   is why only "For Buyers" looked different. White makes both frames match. */
.media-natural {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.media-natural img { width: 100%; height: auto; display: block; }

/* ---------- Category catalogue — product-card grid (AI-tech surface).
   Auto-fit 3-up on desktop, product photography on a neutral tech
   surface: corner crosshairs, mono index chip, light-scan on hover,
   and a cursor spotlight driven from scripts/main.js. ---------- */
.cat-slider {
  position: relative;
  width: min(76rem, 100%);
  margin: 3.5rem auto 0;
}
.cat-grid {
  display: flex;
  gap: var(--grid-gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 2.25rem;
  text-align: left;
  scrollbar-width: none;                 /* Firefox: hide the bar, keep scroll */
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-grid > .cat-card {
  flex: 0 0 clamp(260px, 30%, 360px);    /* fixed card width → one scrolling row */
  scroll-snap-align: start;
}
/* prev / next controls — round pills overlapping the track edges (desktop) */
.cat-slider__nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 5;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 26px -12px rgba(16, 22, 15, .45);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, opacity .2s ease, transform .18s ease;
}
.cat-slider__nav svg { width: 20px; height: 20px; }
.cat-slider__nav:hover { background: var(--ink); color: var(--white); }
.cat-slider__nav:active { transform: translateY(-50%) scale(.94); }
.cat-slider__nav--prev { left: -14px; }
.cat-slider__nav--next { right: -14px; }
.cat-slider__nav:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .cat-slider__nav { display: grid; } }
@media (prefers-reduced-motion: reduce) { .cat-grid { scroll-behavior: auto; } }

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
/* cursor spotlight (--mx/--my set per-card from main.js) */
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(27, 139, 58, .10), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.cat-card:hover {
  border-color: rgba(0, 87, 63, .38);
  box-shadow: 0 22px 48px -28px rgba(16, 22, 15, .45);
  transform: translateY(-4px);
}
.cat-card:hover::before { opacity: 1; }

/* corner crosshairs — L-shaped brackets, echo the press logo grid */
.cat-card__cross {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.cat-card:hover .cat-card__cross { opacity: 1; }
.cat-card__cross::before,
.cat-card__cross::after { content: ""; position: absolute; background: var(--green-deep); }
.cat-card__cross::before { width: 12px; height: 1.5px; }
.cat-card__cross::after { width: 1.5px; height: 12px; }
.cat-card__cross--tl { top: 8px; left: 8px; }
.cat-card__cross--tr { top: 8px; right: 8px; }
.cat-card__cross--tr::after { right: 0; }
.cat-card__cross--br { bottom: 8px; right: 8px; }
.cat-card__cross--br::before { bottom: 0; right: 0; }
.cat-card__cross--br::after { bottom: 0; right: 0; }
.cat-card__cross--bl { bottom: 8px; left: 8px; }
.cat-card__cross--bl::before { bottom: 0; }

.cat-card__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1672 / 941;   /* matches the category photos exactly — no letterbox bars */
  background: var(--paper-2);
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.055); }
/* Uncropped variant — for source photos whose aspect ratio varies card to
   card (e.g. the electronics category shots), `cover` would crop a
   different edge of every image depending on viewport width. `contain`
   guarantees the whole photo is always visible, on every device, at the
   cost of some letterboxing — matched here to the photos' own white
   background so the letterbox reads as part of the shot, not a bar. */
.cat-card__media--contain { background: #f5f6f1; }
.cat-card__media--contain img { object-fit: contain; }
.cat-card:hover .cat-card__media--contain img { transform: none; }
/* Icon-tile variant — used where a category has no product photography
   (e.g. electronics categories): a centred line icon on a soft green-tinted
   surface, same box/hover choreography as the photo variant. */
.cat-card__icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-tint), var(--paper-2));
  transition: transform .6s var(--ease);
}
.cat-card__icon svg { width: 84px; height: 84px; color: var(--green-deep); }
.cat-card:hover .cat-card__icon { transform: scale(1.055); }
/* light-scan sweep on hover */
.cat-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .38) 48%, transparent 64%);
  transform: translateX(-125%);
  transition: transform .85s var(--ease);
}
.cat-card:hover .cat-card__media::after { transform: translateX(125%); }

.cat-card__index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--ink-warm);           /* match feature-card .f__idx */
  background: var(--paper-3);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .3rem .55rem;
  transition: background-color .18s ease, color .18s ease;
}
.cat-card:hover .cat-card__index { background: var(--green); color: var(--white); }

.cat-card__body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
  padding: 18px 8px 8px;
}
.cat-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-deep);
}
.cat-card__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.cat-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.24;
  letter-spacing: var(--ls-display);
  color: var(--ink-2);
}
.cat-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--cta-text);
  background: var(--cta-bg);
  border: 1px solid var(--cta-bg);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cat-card__cta svg { width: 14px; height: 14px; flex: 0 0 14px; }
.cat-card__cta:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: var(--cta-text);
}
@media (prefers-reduced-motion: reduce) {
  .cat-card, .cat-card__media img, .cat-card__icon, .cat-card__media::after, .cat-card__index { transition: none; }
  .cat-card:hover { transform: none; }
  .cat-card:hover .cat-card__media img, .cat-card:hover .cat-card__icon { transform: none; }
}

/* ---------- Category chips (hero card vibe) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 500;
  padding: .55rem 1rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Count-up stat (card layout: icon tile + label-sized number) ---------- */
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .stat-desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; margin-top: .5rem; max-width: 26ch; }

/* ---------- Registration Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease;
}
.modal__close:hover { opacity: 0.6; }
.modal__header {
  text-align: center;
  margin-bottom: 2rem;
}
.modal__header .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-eyebrow);
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal__header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.modal__header p {
  font-size: var(--fs-small);
  color: var(--ink-56);
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.form-group label span[aria-label="required"] {
  color: var(--crimson-2);
}
.form-group label .optional {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 400;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s ease;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6f66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 139, 58, 0.1);
}
.form-group input::placeholder {
  color: var(--muted-2);
}
.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.input-prefix .prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border-right: 1px solid var(--line);
}
.input-prefix input {
  flex: 1;
  border: none;
  border-radius: 0;
}
.input-prefix input:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(27, 139, 58, 0.1);
}
.radio-group {
  display: flex;
  gap: 1rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--green);
}
@media (max-width: 560px) {
  .modal__content { padding: 2rem 1.5rem; }
  .modal__close { top: 1rem; right: 1rem; }
}

/* ---------- Multi-step wizard forms (Buy / Sell registration) ----------
   Mirrors shop.recykal.market's 3-step signup flow (Account → Company →
   Review) as a local, non-redirecting modal. Reuses .modal__form/.form-group
   for every field, and .btn for every action, so it matches the rest of the
   site's forms exactly. */
.wizard-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.wizard-steps__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.wizard-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: var(--line);
}
.wizard-steps__item.is-done:not(:last-child)::after { background: var(--green); }
.wizard-steps__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper-3);
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease;
}
.wizard-steps__item.is-active .wizard-steps__num { background: var(--green); color: var(--white); }
.wizard-steps__item.is-done .wizard-steps__num { background: var(--green-tint); color: var(--green-deep); }
.wizard-steps__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.wizard-steps__item.is-active .wizard-steps__label { color: var(--ink); }

.form-step { display: none; flex-direction: column; gap: 1.25rem; }
.form-step.is-active { display: flex; }

.wizard-actions { display: flex; gap: .75rem; margin-top: .25rem; }
.wizard-actions .btn { flex: 1; }
.wizard-actions:not(.wizard-actions--split) .btn { width: 100%; }

.wizard-review { display: flex; flex-direction: column; gap: .75rem; }
.wizard-review__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.wizard-review__row span { color: var(--muted); flex-shrink: 0; }
.wizard-review__row strong { color: var(--ink); font-weight: 500; text-align: right; word-break: break-word; }

.wizard-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 1rem 0; }
/* .modal__form, .wizard-steps and .wizard-success all set an unconditional
   `display`, which overrides the browser's native [hidden] behavior (equal
   specificity, author styles win ties over the UA stylesheet). The wizard
   JS toggles all three via el.hidden on submit — without this rule they'd
   stay visibly rendered regardless, showing the success panel immediately,
   stacked under the still-visible form, before the user ever submits. */
.modal__form[hidden], .wizard-steps[hidden], .wizard-success[hidden] { display: none; }
.wizard-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  margin-bottom: .5rem;
}
.wizard-success__icon svg { width: 28px; height: 28px; }
.wizard-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.wizard-success p { font-size: var(--fs-small); color: var(--ink-56); max-width: 26rem; }
.wizard-success .btn { width: 100%; margin-top: .5rem; }

/* ---------- Back to top ----------
   Fixed arrow button; appears once the 3rd fold (Featured in / Recognition)
   has scrolled past (see backToTopTick in main.js) and stays visible the
   rest of the way down. */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  box-shadow: 0 10px 26px -12px rgba(16, 22, 15, .45);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .18s ease;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--green); }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) {
  .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .15s linear; }
}

/* Status badges replace the material tag — colour carries the meaning.
   Live = green + pulsing dot, Trending = violet, Selling Fast = amber,
   On Demand = blue. Assigned per card in the markup. */
.cat-card__tag--live { color: var(--green-deep); }
.cat-card__tag--live::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); animation: catTagPulse 1.8s ease-out infinite; }
.cat-card__tag--trending { color: #5b45e0; }
.cat-card__tag--trending::before { background: #6d5efc; box-shadow: 0 0 0 3px rgba(109,94,252,.18); animation: none; }
.cat-card__tag--fast { color: #c25c11; }
.cat-card__tag--fast::before { background: #e8731b; box-shadow: 0 0 0 3px rgba(232,115,27,.18); animation: none; }
.cat-card__tag--demand { color: #155fc0; }
.cat-card__tag--demand::before { background: #1d6fd8; box-shadow: 0 0 0 3px rgba(29,111,216,.18); animation: none; }
@keyframes catTagPulse {
  0%   { box-shadow: 0 0 0 0 var(--green-tint); }
  70%  { box-shadow: 0 0 0 7px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card__tag--live::before { animation: none; box-shadow: 0 0 0 3px var(--green-tint); }
}
