/* ═══════════════════════════════════════════════════════════════════════════
   BasilCheats design tokens
   ───────────────────────────────────────────────────────────────────────────
   One source of truth for surfaces, borders, text and spacing so the whole
   site reads as one thing. The direction: flat near-black surfaces and
   hairline borders (editor-like), generous whitespace and a restrained,
   near-monochrome palette (Linear-like), over the existing card-led layout.

   Green is an ACCENT, not a theme. It belongs on: primary buttons, the active
   nav item, focus rings, live status dots and prices. It does not belong on
   card borders at rest, text glows, or background bloom — that reads as neon,
   which is what we moved away from.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Surfaces, darkest to lightest */
  --bc-bg:          #08080A;
  --bc-surface:     #0E0E11;
  --bc-surface-2:   #141418;
  --bc-surface-hi:  #1A1A1F;

  /* Hairlines */
  --bc-border:      rgba(255, 255, 255, 0.07);
  --bc-border-hi:   rgba(255, 255, 255, 0.13);

  /* Type */
  --bc-text:        #F5F5F7;
  --bc-text-2:      #A1A1AA;
  --bc-text-3:      #6B6B76;

  /* Accent — used sparingly */
  --bc-accent:      var(--cl-accent, #00ff00);
  --bc-accent-rgb:  var(--cl-accent-rgb, 0, 255, 0);

  /* Radii */
  --bc-r-sm: 8px;
  --bc-r:    11px;
  --bc-r-lg: 14px;

  /* One neutral elevation. No coloured glow anywhere. */
  --bc-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -12px rgba(0,0,0,0.6);
}

/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/
  html, body {
    /* min-height, not height: `height: 100%` pinned the document to the viewport,
       so the page never scrolled the document itself — window.scrollY stayed 0,
       which broke scroll-to-top, scroll progress and navbar scroll state. */
    min-height: 100%;
    background: #0A0A0B;
    font-family: var(--bs-font-sans-serif, 'Inter', system-ui, sans-serif);
  }

  /* `overflow-x: hidden` turns an element into a scroll container, and on <html>
     that hijacks document scrolling (and breaks position: sticky). `clip` stops the
     sideways overflow without creating one. */
  body {
    overflow-x: clip;
  }

  /* Anchor jumps (e.g. Products -> /#products) glide instead of teleporting. */
  html {
    scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  /* Desktop nav links keep their icons in the markup for the mobile menu, and
     the navbar component hides them with `.nav__links svg { display: none }`.
     That rule lives in a body-level <style>, so the browser painted the icons
     first and hid them a frame later — a visible flash on every page load.
     Declaring it here (head stylesheet) means it applies before first paint.
     The mobile menu uses .mob-menu__link and is unaffected. */
  .nav__links svg { display: none; }
  /* ── Custom scrollbars ──────────────────────────────────────────────
     Replaces the OS default everywhere (page, search modal, mobile menu).
     Components that already define their own bar — the guide nav, the
     products page — are more specific and keep theirs. */

  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }

  /* WebKit / Blink */
  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  *::-webkit-scrollbar-thumb {
    /* transparent border + background-clip leaves breathing room around the
       thumb, so it reads as a floating pill rather than a full-width slab */
    background-color: rgba(255, 255, 255, 0.16);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
    transition: background-color 0.2s ease;
  }
  *::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--cl-accent-rgb, 0, 255, 0), 0.55);
  }
  *::-webkit-scrollbar-thumb:active {
    background-color: rgba(var(--cl-accent-rgb, 0, 255, 0), 0.75);
  }
  /* Stops the little blank square where the two bars meet. */
  *::-webkit-scrollbar-corner {
    background: transparent;
  }

/* ─────────────────────────────────────────────────────────────────────────
   Category (group) cards — shared by the /products page and the homepage
   section under the hero. Lives here rather than in either component so the
   two can never drift apart, and so the rules load in <head> instead of
   mid-body. Self-contained accent vars: the markup is used outside
   .ap-section, where --ap-accent is not defined.
   ───────────────────────────────────────────────────────────────────────── */
