/* ==========================================================================
   T7777 — Global Stylesheet (Design System + Components)
   Vanilla CSS. Mobile-first. Media queries in responsive.css.
   Layers: tokens · reset · type · layout · components · header/footer/nav.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand — premium charcoal/black */
  --c-brand-900: #0a0a0d;
  --c-brand-800: #121216;
  --c-brand-700: #1b1b21;
  --c-brand-600: #26262f;
  --c-brand-500: #33333f;
  --c-brand-400: #4b4b5a;
  --c-brand-300: #71717f;

  /* Accent — gold */
  --c-accent-600: #c8971a;
  --c-accent-500: #e8b923;
  --c-accent-400: #f2c94c;
  --c-accent-300: #f7dd8a;

  /* CTA — win green */
  --c-cta-700: #1f7a44;
  --c-cta-600: #269654;
  --c-cta-500: #2fb567;
  --c-cta-400: #55c884;

  /* Feedback */
  --c-success: #2fb567;
  --c-warning: #e0a800;
  --c-danger:  #d64545;
  --c-info:    #3a8dde;

  /* Neutrals */
  --c-neutral-0:   #ffffff;
  --c-neutral-50:  #f7f8fa;
  --c-neutral-100: #eef0f4;
  --c-neutral-200: #dfe2e9;
  --c-neutral-300: #c2c7d2;
  --c-neutral-400: #9aa0af;
  --c-neutral-500: #6b7280;
  --c-neutral-600: #4a4f5c;
  --c-neutral-700: #333844;
  --c-neutral-800: #1f232c;
  --c-neutral-900: #12151b;

  /* Semantic (light defaults) */
  --c-bg:            var(--c-neutral-50);
  --c-surface:       var(--c-neutral-0);
  --c-surface-alt:   var(--c-neutral-100);
  --c-surface-inverse: var(--c-brand-900);
  --c-border:        var(--c-neutral-200);
  --c-border-strong: var(--c-neutral-300);
  --c-text:          var(--c-neutral-800);
  --c-text-muted:    var(--c-neutral-500);
  --c-text-inverse:  var(--c-neutral-0);
  --c-link:          var(--c-accent-600);
  --c-link-hover:    var(--c-accent-500);
  --c-focus:         var(--c-accent-500);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Sora", "Bahnschrift", "Segoe UI Variable Display", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --fs-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --fs-sm:   clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --fs-base: clamp(0.95rem, 0.92rem + 0.20vw, 1.05rem);
  --fs-md:   clamp(1.10rem, 1.02rem + 0.35vw, 1.30rem);
  --fs-lg:   clamp(1.35rem, 1.20rem + 0.60vw, 1.70rem);
  --fs-xl:   clamp(1.70rem, 1.45rem + 1.05vw, 2.30rem);
  --fs-2xl:  clamp(2.10rem, 1.70rem + 1.75vw, 3.10rem);
  --fs-3xl:  clamp(2.55rem, 1.95rem + 2.70vw, 4.00rem);

  --lh-tight: 1.15; --lh-snug: 1.30; --lh-base: 1.60; --lh-loose: 1.75;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --tracking-tight: -0.02em; --tracking-wide: 0.04em;

  /* Spacing (8pt) */
  --sp-0: 0; --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;

  /* Layout */
  --container-max: 1200px; --container-wide: 1440px; --container-narrow: 760px;
  --gutter: var(--sp-4); --grid-gap: var(--sp-5);

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --r-pill: 999px; --r-circle: 50%;

  /* Border */
  --bw: 1px; --bw-thick: 2px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10,10,13,0.06);
  --sh-sm: 0 2px 6px rgba(10,10,13,0.10);
  --sh-md: 0 6px 18px rgba(10,10,13,0.12);
  --sh-lg: 0 14px 40px rgba(10,10,13,0.18);
  --sh-focus: 0 0 0 3px rgba(232,185,35,0.45);

  /* Z-index */
  --z-base: 0; --z-raised: 10; --z-sticky: 100; --z-header: 200;
  --z-drawer: 300; --z-overlay: 400; --z-modal: 500; --z-toast: 600;

  /* Motion */
  --dur-fast: 120ms; --dur-base: 220ms; --dur-slow: 400ms;
  --ease-standard: cubic-bezier(0.2,0,0,1);
  --ease-out: cubic-bezier(0.16,1,0.3,1);

  /* Component sizing */
  --tap-min: 48px; --header-h: 84px; --focus-ring: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: var(--c-neutral-900); --c-surface: var(--c-brand-800);
    --c-surface-alt: var(--c-brand-700); --c-border: #2a2a33;
    --c-border-strong: #3a3a46; --c-text: var(--c-neutral-100);
    --c-text-muted: var(--c-neutral-400);
    --c-link: var(--c-accent-400); --c-link-hover: var(--c-accent-300);
  }
}
:root[data-theme="dark"] {
  --c-bg: var(--c-neutral-900); --c-surface: var(--c-brand-800);
  --c-surface-alt: var(--c-brand-700); --c-border: #2a2a33;
  --c-border-strong: #3a3a46; --c-text: var(--c-neutral-100);
  --c-text-muted: var(--c-neutral-400);
  --c-link: var(--c-accent-400); --c-link-hover: var(--c-accent-300);
}

