/* Stawka / Bid - bid-stawka.com - shared styles */

:root {
  --bg: #0f0f16;
  --bg-alt: #15151d;
  --surface: #1b1b26;
  --surface-2: #21212f;
  --border: #2c2c3c;
  --text: #f5f1e8;
  --text-muted: #a9a9ba;
  --text-faint: #78788c;
  --gold: #f5b93e;
  --gold-dark: #d99a1f;
  --teal: #2dd4bf;
  --coral: #ff6b6b;
  --purple: #9b6bff;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --max-w: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- language toggle ---------- */
.lang-pl, .lang-en { }
html.lang-en .lang-pl { display: none !important; }
html:not(.lang-en) .lang-en { display: none !important; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 14px;
}
.dot-row { display: inline-flex; gap: 5px; }
.dot-row span { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.dot-row span:nth-child(1) { background: var(--teal); }
.dot-row span:nth-child(2) { background: var(--coral); }
.dot-row span:nth-child(3) { background: var(--purple); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: #191305; }
.btn-primary:hover { background: #ffc65a; box-shadow: 0 8px 24px -8px rgba(245, 185, 62, .55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(21, 21, 29, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 800; font-size: 1.2rem; color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: .8rem;
  padding: 7px 12px;
  cursor: pointer;
}
.lang-switch button.active { background: var(--gold); color: #191305; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(245,185,62,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero .tagline { font-size: 1.15rem; color: var(--text); font-weight: 600; margin-bottom: .6em; }
.hero .lede { font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero-note { font-size: .85rem; color: var(--text-faint); }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-l); box-shadow: var(--shadow); border: 1px solid var(--border); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------- store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.store-badge-link {
  display: inline-flex;
  transition: transform .15s ease, opacity .15s ease;
  border-radius: 8px;
}
.store-badge-link:hover { transform: translateY(-2px); opacity: .92; }
.store-badge-link img { height: 50px; width: auto; display: block; }
.store-note {
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: 10px;
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }
.alt-bg { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.about-grid .lede { font-size: 1.05rem; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 22px;
}
.step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(245,185,62,.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(245,185,62,.12);
  color: var(--gold);
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-strip .stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  font-weight: 800;
}
.stats-strip .stat span { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* rules callout */
.rules-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(245,185,62,.08), transparent 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 48px;
}
.rules-callout ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.rules-callout li { margin-bottom: 10px; }
@media (max-width: 800px) { .rules-callout { grid-template-columns: 1fr; padding: 32px; } }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  margin-left: 16px;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item:not([open]) > :not(summary) { display: none; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* download CTA */
.cta-band {
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, #1c1712, #15151d 60%);
  border: 1px solid var(--border);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band .store-badges { justify-content: center; margin-top: 26px; }
@media (max-width: 700px) { .cta-band { padding: 36px 24px; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 34ch; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-faint);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- legal pages ---------- */
.legal-page { padding: 56px 0 100px; }
.legal-header { max-width: 760px; margin: 0 auto 40px; }
.legal-header .updated { font-size: .85rem; color: var(--text-faint); }
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 44px;
}
.legal-body h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.2em; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: .96rem; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--gold); text-decoration: underline; }
.legal-toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin-bottom: 32px;
}
.legal-toc h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.legal-toc ol { margin: 0; padding-left: 20px; font-size: .9rem; }
.legal-toc a { color: var(--text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }
.company-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  font-size: .92rem;
  color: var(--text-muted);
}
.company-box strong { color: var(--text); }
@media (max-width: 700px) { .legal-body { padding: 26px; } }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: none;
}
.cookie-banner.visible { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--text-muted); flex: 1 1 320px; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #191305; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

::selection { background: var(--gold); color: #191305; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
