/* ===== Design tokens ===== */
:root {
  --violet: #6c4df6;
  --violet-dark: #5334d8;
  --pink: #ff6ba6;
  --amber: #ffb02e;
  --ink: #1a1430;
  --ink-soft: #5b5470;
  --bg: #ffffff;
  --bg-alt: #f6f4ff;
  --card: #ffffff;
  --line: #ece8f7;
  --radius: 22px;
  --shadow-sm: 0 6px 20px rgba(46, 30, 90, .08);
  --shadow-md: 0 20px 50px rgba(46, 30, 90, .14);
  --grad: linear-gradient(120deg, #6c4df6 0%, #9a4df6 45%, #ff6ba6 100%);
  --grad-warm: linear-gradient(120deg, #ffb02e, #ff6ba6);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin-inline: auto; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(108, 77, 246, .38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(108, 77, 246, .5); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--violet); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.navbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(46, 30, 90, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px rgba(108, 77, 246, .4);
}
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links > a { font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.nav-links > a:hover { color: var(--violet); }
.nav-links > a.btn-primary { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; }
.blob-1 { width: 460px; height: 460px; background: #c9b8ff; top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #ffc2dc; bottom: -120px; left: -100px; }
.hero-inner > * { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line);
  padding: .45rem 1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--violet);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.3rem 0 2rem; max-width: 34rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: .85rem; margin-top: 2.2rem; }
.hero-proof p { font-size: .92rem; color: var(--ink-soft); }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  margin-left: -12px; background: var(--grad);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #ffb02e, #ff6ba6); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #4dd6c1, #6c4df6); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #ff6ba6, #6c4df6); }

/* ===== Phone mockup ===== */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; width: 300px; padding: 14px;
  background: linear-gradient(160deg, #241b45, #3a2a6e);
  border-radius: 42px; box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #241b45; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen {
  background: linear-gradient(180deg, #f4f1ff, #ffffff);
  border-radius: 30px; padding: 1.3rem 1.1rem; height: 560px; overflow: hidden;
}
.app-header { display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 1.4rem; }
.app-hi { font-size: .8rem; color: var(--ink-soft); }
.app-name { font-weight: 800; font-size: 1.15rem; }
.app-points { background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; }

.card-stamp { background: #fff; border-radius: 20px; padding: 1.1rem; box-shadow: var(--shadow-sm); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.card-shop { font-weight: 800; }
.card-badge { font-size: .68rem; font-weight: 700; color: var(--violet); background: var(--bg-alt); padding: .3rem .55rem; border-radius: 999px; }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.s {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 1rem; background: #f1eefb; border: 2px dashed #d9d1f5;
}
.s.filled { background: var(--grad); border: none; box-shadow: 0 6px 12px rgba(108, 77, 246, .3); }
.s.pulse { background: var(--grad-warm); border: none; color: #fff; animation: pulse 1.8s infinite; }
.card-progress { font-size: .78rem; color: var(--ink-soft); margin-top: .9rem; font-weight: 600; }

.mini-cards { display: grid; gap: .7rem; margin-top: 1rem; }
.mini { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 16px; padding: .7rem .8rem; box-shadow: var(--shadow-sm); }
.mini-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; font-size: 1.2rem; }
.mini b { font-size: .85rem; display: block; }
.mini small { font-size: .72rem; color: var(--ink-soft); }

.float-badge {
  position: absolute; background: #fff; box-shadow: var(--shadow-md);
  padding: .6rem .9rem; border-radius: 14px; font-weight: 700; font-size: .82rem;
}
.float-1 { top: 60px; left: -10px; color: var(--violet); animation: floaty 5s ease-in-out infinite; }
.float-2 { bottom: 80px; right: -6px; color: var(--pink); animation: floaty 4.5s ease-in-out .5s infinite; }

/* ===== Trust bar ===== */
.trustbar { padding: 2rem 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.trustbar p { text-align: center; color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; }
.logos span { font-weight: 700; color: var(--ink); opacity: .7; font-size: 1.05rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: .8rem; }
.eyebrow-light { color: #ffd9ea; }
.section-head p { color: var(--ink-soft); margin-top: .8rem; font-size: 1.05rem; }
.grid { display: grid; gap: 1.4rem; }

/* ===== Features ===== */
.features { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--bg-alt); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.1rem; }
.feature p { color: var(--ink-soft); margin-top: .5rem; font-size: .96rem; }

/* ===== Steps ===== */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); position: relative; }
.step-num { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step p { color: var(--ink-soft); margin-top: .5rem; }

/* ===== Rewards ===== */
.rewards-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.rewards-copy p { color: var(--ink-soft); margin: 1rem 0 1.6rem; }
.check-list { list-style: none; display: grid; gap: .8rem; margin-bottom: 2rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  color: #fff; font-size: .75rem; display: grid; place-items: center;
}
.rewards-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.reward-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.3rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .3rem;
  transition: transform .25s;
}
.reward-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-md); }
.reward-emoji { font-size: 2.2rem; margin-bottom: .4rem; }
.reward-card b { font-size: 1.05rem; }
.reward-card small { color: var(--ink-soft); }
.reward-card.r2 { transform: translateY(28px); }
.reward-card.r4 { transform: translateY(28px); }
.reward-card.r2:hover, .reward-card.r4:hover { transform: translateY(22px) rotate(-1deg); }

/* ===== Stats ===== */
.stats { padding: 3rem 0; background: linear-gradient(120deg, #6c4df6, #9a4df6); color: #fff; }
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat b { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; display: block; }
.stat span { opacity: .85; font-weight: 600; font-size: .95rem; }

/* ===== Pricing ===== */
.pricing { grid-template-columns: repeat(2, 1fr); align-items: stretch; max-width: 860px; margin-inline: auto; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.price-card--featured { border-color: var(--violet); box-shadow: var(--shadow-md); }
.price-tag {
  display: inline-block; align-self: flex-start; font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--violet);
  background: var(--bg-alt); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.price-amount { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1rem; }
.price-amount b { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.1; }
.price-amount span { color: var(--ink-soft); font-weight: 600; }
.price-desc { color: var(--ink-soft); margin-bottom: 1.6rem; }
.price-card .check-list { margin-bottom: 2rem; }
.price-card .btn { margin-top: auto; }
.pricing-note {
  max-width: 860px; margin: 1.6rem auto 0; text-align: center;
  color: var(--ink-soft); font-size: .95rem; line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials { grid-template-columns: repeat(3, 1fr); }
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: .8rem; }
.testimonial p { font-size: 1rem; }
.testimonial footer { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; font-weight: 700; }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ===== Benefits ===== */
.benefit {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--bg-alt);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.1rem;
}
.benefit p { color: var(--ink-soft); margin-top: .5rem; font-size: .96rem; }

/* ===== Business ===== */
.business { background: linear-gradient(150deg, #241b45, #4a2f8f); color: #fff; border-radius: 0; }
.business-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.business-copy p { color: #d8cff5; margin: 1rem 0 1.8rem; }
.business-perks { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.business-perks b { font-size: 1.8rem; font-weight: 800; display: block; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.business-perks span { color: #cbc0ee; font-size: .88rem; }
.business-visual { display: flex; justify-content: center; }
.dash { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.6rem; width: 100%; max-width: 380px; box-shadow: var(--shadow-md); }
.dash-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 1.2rem; }
.dash-row span { color: var(--ink-soft); font-size: .9rem; }
.dash-row b { color: var(--violet); }
.dash-bars { display: flex; align-items: flex-end; gap: .5rem; height: 130px; margin-bottom: 1.4rem; }
.dash-bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 8px 8px 4px 4px; animation: grow 1s ease both; }
.dash-foot { display: flex; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.dash-foot b { font-size: 1.4rem; display: block; }
.dash-foot small { color: var(--ink-soft); }

/* ===== Download ===== */
.download { text-align: center; }
.download-inner {
  background: var(--grad); color: #fff; border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.download-inner::before, .download-inner::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.download-inner::before { width: 260px; height: 260px; top: -100px; left: -60px; }
.download-inner::after { width: 200px; height: 200px; bottom: -90px; right: -50px; }
.download-inner > * { position: relative; z-index: 1; }
.download-inner p { opacity: .92; margin-top: .8rem; font-size: 1.1rem; }
.store-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #1a1430; color: #fff; padding: .75rem 1.4rem; border-radius: 14px;
  transition: transform .2s;
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: .68rem; opacity: .8; }
.store-btn strong { font-size: 1.05rem; }
.download-note { font-size: .85rem; opacity: .8 !important; }

/* Coming-soon store buttons (apps not live yet) */
.store-btn.is-soon { position: relative; cursor: default; opacity: .72; }
.store-btn.is-soon:hover { transform: none; }
.soon-tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--grad-warm); color: #241b45;
  padding: .18rem .5rem; border-radius: 999px; margin-left: .2rem;
}

/* ===== Footer ===== */
.footer { background: #120e24; color: #cbc0ee; padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.footer-cols a { display: block; color: #cbc0ee; font-size: .9rem; margin-bottom: .55rem; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .85rem; flex-wrap: wrap; gap: 1rem; }
.footer-credit { opacity: .75; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { opacity: 1; }
.socials { display: flex; gap: .8rem; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: rgba(255,255,255,.18); }

/* ===== Animations ===== */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,166,.5); } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,107,166,0); } }
@keyframes grow { from { height: 0; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .rewards-inner, .business-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features, .steps, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 1rem 6%; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: .8rem 0; width: 100%; }
  .nav-links > a.btn { padding: .8rem 1.15rem; justify-content: center; margin-top: .5rem; }
  .nav-toggle { display: flex; }
  .features, .steps, .testimonials, .rewards-cards, .pricing { grid-template-columns: 1fr; }
  .reward-card.r2, .reward-card.r4 { transform: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Legal pages (Regulamin / Polityka prywatności) ===== */
.legal-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 118px 0 44px;
}
.legal-hero .container { width: min(820px, 92%); }
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  margin-bottom: 1.1rem; transition: color .2s ease;
}
.legal-back:hover { color: var(--violet); }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-updated { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }

.legal-body { padding: 40px 0 72px; }
.legal-body .container { width: min(820px, 92%); }
.legal-body h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  margin: 2.2rem 0 .7rem;
}
.legal-body h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; }
.legal-body p { margin: .7rem 0; color: var(--ink-soft); }
.legal-body strong { color: var(--ink); }
.legal-body ul { margin: .7rem 0; padding-left: 1.4rem; }
.legal-body li { margin: .35rem 0; color: var(--ink-soft); }
.legal-body a { color: var(--violet); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* --- Converted legal documents (Regulamin, Polityka prywatności) ---------
   These pages are generated from the source .docx, so their markup is a
   plain nesting of headings, ordered lists and tables. */
.legal-body ol { margin: .7rem 0; padding-left: 1.6rem; }
.legal-body ol ol { margin: .5rem 0 .7rem; }
.legal-body li > ol { padding-left: 1.4rem; }
/* "CZĘŚĆ I", "ZAŁĄCZNIK NR 1" — top-level dividers above the § headings. */
.legal-part {
  margin: 3.2rem 0 1.2rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: .01em;
}
.legal-body .legal-part + h3 { margin-top: 1.2rem; }
/* Section index — the Regulamin is long enough to need one. */
.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
}
.legal-toc h2 { font-size: 1rem; margin: 0 0 .7rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin: .25rem 0; }
/* Row of document actions (download the signed PDF, jump to the other doc). */
.legal-actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.2rem;
}
.legal-actions .btn-sm { font-size: .9rem; }