/* ==========================================================================
   1b. SELF-HOSTED FONTS (scaffold)
   Drop these woff2 files into assets/fonts/ and they activate automatically:
     assets/fonts/inter.woff2   (Inter variable, body)
     assets/fonts/sora.woff2    (Sora variable, headings)
   Until then, the premium system-font fallback in --font-sans/--font-head is used.
   Download from fonts.google.com (open source) — self-host only, no CDN.
   ========================================================================== */
@font-face {
  font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sora"; src: url("/assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + var(--sp-4)); }
body {
  min-height: 100svh; font-family: var(--font-sans); font-size: var(--fs-base);
  line-height: var(--lh-base); color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-link-hover); }
:target { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head); font-weight: 800;
  line-height: var(--lh-tight); letter-spacing: -0.025em;
  color: var(--c-text); text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
p { max-width: 68ch; }
p, ul, ol, blockquote { line-height: var(--lh-base); }
small, .text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-muted { color: var(--c-text-muted); }
strong, b { font-weight: var(--fw-semibold); }
.eyebrow {
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent-600);
}
.lead { font-size: var(--fs-md); color: var(--c-text-muted); line-height: var(--lh-snug); }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

.prose { max-width: var(--container-narrow); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose a { color: var(--c-link); text-decoration: underline; }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li + li { margin-top: var(--sp-2); }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-7); }
.section--lg { padding-block: var(--sp-9); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.grid { display: grid; gap: var(--grid-gap); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
.with-sidebar { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.no-scroll { overflow: hidden; }

.skip-link {
  position: absolute; left: var(--sp-2); top: -100%; z-index: var(--z-toast);
  background: var(--c-surface); color: var(--c-text);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); box-shadow: var(--sh-md);
}
.skip-link:focus { top: var(--sp-2); }

/* ==========================================================================
   5. FOCUS
   ========================================================================== */
:focus-visible { outline: var(--focus-ring) solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--c-brand-500); --btn-fg: var(--c-text-inverse); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap-min); padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-head); font-size: var(--fs-base); font-weight: var(--fw-semibold);
  line-height: 1; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--bw) solid var(--btn-bd); border-radius: var(--r-md);
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
  user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn--primary { --btn-bg: var(--c-brand-500); }
