/* ============================================================
   Iskra - randki i czat online
   Design tokens
   ============================================================ */
:root {
  --bg: #241826;
  --bg-alt: #2f1e34;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  --border-soft: rgba(245, 237, 230, 0.1);

  --rose: #e85c7b;
  --rose-dim: #c94866;
  --gold: #e3a857;
  --lavender: #b9a6be;

  --text: #f5ede6;
  --text-muted: #cabcc7;
  --text-faint: #8f7c8c;

  --radius: 18px;
  --radius-sm: 10px;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #3a2440 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--text); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--text-muted); margin: 0 0 1.1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Skip link / a11y -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #241826;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* -------------------- Age gate -------------------- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 12, 22, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#age-gate[hidden] { display: none; }
.age-gate-card {
  max-width: 440px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.age-gate-card .age-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 52px;
  margin-bottom: 14px;
}
.age-gate-card h2 { font-size: 1.35rem; margin-bottom: 10px; }
.age-gate-card p { font-size: 0.92rem; margin-bottom: 22px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.age-gate-actions .btn-leave {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dim) 100%);
  color: #fff5f2;
  box-shadow: 0 10px 30px rgba(232, 92, 123, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(232, 92, 123, 0.48);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-card); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }

/* -------------------- Header / Nav -------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(36, 24, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--gold); }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--gold); }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}
@media (min-width: 860px) { .menu-toggle { display: none; } }
nav.main-nav { display: none; }
nav.main-nav.open { display: block; width: 100%; }
@media (min-width: 860px) { nav.main-nav { display: block !important; } }

/* -------------------- Hero -------------------- */
.hero {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.hero p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.82rem; color: var(--text-faint); }

/* -------------------- Chat mockup (signature element) -------------------- */
.chat-mock {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  position: relative;
}
.chat-mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,92,123,0.5), rgba(227,168,87,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.chat-mock .chat-title {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  opacity: 0;
  animation: rise 0.5s ease forwards;
}
.bubble.them {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.bubble.me {
  background: linear-gradient(135deg, var(--rose), var(--rose-dim));
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble:nth-child(2) { animation-delay: 0.15s; }
.bubble:nth-child(3) { animation-delay: 0.5s; }
.bubble:nth-child(4) { animation-delay: 1s; }
.bubble:nth-child(5) { animation-delay: 1.6s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 12px 15px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  animation: rise 0.5s ease forwards;
  animation-delay: 2.1s;
  opacity: 0;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  animation: bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .typing-dots { animation: none; opacity: 1; }
}

/* -------------------- Sections -------------------- */
section { padding: 56px 0; }
section.alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head .eyebrow { margin-bottom: 12px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.card .card-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.94rem; }

article.prose { max-width: 72ch; }
article.prose h2 { margin-top: 1.6em; }
article.prose ul, article.prose ol { color: var(--text-muted); padding-left: 1.3em; }
article.prose li { margin-bottom: 0.5em; }

.pillar-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pillar-links a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.pillar-links a:hover { background: var(--bg-card-hover); color: var(--gold); }
.pillar-links a span {
  display: block;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 4px;
}

.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  margin-left: 16px;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; font-size: 0.95rem; }

/* -------------------- CTA banner -------------------- */
.cta-banner {
  background: linear-gradient(135deg, #3a2440, #2a1a30);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { max-width: 50ch; margin: 0 auto 24px; }

/* -------------------- Disclosure strip -------------------- */
.disclosure-strip {
  background: rgba(227, 168, 87, 0.08);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.disclosure-strip .wrap { display: flex; gap: 10px; align-items: flex-start; }
.disclosure-strip .badge18 {
  flex: 0 0 auto;
  background: var(--gold);
  color: #241826;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.disclosure-strip a { color: var(--lavender); text-decoration: underline; }

/* -------------------- Footer -------------------- */
footer.site-footer {
  padding: 46px 0 34px;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-faint); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

/* -------------------- Breadcrumb -------------------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
