/* Page-level structure: container, utility bar, header, mobile menu, RG hub,
 * strips, payments, footer. Every number is from the mockup (fig-spec / gen.js):
 * desktop frames 1440 (content 1280, side padding 80), mobile frames 390 (padding 16).
 * The mobile block is `max-width: 1199px`; tablet widths reuse it with 24px sides. */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
/* Full-bleed band whose content is padded like the container (mockup sections
   are 1440 wide with 80px padding, not a centred 1280 box). */
.band { padding-inline: var(--container-pad); }

.u-mob { display: none; }

/* ── utility bar (01-responsible-utility) ─────────────────────────────── */
.utility {
  display: flex; align-items: center;
  height: 36px; padding-inline: var(--container-pad);
  background: var(--color-surface);
  box-shadow: inset 0 -1px 0 var(--color-border);            /* stroke INSIDE, bottom */
  font-size: 12px; line-height: 16px;
}
.utility__row { display: contents; }                       /* desktop: one row; the wrappers exist for the two-row mobile bar */
.utility__tags { display: flex; align-items: center; gap: 16px; }
.utility__au { font-weight: 800; font-size: 11px; line-height: 14px; color: var(--color-text); }
.utility__choose { font-weight: 700; color: var(--color-card-3); text-transform: uppercase; }
.utility__q { margin-left: 16px; color: var(--color-muted); }
.utility__row:last-child { order: 1; }
.utility__limit { margin-left: auto; font-weight: 700; color: var(--color-brand); text-decoration: none; }
.utility__help { margin-left: 24px; color: var(--color-muted); text-decoration: none; }
.utility__limit:hover, .utility__help:hover { text-decoration: underline; }

.badge-18 {
  display: inline-flex; align-items: center; padding: 2px 6px;
  border-radius: var(--radius-xs); background: var(--color-brand); color: var(--color-ink);
  font-weight: 800; font-size: 11px; line-height: 14px;
}

/* ── header (02-main-navigation) ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding-inline: var(--container-pad);
  background: var(--color-bg);
  box-shadow: inset 0 -1px 0 var(--color-border);
}
.site-header__left { display: flex; align-items: center; gap: 48px; }
.site-header__right { display: flex; align-items: center; gap: 32px; }

.logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 30px;
  text-decoration: none; white-space: nowrap;
}
.logo__a { color: var(--color-text); }
.logo__b { color: var(--color-purple-light); }
.logo__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); }
.logo--footer { font-size: 24px; line-height: 26px; }
.logo--footer .logo__dot { width: 5px; height: 5px; }

.nav__list { display: flex; gap: 8px; }
.nav__link {
  display: inline-flex; padding: 12px 16px;
  font-family: var(--font-display); font-size: 13px; line-height: 14px; text-transform: uppercase;
  color: var(--color-muted); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--color-border);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav__link.is-current, .nav__link.is-primary { background: var(--color-purple); color: var(--color-text); box-shadow: none; }   /* the mockup keeps SPORTS filled on every frame; is-primary = no nav item is current */
.nav__link.is-current:hover { background: var(--color-purple-btn); }

.nav-secondary { display: flex; gap: 16px; }
.nav-secondary__link { font-size: 13px; line-height: 17px; color: var(--color-muted); text-decoration: none; }
.nav-secondary__link:hover, .nav-secondary__link.is-current { color: var(--color-text); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__actions .btn--nav { padding: 10px 20px; font-size: 14px; line-height: 18px; }   /* scoped: components.css loads after this file */
.site-header__actions .btn--join { padding: 10px 24px; }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--color-text); cursor: pointer;
  position: relative;
}
.burger::after { content: ""; position: absolute; inset: -10px; }           /* 44px tap zone */
.burger__icon { width: 24px; height: 24px; }