.btn--primary:hover { background: var(--c-brand-600); }
/* Primary signup CTA — single premium gold action colour (minimal palette) */
.btn--cta {
  --btn-fg: #241a02;
  background: linear-gradient(180deg, var(--c-accent-400), var(--c-accent-600));
  box-shadow: 0 4px 14px rgba(232,185,35,0.28);
}
.btn--cta:hover { background: linear-gradient(180deg, var(--c-accent-300), var(--c-accent-500)); box-shadow: 0 6px 20px rgba(232,185,35,0.40); }
.btn--accent { --btn-fg: #241a02; background: linear-gradient(180deg, var(--c-accent-400), var(--c-accent-600)); }
.btn--accent:hover { background: linear-gradient(180deg, var(--c-accent-300), var(--c-accent-500)); }

/* Subtle attention pulse for key signup buttons */
.btn--pulse { animation: pulse-gold 2.4s var(--ease-standard) infinite; }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 4px 14px rgba(232,185,35,0.28), 0 0 0 0 rgba(232,185,35,0.45); }
  50% { box-shadow: 0 6px 20px rgba(232,185,35,0.40), 0 0 0 10px rgba(232,185,35,0); }
}
@media (prefers-reduced-motion: reduce) { .btn--pulse { animation: none; } }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-border-strong); }
.btn--secondary:hover { background: var(--c-surface-alt); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-link); }
.btn--ghost:hover { background: var(--c-surface-alt); }
.btn--sm { min-height: 40px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: var(--sp-4) var(--sp-7); font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  display: flex; flex-direction: column; background: var(--c-surface);
  border: var(--bw) solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); overflow: clip;
  transition: box-shadow var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.card--interactive:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--c-border-strong); }
.card__media { aspect-ratio: 16 / 9; background: var(--c-surface-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); flex: 1; }
.card__title { font-size: var(--fs-md); }
.card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.bonus-box {
  border: var(--bw-thick) solid var(--c-accent-500);
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-alt));
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-sm);
}

/* ==========================================================================
   8. BADGES / CHIPS / RATING
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.2em 0.7em; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  line-height: 1.4; border-radius: var(--r-pill); background: var(--c-surface-alt); color: var(--c-text);
}
.badge--accent { background: var(--c-accent-500); color: var(--c-brand-900); }
.badge--cta { background: var(--c-cta-500); color: #04210f; }
.badge--18 { background: var(--c-danger); color: #fff; font-weight: var(--fw-bold); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: 36px; padding: var(--sp-1) var(--sp-3); font-size: var(--fs-sm);
  border-radius: var(--r-pill); background: var(--c-surface-alt); color: var(--c-text);
  border: var(--bw) solid var(--c-border);
}
a.chip:hover, .chip--active { background: var(--c-accent-500); color: var(--c-brand-900); border-color: transparent; }
.rating { --rating: 0; display: inline-flex; align-items: center; gap: var(--sp-2); }
.rating__stars {
  font-size: var(--fs-md); line-height: 1;
  background: linear-gradient(90deg, var(--c-accent-500) calc(var(--rating)/5*100%), var(--c-neutral-300) calc(var(--rating)/5*100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating__stars::before { content: "★★★★★"; letter-spacing: 2px; }
.rating__value { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.score {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3ch;
  padding: var(--sp-1) var(--sp-2); font-family: var(--font-head); font-weight: var(--fw-bold);
  border-radius: var(--r-sm); background: var(--c-cta-500); color: #04210f;
}

/* ==========================================================================
   9. ICONS
   ========================================================================== */
.icon {
  display: inline-block; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; flex: none;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   10. DIVIDERS / SURFACES
   ========================================================================== */
.divider { height: var(--bw); background: var(--c-border); border: 0; margin-block: var(--sp-5); }
.surface { background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-5); }
.surface--inverse { background: var(--c-surface-inverse); color: var(--c-text-inverse); border-color: transparent; }

