/* Zeukan — strona powitalna. Kierunek: zeszyt ćwiczeń / redakcyjny.
   Papier, atrament, zakreślacz; grube linie i twarde cienie zamiast gradientów. */
:root {
  --paper: #F6F2E9;
  --paper-2: #EDE6D6;
  --card: #FFFCF4;
  --ink: #14140F;
  --ink-soft: #4B4A40;
  --muted: #5F5D50;
  --rule: #D7CFBC;
  --marker: #F2DE4E;
  --marker-soft: #FAF3B8;
  --pen: #C6492B;
  --ok: #2F7A4F;
  --radius: 6px;
  --topbar-h: 70px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  /* Krój nagłówków — ten sam co w aplikacji (AppFonts.display); treść zostaje na Interze. */
  --font-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Nagłówki, sygnet z nazwą i menu idą krojem display; akapity zostają na Interze. */
h1, h2, h3, .brand, .footer-brand, .nav a { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* --- Animacje --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeUp .65s var(--ease) forwards; }
.reveal.is-visible.d1 { animation-delay: .06s; }
.reveal.is-visible.d2 { animation-delay: .12s; }
.reveal.is-visible.d3 { animation-delay: .18s; }
.reveal.is-visible.d4 { animation-delay: .24s; }
.reveal.is-visible.d5 { animation-delay: .3s; }
.reveal.is-visible.d6 { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; animation: none !important; }
  .ticker-track { animation: none !important; }
  .btn, .feature-card { transition: none !important; }
}

/* --- Topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: rgba(246, 242, 233, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.topbar .shell { display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; display: block; }
.brand span { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 3px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--marker); }

.tools { display: flex; align-items: center; gap: 12px; margin-left: 6px; }

.lang { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.lang a {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding: 5px 9px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang a + a { border-left: 1.5px solid var(--ink); }
.lang a[aria-current="true"] { background: var(--marker); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  padding: 11px 21px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--card); color: var(--ink);
  cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .16s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }

.btn-primary { background: var(--ink); color: var(--card); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--marker); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--card); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 64px 0 68px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background-image:
    linear-gradient(rgba(20, 20, 15, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 15, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 85% at 50% 40%, transparent 45%, var(--paper) 100%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 58px; align-items: center; }
/* Bez tego przyciski z white-space: nowrap rozpychają kolumnę gridu poza ekran. */
.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .69rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px;
  padding: 6px 12px; margin-bottom: 26px;
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px; flex: none;
  background: var(--marker); border: 2px solid var(--ink);
}

