/* ============================================================
   BallrBet landing page
   Brand: yellow #F9FF2E · periwinkle #8390FA · ink #1B1B1B
   Type:  Phonk Sans (headings) · Inter (body)
   ============================================================ */

@font-face {
  font-family: "Phonk Sans";
  src: url("assets/fonts/PhonkSans-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Phonk Sans";
  src: url("assets/fonts/PhonkSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #F9FF2E;
  --yellow-soft: #F9FF4F;
  --peri: #8390FA;
  --ink: #1B1B1B;
  --black: #0A0A0A;
  --grey-900: #131313;
  --grey-800: #1F1F1F;
  --grey-600: #3A3A3A;
  --grey-300: #B5B5B5;
  --white: #FFFFFF;

  --shell: min(1240px, 100% - 3rem);
  --gutter: max(1.5rem, calc((100vw - 1240px) / 2));
  --radius: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Phonk Sans", "Inter", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}

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

/* ---------------- buttons ---------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), filter .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--black   { --btn-bg: var(--ink);    --btn-fg: var(--yellow); }
.btn--black:hover { --btn-bg: #000; }
.btn--yellow  { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--outline { --btn-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { --btn-bg: rgba(27,27,27,.08); }
.btn--ghost   { --btn-fg: var(--white); box-shadow: inset 0 0 0 2px var(--grey-600); }
.btn--text    { padding-inline: .75rem; }
.btn--text:hover { text-decoration: underline; }
.btn--sm { padding: .6rem 1.15rem; font-size: .9375rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.0625rem; }

/* ---------------- lozenge ---------------- */
.lozenge {
  display: inline-block;
  padding: .4rem 1.1rem;
  border-radius: var(--radius);
  background: var(--peri);
  color: var(--yellow);
  font-family: "Phonk Sans", sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  margin-bottom: 1.25rem;
}
.lozenge--yellow { background: var(--yellow); color: var(--ink); }

/* ---------------- age gate ---------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, .96);
  backdrop-filter: blur(8px);
}
.gate[hidden] { display: none; }
.gate__panel {
  width: min(520px, 100%);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: var(--grey-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  text-align: center;
}
.gate__logo { width: 190px; margin: 0 auto 1.75rem; }
.gate__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.gate__body { color: var(--grey-300); margin: .9rem 0 1.75rem; }
.gate__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.gate__legal {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-800);
  color: var(--grey-300);
  font-size: .8125rem;
  line-height: 1.6;
}
.gate--blocked .gate__panel { background: var(--ink); }

/* body lock while the gate is up */
body.is-gated { overflow: hidden; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem max(1.5rem, calc((100% - var(--shell)) / 2));
  background: var(--yellow);
  transition: box-shadow .2s var(--ease);
}
.nav.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav__logo img { width: 148px; }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav .btn--text { color: var(--ink); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}
.hero::after {
  /* soft ground so the phones do not float on flat yellow */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(27, 27, 27, .10), transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.hero__copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  margin-bottom: 1.25rem;
}
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__points {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
  font-size: .9375rem;
  font-weight: 500;
}
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; }
.hero__points li::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--ink);
}

/* phones */
.hero__device {
  position: relative;
  align-self: end;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.phone {
  width: min(300px, 62vw);
  padding: 10px;
  border-radius: 42px;
  background: #000;
  box-shadow: 0 0 0 2px #2b2b2b, 0 40px 60px -20px rgba(27, 27, 27, .55);
}
.phone__screen {
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}
.phone__screen img { width: 100%; height: auto; }
.hero__device .phone:not(.phone--back) {
  position: relative;
  z-index: 2;
  margin-bottom: -3rem;
  transform: rotate(-2deg);
}
.phone--back {
  position: absolute;
  right: -1rem;
  bottom: -5rem;
  z-index: 1;
  width: min(240px, 50vw);
  transform: rotate(6deg);
  opacity: .92;
}
.phone--sm { width: min(268px, 66vw); }

/* ---------------- league marquee ---------------- */
.leagues {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--black);
  overflow: hidden;
}
.leagues__heading {
  width: var(--shell);
  margin: 0 auto .75rem;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  text-align: center;
  color: var(--white);
}
.leagues__sub {
  width: var(--shell);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--grey-300);
  font-size: 1.0625rem;
}
.marquee {
  display: flex;
  gap: 1rem; /* must match the gap inside .marquee__track and the keyframe offset */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 1rem; }
