/*!
 * Aiyo Event Front-End Framework v1.0.0
 * ------------------------------------------------------------------
 * Mobile-first, component-based CSS. No build step, no dependencies.
 *
 * Layers (lowest to highest priority):
 *   tokens      Design tokens (colour, type, space, radius, shadow)
 *   base        Reset, element defaults, focus styles
 *   layout      Container, section, grid, stack, cluster
 *   components  c-* blocks (BEM: .c-block__element--modifier)
 *   utilities   u-* single-purpose helpers
 *
 * Naming:  l-* layout · c-* component · u-* utility · is-* state
 * Docs:    /README.md
 */

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

/* ==================================================================
   FONTS  (self-hosted, variable, latin subset, OFL licence)
   ================================================================== */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/font/arcade/baloo-2-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/font/arcade/figtree-latin-wght-normal.woff2") format("woff2");
}

/* ==================================================================
   TOKENS
   ================================================================== */
@layer tokens {
  :root {
    color-scheme: light;

    /* Brand colours, sampled from the Aiyo Event logo */
    --c-red: #d80613;          /* logo red, tuned to 5.3:1 on white */
    --c-red-dark: #a8040e;
    --c-cyan: #6ec6db;
    --c-ray-pink: #c84f97;
    --c-ray-orange: #ea6204;
    --c-ray-yellow: #f9c900;
    --c-ray-green: #4ab034;
    --c-ray-blue: #4390d0;
    --c-ray-indigo: #4e4d9e;
    --c-ray-purple: #93378f;

    /* Neutrals */
    --c-ink: #14142b;          /* text, dark surfaces */
    --c-ink-2: #1f2044;
    --c-body: #3b3d55;         /* body copy, 9.6:1 on white */
    --c-muted: #5a5d75;        /* secondary copy, 6.3:1 on white */
    --c-line: #e3e5ee;
    --c-surface: #ffffff;
    --c-surface-2: #f5f6fb;
    --c-surface-3: #fff8e6;    /* warm highlight */
    --c-on-dark: #ffffff;
    --c-on-dark-muted: #c9cbe0;
    --c-link: #2a5fa8;         /* 6.4:1 on white */
    --c-focus: #14142b;
    --c-focus-on-dark: #f9c900;

    --rays: var(--c-ray-pink), var(--c-ray-orange), var(--c-ray-yellow),
      var(--c-ray-green), var(--c-ray-blue), var(--c-ray-indigo), var(--c-ray-purple);

    /* Type */
    --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
    --fs-h4: 1.1875rem;
    --fs-h3: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
    --fs-h2: clamp(1.875rem, 1.5rem + 1.9vw, 3rem);
    --fs-h1: clamp(2.5rem, 1.7rem + 4vw, 4.75rem);
    --lh-tight: 1.05;
    --lh-heading: 1.15;
    --lh-body: 1.65;

    /* Space (4px base) */
    --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-section: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);

    /* Shape and depth */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-pill: 999px;
    --shadow-1: 0 1px 2px rgb(20 20 43 / 0.06), 0 6px 18px rgb(20 20 43 / 0.06);
    --shadow-2: 0 2px 4px rgb(20 20 43 / 0.06), 0 18px 44px rgb(20 20 43 / 0.12);
    --outline: 3px solid var(--c-ink);   /* the logo's black keyline */

    /* Layout */
    --container: 1200px;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --header-h: 68px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 220ms;
  }
}

