/* Braggster brand tokens. Values are authoritative per design/DESIGN_RULES.md.
   Two label colours deviate from the prototype for WCAG AA: see --on-brag and --faint. */
:root {
  --ink: #16243D;
  --brag: #F08A24;
  /* Brand fill colour, used for decorative marks only. */
  --table: #2D6BE4;
  /* Same hue, 5% darker. Link text needs 4.5:1 on felt; --table gives 4.45:1. */
  --link: #2B66D9;
  --felt: #F7F5F0;
  --surface: #FFFFFF;
  --well: rgba(22, 36, 61, 0.04);
  --muted: #5B6B85;
  /* Prototype used #98A2B3 (2.39:1 on felt). --faint meets AA at 5.15:1. */
  --faint: #5B6B85;
  --muted-on-dark: #93A2BD;
  --tint-blue: #E3ECFC;
  --tint-orange: #FDEBD6;
  --line: rgba(22, 36, 61, 0.12);
  /* Prototype used #FFFFFF on --brag (2.51:1). Ink navy gives 6.26:1. */
  --on-brag: #16243D;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@font-face {
  font-family: 'Baloo 2';
  src: url('assets/fonts/Baloo2.ttf') format('truetype-variations');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

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

html, body { margin: 0; padding: 0; background: var(--felt); }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--tint-orange); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--felt);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 10;
}
.skip-link:focus { left: 0; color: var(--felt); }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 32px; }

/* Announcement bar */
.announce {
  background: var(--ink);
  color: var(--felt);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  text-align: center;
}
.announce__new {
  color: var(--brag);
  font-weight: 700;
  font-family: 'Baloo 2', system-ui, sans-serif;
}
.announce a { color: var(--felt); text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--brag); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 22px;
  flex-wrap: wrap;
}
.nav__logo img { height: 44px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
}
.nav__links a[aria-current='page'] { color: var(--ink); }

/* Buttons: full pill, Baloo 2 700, spring press */
.btn {
  display: inline-block;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 250ms var(--spring);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

.btn--brag { background: var(--brag); color: var(--on-brag); font-size: 16px; padding: 11px 24px; }
.btn--brag:hover { color: var(--on-brag); }

.btn--ink { background: var(--ink); color: var(--felt); font-size: 17px; padding: 14px 30px; }
.btn--ink:hover { color: var(--felt); }

.btn--glow {
  background: var(--brag);
  color: var(--on-brag);
  font-size: 18px;
  padding: 15px 34px;
  box-shadow: 0 10px 30px rgba(240, 138, 36, 0.35);
}
.btn--glow:hover { color: var(--on-brag); }

/* Eyebrow */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-block: 56px 80px;
}
.hero__col { display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.06;
  margin: 0;
  text-wrap: pretty;
}
.hero h1 .brand { color: var(--brag); }
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.hero__actions .link { font-weight: 600; font-size: 15px; }
.hero__art { display: flex; justify-content: center; }

/* Phone placeholder: real screenshot pending */
.phone {
  width: 300px;
  height: 560px;
  max-width: 100%;
  border-radius: 44px;
  background: repeating-linear-gradient(-45deg, rgba(22,36,61,.05), rgba(22,36,61,.05) 10px, rgba(22,36,61,.02) 10px, rgba(22,36,61,.02) 20px);
  border: 1.5px dashed rgba(22, 36, 61, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
}
.phone span { font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; flex-direction: column; gap: 10px; }
.section h2 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 36px);
  margin: 0;
}

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 250ms var(--spring);
}
.card:hover { transform: translateY(-3px); }
.card__tile {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.card h3 { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 700; font-size: 19px; margin: 0; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Games */
.well {
  background: var(--well);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}
/* "Coming soon" is dashed, never greyed out. */
.chip--soon { background: transparent; border: 1.5px dashed rgba(22, 36, 61, 0.25); color: var(--muted); }

.disclaimer { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 720px; }

/* CTA banner */
.banner { padding-bottom: 96px; }
.banner__card {
  background: var(--ink);
  border-radius: 28px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.banner__left { display: flex; align-items: center; gap: 28px; }
.banner__left img { width: 84px; height: 84px; transform: rotate(-6deg); flex: none; }
.banner h2 { color: var(--felt); font-size: clamp(26px, 4vw, 34px); }
.banner p { font-size: 16px; color: var(--muted-on-dark); margin: 0; }
.banner__text { display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__row {
  padding-block: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 30px; height: 30px; }
.footer__brand span { font-size: 13.5px; color: var(--muted); }
.footer__links { display: flex; gap: 24px; font-size: 13.5px; font-weight: 600; }
.footer__langs {
  padding-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer__langs a[aria-current='true'] { color: var(--ink); font-weight: 600; }

/* Legal / privacy pages */
.prose { padding-block: 48px 80px; max-width: 720px; }
.prose h1 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 8px;
}
.prose h2 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 32px 0 8px;
}
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.prose__updated { font-size: 13.5px; color: var(--muted); }

/* Responsive. The design is desktop-first at 1100px; these are the obvious stacks. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 64px; }
  .hero__art { order: -1; }
  .phone { width: 240px; height: 440px; }
  .cards { grid-template-columns: 1fr; }
  .banner__card { padding: 40px; }
  .banner__left { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .nav { justify-content: center; gap: 16px; }
  .nav__links { gap: 18px; justify-content: center; }
  .footer__row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active, .card:hover { transform: none; }
  .phone { transform: none; }
}
