/* Materiały @oskars_ai_ – jedna kolumna na telefon (max 600 px), na desktopie ta sama kolumna, szersze kafelki „dziś”.
   Kolory: karuzele (Royal, Granat, tło #F0F4FF) + szablon PDF-ów lead magnetów (navy, niebieski) w ciemnym motywie.
   Fonty: Montserrat (hooki, nagłówki – jak karuzele), Inter (treść – jak PDF-y), JetBrains Mono (prompt i słowa). */
:root {
  --bg: #F0F4FF;
  --surface: #FFFFFF;
  --surface-2: #E4EBFB;
  --ink: #1A1A2E;
  --ink-soft: #4B5670;
  --muted: #7A85A0;
  --line: #D6DFF3;
  --accent: #2563EB;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE6FD;
  --slot: #E8EEFE;
  --slot-ink: #1D4ED8;
  --navy: #0F1C2E;
  --navy-2: #1C3148;
  --navy-ink: #EAF2FA;
  --navy-soft: #A9C3D6;
  --navy-accent: #4AA8D8;
  --ok: #0F7B53;
  --err: #B42318;

  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r: 14px;
  --r-s: 9px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1C2E; --surface: #16273C; --surface-2: #1C3148; --ink: #EAF2FA; --ink-soft: #A9C3D6; --muted: #7D93A8;
    --line: #26405C; --accent: #4AA8D8; --accent-ink: #0A1422; --accent-soft: #1D3A55; --slot: #1D3A55; --slot-ink: #7CC4E8;
    --navy: #0A1422; --navy-2: #16273C; --navy-ink: #EAF2FA; --navy-soft: #A9C3D6; --navy-accent: #7CC4E8; --ok: #4ADE9B; --err: #FCA5A5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1C2E; --surface: #16273C; --surface-2: #1C3148; --ink: #EAF2FA; --ink-soft: #A9C3D6; --muted: #7D93A8;
  --line: #26405C; --accent: #4AA8D8; --accent-ink: #0A1422; --accent-soft: #1D3A55; --slot: #1D3A55; --slot-ink: #7CC4E8;
  --navy: #0A1422; --navy-2: #16273C; --navy-ink: #EAF2FA; --navy-soft: #A9C3D6; --navy-accent: #7CC4E8; --ok: #4ADE9B; --err: #FCA5A5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.wrap {
  max-width: 600px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ---------- nagłówek ---------- */
.top { display: flex; align-items: center; gap: 12px; padding-top: 18px; }
.mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--surface-2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.who b { font: 800 15px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.who span { font-size: 13px; color: var(--ink-soft); }
.top .ig { margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--slot-ink); }

.hello h1 {
  margin: 0; font: 800 clamp(26px, 7.4vw, 34px)/1.08 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance;
}
.hello h1 em { font-style: normal; color: var(--accent); }
.hello p { margin: 10px 0 0; color: var(--ink-soft); max-width: 40ch; }

.eyebrow {
  margin: 0 0 12px; font: 800 12px/1.2 var(--f-display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 8px;
}
.eyebrow small { font: 500 12px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- z dzisiejszych filmów ---------- */
.today-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
  padding-bottom: 4px; scrollbar-width: none;
}
.today-row::-webkit-scrollbar { display: none; }
@media (min-width: 560px) {
  .today-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.tile { scroll-snap-align: start; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile .pic {
  aspect-ratio: 9 / 16; width: 100%; max-width: 100%; border-radius: var(--r); overflow: hidden;
  background: var(--surface-2); box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(15, 28, 46, .45);
  transition: transform .18s ease;
}
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .pic { transform: translateY(-2px); }
.tile:active .pic { transform: scale(.98); }
.tile .cap { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }

.word {
  display: inline-block; font: 600 11.5px/1 var(--f-mono); letter-spacing: .04em;
  padding: 5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--slot-ink); white-space: nowrap;
}

/* ---------- wyszukiwarka ---------- */
.search label { display: block; font: 800 17px/1.25 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 4px; }
.search .hint { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.field { position: relative; }
.field input {
  width: 100%; height: 56px; border-radius: var(--r); border: 2px solid var(--line);
  background: var(--surface); color: var(--ink);
  padding: 0 52px 0 18px; font: 600 18px var(--f-body); letter-spacing: .01em;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .clear {
  position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--ink-soft); font-size: 20px; line-height: 1; cursor: pointer;
}
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 11px; font: 600 12px var(--f-mono); color: var(--ink-soft); cursor: pointer; }
.quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- archiwum ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head .eyebrow { margin: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 99px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 99px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 28, 46, .12); }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.row:hover .t { color: var(--accent); }
.thumb { width: 60px; height: 80px; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.thumb.doc {
  background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; justify-content: space-between; padding: 8px 7px;
}
.thumb.doc i { font: normal 800 8px/1 var(--f-display); letter-spacing: .02em; color: var(--navy-accent); }
.thumb.doc b { font: 800 17px/1 var(--f-display); }
.row .body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row .t { font-weight: 650; font-size: 15.5px; line-height: 1.3; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); }
.row .go { color: var(--muted); font-size: 20px; }
.empty { padding: 22px 16px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line); color: var(--ink-soft); }
.empty b { color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--ink); font-size: 14px; margin-bottom: 12px; }

