/* =========================================================================
   1xBet Promo Code — design system
   Layers: tokens, reset, base, layout, components, utilities
   ========================================================================= */

@layer tokens, reset, base, layout, components, utilities;

/* ---------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Palette */
    --ink-950: #05070c;
    --ink-900: #0b1220;
    --ink-800: #131c2e;
    --ink-700: #1c2740;

    --blue-700: #0f3fc0;
    --blue-600: #155cf0;
    --blue-500: #3b7bff;
    --blue-100: #e7eeff;

    --green-600: #0fa958;
    --green-500: #17c964;
    --green-100: #e3fbee;

    --surface-0: #ffffff;
    --surface-1: #f5f8fd;
    --surface-2: #edf1f9;
    --border: #e1e7f2;
    --border-dark: #232f47;

    --text-900: #0b1220;
    --text-700: #35405a;
    --text-600: #4a5568;
    --text-500: #6b7686;

    --on-dark: #e9eefc;
    --on-dark-muted: #9fb0ce;

    /* Type */
    --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --fs-h1: clamp(2.25rem, 1.85rem + 1.8vw, 3.75rem);
    --fs-h2: clamp(1.6rem, 1.4rem + 1vw, 2.375rem);
    --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9rem;

    --lh-tight: 1.15;
    --lh-snug: 1.35;
    --lh-body: 1.7;

    /* Spacing */
    --space-section: clamp(3.5rem, 2.6rem + 4vw, 7rem);
    --space-block: clamp(2rem, 1.6rem + 1.8vw, 3.5rem);
    --gutter: clamp(1.25rem, 4vw, 3rem);

    --container-max: 1280px;
    --measure: 68ch;

    /* Radii + shadow */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08), 0 2px 6px rgba(11, 18, 32, 0.05);
    --shadow-lg: 0 24px 60px rgba(7, 12, 24, 0.16), 0 8px 20px rgba(7, 12, 24, 0.08);
    --shadow-glow: 0 0 0 1px rgba(59, 123, 255, 0.16), 0 20px 50px rgba(21, 92, 240, 0.22);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.35s;

    color-scheme: light;
  }
}

/* ---------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, picture, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  table { border-collapse: collapse; }
}

/* ---------------------------------------------------------------------- */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-900);
    background: var(--surface-0);
    font-feature-settings: "ss01" 1;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: var(--lh-tight);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-900);
  }

  h1 { font-size: var(--fs-h1); font-weight: 700; }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }

  p { max-width: var(--measure); }
  p + p { margin-top: 1em; }

  a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

  strong { color: var(--ink-900); font-weight: 700; }

  :focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
  }
}

/* ---------------------------------------------------------------------- */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section { padding-block: var(--space-section); }
  .section--tight { padding-block: var(--space-block); }
  .section--dark {
    background: radial-gradient(120% 140% at 15% 0%, var(--ink-800) 0%, var(--ink-950) 65%);
    color: var(--on-dark);
  }
  .section--alt { background: var(--surface-1); }

  .stack { display: flex; flex-direction: column; gap: var(--space-block); }

  .grid-article {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: 1fr;
  }
  @media (min-width: 900px) {
    .grid-article { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
    .grid-article__toc { order: 2; }
  }
}