.legal-body address {
  font-style: normal;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: .9rem 0;
  color: var(--ink);
  line-height: 1.7;
}



/* ===== FAQ ===== */
.faq-list {
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] {
  border-color: var(--violet);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 1.15rem 2rem 1.15rem 0;
  position: relative;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--violet);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
/* Links inside answers — the global `a { color: inherit }` would hide them. */
.faq-item p a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ===== Blog listing ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; }
.blog-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
}
.blog-thumb.thumb-1 { background: linear-gradient(135deg, #6c4df6, #9a4df6); }
.blog-thumb.thumb-2 { background: linear-gradient(135deg, #ffb02e, #ff6ba6); }
.blog-thumb.thumb-3 { background: linear-gradient(135deg, #22c55e, #6c4df6); }
.blog-thumb.thumb-4 { background: linear-gradient(135deg, #0ea5e9, #6c4df6); }
.blog-thumb.thumb-5 { background: linear-gradient(135deg, #f97316, #e11d48); }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 5px 12px;
}
.blog-card-body h2 { font-size: 1.18rem; line-height: 1.35; color: var(--ink); margin: 0; }
.blog-card-body p { color: var(--ink-soft); margin: 0; font-size: .96rem; line-height: 1.55; }
.blog-meta { margin-top: auto; font-size: .82rem; color: var(--ink-soft); opacity: .85; }

/* ===== Article page ===== */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--violet); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .35rem; opacity: .6; }
.legal-hero .blog-tag { margin-bottom: .8rem; }
.article .lead-para {
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.article .callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--violet);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  color: var(--ink);
  line-height: 1.65;
}
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 520px;
}
.article th, .article td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.article thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
}
.article tbody tr:last-child td { border-bottom: none; }
.article-cta {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  margin: 2.6rem 0 1.6rem;
}
.article-cta h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.4rem; }
.article-cta p { color: rgba(255,255,255,.9); margin: 0 0 1.2rem; }
.article-cta .btn-primary { background: #fff; color: var(--violet); }
.article-cta .btn-primary:hover { background: #f4f1ff; }
.article-more {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1.6rem;
}
.article-more h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.article-more a {
  display: block;
  color: var(--violet);
  font-weight: 600;
  padding: .35rem 0;
}
.article-more a:hover { text-decoration: underline; }

/* ===== Cookie consent ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 130%);
  width: min(680px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(46, 30, 90, .22);
  padding: 22px 24px;
  z-index: 9999;
  opacity: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner h3 { font-size: 1.08rem; margin: 0 0 .4rem; color: var(--ink); }
.cookie-banner p { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1rem; }
.cookie-banner a { color: var(--violet); font-weight: 600; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { font-size: .92rem; padding: 10px 18px; }
.btn-decline {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-decline:hover { background: #ece8f7; }
.cookie-settings-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  opacity: .8;
  text-decoration: underline;
}
.cookie-settings-link:hover { opacity: 1; }
@media (max-width: 520px) {
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
