/* ===================================================================
   seo-pages.css — shared brand stylesheet for static SEO pages
   Tokens reused from web/index.html (no invented values).
   =================================================================== */

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

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.6;
  /* prevent horizontal overflow */
  overflow-x: hidden;
}

/* ----- TYPOGRAPHY ----- */
h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.25;
}

h2 {
  font-size: 1.1rem;
  color: #0f172a;
  margin: 28px 0 8px;
  line-height: 1.35;
}

h3 {
  font-size: 1rem;
  color: #0f172a;
  margin: 20px 0 6px;
}

p, li {
  font-size: .95rem;
  color: #334155;
}

a { color: #2563eb; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }

strong { color: #0f172a; }

/* ----- HEADER ----- */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: #f0f2f5;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.seo-header { justify-content: space-between; }

.seo-brand { font-size: 0.82rem; font-weight: 600; color: #2563eb; text-decoration: none; letter-spacing: 0.01em; }
.seo-brand:hover { text-decoration: underline; }

.seo-header-cta { display: inline-block; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; border-radius: 8px; background: #2563eb; color: #fff; text-decoration: none; white-space: nowrap; }
.seo-header-cta:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

/* ----- PAGE WRAPPER ----- */
.seo-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

@media (min-width: 480px) {
  .seo-wrap { padding-left: 24px; padding-right: 24px; }
}

/* Szerokość jak ekran setupu nauki (#screen-setup/#screen-setup-wiedza): 800px, a od 1024px — 900px. */
@media (min-width: 1024px) {
  .seo-wrap { max-width: 900px; }
}

/* ----- BREADCRUMB ----- */
.breadcrumb {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { margin: 0 6px; }

/* ----- EYEBROW CHIP ----- */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

/* ----- CARD ----- */
.seo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.seo-card h2:first-child,
.seo-card h3:first-child {
  margin-top: 0;
}

/* ----- STEP CARD variant ----- */
.seo-card.step-card {
  border-left: 3px solid #2563eb;
  border-radius: 0 14px 14px 0;
}

/* step number badge */
.step-num {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

/* ----- CALLOUT ----- */
.callout {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #14532d;
}

/* ----- WARNING ----- */
.warning {
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #78350f;
}

/* ----- FACT LIST (terminy page) ----- */
.fact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.fact-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}

.fact-list li strong { color: #0f172a; }

.fact-list li .label {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ----- ACTS LIST ----- */
.act-list {
  padding-left: 24px;
  margin: 12px 0 0;
}

.act-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .93rem;
  color: #334155;
}

.act-list li:last-child { border-bottom: none; }

.new-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ----- FAQ ITEMS ----- */
.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.faq-item h2 {
  margin: 0;
  padding: 14px 18px;
  font-size: 1rem;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  cursor: default;
}

.faq-answer {
  padding: 0 18px 14px;
}

.faq-answer p { margin: 10px 0 0; }

/* ----- TEASER BLOCK ----- */
.teaser-block {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
}

.teaser-block p { margin: 0 0 12px; color: #0f172a; font-size: .95rem; }
.teaser-block p:last-child { margin-bottom: 0; }

/* ----- SEE-ALSO CARD ----- */
.see-also {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  padding: 18px 22px;
  margin: 24px 0;
}

.see-also h2 {
  margin-top: 0;
  font-size: .95rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.see-also ul { margin: 8px 0 0; }
.see-also li { margin-bottom: 6px; }

/* ----- SOURCE NOTE ----- */
.source-note {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* ----- CTA BUTTON ----- */
.seo-cta {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .15s;
}

.seo-cta:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

.cta-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
}

.cta-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

.cta-block {
  margin: 32px 0;
  text-align: center;
}

.cta-note {
  font-size: .85rem;
  color: #64748b;
  margin-top: 8px;
}

/* ----- FOOTER ----- */
.seo-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  padding: 16px 16px 28px;
  text-align: center;
  font-size: .83rem;
  color: #94a3b8;
  line-height: 1.9;
}

.seo-footer a {
  color: #64748b;
  text-decoration: none;
}

.seo-footer a:hover { text-decoration: underline; }

/* separator dots */
.seo-footer > *:not(:first-child)::before {
  content: " · ";
  color: #cbd5e1;
}

/* ----- BACKGROUND ILLUSTRATION ----- */
/* Mobile: subtle bottom decoration in document flow */
.bg-illustration {
  pointer-events: none;
  user-select: none;
  margin-top: 32px;
  width: 100%;
  overflow: hidden;
}

.bg-illustration img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .5;
  mix-blend-mode: multiply;
}

/* Desktop: fixed, centered at bottom, behind content */
@media (min-width: 768px) {
  .seo-wrap { padding-bottom: min(38vh, 320px); }

  .bg-illustration {
    position: fixed;
    bottom: var(--footer-push, 0px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: -1;
    background: transparent;
  }

  .bg-illustration img {
    max-height: min(38vh, 320px);
    width: auto;
    height: auto;
  }
}