/* ── mobile menu (frame mobile-menu) ──────────────────────────────────── */
.overlay.overlay--menu { display: block; padding: 0; background: var(--color-surface); }   /* doubled: components.css .overlay loads later */
.overlay__panel.mmenu {
  width: 100%; max-width: none; max-height: none; min-height: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0; border-radius: 0; background: var(--color-surface);
  transform: translateX(12px);
}
.overlay--menu.is-open .overlay__panel.mmenu { transform: none; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 24px; }
.logo--menu { gap: 2px; font-size: 24px; line-height: 26px; letter-spacing: -1px; }
.logo--menu .logo__b { color: var(--color-brand); }
.mmenu__close {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: none; color: var(--color-text); cursor: pointer;
}
.mmenu__close:hover { background: var(--color-surface-2); }
.mmenu__close-icon { width: 20px; height: 20px; }
.mmenu__nav { display: flex; flex-direction: column; gap: 32px; padding: 12px 24px 24px; flex: 1; overflow: auto; }
.mmenu__link {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  font-family: var(--font-display); font-size: 32px; line-height: 35px; letter-spacing: -1px; text-transform: uppercase;
  color: var(--color-text); text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--color-border);
}
.mmenu__link:hover, .mmenu__link.is-current { color: var(--color-brand); }
.mmenu__chev { width: 24px; height: 24px; color: var(--color-brand); }
.mmenu__secondary { display: flex; flex-direction: column; gap: 4px; }
.mmenu__sub {
  display: block; padding: 10px 0;
  font-family: var(--font-alt); font-weight: 500; font-size: 16px; line-height: 17px;
  color: var(--color-muted); text-decoration: none;
}
.mmenu__sub:hover { color: var(--color-text); }
.mmenu__foot { display: flex; flex-direction: column; gap: 20px; padding: 0 24px 24px; }
.mmenu__buttons { display: flex; flex-direction: column; gap: 12px; }
.mmenu__buttons .btn { min-height: 50px; font-family: var(--font-display); font-size: 16px; line-height: 17px; letter-spacing: 1px; text-transform: uppercase; }
.mmenu__buttons .btn--brand { color: var(--color-surface); }
.mmenu__disclaimer { padding: 8px 0; text-align: center; font-family: var(--font-alt); font-weight: 500; font-size: 12px; line-height: 13px; color: var(--color-muted); }

/* ── responsible-wagering hub (11) ────────────────────────────────────── */
.rg-hub {
  display: flex; flex-direction: column; gap: 40px;
  padding: 64px var(--container-pad) 290px;                 /* 290 = 40 gap + 250 for the strips pulled up below */
  background: var(--color-surface);
  box-shadow: inset 0 1px 0 var(--color-border), inset 0 -1px 0 var(--color-border);
}
.rg-hub--short { padding-bottom: 250px; }
.rg-hub__head { display: flex; flex-direction: column; gap: 8px; }
.rg-hub__title { font-family: var(--font-display); font-size: 28px; line-height: 30px; text-transform: uppercase; color: var(--color-text); }
.rg-hub__eyebrow { font-weight: 800; font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-brand); }
.rg-hub__lead { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.rg-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rg-tool {
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease);
}
.rg-tool:hover { box-shadow: inset 0 0 0 1px var(--color-border-2); }
.rg-tool__title { font-family: var(--font-display); font-size: 14px; line-height: 15px; text-transform: uppercase; color: var(--color-text); }
.rg-tool__text { font-size: 13px; line-height: 18px; color: var(--color-muted); }
.rg-tool__link { margin-top: auto; font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-brand); text-decoration: none; align-self: flex-start; }
.rg-tool__link:hover { text-decoration: underline; }

/* Strips: siblings of the hub in the DOM (the mobile frames draw them as separate
   sections), pulled up into the hub's bottom padding on desktop. */