/* ==========================================================================
   11. HEADER / NAV / DRAWER  (Step 4)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--c-brand-900); color: var(--c-text-inverse);
  border-bottom: var(--bw) solid rgba(255,255,255,0.06);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: var(--sh-md); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: var(--header-h);
}

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: inherit; font-family: var(--font-head); }
.brand:hover { color: inherit; }
.brand__mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-sm); background: linear-gradient(135deg, var(--c-accent-500), var(--c-accent-600));
  color: var(--c-brand-900); font-weight: var(--fw-bold); font-size: 0.85rem; letter-spacing: -0.03em;
}
.brand__name { font-weight: var(--fw-bold); font-size: var(--fs-md); letter-spacing: var(--tracking-tight); }
.brand__name b { color: var(--c-accent-500); }
.brand__logo { height: 64px; width: auto; display: block; }

/* Desktop nav list */
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav__list { list-style: none; display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: var(--sp-2) var(--sp-3);
  color: rgba(255,255,255,0.82); text-decoration: none; font-family: var(--font-head);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__link[aria-current="page"] { color: var(--c-accent-500); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; width: 100%; margin-top: 2px;
  background: var(--c-accent-500); border-radius: 2px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min);
  border-radius: var(--r-sm); color: rgba(255,255,255,0.9);
  transition: background var(--dur-fast) var(--ease-standard);
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.header-actions .btn--cta { min-height: 44px; padding-inline: var(--sp-4); }

/* Mobile toggle */
.nav__toggle {
  display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min);
  color: #fff; border-radius: var(--r-sm);
}
.nav__toggle:hover { background: rgba(255,255,255,0.08); }

/* Drawer (mobile) */
.nav__drawer {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
  background: var(--c-brand-800); color: #fff; z-index: var(--z-drawer);
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column; padding: var(--sp-5);
  overflow-y: auto; box-shadow: var(--sh-lg);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); width: 100%; }
.nav__drawer .nav__link { min-height: var(--tap-min); font-size: var(--fs-base); border-radius: var(--r-md); }
.nav__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.nav__drawer-cta { margin-top: var(--sp-5); }

/* Overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: var(--z-overlay);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-standard), visibility var(--dur-base);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* Announcement / disclosure bar */
.topbar {
  background: var(--c-brand-800); color: rgba(255,255,255,0.72);
  font-size: var(--fs-xs); text-align: center; padding: var(--sp-1) var(--gutter);
}
.topbar b { color: var(--c-accent-400); }

/* ==========================================================================
   12. FOOTER  (styled here; markup delivered in Step 5)
   ========================================================================== */
.site-footer { background: var(--c-brand-900); color: rgba(255,255,255,0.72); padding-block: var(--sp-7) var(--sp-5); margin-top: var(--sp-8); }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.footer__title { color: #fff; font-family: var(--font-head); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--sp-3); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer__bottom { border-top: var(--bw) solid rgba(255,255,255,0.08); margin-top: var(--sp-6); padding-top: var(--sp-4); font-size: var(--fs-xs); }

/* ==========================================================================
   13. STICKY MOBILE CTA
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  padding: var(--sp-2) var(--gutter) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: var(--c-brand-900); border-top: var(--bw) solid rgba(255,255,255,0.08);
  display: flex; gap: var(--sp-2);
}
.sticky-cta .btn { flex: 1; }

/* ==========================================================================
   14. ANIMATION
   ========================================================================== */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.animate-rise { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.animate-fade { animation: fade-in var(--dur-base) var(--ease-standard) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   15. HOMEPAGE / SECTION COMPONENTS  (Step 6)
   ========================================================================== */
/* Section heading */
.section-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: var(--sp-2); }
.section-head p { color: var(--c-text-muted); margin-top: var(--sp-2); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: clip;
  /* Hero artwork on the right; left is darkened so our real H1 + CTAs stay
     readable and any baked-in text on the image is masked. */
  background:
    linear-gradient(90deg, rgba(8,8,11,0.96) 0%, rgba(8,8,11,0.9) 38%, rgba(8,8,11,0.5) 66%, rgba(8,8,11,0.2) 100%),
    url("/assets/images/brand/hero-bg.png") right center / cover no-repeat,
    var(--c-brand-900);
}
@media (max-width: 767.98px) {
  /* On mobile the composite artwork has baked-in text; veil it heavily and
     push it to the bottom so only the emblem glow shows, no ghost text. */
  .hero { background:
    linear-gradient(180deg, rgba(8,8,11,0.97) 0%, rgba(8,8,11,0.9) 55%, rgba(8,8,11,0.78) 100%),
    url("/assets/images/brand/hero-bg.png") right bottom / 150% auto no-repeat,
    var(--c-brand-900); }
  .hero__inner { min-height: 340px; }
}
.hero__inner { display: grid; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-7); align-items: center; min-height: 420px; }
.hero h1 { color: #fff; font-size: var(--fs-3xl); }
.hero h1 b { color: var(--c-accent-500); }
.hero__lead { color: rgba(255,255,255,0.82); font-size: var(--fs-md); max-width: 52ch; }
.hero__cta { margin-top: var(--sp-2); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-5); color: rgba(255,255,255,0.75); font-size: var(--fs-sm); }
.hero__trust span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__trust .icon { color: var(--c-accent-500); }
.hero__panel {
  background: rgba(255,255,255,0.05); border: var(--bw) solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg); padding: var(--sp-5); backdrop-filter: blur(4px);
}
.hero__panel h2 { color: #fff; font-size: var(--fs-lg); }
.hero__offer { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--c-accent-500); line-height: 1.1; }

