/* === DESIGN TOKENS (ui-ux-pro-max: trust sky + warm CTA) === */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-soft: #E0F2FE;
  --cta: #F97316;
  --cta-dark: #EA6C0A;
  --bg: #F0F9FF;
  --bg-alt: #E0F2FE;
  --bg-panel: #FFFFFF;
  --text: #0F172A;
  --text-heading: #0C4A6E;
  --text-muted: #475569;
  --success: #059669;
  --border: #E2E8F0;
  --radius: 16px;
  --max: 1120px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === BASE === */
body {
  font-family: 'Work Sans', 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
}

h1, h2, h3 {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === LAYOUT === */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn-large { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: auto; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 249, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-heading);
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.nav-cta { color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text-heading);
  border-radius: 8px;
  transition: background 0.15s ease;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--primary-soft); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.icon-close { display: none; }

/* === SECTIONS === */
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--text-muted); }

/* === HERO === */
.hero { padding-top: 4rem; padding-bottom: 3.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-row li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* === MOCKUP === */
.mockup {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.mockup-bar {
  background: #E0F2FE;
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-body { padding: 1.25rem; }

.mockup-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.mockup-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.mockup-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.mock-tile {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  background: var(--bg);
}
.mock-icon {
  display: block;
  margin: 0 auto 0.4rem;
  color: var(--primary);
  line-height: 0;
}
.mock-tile strong { display: block; font-size: 0.8rem; color: var(--text-heading); margin-bottom: 0.1rem; }
.mock-tile span { font-size: 0.72rem; color: var(--text-muted); }

/* === HERO IMAGE === */
.hero-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* === CARDS — Dla kogo === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--primary); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }

.card ul { list-style: none; }
.card ul li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* === STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* === BENEFITS === */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease;
}
.benefit:hover { border-color: var(--primary); }
.benefit-icon { color: var(--primary); margin-bottom: 1rem; line-height: 0; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.benefit p { color: var(--text-muted); font-size: 0.93rem; }

/* === TESTIMONIALS === */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stars {
  color: var(--cta);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.quote p { font-style: italic; color: var(--text); margin-bottom: 1rem; line-height: 1.65; }
.quote cite { color: var(--text-muted); font-size: 0.875rem; font-style: normal; font-weight: 500; }

/* Scenariusze (uczciwe sytuacje zamiast cytatów) */
.quote.scenario p { font-style: normal; margin-bottom: 0; }
.scenario-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Pojedyncza karta ceny — wyśrodkowana */
.pricing-single {
  display: flex;
  justify-content: center;
}
.pricing-single .price-card {
  width: min(100%, 440px);
}
.price-decimals {
  font-size: 1.25rem;
  font-weight: 600;
}
.price-foot {
  text-align: center;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.price-card {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--primary); }

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.price-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }

.price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.85rem; }

.price-anchor {
  background: var(--primary-soft);
  color: var(--text-heading);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.price-list { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.price-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === FAQ === */
.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s ease;
}
.faq-q:hover { color: var(--primary); }
.faq-q:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.faq-icon::before { content: "+"; }

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* === CTA BAND === */
.cta-section { padding: 2rem 0 4.5rem; }

.cta-band {
  background: var(--primary);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 36rem; margin: 0 auto 1.75rem; }

.cta-band .btn-cta {
  background: #fff;
  color: var(--primary);
}
.cta-band .btn-cta:hover { background: #E0F2FE; color: var(--primary-dark); }

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.cta-band .btn-outline-light {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  background: transparent;
}
.cta-band .btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

/* === NOTKA OD AUTORA === */
.author-section { padding: 1rem 0 4.5rem; }

.author-note {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-body h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.author-body p { color: var(--text-muted); margin-bottom: 0.6rem; }
.author-mail { font-size: 1.02rem; }
.author-mail a { font-weight: 700; }
.author-sign {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .author-note { flex-direction: column; gap: 1rem; padding: 1.5rem; }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: var(--bg-panel);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.footer-link:hover { text-decoration: underline; }
.footer-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === COOKIE CONSENT === */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  padding: 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.18), transparent);
}

.cookie-card {
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-panel);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cookie-copy h2 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.cookie-copy p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--primary) !important;
  font-weight: 800;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cookie-settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  color: var(--text-heading);
  line-height: 1.25;
}