h1 { font-size: clamp(2.15rem, 4.9vw, 3.75rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
h1 mark {
  color: inherit;
  background: linear-gradient(180deg, transparent 46%, var(--marker) 46%, var(--marker) 93%, transparent 93%);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { margin: 22px 0 30px; font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  display: flex; flex-wrap: wrap;
  margin-top: 38px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.fact { display: flex; flex-direction: column; gap: 3px; padding: 15px 26px 13px 0; margin-right: 26px; border-right: 2px solid var(--rule); }
.fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fact b { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; letter-spacing: -.03em; }
.fact span { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* --- Karta pracy w hero --- */
.hero-visual { position: relative; }

.worksheet {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(20, 20, 15, .13);
  padding: 22px;
}
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 11px; }
.ws-label { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ws-badge { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .05em; background: var(--marker); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ws-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; margin-top: 12px; }
.ws-body { margin-top: 13px; border: 1.5px solid var(--rule); border-radius: 4px; padding: 15px; }
.ws-text { font-size: .87rem; color: var(--ink-soft); }
.ws-source {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .02em; color: var(--muted);
  border-top: 1px dashed var(--rule); padding-top: 9px; margin-top: 11px;
}
.ws-source svg { width: 13px; height: 13px; flex: none; }

.quiz { margin-top: 15px; border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; padding: 13px; }
.quiz-head {
  display: inline-block;
  font-family: var(--font-mono); font-size: .63rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--marker); border: 1.5px solid var(--ink); border-radius: 2px;
  padding: 2px 8px; margin-bottom: 10px;
}
.quiz-q { font-size: .86rem; font-weight: 600; margin-bottom: 11px; }
.quiz-opt {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--rule); border-radius: 3px;
  padding: 7px 10px; margin-bottom: 7px;
  font-size: .79rem; background: #fff;
}
.quiz-opt:last-child { margin-bottom: 0; }
.quiz-letter {
  font-family: var(--font-mono); font-size: .67rem; font-weight: 700;
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 3px;
}
.quiz-opt i { margin-left: auto; font-style: normal; font-weight: 700; }
.quiz-opt.is-correct { border-color: var(--ok); background: #EDF6F0; color: #1D5C39; }
.quiz-opt.is-correct .quiz-letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.quiz-opt.is-wrong { border-color: var(--pen); background: #FBEDE8; color: #8A331F; }
.quiz-opt.is-wrong .quiz-letter { border-color: var(--pen); color: var(--pen); }

.sticker {
  position: absolute; z-index: 2;
  font-family: var(--font-mono); font-size: .63rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 3px;
  background: var(--marker); padding: 6px 11px;
  box-shadow: 3px 3px 0 rgba(20, 20, 15, .2);
}
.sticker.c1 { top: -16px; right: 26px; transform: rotate(-3deg); }
.sticker.c2 {
  bottom: -14px; left: -18px; transform: rotate(4deg);
  background: var(--card); color: var(--pen); border-color: var(--pen);
}

.ws-note {
  margin-top: 16px; text-align: right;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* --- Pasek przewijany --- */
.ticker {
  background: var(--ink); color: var(--paper);
  border-bottom: 2px solid var(--ink);
  overflow: hidden; padding: 11px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.ticker span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--marker); }

/* --- Sekcje --- */
section { padding: 84px 0; }
.section-head { max-width: 64ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.01rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: .69rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 16px;
}
.kicker b {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 24px; padding: 0 6px;
  background: var(--marker); border: 2px solid var(--ink); border-radius: 2px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.feature-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card-index {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em;
  color: var(--muted);
}
.feature-icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--marker-soft); color: var(--ink);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; padding-right: 26px; }
.feature-card p { font-size: .92rem; color: var(--ink-soft); }
.feature-card .tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--marker); border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 3px 8px;
}

/* --- Kroki --- */
.steps { border-top: 2px solid var(--ink); }
.step {
  display: grid; grid-template-columns: 104px 1fr; gap: 26px; align-items: start;
  padding: 26px 8px 26px 0;
  border-bottom: 2px solid var(--rule);
  transition: background .2s var(--ease);
}
.step:hover { background: linear-gradient(90deg, var(--marker-soft), transparent 72%); }
.step-num {
  font-family: var(--font-display); font-size: 2.7rem; font-weight: 700;
  line-height: 1; letter-spacing: -.045em; color: var(--ink);
}
.step h3 { font-size: 1.14rem; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { font-size: .95rem; color: var(--ink-soft); max-width: 64ch; }

/* --- Dla kogo --- */
.who-card h3 { display: flex; align-items: flex-start; gap: 11px; }
.who-card h3::before {
  content: '✓';
  flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  border: 2px solid var(--ink); border-radius: 3px;
  background: var(--marker);
}

/* --- Pasek CTA --- */
.cta-band {
  position: relative; overflow: hidden;
  margin: 10px 0 0; padding: 54px 44px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 242, 233, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 242, 233, .07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); letter-spacing: -.03em; line-height: 1.1; }
.cta-band p { color: #CFC9B8; margin-top: 10px; font-size: .97rem; }
.btn-light { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.btn-light:hover { box-shadow: 4px 4px 0 var(--paper); }

/* --- Stopka --- */
.site-footer { margin-top: 84px; border-top: 2px solid var(--ink); background: var(--paper-2); padding: 46px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.footer-brand img { width: 30px; height: 30px; }
.footer-note { color: var(--ink-soft); font-size: .86rem; max-width: 46ch; margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--marker); }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1.5px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}

/* --- Responsywność --- */
@media (max-width: 980px) {
  .hero { padding: 52px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .tools { margin-left: auto; }
  .step { grid-template-columns: 74px 1fr; gap: 18px; }
  .step-num { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 64px; }
  .shell { width: min(1160px, 100% - 30px); }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .topbar .shell { gap: 14px; }
  .tools { margin-left: auto; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .fact { padding: 12px 12px 11px 0; margin-right: 12px; }
  .fact span { font-size: .56rem; line-height: 1.35; }
  .fact b { font-size: 1.55rem; }
  .worksheet { padding: 17px; box-shadow: 6px 6px 0 rgba(20, 20, 15, .13); }
  .sticker.c1, .sticker.c2 { display: none; }
  .ws-note { text-align: left; }
  .cta-band { padding: 38px 22px; }
  .brand span { font-size: 1.02rem; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .section-head { margin-bottom: 34px; }
  section { padding: 64px 0; }
}
@media (max-width: 460px) {
  .topbar .btn { padding: 9px 14px; font-size: .86rem; }
  .brand span { font-size: .98rem; }
}
@media (max-width: 380px) {
  .topbar .btn svg { display: none; }
}

/* FILM — sekcja spokojna, kadr 16:9 jak w „zeszycie”: gruba linia i twardy cień. */
.video-head { max-width: 62ch; margin: 0 auto 34px; text-align: center; }
.video-head h2 { margin-top: 10px; font-size: clamp(1.6rem, 3.1vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.video-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.01rem; }

.video-figure { max-width: 880px; margin: 0 auto; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 8px 8px 0 rgba(20, 20, 15, .13);
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: opacity .2s var(--ease), transform .3s var(--ease);
}
.video-poster:hover img,
.video-poster:focus-visible img { opacity: 1; transform: scale(1.02); }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--marker);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, -50%);
  transition: box-shadow .16s var(--ease);
}
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-poster:hover .video-play,
.video-poster:focus-visible .video-play { box-shadow: 6px 6px 0 var(--ink); }

.video-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .9rem;
}
.video-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .video-play { width: 60px; height: 60px; }
  .video-play svg { width: 24px; height: 24px; }
  .video-badge { left: 10px; bottom: 10px; font-size: 10px; }
  .video-head { margin-bottom: 24px; }
}