/* Media placeholder (decorative gradient block until real art added) */
.ph {
  display: grid; place-items: center; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-brand-700), var(--c-brand-500));
  color: rgba(255,255,255,0.6); font-family: var(--font-head); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; font-size: var(--fs-sm);
}
.ph--gold { background: linear-gradient(135deg, var(--c-accent-600), var(--c-accent-400)); color: rgba(10,10,13,0.7); }
.ph--square { aspect-ratio: 1/1; }

/* Bonus strip */
.bonus-strip { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.bonus-strip__offer { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--c-accent-600); }

/* Benefits */
.benefit { text-align: left; }
.benefit__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--c-surface-alt); color: var(--c-accent-600); margin-bottom: var(--sp-3);
}
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit h3 { font-size: var(--fs-md); }
.benefit p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* Steps (numbered how-to) */
.steps { display: grid; gap: var(--sp-4); counter-reset: step; list-style: none; padding: 0; }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-lg); }
.step__num {
  counter-increment: step; flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-circle);
  background: var(--c-brand-900); color: var(--c-accent-500);
  font-family: var(--font-head); font-weight: var(--fw-bold);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--fs-md); }
.step p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* Payment logos strip */
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.pay-item {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4);
  background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-md);
  text-decoration: none; color: var(--c-text); min-height: 64px;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.pay-item:hover { border-color: var(--c-accent-500); box-shadow: var(--sh-sm); color: var(--c-text); }
.pay-item__logo { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-sm); color: #fff; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--c-brand-800), var(--c-brand-600));
  color: #fff; border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-5);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); margin-inline: auto; }

/* App band */
.app-band { display: grid; gap: var(--sp-5); align-items: center; }
.app-band__badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

/* FAQ accordion */
.faq { display: grid; gap: var(--sp-3); }
.faq__item { border: var(--bw) solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); overflow: clip; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); text-align: left; font-family: var(--font-head);
  font-weight: var(--fw-semibold); font-size: var(--fs-base); color: var(--c-text); min-height: var(--tap-min);
}
.faq__q .icon { transition: transform var(--dur-base) var(--ease-standard); color: var(--c-accent-600); flex: none; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { padding: 0 var(--sp-5); max-height: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease-standard), padding var(--dur-base) var(--ease-standard); }
.faq__a[data-open] { padding-block: var(--sp-2) var(--sp-5); }
.faq__a p { color: var(--c-text-muted); }

/* Game grid (casino-style tile showcase) */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.game-tile {
  display: block; text-decoration: none; color: var(--c-text-inverse);
  border-radius: var(--r-lg); overflow: clip; position: relative;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.game-tile img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.game-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(232,185,35,0.22); }
.game-tile:hover::after {
  content: "Play"; position: absolute; inset: auto 0 0 0;
  padding: var(--sp-2); text-align: center; font-family: var(--font-head); font-weight: var(--fw-bold);
  font-size: var(--fs-sm); color: #04210f; background: var(--c-cta-500);
}
.game-tile__badge {
  position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 1;
  background: var(--c-cta-500); color: #04210f; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  padding: 2px 8px; border-radius: var(--r-pill);
}

