/* Parimatch Aplikacja — design system (see docs/DESIGN_SYSTEM.md) */

:root {
  --bg-base:    #0b0e14;
  --bg-surface: #12151d;
  --bg-raised:  #191d27;

  --border:        #232838;
  --border-subtle: rgba(35,40,56,0.5);

  --brand:       #e8ff00;
  --brand-dim:   rgba(232,255,0,0.08);
  --brand-hover: #d4ea00;

  --cyan:      #22d3ee;
  --cyan-dim:  rgba(34,211,238,0.10);
  --cyan-glow: rgba(34,211,238,0.25);

  --text-primary:   #eef1f6;
  --text-secondary: #8990a3;
  --text-inverse:   #0b0e14;

  --font-headline: 'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --sp1:  0.25rem;
  --sp2:  0.5rem;
  --sp3:  0.75rem;
  --sp4:  1rem;
  --sp5:  1.25rem;
  --sp6:  1.5rem;
  --sp8:  2rem;
  --sp10: 2.5rem;
  --sp12: 3rem;
  --sp16: 4rem;
  --sp20: 5rem;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-headline);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); margin-bottom: var(--sp5); }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: var(--sp3); }

p { margin-bottom: var(--sp4); color: var(--text-primary); }
p.lead { font-size: var(--text-lg); color: var(--text-secondary); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp8); }
}

/* ---------- 18+ bar ---------- */
.age-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0 var(--sp4);
}
.age-bar span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.age-bar .dot { color: var(--cyan); margin: 0 var(--sp2); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.logo img { width: 32px; height: 32px; }
.logo span { color: var(--brand); }

.site-nav {
  display: none;
  gap: var(--sp6);
  font-size: var(--text-sm);
  font-weight: 500;
}
.site-nav a { color: var(--text-secondary); transition: color .2s; }
.site-nav a:hover { color: var(--text-primary); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp4); }
.header-actions .btn-sm { display: none; }
@media (min-width: 640px) {
  .header-actions .btn-sm { display: inline-block; }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: var(--sp1);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp4);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: var(--sp3) var(--sp2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
}
.mobile-drawer a:hover { background: var(--bg-raised); color: var(--text-primary); }
@media (min-width: 900px) {
  .mobile-drawer { display: none !important; }
}

/* ---------- CTA button ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--text-inverse);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp3) var(--sp8);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}
.btn:hover { background: var(--brand-hover); }
.btn-sm { padding: var(--sp2) var(--sp5); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .btn-block-mobile { display: block; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-base);
  padding: var(--sp16) 0 var(--sp16);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp10);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero-content .eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp4);
  display: inline-block;
}
.hero-content h1 { color: var(--text-primary); margin-bottom: var(--sp5); }
.hero-content p.lead { margin-bottom: var(--sp6); }
.hero-ctas { display: flex; gap: var(--sp4); flex-wrap: wrap; }

/* Dual app-screen visual */
.app-visual {
  position: relative;
  height: 380px;
  max-width: 340px;
  margin: 0 auto;
}
.app-card {
  position: absolute;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  padding: var(--sp4);
  overflow: hidden;
}
.app-card.back {
  background: var(--bg-raised);
  opacity: .6;
  top: 0;
  left: 0;
  height: 320px;
}
.app-card.front {
  background: var(--bg-surface);
  border-color: var(--cyan);
  top: 60px;
  left: 90px;
  height: 320px;
}
.app-card .app-nav {
  height: 10px;
  width: 60%;
  background: var(--border);
  border-radius: var(--r-full);
  margin-bottom: var(--sp5);
}
.app-card .app-block {
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--border-subtle);
  margin-bottom: var(--sp3);
}
.app-card.front .app-block.highlight {
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
}
.app-card .app-tabbar {
  position: absolute;
  bottom: var(--sp4);
  left: var(--sp4);
  right: var(--sp4);
  height: 34px;
  border-radius: var(--r-md);
  background: var(--border-subtle);
  display: flex;
  gap: var(--sp2);
  padding: var(--sp2);
}
.app-card .app-tabbar span {
  flex: 1;
  border-radius: var(--r-sm);
  background: var(--border);
}
.app-card.front .app-tabbar span:first-child { background: var(--cyan); }