.rg-strips { display: flex; flex-direction: column; gap: 40px; margin-top: -250px; padding-inline: var(--container-pad); position: relative; }
.rg-strips--solo { margin-top: 0; padding: 0; gap: 0; }
.helpline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px;
  background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border);
}
.helpline__left { display: flex; align-items: center; gap: 16px; }
.badge-18--lg { padding: 2px 6px; border-radius: 0; font-weight: 900; font-size: 12px; line-height: 16px; }
.helpline__name { font-family: var(--font-display); font-size: 14px; line-height: 15px; text-transform: uppercase; color: var(--color-text); white-space: nowrap; }
.helpline__text { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.helpline__phone { font-family: var(--font-mono); font-weight: 900; font-size: 16px; line-height: 21px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.helpline__phone:hover { text-decoration: underline; }

.betstop-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px;
  background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-red);
}
.betstop-strip__left { display: flex; align-items: center; gap: 16px; }
.betstop-tag {
  display: inline-flex; padding: 4px 8px; background: var(--color-red); color: var(--color-text);
  font-family: var(--font-display); font-size: 11px; line-height: 12px; text-transform: uppercase; white-space: nowrap;
}
.betstop-strip__copy { display: flex; flex-direction: column; gap: 2px; }
.betstop-strip__title { font-weight: 700; font-size: 14px; line-height: 18px; color: var(--color-text); }
.betstop-strip__text { font-size: 13px; line-height: 17px; color: var(--color-muted); }
.betstop-strip__link { font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.betstop-strip__link:hover { text-decoration: underline; }

/* ── payments strip (12) ──────────────────────────────────────────────── */
.payments {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--container-pad); margin-top: 64px;        /* the hub's real bottom padding, see .rg-strips */
  background: var(--color-bg); box-shadow: inset 0 -1px 0 var(--color-border);
}
.rg-strips--solo + .payments { margin-top: 0; }
.payments__title { font-family: var(--font-display); font-size: 12px; line-height: 13px; text-transform: uppercase; color: var(--color-muted); }
.payments__logos { flex: 0 0 300px; width: 300px; height: 40px; }
.payments__logos img { width: 300px; height: 40px; object-fit: contain; }
.payments__right { display: flex; align-items: center; gap: 12px; }
.payments__tag { display: inline-flex; padding: 4px 8px; background: var(--color-brand); color: var(--color-ink); font-weight: 900; font-size: 11px; line-height: 14px; text-transform: uppercase; white-space: nowrap; }
.payments__tag--mob { display: none; }
.payments__text { font-size: 13px; line-height: 17px; color: var(--color-muted); }

/* ── footer (13) ──────────────────────────────────────────────────────── */
.site-footer { display: flex; flex-direction: column; gap: 48px; padding: 64px var(--container-pad) 40px; background: var(--color-bg); }
.site-footer__top { display: flex; gap: 48px; }
.site-footer__brand { flex: 0 0 320px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; flex: 1; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__title { font-family: var(--font-display); font-size: 12px; line-height: 13px; text-transform: uppercase; color: var(--color-text); }
.site-footer__list { display: flex; flex-direction: column; gap: 12px; }
.site-footer__link { display: block; font-size: 13px; line-height: 17px; color: var(--color-muted); text-decoration: none; }   /* block: the li must not take the body line-height */
.site-footer__link:hover { color: var(--color-text); }
.site-footer__line { height: 1px; margin: 0 0 -1px; border: 0; background: var(--color-border); }   /* Figma LINE: 1px paint, 0 in flow */
.site-footer__bottom { display: flex; flex-direction: column; gap: 12px; }
.site-footer__legal { font-size: 11px; line-height: 18px; color: var(--color-muted-2); }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer__copy { font-size: 11px; line-height: 14px; color: var(--color-muted-2); }
.site-footer__badges { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 11px; line-height: 14px; color: var(--color-muted-2); }
.site-footer__phone { color: var(--color-brand); text-decoration: none; }
.site-footer__phone:hover { text-decoration: underline; }

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-header);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--color-brand); color: var(--color-ink); cursor: pointer; font-weight: 800;
  box-shadow: var(--shadow-sheet);
}
.to-top::before { content: "↑"; }