/* Trust / responsible-gambling strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: center; padding: var(--sp-5); border: var(--bw) dashed var(--c-border-strong); border-radius: var(--r-lg); text-align: center; }
.trust-strip .badge--18 { font-size: var(--fs-sm); }

/* ==========================================================================
   16. BREADCRUMBS
   ========================================================================== */
.breadcrumb { padding-block: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-link); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: var(--fw-medium); }

/* ==========================================================================
   17. REVIEW / ARTICLE COMPONENTS
   ========================================================================== */
/* Page intro header */
.page-head { padding-block: var(--sp-6) var(--sp-5); }
.page-head h1 { margin-bottom: var(--sp-2); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); color: var(--c-text-muted); font-size: var(--fs-sm); align-items: center; }

/* Verdict / score box */
.verdict { display: grid; gap: var(--sp-4); align-items: center; }
.verdict__score {
  display: grid; place-items: center; text-align: center;
  background: var(--c-brand-900); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5);
}
.verdict__num { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-3xl); color: var(--c-accent-500); line-height: 1; }
.verdict__out { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }

/* Pros / cons */
.proscons { display: grid; gap: var(--sp-4); }
.proscons__col { padding: var(--sp-5); border-radius: var(--r-lg); border: var(--bw) solid var(--c-border); background: var(--c-surface); }
.proscons__col h3 { font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }
.proscons__list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-2); }
.proscons__list li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); }
.proscons__list .icon { flex: none; margin-top: 2px; }
.pros h3 .icon, .pros .icon { color: var(--c-cta-600); }
.cons h3 .icon, .cons .icon { color: var(--c-danger); }

/* Spec / facts table */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: var(--bw) solid var(--c-border); vertical-align: top; }
.spec th { width: 40%; color: var(--c-text-muted); font-weight: var(--fw-semibold); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* Table of contents */
.toc { background: var(--c-surface-alt); border: var(--bw) solid var(--c-border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--c-text-muted); }
.toc ol { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); display: grid; gap: var(--sp-1); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Author byline */
.byline { display: flex; align-items: center; gap: var(--sp-3); }
.byline__avatar { width: 40px; height: 40px; border-radius: var(--r-circle); background: var(--c-brand-500); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: var(--fw-bold); flex: none; }
.byline__name { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.byline__date { color: var(--c-text-muted); font-size: var(--fs-xs); }

/* ==========================================================================
   18. BLOG / GUIDES
   ========================================================================== */
.blog-search { position: relative; max-width: 520px; }
.blog-search input {
  width: 100%; min-height: var(--tap-min); padding: var(--sp-3) var(--sp-4) var(--sp-3) 2.75rem;
  border: var(--bw) solid var(--c-border-strong); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-text); font-size: var(--fs-base);
}
.blog-search input:focus-visible { border-color: var(--c-accent-500); }
.blog-search .icon { position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--c-text-muted); pointer-events: none; }

.cat-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); text-decoration: none; color: var(--c-text); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-lg); transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.cat-card:hover { border-color: var(--c-accent-500); box-shadow: var(--sh-sm); transform: translateY(-2px); color: var(--c-text); }
.cat-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-surface-alt); color: var(--c-accent-600); }
.cat-card h3 { font-size: var(--fs-md); }
.cat-card p { color: var(--c-text-muted); font-size: var(--fs-sm); margin: 0; }

.post-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; color: var(--c-text-muted); font-size: var(--fs-xs); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; list-style: none; padding: 0; margin-top: var(--sp-6); }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: var(--tap-min); height: var(--tap-min); padding-inline: var(--sp-3); border: var(--bw) solid var(--c-border); border-radius: var(--r-sm); text-decoration: none; color: var(--c-text); }
.pagination a:hover { border-color: var(--c-accent-500); color: var(--c-text); }
.pagination [aria-current="page"] { background: var(--c-brand-900); color: #fff; border-color: transparent; }

/* ==========================================================================
   19. HELPERS
   ========================================================================== */
[hidden] { display: none !important; }
@media print { body { background: #fff; color: #000; } .no-print, .site-header, .sticky-cta { display: none !important; } }
