/* PlayBets Casino – product site
   Colours follow the app: gold accent on a neutral background, light and dark. */

:root {
  --gold: #d9a647;
  --gold-strong: #b8862a;
  --gold-soft: rgba(217, 166, 71, 0.14);
  --link: #a87920;
  --green: #1fa851;
  --red: #e5383b;
  --orange: #f08c00;

  --bg: #f4f3f8;
  --bg-elevated: #ffffff;
  --bg-sunken: #ebeaf0;
  --text: #16151a;
  --text-muted: #5e5c66;
  --border: rgba(20, 18, 30, 0.09);
  --shadow: 0 10px 30px rgba(30, 24, 10, 0.08), 0 2px 6px rgba(30, 24, 10, 0.05);
  --phone-shadow: 0 30px 60px rgba(40, 30, 10, 0.22), 0 8px 18px rgba(40, 30, 10, 0.12);
  --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(217, 166, 71, 0.28), transparent 70%);

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --bg-elevated: #1a1a1e;
    --bg-sunken: #131316;
    --text: #f3f2f7;
    --text-muted: #a3a1ad;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --phone-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --gold-soft: rgba(217, 166, 71, 0.16);
    --link: #e2b45a;
    --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(217, 166, 71, 0.22), transparent 70%);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-elevated: #1a1a1e;
  --bg-sunken: #131316;
  --text: #f3f2f7;
  --text-muted: #a3a1ad;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --phone-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --gold-soft: rgba(217, 166, 71, 0.16);
  --link: #e2b45a;
  --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(217, 166, 71, 0.22), transparent 70%);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header & tabs ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.theme-toggle {
  margin-left: auto; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Phones: brand + theme button on the first line, scrollable tabs below. */
.tabs {
  order: 3; width: 100%;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 0 0 10px; margin: 0 -4px;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .header-row { min-height: 68px; flex-wrap: nowrap; }
  .tabs { order: 0; width: auto; padding: 0; margin: 0 0 0 20px; overflow: visible; }
  .theme-toggle { margin-left: auto; }
}

.tab {
  flex: none;
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
.tab[aria-selected="true"] { color: #1a1405; background: var(--gold); }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Panels: without JavaScript every panel is shown one after another. */
.js .panel[hidden] { display: none; }
.panel { padding: 0 0 72px; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } html { scroll-behavior: auto; } }

.section { padding: 56px 0 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-strong); margin-bottom: 10px;
}
:root[data-theme="dark"] .eyebrow { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--gold); } }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 48px 0 24px; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 72px 0 40px; } }

.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero h1 span { color: var(--gold); }
.hero .lead { max-width: 560px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #1a1405 !important; }
.btn-primary:hover { background: var(--gold-strong); color: #fff !important; }
.btn-ghost { background: var(--bg-elevated); color: var(--text) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); }
.btn svg { width: 20px; height: 20px; }
.btn-store { background: var(--text); color: var(--bg) !important; cursor: default; }
.btn-store small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.75; line-height: 1.1; }
.btn-store strong { display: block; line-height: 1.15; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.badges li {
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  padding: 6px 12px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border);
}

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 420px; }
.hero-phones .phone { width: min(56%, 290px); }
.hero-phones .phone + .phone { margin-left: -14%; margin-top: 64px; }

/* ---------- Phone frame ---------- */

.phone {
  border-radius: 13.5% / 6.2%;
  overflow: hidden;
  box-shadow: var(--phone-shadow);
  background: #000;
  outline: 6px solid #141416;
  outline-offset: 0;
  margin: 6px;
}
:root[data-theme="dark"] .phone { outline-color: #2a2a2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { outline-color: #2a2a2e; } }
.phone img { width: 100%; height: auto; }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 16px;
}
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 26px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #1a1405; font-weight: 800; font-size: 0.95rem;
  display: grid; place-items: center;
}

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius); padding: 22px 24px;
}
.callout svg { flex: none; width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Feature rows ---------- */

.feature { display: grid; gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .feature.reverse .feature-media { order: 2; }
}
.feature-media { display: flex; justify-content: center; gap: 18px; }
.feature-media .phone { width: min(48%, 270px); }
.feature-media.single .phone { width: min(70%, 300px); }
.feature-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23d9a647' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Systems ---------- */

.system-card { display: flex; flex-direction: column; }
.system-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.system-card header .icon-tile { margin: 0; flex: none; }
.system-card header h3 { margin: 0; }
.system-card .summary { font-weight: 600; }
.system-card dl { margin: 6px 0 0; display: grid; gap: 12px; }
.system-card dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.system-card dd { margin: 2px 0 0; color: var(--text-muted); font-size: 0.97rem; }
.dt-when { color: var(--gold-strong); }
.dt-why { color: var(--green); }
.dt-watch { color: var(--orange); }
:root[data-theme="dark"] .dt-when { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dt-when { color: var(--gold); } }

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elevated); box-shadow: var(--shadow); }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.compare th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-sunken); }
.compare tr:last-child td { border-bottom: 0; }
.level { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.level-low { background: rgba(31, 168, 81, 0.14); color: var(--green); }
.level-mid { background: rgba(240, 140, 0, 0.14); color: var(--orange); }
.level-high { background: rgba(229, 56, 59, 0.14); color: var(--red); }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery button {
  appearance: none; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%;
  border-radius: 13.5% / 6.2%;
}
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.gallery .phone { margin: 6px; transition: transform 0.2s; }
.gallery button:hover .phone { transform: translateY(-4px); }
.gallery figcaption { margin-top: 14px; font-size: 0.92rem; text-align: center; color: var(--text-muted); }
.gallery figcaption strong { display: block; color: var(--text); font-size: 0.98rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8, 8, 10, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px 64px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img {
  max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto;
  border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption { color: #e9e7ef; margin-top: 14px; text-align: center; font-size: 0.95rem; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 64px 12px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lightbox img { max-height: calc(100dvh - 190px); }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 650; padding: 16px 32px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--text-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Legal text ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 0.92rem; color: var(--text-muted); }
.footer-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.age-badge {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 0.78rem; margin-right: 10px; vertical-align: middle;
}