/* ---------- Section container ---------- */
.section {
  padding: var(--sp16) 0;
  border-top: 1px solid var(--border);
}
.section.alt { background: var(--bg-surface); }
.section-head { max-width: 720px; margin-bottom: var(--sp8); }
.section-head p.lead { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp6);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp6); }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp6); }
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}
.card h3 { display: flex; align-items: center; gap: var(--sp3); }
.card .icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--cyan-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.card p:last-child { margin-bottom: 0; color: var(--text-secondary); font-size: var(--text-sm); }
.card a.card-link { color: var(--cyan); font-size: var(--text-sm); font-weight: 600; }

/* ---------- Step badges ---------- */
.steps { display: flex; flex-direction: column; gap: var(--sp6); }
.step { display: flex; gap: var(--sp5); align-items: flex-start; }
.step-badge {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { margin-bottom: var(--sp2); font-size: var(--text-lg); }
.step-body p { margin-bottom: 0; color: var(--text-secondary); }

/* ---------- Callouts ---------- */
.callout {
  background: var(--brand-dim);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: var(--sp4) var(--sp5);
  font-weight: 500;
  margin: var(--sp6) 0;
}
.callout.cyan {
  background: var(--cyan-dim);
  border-left-color: var(--cyan);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--cyan); }
.callout.cyan strong { color: var(--cyan); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--sp6) 0; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
thead { background: var(--bg-raised); }
th, td {
  padding: var(--sp3) var(--sp4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: var(--text-sm);
}
th {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text-primary);
}
tbody tr:nth-child(even) { background: var(--bg-surface); }
td { color: var(--text-secondary); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp2);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}
.badge.brand { background: var(--brand-dim); color: var(--brand); }
.badge.cyan { background: var(--cyan-dim); color: var(--cyan); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--sp4) var(--sp5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp4);
}
.faq-q:hover { background: var(--bg-raised); }
.faq-q .ind { color: var(--brand); font-family: var(--font-mono); flex-shrink: 0; }
.faq-a {
  display: none;
  padding: var(--sp4) var(--sp5);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .ind::before { content: "−"; }
.faq-q .ind::before { content: "+"; }

/* ---------- Figure ---------- */
figure { margin: var(--sp8) 0 0; text-align: center; }
figure svg, figure img { border-radius: var(--r-md); margin: 0 auto; }
figcaption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp3);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: var(--sp5) 0 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span.sep { margin: 0 var(--sp2); color: var(--border); }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp8);
  text-align: center;
  margin-top: var(--sp8);
}
.cta-block h3 { margin-bottom: var(--sp3); }
.cta-block p { color: var(--text-secondary); margin-bottom: var(--sp5); }

/* ---------- Responsible gaming ---------- */
.rg-section { background: var(--bg-surface); }
.rg-links { display: flex; gap: var(--sp4); margin-top: var(--sp5); flex-wrap: wrap; }
.rg-links a {
  color: var(--cyan);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp2) var(--sp4);
}
.rg-links a:hover { border-color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp10) 0 var(--sp6);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp8);
  font-size: var(--text-sm);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--sp4);
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp2); }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--text-primary); }

.fp-heading {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.footer-payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: var(--sp8);
  padding-top: var(--sp6);
  opacity: .55;
}
.footer-payments img { height: 28px; width: auto; }

.footer-bottom {
  margin-top: var(--sp8);
  padding-top: var(--sp6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.footer-legal-note {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  max-width: 900px;
  margin-top: var(--sp4);
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; padding: var(--sp16) 0; }
.legal-body h2 { margin-top: var(--sp10); }
.legal-body p, .legal-body li { color: var(--text-secondary); }
.legal-body ul { padding-left: var(--sp6); margin-bottom: var(--sp4); }
