/* BingoRoar's website: the landing page, the account, stats and the legal pages.
   Dark like a bar at night, the gold of the app's accent, the five ball colours
   for colour and nothing else. Headings in Russo One, text in Chakra Petch. */

:root {
  --bg: #090c1a;
  --bg-2: #10152b;
  --card: #151b36;
  --line: #262f57;
  --text: #eef1fb;
  --dim: #a9b2d6;
  --gold: #f5b301;
  --gold-2: #ffcf4d;
  --on-gold: #1a1300;
  --b: #e8414f;
  --i: #f5a623;
  --n: #3fb950;
  --g: #2ba6f0;
  --o: #9b59ff;
  --danger: #ff6b7a;
  --ok: #49d36b;
  --radius: 16px;
  --space: clamp(4rem, 9vw, 7.5rem);
  --wrap: min(1160px, 100% - 2.5rem);
  --display: 'Russo One', 'Arial Black', system-ui, sans-serif;
  --body: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0.5rem; z-index: 100; }
.skip:focus { left: 1rem; background: var(--gold); color: var(--on-gold); padding: 0.6rem 1rem; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the name ---- */
.mark { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.04em; text-decoration: none; color: var(--text); white-space: nowrap; }
.mark span { color: var(--gold); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn:hover { border-color: var(--gold); background: rgba(245, 179, 1, 0.08); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--on-gold); border-color: transparent; box-shadow: 0 8px 30px rgba(245, 179, 1, 0.28); }
.btn.gold:hover { background: var(--gold-2); box-shadow: 0 10px 36px rgba(245, 179, 1, 0.4); }
.btn.big { min-height: 56px; padding: 0.9rem 1.7rem; font-size: 1.08rem; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }

/* ---- the top bar ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(9, 12, 26, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--dim); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-cta .btn { min-height: 44px; padding: 0.55rem 1.1rem; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 420px) { .nav-cta .signin { display: none; } }

/* ---- the hero ---- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 12, 26, 0.15) 0%, rgba(9, 12, 26, 0.25) 40%, rgba(9, 12, 26, 0.92) 85%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 12, 26, 0.75) 0%, rgba(9, 12, 26, 0.1) 65%);
}
.hero-copy { padding-block: 9rem 4.5rem; max-width: 46rem; }
.eyebrow { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--gold-2); }
.balls { display: inline-flex; gap: 4px; }
.balls i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.balls i:nth-child(1) { background: var(--b); } .balls i:nth-child(2) { background: var(--i); } .balls i:nth-child(3) { background: var(--n); }
.balls i:nth-child(4) { background: var(--g); } .balls i:nth-child(5) { background: var(--o); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 1rem 0 1.2rem; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d9def3; max-width: 38rem; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.fine { margin-top: 1rem; color: var(--dim); font-size: 0.92rem; }
.vid-toggle {
  position: absolute; right: max(1.25rem, calc((100% - 1160px) / 2)); bottom: 2rem;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(9, 12, 26, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.vid-toggle:hover { border-color: var(--gold); }
.vid-toggle svg { width: 20px; height: 20px; }

/* ---- sections ---- */
section { scroll-margin-top: 80px; }
.section { padding-block: var(--space); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); text-wrap: balance; }
.section-head p { color: var(--dim); margin-top: 1rem; font-size: 1.12rem; }
.kicker { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-2); margin-bottom: 0.8rem; display: block; }

/* how it works */
.how { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.how img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.3rem; color: #fff; background: var(--b);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.92), 0 0 0 0 transparent;
}
.steps li:nth-child(2)::before { background: var(--g); }
.steps li:nth-child(3)::before { background: var(--n); }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.steps p { color: var(--dim); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(245, 179, 1, 0.12); color: var(--gold-2); }
.feature .icon svg { width: 26px; height: 26px; }
.feature:nth-child(2) .icon { background: rgba(43, 166, 240, 0.14); color: #7cc8f7; }
.feature:nth-child(3) .icon { background: rgba(63, 185, 80, 0.14); color: #7ddc8d; }
.feature:nth-child(4) .icon { background: rgba(232, 65, 79, 0.14); color: #ff8a95; }
.feature:nth-child(5) .icon { background: rgba(155, 89, 255, 0.16); color: #c3a0ff; }
.feature:nth-child(6) .icon { background: rgba(245, 166, 35, 0.14); color: #ffc46b; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.feature p { color: var(--dim); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* animations */
.anim-band { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.anim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem; background: linear-gradient(180deg, transparent, rgba(9, 12, 26, 0.92)); }
.shot figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.shot figcaption span { color: var(--dim); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-weight: 600; font-size: 0.92rem; }
.chip.mg { border-color: rgba(245, 179, 1, 0.5); color: var(--gold-2); }
@media (max-width: 760px) { .anim-grid { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 900px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 30px 80px rgba(245, 179, 1, 0.12); }
.badge { position: absolute; top: -0.9rem; left: 2rem; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.plan .for { color: var(--dim); margin-top: 0.3rem; }
.price { margin: 1.4rem 0; display: flex; align-items: baseline; gap: 0.4rem; }
.price strong { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: 1; }
.price span { color: var(--dim); }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; }
.ticks svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 1.4rem; color: var(--dim); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* questions */
.faq { max-width: 820px; display: grid; gap: 0.8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); color: var(--gold); font-size: 1.4rem; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding-bottom: 1.2rem; }

/* the last call */
.final { text-align: center; padding-block: var(--space); background: radial-gradient(60% 80% at 50% 100%, rgba(245, 179, 1, 0.14), transparent 70%); }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.final p { color: var(--dim); margin-top: 1rem; font-size: 1.15rem; }
.final .hero-actions { justify-content: center; }

/* footer */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-block: 2.5rem; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---- forms and panels (account, stats) ---- */
.page { padding-block: 3.5rem 5rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.narrow { max-width: 30rem; margin-inline: auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 0.3rem; margin-bottom: 1.6rem; }
.tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 700 1rem var(--body); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--gold); color: var(--on-gold); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; }
.field input { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0.7rem 0.9rem; font: 1rem var(--body); }
.field input:focus-visible { border-color: var(--gold); outline-offset: 1px; }
.field .help { color: var(--dim); font-size: 0.9rem; }
.error { color: var(--danger); font-weight: 600; min-height: 1.5em; margin: 0.3rem 0 0.8rem; }
.notice { border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; }
.notice.ok { background: rgba(73, 211, 107, 0.12); border: 1px solid rgba(73, 211, 107, 0.4); }
.notice.warn { background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.4); }
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.stat { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.stat small { display: block; color: var(--dim); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin-top: 0.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.bars { display: grid; gap: 0.5rem; }
.bar { display: grid; grid-template-columns: 7rem 1fr 3rem; gap: 0.7rem; align-items: center; font-weight: 600; }
.bar .track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--i)); }
.bar span:last-child { color: var(--dim); text-align: right; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
table.list th, table.list td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
table.list th { color: var(--dim); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stats-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; }
.panel-title { font-size: 1.25rem; }
.panel-note { color: var(--dim); margin: 0.2rem 0 1rem; }
.scroll-x { overflow-x: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.legal { max-width: 46rem; }
.legal h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: #cdd3ec; margin-bottom: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