/* ── mobile ───────────────────────────────────────────────────────────── */
/* wider than the 1440 frame: the 1280 content column stays centred instead of stretching — every section pads with this token */
@media (min-width: 1441px) {
  :root { --container-pad: calc((100% - var(--container)) / 2); }   /* % not vw: vw includes the scrollbar and would push 17px of overflow */
}
@media (max-width: 1199px) {
  :root { --container-pad: 24px; }
  .u-desk { display: none; }
  .u-mob { display: inline; }

  .utility {
    display: flex; flex-direction: column; gap: 6px; align-items: stretch;
    height: auto; padding: 8px var(--container-pad);
    font-size: 11px; line-height: 14px;
  }
  .utility__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .utility__tags { gap: 8px; }
  .badge-18 { font-weight: 900; color: var(--color-surface); }
  .utility__au, .utility__choose { font-weight: 900; font-size: 11px; line-height: 14px; color: var(--color-text); }
  .utility__q { margin: 0; }
  .utility__limit, .utility__help { margin: 0; white-space: nowrap; }

  .site-header { height: 56px; }
  .site-header__left { gap: 0; }
  .nav, .nav-secondary { display: none; }
  .logo { gap: 2px; font-size: 20px; line-height: 22px; }
  .logo__dot { width: 5px; height: 5px; }
  .site-header__actions { gap: 12px; }
  .site-header__actions .btn--nav { padding: 8px 12px; font-size: 12px; line-height: 16px; }
  .site-header__actions .btn--join { padding: 8px 14px; border-radius: var(--radius-sm); }
  .burger { display: inline-flex; }

  .rg-hub { gap: 20px; padding: 16px var(--container-pad); box-shadow: inset 0 0 0 1px var(--color-border); }
  .rg-hub--short { display: none; }
  .rg-hub__head { gap: 6px; }
  .rg-hub__title { font-size: 20px; line-height: 22px; }
  .rg-hub__eyebrow { font-size: 11px; line-height: 14px; color: var(--color-purple-light); }
  .rg-hub__lead { font-size: 13px; line-height: 17px; }
  .rg-tools { grid-template-columns: 1fr; gap: 10px; }
  .rg-tool { gap: 10px; padding: 14px; background: var(--color-surface-2); }
  .rg-tool__title { font-size: 13px; line-height: 14px; }
  .rg-tool__text { font-size: 12px; line-height: 16px; }
  .rg-tool__link { font-size: 12px; line-height: 16px; }

  .rg-strips { margin: 0; padding: 0; gap: 0; }
  .helpline, .betstop-strip {
    flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--container-pad);
    background: var(--color-surface);
  }
  .helpline { box-shadow: inset 0 0 0 1px var(--color-border); }
  .helpline__left { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
  .helpline__text { grid-column: 1 / -1; font-size: 12px; line-height: 16px; }
  .badge-18--lg { border-radius: var(--radius-xs); font-weight: 800; font-size: 11px; line-height: 14px; color: var(--color-ink); }
  .helpline__name { font-size: 12px; line-height: 13px; }
  .helpline__phone { font-size: 15px; line-height: 20px; }
  .betstop-strip__left { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
  .betstop-tag { padding: 2px 6px; border-radius: var(--radius-xs); font-family: var(--font-body); font-weight: 800; font-size: 11px; line-height: 14px; }
  .betstop-strip__copy { display: contents; }
  .betstop-strip__title { font-size: 12px; line-height: 16px; }
  .betstop-strip__text { grid-column: 1 / -1; font-size: 12px; line-height: 16px; }
  .betstop-strip__link { font-size: 12px; line-height: 16px; }

  .payments { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px var(--container-pad); margin-top: 0; box-shadow: none; }
  .payments__head { display: flex; align-items: center; justify-content: space-between; }
  .payments__title { font-size: 11px; line-height: 12px; }
  .payments__tag--mob { display: inline-flex; padding: 2px 6px; font-size: 10px; line-height: 13px; }
  .payments__tag--desk { display: none; }
  .payments__logos { flex: none; width: 200px; height: 28px; }
  .payments__logos img { width: 200px; height: 28px; }
  .payments__text { font-size: 11px; line-height: 14px; }

  .site-footer { gap: 24px; min-height: 552px; padding: 24px var(--container-pad) 96px; box-shadow: inset 0 1px 0 var(--color-border); }   /* frame is FIXED 552 (content ends 35px short) */
  .site-footer__bottom { display: contents; }
  .site-footer__legal { order: 0; }
  .site-footer__row { gap: 10px; }
  .site-footer__top { flex-direction: column; gap: 16px; }
  .site-footer__brand { flex: none; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-footer__col--product { display: none; }
  .site-footer__col:nth-child(2) { grid-column: 1 / -1; }
  .site-footer__col, .site-footer__list { gap: 10px; }
  .site-footer__link { font-size: 12px; line-height: 16px; }
  .site-footer__legal { font-size: 10px; line-height: 15px; }
  .site-footer__bottom { gap: 10px; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer__copy { font-size: 10px; line-height: 13px; }
  .site-footer__badges { gap: 12px; font-size: 10px; line-height: 13px; }
  .site-footer__phone { font-family: var(--font-mono); }
  .logo--footer { font-size: 20px; line-height: 22px; gap: 2px; }
  .logo--footer .logo__dot { width: 5px; height: 5px; }
}

@media (max-width: 390px) {
  :root { --container-pad: 16px; }             /* the 390 frame is padded 16; wider phones and tablets keep 24 */
}
@media (max-width: 389px) {
  .utility__tags { flex-wrap: wrap; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn--nav { padding: 8px 10px; }
}
@media (max-width: 359px) {
  .site-header__actions .btn--outline { display: none; }   /* Log in stays in the menu; the bar keeps Join now + burger */
}