/* ---------------------------------------------------------------------- */
@layer components {

  /* Skip link ----------------------------------------------------------- */
  .skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--blue-600);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top var(--dur) var(--ease);
    font-weight: 600;
  }
  .skip-link:focus { top: 1rem; }

  /* Header ---------------------------------------------------------------*/
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
  }
  .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 4.5rem;
  }
  .brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; }
  .brand img { height: 28px; width: auto; }

  .nav-desktop { display: none; }
  @media (min-width: 900px) {
    .nav-desktop {
      display: flex;
      align-items: center;
      gap: clamp(1rem, 2vw, 2rem);
      list-style: none;
    }
    .nav-desktop a {
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-700);
      padding-block: 0.5rem;
      border-bottom: 2px solid transparent;
      transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
    }
    .nav-desktop a:hover,
    .nav-desktop a[aria-current="page"] { color: var(--blue-600); border-color: var(--blue-600); }
  }

  .header-actions { display: flex; align-items: center; gap: 0.75rem; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  @media (min-width: 900px) { .nav-toggle { display: none; } }
  .nav-toggle svg { width: 1.35rem; height: 1.35rem; }

  .nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--surface-0);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 200;
    padding: 1.5rem;
    overflow-y: auto;
  }
  .nav-drawer[data-open="true"] { transform: translateX(0); }
  .nav-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
  .nav-drawer a {
    display: block;
    padding: 0.85rem 0.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-900);
  }
  .nav-drawer a[aria-current="page"] { color: var(--blue-600); }

  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
    z-index: 150;
  }
  .scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

  @media (min-width: 900px) {
    .nav-toggle, .nav-drawer, .scrim { display: none; }
  }

  /* Buttons --------------------------------------------------------------*/
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    box-shadow: var(--shadow-glow);
  }
  .btn-primary:hover { box-shadow: 0 26px 55px rgba(21, 92, 240, 0.32); }
  .btn-accent {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--ink-950);
    box-shadow: 0 16px 40px rgba(23, 201, 100, 0.28);
  }
  .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.28);
  }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
  .btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--blue-600);
  }
  .btn-outline:hover { background: var(--blue-100); }
  .btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

  /* Breadcrumb -------------------------------------------------------------*/
  .breadcrumb { padding-block: 1rem; font-size: 0.85rem; }
  .breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--text-500); }
  .breadcrumb a { color: var(--text-600); text-decoration: none; }
  .breadcrumb a:hover { color: var(--blue-600); }
  .breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--border); }
  .breadcrumb li[aria-current="page"] { color: var(--text-900); font-weight: 600; }

  /* Home hero -------------------------------------------------------------*/
  .hero {
    position: relative;
    overflow: hidden;
    background: var(--ink-950);
    color: var(--on-dark);
    padding-block: clamp(2.5rem, 3vw, 4rem) clamp(4rem, 6vw, 6rem);
  }
  .hero__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
  }
  @media (min-width: 960px) {
    .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  }
  .hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 123, 255, 0.16);
    border: 1px solid rgba(59, 123, 255, 0.35);
    color: var(--blue-500);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
  }
  .hero h1 { color: #fff; margin-bottom: 1rem; }
  .hero__lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 52ch; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
  .hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2.25rem; }
  .hero__chip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--on-dark-muted); }
  .hero__chip svg { width: 1.1rem; height: 1.1rem; color: var(--green-500); flex-shrink: 0; }

  .hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 94%);
  }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__badge {
    position: absolute;
    left: clamp(0.75rem, 3vw, 1.75rem);
    bottom: clamp(0.75rem, 3vw, 1.75rem);
    background: rgba(11, 18, 32, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 260px;
  }
  .hero__badge strong { display: block; color: #fff; font-size: 1.05rem; }
  .hero__badge span { color: var(--on-dark-muted); font-size: 0.8rem; }

  /* Article hero (inner pages) --------------------------------------------*/
  .article-hero {
    position: relative;
    background: var(--ink-950);
    color: var(--on-dark);
    overflow: hidden;
  }
  .article-hero__grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-block: clamp(2.5rem, 4vw, 4.5rem);
  }
  @media (min-width: 900px) {
    .article-hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  }
  .article-hero h1 { color: #fff; }
  .article-hero__dek { color: var(--on-dark-muted); font-size: var(--fs-lead); margin-top: 0.85rem; max-width: 56ch; }
  .article-hero__media {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .article-hero__media--top img { object-position: top; }

  .byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--on-dark-muted);
  }
  .byline__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--blue-500), var(--green-500));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .byline a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }

  /* Table of contents ------------------------------------------------------*/
  .toc {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
  }
  .toc__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem; }
  .toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.15rem; }
  .toc li { counter-increment: toc; }
  .toc a {
    display: flex;
    gap: 0.6rem;
    padding: 0.45rem 0.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-600);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--blue-500);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .toc a:hover, .toc a.is-active { background: var(--blue-100); color: var(--blue-700); }
  @media (min-width: 900px) {
    .toc { position: sticky; top: 6rem; }
  }

  details.toc-mobile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 2rem; }
  details.toc-mobile summary { font-family: var(--font-display); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  details.toc-mobile summary::-webkit-details-marker { display: none; }
  details.toc-mobile[open] summary { margin-bottom: 0.75rem; }
  @media (min-width: 900px) { details.toc-mobile { display: none; } }

  /* Article prose ----------------------------------------------------------*/
  .prose > * + * { margin-top: 1.35em; }
  .prose h2 { margin-top: 2.75rem; scroll-margin-top: 6rem; }
  .prose h3 { margin-top: 2rem; scroll-margin-top: 6rem; }
  .prose ul, .prose ol { padding-left: 1.35rem; max-width: var(--measure); }
  .prose li + li { margin-top: 0.5rem; }
  .prose ul { list-style: none; }
  .prose > .prose-section > ul > li,
  .prose ul.check-list li { position: relative; padding-left: 1.6rem; }
  .prose ul.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 3px;
    background: var(--green-100);
    border: 1.5px solid var(--green-500);
  }
  .prose section { scroll-margin-top: 5.5rem; }

  .lede { font-size: var(--fs-lead); color: var(--text-700); }

  .callout {
    background: linear-gradient(135deg, var(--blue-100), var(--surface-1));
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-600);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    font-size: 0.98rem;
    color: var(--text-700);
  }
  .callout p { max-width: none; }

  /* Data tables --------------------------------------------------------------*/
  .table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }
  table.data-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.95rem; }
  .data-table caption { text-align: left; padding: 0.9rem 1.1rem; font-weight: 700; font-family: var(--font-display); background: var(--ink-900); color: #fff; }
  .data-table th, .data-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
  .data-table thead th { background: var(--surface-2); font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-600); }
  .data-table tbody tr:nth-child(even) { background: var(--surface-1); }
  .data-table tbody tr:hover { background: var(--blue-100); }

  /* Keep-in-mind / advantages panel -------------------------------------------*/
  .panel-split {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 720px) { .panel-split { grid-template-columns: 1fr 1fr; } }
  .panel {
    border-radius: var(--radius-md);
    padding: 1.6rem 1.75rem;
    border: 1px solid var(--border);
  }
  .panel--positive { background: var(--green-100); border-color: rgba(15, 169, 88, 0.25); }
  .panel--neutral { background: var(--surface-1); }
  .panel h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 0.9rem; }
  .panel ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; }
  .panel li { position: relative; padding-left: 1.5rem; }
  .panel--positive li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }
  .panel--neutral li::before { content: "!"; position: absolute; left: 0.15rem; color: var(--blue-600); font-weight: 700; }

  /* Bento offer grid ------------------------------------------------------*/
  .bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 760px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento > * { grid-column: span 6; }
    .bento > :nth-child(1) { grid-column: span 3; }
    .bento > :nth-child(2) { grid-column: span 3; }
    .bento > :nth-child(3) { grid-column: span 6; }
  }
  .bento__item {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .bento__item--feature {
    background: linear-gradient(150deg, var(--ink-900), var(--ink-950));
    color: var(--on-dark);
    display: grid;
    gap: 1rem;
    align-content: center;
  }
  .bento__item--feature h3 { color: #fff; }
  .bento__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: var(--blue-100);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .bento__item--feature .bento__icon { background: rgba(255,255,255,0.1); color: var(--green-500); }
  .bento__icon svg { width: 1.4rem; height: 1.4rem; }
  .bento__item ul { list-style: none; margin-top: 0.9rem; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
  .bento__item li { padding-left: 1.1rem; position: relative; color: var(--text-600); }
  .bento__item--feature li { color: var(--on-dark-muted); }
  .bento__item li::before { content: "–"; position: absolute; left: 0; color: var(--blue-500); }

  /* Step timeline ----------------------------------------------------------*/
  .timeline { position: relative; display: flex; flex-direction: column; gap: 2rem; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(var(--blue-500), var(--green-500));
    opacity: 0.35;
  }
  .timeline__item { position: relative; padding-left: 4rem; }
  .timeline__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
  }
  .timeline__item h3 { margin-bottom: 0.35rem; }
  .timeline__item p { color: var(--text-600); max-width: 60ch; }

  /* Feature grid (payment methods, account features) ------------------------*/
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
  }
  .feature-grid__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background: var(--surface-0);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .feature-grid__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
  .feature-grid__item h3 { font-size: 1rem; margin-top: 0.9rem; margin-bottom: 0.35rem; }
  .feature-grid__item p { font-size: 0.88rem; color: var(--text-600); max-width: none; }

  /* Logo grid ---------------------------------------------------------------*/
  .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.9rem;
  }
  .logo-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .logo-grid__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .logo-grid__item img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
  .logo-grid__item span { font-size: 0.78rem; color: var(--text-600); font-weight: 600; }

  .logo-grid--fixed4 { grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 560px) {
    .logo-grid--fixed4 { grid-template-columns: repeat(4, 1fr); }
  }

  /* Trust strip --------------------------------------------------------------*/
  .trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    justify-content: center;
  }
  .trust-strip img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .trust-strip img:hover { filter: grayscale(0); opacity: 1; }

  /* CTA bands ------------------------------------------------------------*/
  .cta-band {
    border-radius: var(--radius-lg);
    background: radial-gradient(120% 160% at 100% 0%, var(--blue-700) 0%, var(--ink-950) 60%);
    color: var(--on-dark);
    padding: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
  }
  .cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    mix-blend-mode: luminosity;
    pointer-events: none;
    z-index: 0;
  }
  .cta-band.cta-band--trophy::after { background-image: var(--cta-bg); }
  .cta-band__inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
  @media (min-width: 760px) {
    .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; }
  }
  .cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
  .cta-band p { color: var(--on-dark-muted); max-width: 50ch; }
  .cta-band .btn-primary { background: linear-gradient(135deg, var(--green-500), var(--green-600)); color: var(--ink-950); box-shadow: 0 16px 40px rgba(23, 201, 100, 0.3); }

  /* FAQ accordion -----------------------------------------------------------*/
  .faq { display: flex; flex-direction: column; gap: 0.75rem; }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-0);
    overflow: hidden;
  }
  .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item__icon {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: var(--radius-full);
    background: var(--blue-100);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--blue-600); color: #fff; }
  .faq-item__body { padding: 0 1.4rem 1.25rem; color: var(--text-600); }

  /* Author bio ----------------------------------------------------------*/
  .author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
  }
  .author-card__avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--blue-600), var(--green-500));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
  }
  .author-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
  .author-card p { color: var(--text-600); font-size: 0.92rem; }
  .author-card__meta { font-size: 0.8rem; color: var(--text-500); margin-top: 0.5rem; }

  /* Related guides ---------------------------------------------------------*/
  .related-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .related-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
  .related-card span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-600); font-weight: 700; }
  .related-card h3 { margin-top: 0.4rem; font-size: 1rem; color: var(--ink-900); }

  /* Promo code copy box -------------------------------------------------*/
  .promo-code {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--ink-900), var(--ink-950));
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
  }
  .promo-code::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 160% at 100% 0%, rgba(23, 201, 100, 0.18), transparent 60%);
    pointer-events: none;
  }
  @media (min-width: 720px) {
    .promo-code { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  }
  .promo-code__text { position: relative; max-width: 46ch; }
  .promo-code__eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 0.5rem;
  }
  .promo-code__text p { color: var(--on-dark-muted); margin: 0; max-width: none; }
  .promo-code__box {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
  }
  .promo-code__box code {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: #fff;
    padding: 0.9rem 1.25rem;
    white-space: nowrap;
  }
  .promo-code__copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-left: 1.5px dashed rgba(255, 255, 255, 0.35);
    background: var(--green-500);
    color: var(--ink-950);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
    white-space: nowrap;
  }
  .promo-code__copy:hover { background: var(--green-600); }
  .promo-code__copy.is-copied { background: var(--blue-600); color: #fff; }
  .promo-code__copy svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
  .promo-code--lg .promo-code__box code { font-size: 1.35rem; }

  /* Promo slot rows (homepage games list) --------------------------------*/
  .promo-slots {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-0);
  }
  .promo-slot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.1rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease);
  }
  .promo-slot-row:last-child { border-bottom: none; }
  .promo-slot-row:nth-child(even) { background: var(--surface-1); }
  .promo-slot-row:hover { background: var(--blue-100); }
  .promo-slot-row__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
  }
  .promo-slot-row__info { flex: 1 1 200px; min-width: 0; }
  .promo-slot-row__name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
  .promo-slot-row__desc { font-size: 0.83rem; color: var(--text-600); margin-top: 0.15rem; max-width: none; }
  .promo-slot-row__code {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: auto;
    border: 1.5px dashed var(--blue-500);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .promo-slot-row__code code {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--blue-700);
    background: var(--blue-100);
    padding: 0.55rem 0.8rem;
    white-space: nowrap;
  }
  .slot-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-left: 1.5px dashed var(--blue-500);
    background: var(--green-500);
    color: var(--ink-950);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
    animation: entice-pulse 2.6s ease-in-out infinite;
  }
  .slot-copy-btn:hover { background: var(--green-600); transform: scale(1.05); }
  .slot-copy-btn.is-copied { background: var(--blue-600); color: #fff; animation: none; box-shadow: none; }
  .slot-copy-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
  .promo-slot-row:nth-child(even) .slot-copy-btn { animation-delay: 1.3s; }

  @keyframes entice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(23, 201, 100, 0); }
  }

  @media (max-width: 559px) {
    .promo-slot-row__code { width: 100%; margin-left: 0; justify-content: space-between; }
    .promo-slot-row__code code { flex: 1; }
  }

  /* Freshness / trending ticker ----------------------------------------------*/
  .freshness {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-500);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
  }
  .freshness__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.6);
    animation: pulse 2.2s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(23, 201, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 201, 100, 0); }
  }

  .ticker {
    border: 1px solid var(--border);
    background: var(--surface-1);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-600);
    overflow: hidden;
  }
  .ticker__label { flex-shrink: 0; font-weight: 700; color: var(--blue-600); }
  .ticker__text { position: relative; flex: 1; min-width: 0; }
  .ticker__text span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Footer -----------------------------------------------------------------*/
  .site-footer { background: var(--ink-950); color: var(--on-dark-muted); }
  .footer-top {
    display: grid;
    gap: 2.5rem;
    padding-block: var(--space-block);
    grid-template-columns: 1fr;
  }
  @media (min-width: 760px) {
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  }
  .footer-brand p { color: var(--on-dark-muted); font-size: 0.9rem; max-width: 40ch; margin-top: 0.9rem; }
  .footer-col h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.92rem; }
  .footer-col a:hover { color: #fff; }
  .footer-badges { border-top: 1px solid var(--border-dark); padding-block: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
  .footer-badges img { height: 28px; width: auto; opacity: 0.85; }
  .footer-legal { border-top: 1px solid var(--border-dark); padding-block: 1.75rem; font-size: 0.8rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
  .footer-legal p { max-width: none; }

  /* Reveal on scroll ---------------------------------------------------------*/
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Back to top --------------------------------------------------------------*/
  .to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    z-index: 90;
    border: none;
  }
  .to-top[data-visible="true"] { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---------------------------------------------------------------------- */
@layer utilities {
  .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;
  }
  .text-center { text-align: center; }
  .mt-0 { margin-top: 0 !important; }
  .measure-none { max-width: none; }
  .balance { text-wrap: balance; }
}