/* ==================================================================
   BASE
   ================================================================== */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* WCAG 2.2 SC 2.4.11: focused targets are never hidden by the sticky header */
    scroll-padding-top: calc(var(--header-h) + var(--sp-5));
  }

  /* Site integration: the page sits inside the site's shared header (sale-header).
     Element styles are scoped to .arcade-page so they never restyle that header,
     and the site CSS is imported into the lower "site" layer (see the template). */
  body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  .arcade-page,
  .arcade-page ~ .c-footer,
  .arcade-page ~ .c-actionbar {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--c-body);
    background: var(--c-surface);
  }

  :where(.arcade-page, .c-footer, .c-actionbar, .c-lightbox) {
    & :is(h1, h2, h3, h4) {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 700;
      line-height: var(--lh-heading);
      color: var(--c-ink);
      text-wrap: balance;
    }
    & h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.015em; }
    & h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
    & h3 { font-size: var(--fs-h3); }
    & h4 { font-size: var(--fs-h4); }

    & :is(p, ul, ol, dl, figure) { margin: 0; }
    & p { text-wrap: pretty; }
    & :is(ul[class], ol[class]) { padding: 0; list-style: none; }

    & a { color: var(--c-link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
    & a:hover { text-decoration-thickness: 0.14em; }

    & :is(img, picture, svg, video) { display: block; max-width: 100%; }
    & img { height: auto; }

    & :is(button, input, select, textarea) { font: inherit; color: inherit; }
    & button { cursor: pointer; }
  }

  /* One consistent, high-contrast focus ring (SC 2.4.7, 2.4.13) */
  :focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .u-on-dark :focus-visible,
  .u-on-dark:focus-visible { outline-color: var(--c-focus-on-dark); }

  ::selection { background: var(--c-ray-yellow); color: var(--c-ink); }

  [hidden] { display: none !important; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* ==================================================================
   LAYOUT
   ================================================================== */
@layer layout {
  .l-container {
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
  }
  .l-container--narrow { --container: 860px; }

  .l-section { padding-block: var(--sp-section); }
  .l-section--tint { background: var(--c-surface-2); }
  .l-section--warm { background: var(--c-surface-3); }
  .l-section--dark { background: var(--c-ink); color: var(--c-on-dark-muted); }
  .l-section--dark :is(h2, h3, h4) { color: var(--c-on-dark); }
  .l-section--flush-top { padding-top: 0; }
  /* Skip rendering work for sections far below the fold */
  .l-section--defer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

  .l-stack > * + * { margin-top: var(--stack, var(--sp-4)); }
  .l-cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, var(--sp-3)); align-items: center; }

  .l-grid { display: grid; gap: var(--grid-gap, var(--sp-5)); }
  @media (min-width: 640px) {
    .l-grid--2, .l-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 760px) {
    .l-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 1024px) {
    .l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .l-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  .l-split { display: grid; gap: var(--sp-7); align-items: start; }
  @media (min-width: 900px) {
    .l-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
    .l-split--wide-start { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  }
}

/* ==================================================================
   COMPONENTS
   ================================================================== */
@layer components {

  /* ---------- Skip link ---------- */
  .c-skip {
    position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
    padding: var(--sp-3) var(--sp-5);
    background: var(--c-ink); color: #fff; font-weight: 700;
    border-radius: var(--r-sm); text-decoration: none;
  }
  .c-skip:focus { top: var(--sp-4); outline-color: var(--c-focus-on-dark); }

  /* ---------- Section heading ---------- */
  .c-heading { max-width: 46rem; margin-bottom: var(--sp-7); }
  .c-heading--center { margin-inline: auto; text-align: center; }
  .c-heading__eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-red);
    margin-bottom: var(--sp-3);
  }
  .l-section--dark .c-heading__eyebrow { color: var(--c-ray-yellow); }
  .c-heading__lead { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--c-muted); }
  .l-section--dark .c-heading__lead { color: var(--c-on-dark-muted); }

  /* Rainbow rule: the logo's rays laid flat. Used as a section accent. */
  .c-rays-rule {
    height: 6px; border: 0; margin: 0;
    background: linear-gradient(90deg,
      var(--c-ray-pink) 0 14.28%, var(--c-ray-orange) 0 28.56%, var(--c-ray-yellow) 0 42.84%,
      var(--c-ray-green) 0 57.12%, var(--c-ray-blue) 0 71.4%, var(--c-ray-indigo) 0 85.68%,
      var(--c-ray-purple) 0);
  }

  /* ---------- Button ---------- */
  .c-btn {
    --btn-bg: var(--c-red); --btn-fg: #fff; --btn-bd: var(--c-ink);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 48px; padding: 0.7em 1.4em;
    font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.1;
    color: var(--btn-fg); background: var(--btn-bg);
    border: 3px solid var(--btn-bd); border-radius: var(--r-pill);
    box-shadow: 0 4px 0 var(--btn-bd);
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur);
  }
  .c-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-bd); }
  .c-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-bd); }
  .c-btn--secondary { --btn-bg: #fff; --btn-fg: var(--c-ink); }
  .c-btn--accent { --btn-bg: var(--c-ray-yellow); --btn-fg: var(--c-ink); }
  .c-btn--ghost-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; box-shadow: none; }
  .c-btn--ghost-dark:hover { box-shadow: none; background: rgb(255 255 255 / 0.12); }
  .c-btn--sm { min-height: 44px; font-size: 1rem; padding: 0.5em 1.1em; box-shadow: 0 3px 0 var(--btn-bd); }
  .c-btn--block { width: 100%; }
  .c-btn__icon { width: 1.15em; height: 1.15em; flex: none; }

  /* ---------- Top bar ---------- */
  .c-topbar { background: var(--c-ink); color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
  .c-topbar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-5); padding-block: var(--sp-2); }
  .c-topbar a { color: #fff; font-weight: 600; text-decoration: none; padding-block: 2px; }
  .c-topbar a:hover { text-decoration: underline; }
  @media (min-width: 760px) { .c-topbar__inner { justify-content: space-between; } }

  /* ---------- Header and navigation ---------- */
  .c-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / 0.96);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow var(--dur);
  }
  @supports (backdrop-filter: blur(8px)) {
    .c-header { background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.4) blur(10px); }
  }
  .c-header.is-stuck { box-shadow: var(--shadow-1); }
  .c-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
  .c-header__logo { display: inline-flex; flex: none; padding-block: var(--sp-2); }
  .c-header__logo img { width: 124px; height: auto; }

  .c-nav-toggle {
    display: none; align-items: center; gap: var(--sp-2);
    min-height: 44px; padding: 0 var(--sp-4);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    background: #fff; color: var(--c-ink);
    border: 2px solid var(--c-ink); border-radius: var(--r-pill);
  }
  .c-nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background-color var(--dur); }
  .c-nav-toggle__bars::before, .c-nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--c-ink);
    transition: transform var(--dur) var(--ease);
  }
  .c-nav-toggle__bars::before { transform: translateY(-6px); }
  .c-nav-toggle__bars::after { transform: translateY(6px); }
  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars { background: transparent; }
  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars::before { transform: rotate(45deg); }
  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars::after { transform: rotate(-45deg); }

  .c-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
  .c-nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
    font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); text-decoration: none;
    border-radius: var(--r-pill);
  }
  .c-nav__link:hover { background: var(--c-surface-2); }
  .c-nav__link[aria-current="page"] { background: var(--c-ink); color: #fff; }

  /* Small screens: collapsible panel. Without JS the list simply stays visible. */
  @media (max-width: 959.98px) {
    .c-header__inner { flex-wrap: wrap; }
    .js .c-nav-toggle { display: inline-flex; }
    .c-nav { flex-basis: 100%; padding-bottom: var(--sp-4); }
    .js .c-nav { display: none; }
    .js .c-nav.is-open { display: block; }
    .c-nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
    .c-nav__link { font-size: var(--fs-base); min-height: 48px; }
    .c-nav__cta { margin-top: var(--sp-3); }
    .c-nav__cta .c-btn { width: 100%; }
  }
  @media (min-width: 960px) {
    .c-header__logo img { width: 142px; }
    .c-nav__cta { margin-left: var(--sp-3); }
  }

  /* ---------- Breadcrumb ---------- */
  .c-breadcrumb { font-size: var(--fs-sm); }
  .c-breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); align-items: center; }
  .c-breadcrumb__item + .c-breadcrumb__item::before { content: "/"; margin-right: var(--sp-2); opacity: 0.6; }
  .c-breadcrumb a { color: inherit; padding-block: 4px; display: inline-block; }

  /* ---------- Hero ---------- */
  .c-hero {
    position: relative; isolation: isolate; overflow: clip;
    background: var(--c-ink); color: var(--c-on-dark-muted);
    padding-block: var(--sp-5) var(--sp-8);
  }
  /* Signature: the logo's fan of rays, rising from behind the machine */
  .c-hero::before {
    --ray-x: 50%;
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: conic-gradient(from 270deg at var(--ray-x) 100%,
      transparent 0 10deg,
      var(--c-ray-pink) 10deg 24deg, transparent 24deg 34deg,
      var(--c-ray-orange) 34deg 48deg, transparent 48deg 58deg,
      var(--c-ray-yellow) 58deg 72deg, transparent 72deg 83deg,
      var(--c-ray-green) 83deg 97deg, transparent 97deg 108deg,
      var(--c-ray-blue) 108deg 122deg, transparent 122deg 132deg,
      var(--c-ray-indigo) 132deg 146deg, transparent 146deg 156deg,
      var(--c-ray-purple) 156deg 170deg, transparent 170deg 360deg);
    -webkit-mask-image: radial-gradient(circle at var(--ray-x) 100%, #000 0, transparent 58%);
    mask-image: radial-gradient(circle at var(--ray-x) 100%, #000 0, transparent 58%);
    opacity: 0.65;
  }
  .c-hero__inner { display: grid; gap: var(--sp-7); align-items: center; padding-top: var(--sp-6); }
  .c-hero__eyebrow {
    display: inline-block; padding: 0.3em 0.9em;
    font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-ink); background: var(--c-cyan); border-radius: var(--r-pill);
  }
  .c-hero__title { color: #fff; margin-top: var(--sp-4); }
  .c-hero__title em { font-style: normal; color: var(--c-ray-yellow); }
  .c-hero__lead { margin-top: var(--sp-5); font-size: var(--fs-lg); max-width: 36rem; color: #e3e4f2; }
  .c-hero__actions { margin-top: var(--sp-6); --cluster: var(--sp-4); }
  .c-hero__note { margin-top: var(--sp-5); font-size: var(--fs-sm); }
  .c-hero__note a { color: #fff; font-weight: 600; }

  .c-hero__media { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; }
  .c-hero__stage {
    background: #fff; border: var(--outline); border-radius: var(--r-lg);
    padding: var(--sp-3); box-shadow: 10px 10px 0 var(--c-cyan);
    rotate: 2deg;
  }
  .c-hero__stage img { border-radius: calc(var(--r-lg) - 12px); aspect-ratio: 1; object-fit: contain; width: 100%; }
  .c-hero__tag {
    position: absolute; left: -0.5rem; bottom: 1.25rem; rotate: -4deg;
    padding: 0.35em 0.9em; background: var(--c-ray-yellow); color: var(--c-ink);
    font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem;
    border: var(--outline); border-radius: var(--r-pill);
  }
  @media (min-width: 900px) {
    .c-hero { padding-bottom: var(--sp-section); }
    .c-hero::before { --ray-x: 76%; }
    .c-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-8); }
    .c-hero__media { margin-inline: 0 var(--sp-4); justify-self: end; }
  }

  /* ---------- Trust bar ---------- */
  .c-trust { background: #fff; border-bottom: 1px solid var(--c-line); }
  .c-trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); padding-block: var(--sp-5); }
  .c-trust__item { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); line-height: 1.35; color: var(--c-muted); }
  .c-trust__item strong { display: block; color: var(--c-ink); font-family: var(--font-display); font-size: 1.0625rem; }
  .c-trust__dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--c-ink); background: var(--dot, var(--c-cyan)); }
  @media (min-width: 900px) { .c-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

  /* ---------- Answer box (AI-search / featured-snippet friendly summary) ---------- */
  .c-answer {
    background: #fff; border: var(--outline); border-radius: var(--r-lg);
    padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
    box-shadow: 8px 8px 0 var(--c-ray-yellow);
  }
  .c-answer__label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-red); }
  .c-answer__text { margin-top: var(--sp-3); font-size: var(--fs-lg); color: var(--c-ink); }
  .c-facts { margin-top: var(--sp-5); display: grid; gap: 0; border-top: 1px solid var(--c-line); }
  .c-facts__row { display: grid; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: 1px solid var(--c-line); }
  .c-facts dt { font-weight: 700; color: var(--c-ink); font-size: var(--fs-sm); }
  .c-facts dd { margin: 0; }
  @media (min-width: 640px) { .c-facts__row { grid-template-columns: 11rem 1fr; gap: var(--sp-4); } }

  /* ---------- Card ---------- */
  .c-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: var(--outline); border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    box-shadow: 6px 6px 0 var(--card-accent, var(--c-cyan));
  }
  .c-card:hover, .c-card:focus-within { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--card-accent, var(--c-cyan)); }
  .c-card__media { background: #fff; border-bottom: var(--outline); aspect-ratio: 5 / 4; padding: var(--sp-4); overflow: hidden; }
  .c-card__media picture { display: block; width: 100%; height: 100%; }
  .c-card__media img, .c-card__media svg { width: 100%; height: 100%; object-fit: contain; }
  .c-card__badge {
    position: absolute; top: var(--sp-4); left: var(--sp-4);
    padding: 0.2em 0.8em; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--card-accent, var(--c-cyan)); color: var(--c-ink);
    border: 2px solid var(--c-ink); border-radius: var(--r-pill);
  }
  .c-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); padding: var(--sp-5); }
  .c-card__title { font-size: var(--fs-h3); }
  .c-card__meta { font-size: var(--fs-sm); color: var(--c-muted); }
  .c-card__meta strong { color: var(--c-ink); }
  .c-card__action { margin-top: auto; padding-top: var(--sp-3); }
  .c-card__link { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 3px; text-underline-offset: 0.3em; display: inline-flex; min-height: 44px; align-items: center; gap: var(--sp-2); }
  .c-card__link:hover { color: var(--c-red-dark); }

  /* Compact card: icon + title + text (occasions, reasons) */
  .c-tile { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-5); height: 100%; border-top: 6px solid var(--tile-accent, var(--c-cyan)); }
  .c-tile { color: var(--c-body); }
  .c-tile__title { font-size: var(--fs-h4); font-family: var(--font-display); color: var(--c-ink); }
  .c-tile__text { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-muted); }
  .c-tile__text a { font-weight: 600; }

  /* ---------- Statistics (arcade scoreboard) ---------- */
  .c-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .c-stat {
    padding: var(--sp-5) var(--sp-4); text-align: center;
    background: var(--c-ink-2); border: 2px solid rgb(255 255 255 / 0.14); border-radius: var(--r-md);
  }
  .c-stats { list-style: none; padding: 0; margin: 0; }
  .c-stat__value {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--stat-color, var(--c-ray-yellow));
    text-shadow: 0 0 22px color-mix(in srgb, var(--stat-color, var(--c-ray-yellow)) 55%, transparent);
  }
  .c-stat__value small { font-size: 0.42em; font-weight: 700; margin-left: 0.1em; }
  .c-stat__label { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
  @media (min-width: 900px) { .c-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }

  /* ---------- Check list ---------- */
  .c-checklist > li { position: relative; padding: var(--sp-2) 0 var(--sp-2) 2rem; }
  .c-checklist > li::before {
    content: ""; position: absolute; left: 0; top: 0.72em; width: 1.15rem; height: 1.15rem;
    border-radius: 50%; border: 2px solid var(--c-ink); background: var(--c-ray-green);
  }
  .c-checklist > li::after {
    content: ""; position: absolute; left: 0.4rem; top: 0.95em; width: 0.32rem; height: 0.58rem;
    border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg;
  }

  /* ---------- Timeline ---------- */
  .c-timeline { counter-reset: step; display: grid; gap: var(--sp-5); }
  .c-timeline__step { counter-increment: step; position: relative; padding-left: 4.25rem; padding-bottom: var(--sp-2); }
  .c-timeline__step::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 3rem; height: 3rem; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--c-ink);
    background: var(--step-color, var(--c-cyan)); border: var(--outline); border-radius: 50%;
  }
  .c-timeline__step:not(:last-child)::after {
    content: ""; position: absolute; left: calc(1.5rem - 1.5px); top: 3rem; bottom: calc(var(--sp-5) * -1);
    width: 3px; background: var(--c-ink);
  }
  .c-timeline__title { font-size: var(--fs-h4); font-family: var(--font-display); padding-top: 0.55rem; }
  .c-timeline__text { margin-top: var(--sp-2); color: var(--c-muted); font-size: var(--fs-sm); }
  @media (min-width: 900px) {
    .c-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
    .c-timeline__step { padding-left: 0; padding-top: 4.25rem; }
    .c-timeline__step:not(:last-child)::after { left: 3rem; right: calc(var(--sp-6) * -1); top: calc(1.5rem - 1.5px); bottom: auto; width: auto; height: 3px; }
    .c-timeline__title { padding-top: 0; }
  }

  /* ---------- Gallery and lightbox ---------- */
  .c-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .c-gallery__item { margin: 0; }
  .c-gallery__item:first-child { grid-column: 1 / -1; }
  .c-gallery__link {
    display: block; position: relative; background: #fff; border: var(--outline); border-radius: var(--r-md); overflow: hidden;
    transition: transform var(--dur) var(--ease);
  }
  .c-gallery__link:hover { transform: scale(1.015); }
  .c-gallery__link img { width: 100%; aspect-ratio: 1; object-fit: contain; }
  .c-gallery__item:first-child .c-gallery__link img { aspect-ratio: 16 / 10; }
  .c-gallery__caption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-muted); }
  .l-section--dark .c-gallery__caption { color: var(--c-on-dark-muted); }
  @media (min-width: 760px) {
    .c-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
    .c-gallery__item:first-child { grid-column: auto; }
    .c-gallery__item:first-child .c-gallery__link img { aspect-ratio: 1; }
  }

  .c-lightbox {
    width: min(92vw, 880px); max-height: 92vh; padding: 0;
    border: var(--outline); border-radius: var(--r-lg); background: #fff; color: var(--c-ink);
    overflow: hidden;
  }
  .c-lightbox::backdrop { background: rgb(20 20 43 / 0.82); }
  .c-lightbox__img { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; }
  .c-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-top: var(--outline); }
  .c-lightbox__caption { font-weight: 600; font-size: var(--fs-sm); }
  .c-lightbox__controls { display: flex; gap: var(--sp-2); flex: none; }
  .c-lightbox__btn {
    width: 44px; height: 44px; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--c-ink); border-radius: 50%; font-size: 1.25rem; line-height: 1; font-weight: 700;
  }
  .c-lightbox__btn:hover { background: var(--c-ray-yellow); }

  /* ---------- Link pills ---------- */
  .c-pills { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .c-pill {
    display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4);
    background: #fff; color: var(--c-ink); font-weight: 600; text-decoration: none;
    border: 2px solid var(--c-ink); border-radius: var(--r-pill);
  }
  .c-pill:hover { background: var(--c-ray-yellow); }
  .c-pill::after { content: "\2192"; /* right arrow, CSS escape so file encoding cannot garble it */ }

  /* ---------- FAQ ---------- */
  .c-faq__tools { display: flex; justify-content: flex-end; margin-bottom: var(--sp-3); }
  .c-faq__toggle-all { background: none; border: 0; padding: var(--sp-2) 0; min-height: 44px; font-weight: 700; color: var(--c-link); text-decoration: underline; }
  .c-faq__item { background: #fff; border: 2px solid var(--c-ink); border-radius: var(--r-md); }
  .c-faq__item + .c-faq__item { margin-top: var(--sp-3); }
  .c-faq__item[open] { box-shadow: 5px 5px 0 var(--c-cyan); }
  .c-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5); min-height: 56px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--c-ink);
    border-radius: calc(var(--r-md) - 2px);
  }
  .c-faq__q::-webkit-details-marker { display: none; }
  .c-faq__q h3 { font-size: inherit; line-height: inherit; }
  .c-faq__q::after {
    content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
    font-size: 1.5rem; line-height: 1; border-radius: 50%; background: var(--c-surface-2); border: 2px solid var(--c-ink);
    transition: rotate var(--dur) var(--ease), background-color var(--dur);
  }
  .c-faq__item[open] > .c-faq__q::after { rotate: 45deg; background: var(--c-ray-yellow); }
  .c-faq__a { padding: 0 var(--sp-5) var(--sp-5); max-width: 46rem; }
  .c-faq__a a { font-weight: 600; }

  /* ---------- CTA band and enquiry form ---------- */
  .c-cta {
    position: relative; isolation: isolate; overflow: clip;
    background: var(--c-ink); color: var(--c-on-dark-muted);
    border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  }
  .c-cta__title { color: #fff; }
  .c-cta__text { margin-top: var(--sp-4); font-size: var(--fs-lg); }
  .c-cta__contacts { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); }
  .c-cta__contacts a { color: #fff; font-weight: 700; display: inline-block; padding-block: 3px; }
  .c-cta__contacts span { color: var(--c-on-dark-muted); }

  .c-form { background: #fff; color: var(--c-body); border: var(--outline); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: 8px 8px 0 var(--c-red); }
  .c-form__title { font-size: var(--fs-h3); }
  .c-form__hint { font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--sp-1); }
  .c-form__grid { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
  @media (min-width: 520px) { .c-form__grid--2 { grid-template-columns: 1fr 1fr; } }
  .c-field label, .c-fieldset legend { display: block; font-weight: 700; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--c-ink); margin-bottom: var(--sp-1); padding: 0; }
  .c-fieldset legend { float: none; width: auto; } /* undo Bootstrap reboot's floated legend */
  .c-field input {
    width: 100%; min-height: 48px; padding: 0 var(--sp-3);
    background: #fff; border: 2px solid var(--c-ink); border-radius: var(--r-sm);
  }
  .c-field input::placeholder { color: #6b6e85; }
  .c-fieldset { border: 0; padding: 0; margin: var(--sp-4) 0 0; min-width: 0; }
  .c-check { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; }
  .c-check input { width: 22px; height: 22px; accent-color: var(--c-red); flex: none; margin: 0; }
  .c-form__submit { margin-top: var(--sp-5); }
  .c-form__status { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-muted); }

  /* ---------- Footer ---------- */
  .c-footer { background: var(--c-ink); color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
  .c-footer__inner { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); }
  .c-footer__logo img { width: 170px; height: auto; }
  .c-footer__tagline { margin-top: var(--sp-3); max-width: 22rem; }
  .c-footer__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
  .c-footer a { color: #fff; text-decoration: none; display: inline-block; padding-block: 5px; }
  .c-footer a:hover { text-decoration: underline; }
  .c-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.16); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; }
  @media (min-width: 760px) { .c-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
  /* Sticky site header (sale-header). --site-header-h is measured by the page script,
     so in-page jumps (#arcade-games, #enquire, FAQ links) land below the header, not under it. */
  /* --site-header-hide is the part allowed to scroll away: 0 on desktop (whole header stays),
     the contact/awards row (.logo-sec) on small screens so only the menu bar stays pinned. */
  html { scroll-padding-top: calc(var(--site-header-h, 160px) - var(--site-header-hide, 0px) + var(--sp-4)); }
  body > section.header {
    position: sticky; top: calc(-1 * var(--site-header-hide, 0px)); z-index: 1000;
    background: #fff;
    transition: box-shadow var(--dur) var(--ease);
  }
  body > section.header.is-stuck { box-shadow: 0 6px 18px rgb(20 20 43 / 0.18); }
  /* Small screens: an opened mobile menu can be taller than the screen, so let it scroll */
  @media (max-width: 991.98px) {
    body > section.header {
      max-height: calc(100dvh + var(--site-header-hide, 0px));
      overflow-y: auto; overscroll-behavior: contain;
    }
  }

  /* Back-to-top button, same image as the site footer (sale-footer.html) */
  .c-footer__totop { display: flex; justify-content: center; padding-bottom: var(--sp-5); }
  .c-footer__totop a { padding: 0; border-radius: 50%; transition: transform var(--dur) var(--ease); }
  .c-footer__totop a:hover { transform: translateY(-3px); }
  .c-footer__totop img { width: 40px; height: 40px; }

  /* ---------- Sticky mobile action bar ---------- */
  .c-actionbar { display: none; }
  @media (max-width: 759.98px) {
    .js .c-actionbar {
      display: flex; gap: var(--sp-3); position: fixed; z-index: 40; inset: auto 0 0 0;
      padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
      background: #fff; border-top: 2px solid var(--c-ink);
      translate: 0 110%; transition: translate var(--dur) var(--ease);
    }
    .js .c-actionbar.is-visible { translate: 0 0; }
    .c-actionbar .c-btn { flex: 1; }
    .js body { padding-bottom: 76px; }
    html { scroll-padding-bottom: 90px; }
  }

  /* ---------- Floating WhatsApp button (right side, same look as the blog pages' wa-float) ---------- */
  .c-wa-float {
    position: fixed; right: 1.5rem; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 1001;
    display: grid; place-items: center; width: 3.75rem; height: 3.75rem;
    background: #0b7a3b; color: #fff; border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(15 118 110 / 0.18), 0 10px 25px rgb(0 0 0 / 0.2);
    transition: transform 0.2s, background-color 0.2s, bottom var(--dur) var(--ease);
  }
  .c-wa-float:hover, .c-wa-float:focus-visible { background: #086030; color: #fff; transform: translateY(-2px); }
  .c-wa-float svg { display: block; width: 28px; height: 28px; }
  /* Phones: sit above the Call / WhatsApp action bar while it is showing */
  @media (max-width: 759.98px) {
    .c-wa-float { right: 1rem; width: 3.25rem; height: 3.25rem; }
    .js .c-actionbar.is-visible ~ .c-wa-float { bottom: calc(76px + 0.75rem + env(safe-area-inset-bottom)); }
  }
  @media print { .c-wa-float { display: none; } }

  /* ---------- Scroll reveal (progressive enhancement only) ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 500ms var(--ease), translate 500ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
    .js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }
  }
}

/* ==================================================================
   UTILITIES
   ================================================================== */
@layer utilities {
  .u-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .u-text-center { text-align: center; }
  .u-mt-4 { margin-top: var(--sp-4); }
  .u-mt-5 { margin-top: var(--sp-5); }
  .u-mt-6 { margin-top: var(--sp-6); }
  .u-mt-7 { margin-top: var(--sp-7); }
  .u-muted { color: var(--c-muted); }
  .u-small { font-size: var(--fs-sm); }
  .u-lead { font-size: var(--fs-lg); }
  .u-nowrap { white-space: nowrap; }

  .u-accent-pink { --card-accent: var(--c-ray-pink); --tile-accent: var(--c-ray-pink); --step-color: var(--c-ray-pink); --stat-color: #f08cc6; --dot: var(--c-ray-pink); }
  .u-accent-orange { --card-accent: var(--c-ray-orange); --tile-accent: var(--c-ray-orange); --step-color: var(--c-ray-orange); --stat-color: #ff9a4d; --dot: var(--c-ray-orange); }
  .u-accent-yellow { --card-accent: var(--c-ray-yellow); --tile-accent: var(--c-ray-yellow); --step-color: var(--c-ray-yellow); --stat-color: var(--c-ray-yellow); --dot: var(--c-ray-yellow); }
  .u-accent-green { --card-accent: var(--c-ray-green); --tile-accent: var(--c-ray-green); --step-color: var(--c-ray-green); --stat-color: #7fdc68; --dot: var(--c-ray-green); }
  .u-accent-blue { --card-accent: var(--c-ray-blue); --tile-accent: var(--c-ray-blue); --step-color: var(--c-ray-blue); --stat-color: var(--c-cyan); --dot: var(--c-ray-blue); }
  .u-accent-cyan { --card-accent: var(--c-cyan); --tile-accent: var(--c-cyan); --step-color: var(--c-cyan); --stat-color: var(--c-cyan); --dot: var(--c-cyan); }

  @media print {
    .c-header, .c-topbar, .c-actionbar, .c-nav-toggle, .c-hero::before, .c-form, .c-skip { display: none !important; }
    .c-hero, .l-section--dark, .c-cta, .c-footer { background: #fff !important; color: #000 !important; }
    .c-hero__title, .c-cta__title, .l-section--dark :is(h2, h3) { color: #000 !important; }
    .c-faq__item > .c-faq__a { display: block; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  }
}