/* ---------- strona materiału ---------- */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 18px 0 0; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--accent); }
.m-head { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.m-head.nocover { grid-template-columns: 1fr; }
.m-head .pic { width: 92px; aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); }
.m-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.m-head .txt { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m-head h1 { margin: 0; font: 800 clamp(21px, 5.8vw, 27px)/1.12 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.m-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.prompt { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.prompt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prompt-top h2 { margin: 0; font: 800 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.copy {
  width: 100%; min-height: 58px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 800 17px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 22px -12px var(--accent);
  transition: transform .12s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.copy:active { transform: scale(.985); }
.copy.done { background: var(--ok); color: #fff; box-shadow: none; }
.copy svg { width: 20px; height: 20px; flex: none; }
.copy.small { min-height: 48px; font-size: 14px; background: var(--surface-2); color: var(--ink); box-shadow: none; }
.copy.small.done { background: var(--ok); color: #fff; }
.fill-hint { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.fill-hint .slot { font-size: 12.5px; }
.ptext {
  margin: 0; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  font: 400 13.5px/1.65 var(--f-mono); color: var(--ink);
  background: var(--bg); border-radius: var(--r-s); padding: 14px;
  -webkit-user-select: text; user-select: text;
}
.slot { background: var(--slot); color: var(--slot-ink); border-radius: 4px; padding: 0 3px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.steps h2, .more h2 { margin: 0 0 12px; font: 800 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: k; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; counter-increment: k; }
.steps li::before {
  content: counter(k); width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--slot-ink); display: grid; place-items: center;
  font: 800 14px/1 var(--f-display);
}
.steps li span { padding-top: 3px; min-width: 0; overflow-wrap: anywhere; }

.pdf {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface);
}
.pdf:hover { border-color: var(--accent); }
.pdf .ico { width: 38px; height: 46px; border-radius: 6px; background: var(--navy); color: var(--navy-ink); display: grid; place-items: center; font: 800 10px var(--f-display); letter-spacing: .06em; flex: none; }
.pdf .lbl { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pdf .lbl b { font-size: 15px; }
.pdf .lbl small { color: var(--muted); font-size: 12.5px; }
.pdf .arr { margin-left: auto; color: var(--muted); }
.pdf.off { opacity: .6; pointer-events: none; }

.cta {
  background: var(--navy); color: var(--navy-ink); border-radius: calc(var(--r) + 4px);
  padding-block: 22px; padding-inline: 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--navy-2), transparent 70%); pointer-events: none;
}
.cta .ey { font: 800 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-accent); }
.cta h2 { margin: 0; font: 800 clamp(19px, 5.4vw, 22px)/1.15 var(--f-display); text-transform: uppercase; text-wrap: balance; position: relative; }
.cta p { margin: 0; color: var(--navy-soft); font-size: 14.5px; position: relative; }
.cta a {
  margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r);
  background: var(--navy-accent); color: #0A1422; font: 800 15px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; position: relative;
}
.cta a small { font: 500 12px var(--f-body); text-transform: none; letter-spacing: 0; opacity: .8; }

.foot { font-size: 12.5px; color: var(--muted); text-align: center; padding-top: 8px; }
.foot a { color: inherit; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); text-align: center; z-index: 20;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- zobacz film ---------- */
.film {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 9px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--slot-ink);
  font-weight: 650; font-size: 14px; text-decoration: none;
}
.film svg { width: 14px; height: 14px; }
.film:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- wyślij znajomemu ---------- */
.share { display: flex; flex-direction: column; gap: 10px; }
.share h2 { margin: 0; font: 800 13px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.sharebtn, .share-alt a, .share-alt button {
  min-height: 48px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
}
.sharebtn svg { width: 18px; height: 18px; }
.sharebtn:hover, .share-alt a:hover, .share-alt button:hover { border-color: var(--accent); color: var(--accent); }
.share-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- newsletter ---------- */
.nl { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.nl h2 { margin: 0; font: 800 clamp(18px, 5vw, 21px)/1.2 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.nl > p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 46ch; }
.nl form { display: flex; gap: 8px; margin-top: 6px; }
.nl input {
  flex: 1; min-width: 0; height: 52px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 0 14px; font: 500 16px var(--f-body); -webkit-appearance: none; appearance: none;
}
.nl input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nl button {
  flex: none; height: 52px; padding: 0 18px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 800 14px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
}
.nl button:disabled { opacity: .6; cursor: default; }
.nl-msg { margin: 0; font-size: 14px; font-weight: 600; min-height: 1px; }
.nl-msg.ok { color: var(--ok); font-size: 15.5px; }
.nl-msg.err { color: var(--err); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pasek tylko w podglądzie (Artifact) */
.demo { background: var(--surface-2); border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 14px; }
.demo b { color: var(--ink); }
.demo button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 9px; font: 600 11.5px var(--f-mono); color: var(--accent); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