.cookie-option small {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.cookie-option input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.cookie-option-disabled {
  opacity: 0.78;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
}

.cookie-actions .btn {
  min-height: 44px;
  padding: 0.7rem 1rem;
  font-size: 0.94rem;
}

.cookie-manage {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0.5rem 0.35rem;
}
.cookie-manage:hover { text-decoration: underline; }
.cookie-manage:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .cookie-card {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cookie-consent {
    padding: 0.75rem;
  }

  .cookie-card {
    padding: 1rem;
  }

  .cookie-actions,
  .cookie-actions .btn {
    width: 100%;
  }

  .cookie-manage {
    width: 100%;
    text-align: center;
  }
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  line-height: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* === DARK MODE === */
[data-theme="dark"] {
  --primary: #38BDF8;
  --primary-dark: #0EA5E9;
  --primary-soft: #0C4A6E;
  --cta: #FB923C;
  --cta-dark: #F97316;
  --bg: #0C1929;
  --bg-alt: #0F2744;
  --bg-panel: #132337;
  --text: #E2E8F0;
  --text-heading: #BAE6FD;
  --text-muted: #94A3B8;
  --success: #34D399;
  --border: #1E3A5F;
}

[data-theme="dark"] .site-header {
  background: rgba(12, 25, 41, 0.93);
}

[data-theme="dark"] .mockup-bar {
  background: #200D4A;
}

[data-theme="dark"] .price-list li {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .cta-band .btn-cta {
  background: #fff;
  color: var(--primary-dark);
}
[data-theme="dark"] .cta-band .btn-cta:hover {
  background: #E0F2FE;
}

/* === STATS BAR (Socjal Studio pattern) === */
.stats-bar {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* === SECTION LABEL === */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* === PAYMENT TRUST === */
.payment-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.payment-trust p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
}

.pay-badge svg {
  flex-shrink: 0;
  color: var(--primary);
}

.tpay-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

/* === PRICE BUTTON (Socjal Studio) === */
.price-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.price-btn-primary {
  background: var(--cta);
  color: #fff;
}
.price-btn-primary:hover {
  background: var(--cta-dark);
  color: #fff;
  text-decoration: none;
}

.price-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.price-btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

/* === REDIRECT STATUS (strona przejściowa) === */
.redirect-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.redirect-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  animation: redirect-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes redirect-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .redirect-spinner { animation: none; }
}

/* === THANK YOU PAGE === */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.thankyou-box {
  max-width: 560px;
  text-align: center;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.thankyou-lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.thankyou-steps {
  text-align: left;
  margin-bottom: 1.5rem;
}

.thankyou-steps h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.thankyou-steps ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.thankyou-steps li {
  margin-bottom: 0.5rem;
}

.thankyou-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* === LEGAL PAGE === */
.legal-page {
  background: var(--bg);
}

.legal-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.legal-hero p {
  color: var(--text-muted);
}

.legal-section {
  padding: 3rem 0 4.5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  min-width: 0;
}

.legal-toc a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.legal-toc a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.legal-content {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-panel);
  min-width: 0;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content h2:first-of-type {
  margin-top: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal-content li {
  margin-bottom: 0.45rem;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--bg-panel);
}

.legal-table th,
.legal-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--primary-soft);
  color: var(--text-heading);
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

/* === FADE IN === */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .steps,
  .benefits,
  .pricing-grid,
  .testimonials,
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero { padding-top: 2.5rem; }
  section { padding: 3rem 0; }
  .cta-section { padding: 1.5rem 0 3rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.85rem;
    align-items: stretch;
    z-index: 49;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { text-align: center; }

  .nav-toggle.is-open .icon-menu { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }

  .pricing-grid { gap: 2rem; }
  .price-card.featured { margin-top: 0.5rem; }

  .cta-band { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .trust-row { gap: 0.4rem 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .legal-content { padding: 1.25rem; }
  .legal-toc { grid-template-columns: 1fr; }
}