.marquee__track {
  display: flex;
  flex: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 42s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 1rem)); }
}
.league {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 200px;
  height: 96px;
  padding: 0 1.75rem;
  border: 1px solid var(--grey-800);
  border-radius: 18px;
  background: var(--grey-900);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.league:hover { border-color: var(--yellow); background: #171708; }
.league__mark {
  font-family: "Phonk Sans", sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--grey-300);
}
.league:hover .league__mark { color: var(--yellow); }
.league img { max-height: 52px; width: auto; }
.leagues__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------------- racing codes ----------------
   Field on the left, running off the left edge of the canvas; copy on the
   right, aligned to the page gutter. */
.codes {
  position: relative;
  display: grid;
  /* even split: the copy column starts exactly at the 50% line */
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}
.codes__inner { padding-right: var(--gutter); }
.codes__title {
  /* "GREYHOUNDS." is the widest line, and it has to fit its own column */
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  margin-bottom: 1.1rem;
}
.codes__sub {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 500;
}
/* the field bleeds past the left edge so the sulky runs off canvas */
/* the negative margin widens the box to the left, so the image itself stays at
   100% and its right edge still lands on the column edge */
.codes__art { display: block; margin-left: -14%; }
.codes__art img { width: 100%; height: auto; }

/* ---------------- payments ---------------- */
.pay {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--grey-900);
  border-top: 1px solid var(--grey-800);
}
.pay__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  margin-bottom: 1rem;
}
.section__title--dark { color: var(--ink); }
.section__sub {
  max-width: 48ch;
  margin: 0;
  color: var(--grey-300);
  font-size: 1.0625rem;
}
.section__sub--dark { color: rgba(27, 27, 27, .82); }
.pay__note {
  margin: 1.5rem 0 0;
  font-size: .875rem;
  color: var(--yellow);
  font-weight: 600;
}
.pay__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.paycard {
  display: grid;
  gap: .9rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--grey-800);
  border-radius: 20px;
  background: var(--black);
}
.paycard__mark {
  height: 30px;
  width: auto;
  align-self: start;
}
.paycard__label { color: var(--grey-300); font-size: .9375rem; line-height: 1.5; }

/* ---------------- app ---------------- */
.app {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  background: var(--peri);
  color: var(--ink);
  overflow: hidden;
}
.app__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.app__copy { padding-bottom: clamp(3rem, 6vw, 5rem); }
.app__stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.store {
  display: inline-flex;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.store:hover { transform: translateY(-2px); }
/* Both badges are supplied full-bleed (artwork fills its viewBox), so a shared
   height lines the two buttons up. Never recolour or distort them. */
.store__badge { height: 48px; width: auto; }
.app__cta { margin-top: 2rem; }
.app__device { display: flex; justify-content: center; align-items: flex-end; }
.app__device .phone { margin-bottom: -3.5rem; transform: rotate(3deg); }

/* ---------------- footer ---------------- */
.footer {
  background: var(--black);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
}
.footer__legal,
.footer__logo,
.footer__nav,
.footer__statements,
.footer__fine { width: var(--shell); margin-inline: auto; }

.footer__legal {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--grey-800);
  border-radius: 16px;
  background: var(--grey-900);
}
.footer__tagline {
  margin: 0 0 .5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: .9375rem;
  color: var(--white);
}
.footer__support,
.footer__licence {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--grey-300);
}
.footer__support a { color: var(--white); }

.footer__logo {
  width: 150px;
  margin-block: 2.5rem 1.75rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
}
.footer__nav a {
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.footer__nav a:hover { color: var(--yellow); text-decoration: underline; }

.footer__social {
  display: flex;
  justify-content: center;
  gap: .75rem;
  width: var(--shell);
  margin: 1.5rem auto 0;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--grey-800);
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--grey-600);
  border-radius: 50%;
  color: var(--white);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__social a:hover { color: var(--yellow); border-color: var(--yellow); }

.footer__betstop {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  width: var(--shell);
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--grey-800);
  border-radius: 16px;
  background: var(--grey-900);
}
.footer__betstop img { flex: none; width: 180px; height: auto; }
.footer__betstop-copy { color: var(--grey-300); font-size: .8125rem; line-height: 1.7; }
.footer__betstop-copy p { margin: 0 0 .7rem; }
.footer__betstop-copy p:last-child { margin-bottom: 0; }
.footer__betstop-copy a { color: var(--white); }

.footer__statements {
  padding: 1.75rem 0;
  text-align: center;
  color: var(--grey-300);
  font-size: .8125rem;
  line-height: 1.7;
}
.footer__statements p { margin: 0 0 .9rem; }
.footer__statements p:last-child { margin-bottom: 0; max-width: 88ch; margin-inline: auto; }
.footer__statements a { color: var(--white); }

.footer__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-800);
  font-size: .8125rem;
  color: #8A8A8A;
}
.footer__age {
  padding: .25rem .7rem;
  border: 1px solid var(--grey-600);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero__inner,
  .pay__inner,
  .app__inner { grid-template-columns: 1fr; }

  .hero__inner { padding-top: 2.5rem; }
  .hero__copy { padding-bottom: 2rem; }
  .hero__device { min-height: 0; margin-top: 1rem; }
  .hero__device .phone:not(.phone--back) { margin-bottom: -2rem; transform: none; }
  .phone--back { display: none; }

  .app__inner { justify-items: center; }
  .app__copy { padding-bottom: 1rem; text-align: left; }
  .app__device .phone { margin-bottom: -2.5rem; transform: none; }
}

@media (max-width: 820px) {
  /* stack: copy first, field beneath it and still bleeding off the left */
  .codes { grid-template-columns: 1fr; padding-bottom: 0; }
  .codes__inner {
    order: -1;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .codes__art { margin-left: -10%; }
}

@media (max-width: 560px) {
  :root { --shell: min(1240px, 100% - 2rem); }
  .footer__betstop { flex-direction: column; align-items: center; text-align: center; }
  .nav__logo img { width: 124px; }
  .nav .btn--text { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .league { min-width: 150px; height: 82px; padding: 0 1.25rem; }
  .league__mark { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .btn:hover, .store:hover { transform: none; }
}