.gcard-grid {
  --gc-accent: var(--cl-accent, #00ff00);
  --gc-accent-rgb: var(--cl-accent-rgb, 0, 255, 0);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.gcard-grid *, .gcard-grid *::before, .gcard-grid *::after { box-sizing: border-box; }
@media (max-width: 560px) {
  .gcard-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Category card ────────────────────────────────────────────── */
.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--bc-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--bc-border);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.gcard:hover {
  border-color: var(--bc-border-hi);
  transform: translateY(-2px);
  box-shadow: var(--bc-shadow);
}

/* The accent rail was removed with the neon pass — hover is a neutral lift. */

.gcard-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0c0c;
}
.gcard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.gcard:hover .gcard-art img { transform: scale(1.06); }

/* Light fade into the body only — the group artwork carries its own title,
   so it must stay readable rather than being dimmed. */
.gcard-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.45) 0%, transparent 22%);
  pointer-events: none;
}

/* Artwork-free banner: grid field, accent bloom, outlined title. */
.gcard-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px 30px;
  text-align: center;
  background: linear-gradient(160deg, var(--bc-surface-2) 0%, var(--bc-surface) 70%);
}
.gcard-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(85% 85% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 85% at 50% 45%, #000 35%, transparent 100%);
}

.gcard-fallback-title {
  position: relative;
  font-size: clamp(1.3rem, 3.4vw, 1.95rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.22);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.gcard:hover .gcard-fallback-title { -webkit-text-stroke-color: rgba(255, 255, 255, 0.34); }

.gcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 17px 16px;
}

.gcard-name {
  margin: 0 0 3px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcard-count {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.4);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
}

.gcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* "From $7.99" reads as one line, the way the reference lays it out. */
.gcard-priceblock {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.gcard-from {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-weight: 500;
}
.gcard-amt {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}

.gcard-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: color 0.3s ease, gap 0.3s ease;
}
.gcard-more svg { width: 13px; height: 13px; opacity: 0.8; }
.gcard:hover .gcard-more { color: var(--bc-text); gap: 9px; }

@media (prefers-reduced-motion: reduce) {
  .gcard, .gcard-art img, .gcard-more, .gcard-fallback-title { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Type & rhythm (second design pass)
   ───────────────────────────────────────────────────────────────────────────
   One heading scale, one lead style and one eyebrow style for every section,
   so the landing page reads as a single document instead of five components
   that each picked their own sizes. Selectors are prefixed with `html body`
   because component <style> blocks load after this file; the extra
   specificity lets these win without !important.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bc-section-y: clamp(72px, 9vw, 120px);
  --bc-h1:        clamp(2.125rem, 4.2vw, 3rem);
  --bc-h2:        clamp(1.75rem, 3vw, 2.375rem);
  --bc-tight:     -0.035em;
}

html body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Inter's straight-sided alternates: single-storey a/l/t read sharper at UI sizes. */
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.006em;
}

/* ── Section header ─────────────────────────────────────────────────────── */
html body .bc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 48px;
  text-align: center;
}

html body .bc-h2,
html body .fq-title,
html body .af-heading {
  margin: 0;
  font-size: var(--bc-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--bc-tight);
  color: var(--bc-text);
  text-wrap: balance;
}
html body .af-heading { margin-bottom: 16px; }

/* Page titles (/products, the group pages) — one step up from a section. */
html body .ap-title,
html body .ap-gtitle {
  font-size: var(--bc-h1);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--bc-text);
  text-wrap: balance;
}

html body .bc-lead,
html body .fq-sub,
html body .ap-sub,
html body .ap-gsub,
html body .af-desc {
  margin: 0;
  max-width: 34rem;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--bc-text-2);
  text-wrap: pretty;
}
html body .af-desc { margin-bottom: 28px; }

/* ── Eyebrows: a label, not a badge ─────────────────────────────────────── */
/* These were four slightly different green pills. Now: plain text in the
   secondary grey with the icon carrying the one hint of green. */
html body .fp-kicker,
html body .ap-kicker,
html body .fq-kicker,
html body .af-badge {
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--bc-text-2);
}
html body .fp-kicker svg,
html body .ap-kicker svg,
html body .fq-kicker svg,
html body .af-badge svg {
  width: 14px;
  height: 14px;
  color: var(--bc-accent);
}

/* ── Vertical rhythm on the landing page ────────────────────────────────── */
html body .ld-stack > .py-20 {
  padding-top: var(--bc-section-y);
  padding-bottom: var(--bc-section-y);
}
/* The product grid sits straight under the hero — the hero's own bottom
   padding is the gap, so don't stack a second one on top of it. */
html body .ld-stack > #products.py-20 { padding-top: 8px; }
html body .af-section { padding-top: var(--bc-section-y); padding-bottom: var(--bc-section-y); }

@media (max-width: 768px) {
  html body .bc-head { margin-bottom: 36px; }
  html body .af-section { padding-left: 16px; padding-right: 16px; }
}

/* ── Quieter ambient motion ─────────────────────────────────────────────── */
/* Loops that only decorate: the spotlight art drift, the ping rings, the
   light sweep on the affiliate button and the status banner sheen. The
   payment marquees and the delivery packet stay — they show something. */
html body #why-bento .wb-sp-art img,
html body #why-bento .wb-ring { animation: none; }
html body #why-bento .wb-ring { opacity: 0; }
html body .af-btn-shine { animation: none; opacity: 0; }
html body .sp-summary-sheen { animation: none; opacity: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Landing v3 — shared building blocks (lx-*)
   ───────────────────────────────────────────────────────────────────────────
   Every landing section is built from the same few pieces: a left-aligned
   two-tone header (bright lead phrase, dimmed continuation), flat surface
   cards with hairline borders, and one button pair. Sections own their
   layout; this file owns the vocabulary, so they cannot drift apart.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --lx-bg:        #0A0A0B;
  --lx-card:      #111113;
  --lx-card-2:    #161618;
  --lx-line:      rgba(255, 255, 255, 0.07);
  --lx-line-2:    rgba(255, 255, 255, 0.12);
  --lx-text:      #EDEDEF;
  --lx-text-2:    #A0A0A8;
  --lx-text-3:    #66666E;
  --lx-accent:    var(--cl-accent, #00ff00);
  --lx-accent-rgb: var(--cl-accent-rgb, 0, 255, 0);
  --lx-wrap:      1200px;
  --lx-gutter:    24px;
}

html, body { background: var(--lx-bg); }

.lx-wrap {
  width: 100%;
  max-width: calc(var(--lx-wrap) + var(--lx-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
  box-sizing: border-box;
}
.lx-section { position: relative; padding: var(--bc-section-y, 104px) 0; }
.lx-section *, .lx-section *::before, .lx-section *::after { box-sizing: border-box; }

/* ── Section header ─────────────────────────────────────────────────────── */
.lx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.lx-head__text { max-width: 760px; }
.lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--lx-accent);
}
.lx-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 2px;
  background: currentColor;
}
.lx-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--lx-text);
  text-wrap: balance;
}
.lx-dim { color: var(--lx-text-3); }
.lx-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lx-text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.lx-action svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.lx-action:hover { color: var(--lx-text); }
.lx-action:hover svg { transform: translate(2px, -2px); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.lx-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lx-btn--primary { background: var(--lx-accent); color: #000; }
.lx-btn--primary:hover { color: #000; filter: brightness(1.08); }
.lx-btn--primary svg { transition: transform 0.15s ease; }
.lx-btn--primary:hover svg { transform: translateX(2px); }
.lx-btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--lx-line-2); color: var(--lx-text); }
.lx-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.lx-card {
  position: relative;
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  overflow: hidden;
}
/* Faint top highlight — the one bit of depth these cards get. */
.lx-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.lx-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--lx-text-3);
  border: 1px solid var(--lx-line);
  background: rgba(255, 255, 255, 0.02);
}
.lx-kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--lx-text-3);
  border: 1px solid var(--lx-line-2);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
  :root { --lx-gutter: 18px; }
  .lx-head { margin-bottom: 32px; }
}

/* The old landing wrappers no longer apply to rebuilt sections. */
html body .ld-seam { display: none; }

/* Keyboard focus: one consistent ring in the accent colour. :where() keeps
   specificity at zero so any component that styles its own focus wins, and
   :focus-visible keeps it off mouse clicks. */
:where(a, button, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--lx-accent, #00ff00);
  outline-offset: 2px;
}