/*
 * Kwitomat — strona. Te same barwy i krój co aplikacja (src/style.css): chłodny szary papier,
 * białe karty, pomarańczowy klawisz, ciemna „obudowa”, Jost. Czcionka leży na stronie (assets/fonts,
 * licencja OFL) — żadnych zapytań do cudzych serwerów.
 *
 * Jeden motyw: pomarańczowa kreska spod „k” w logo. Na stronie głównej to scena w pierwszym ekranie,
 * pas w połowie strony, znaczniki list, rosnący pasek kroków, otwarte pytanie i znak w stopce.
 * Kreska ma proste rogi, więc proste rogi mają też przyciski i kafle.
 */
@font-face {
  font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/jost-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/jost-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/jost-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  --paper: oklch(0.955 0.003 250);
  --paper-2: oklch(0.93 0.004 250);
  --card: oklch(0.99 0.002 250);
  --ink: oklch(0.24 0.006 60);
  --ink-2: oklch(0.44 0.006 60);
  --ink-3: oklch(0.56 0.005 60);
  --line: oklch(0.89 0.004 250);
  --line-strong: oklch(0.8 0.005 250);
  --accent: oklch(0.7 0.18 48);
  --accent-deep: oklch(0.55 0.16 45);
  --accent-ink: oklch(0.2 0.01 60);   /* dark text on the orange key: 4.5:1 and more */
  --accent-soft: oklch(0.94 0.04 55);
  --ok: oklch(0.52 0.13 150);
  --housing: oklch(0.26 0.006 60);
  --on-housing: oklch(0.95 0.003 250);
  --housing-2: oklch(0.32 0.006 60);
  --key-edge: oklch(0.8 0.005 250);
  --mark: #fff1a8;
  --radius: 0;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(0.2 0.005 60);
    --paper-2: oklch(0.17 0.005 60);
    --card: oklch(0.235 0.006 60);
    --ink: oklch(0.94 0.003 250);
    --ink-2: oklch(0.76 0.004 250);
    --ink-3: oklch(0.6 0.004 250);
    --line: oklch(0.3 0.006 60);
    --line-strong: oklch(0.38 0.006 60);
    --accent: oklch(0.74 0.17 50);
    --accent-deep: oklch(0.78 0.14 52);
    --accent-soft: oklch(0.32 0.07 50);
    --ok: oklch(0.74 0.13 150);
    --housing: oklch(0.12 0.004 60);
    --housing-2: oklch(0.19 0.005 60);
    --key-edge: oklch(0.12 0.004 60);
    --mark: #5a4d12;
    color-scheme: dark;
  }
}
/* Wybór z przełącznika (assets/site.js) — ma pierwszeństwo przed ustawieniem systemu. */
:root[data-theme="dark"] {
  --paper: oklch(0.2 0.005 60);
  --paper-2: oklch(0.17 0.005 60);
  --card: oklch(0.235 0.006 60);
  --ink: oklch(0.94 0.003 250);
  --ink-2: oklch(0.76 0.004 250);
  --ink-3: oklch(0.6 0.004 250);
  --line: oklch(0.3 0.006 60);
  --line-strong: oklch(0.38 0.006 60);
  --accent: oklch(0.74 0.17 50);
  --accent-deep: oklch(0.78 0.14 52);
  --accent-soft: oklch(0.32 0.07 50);
  --ok: oklch(0.74 0.13 150);
  --housing: oklch(0.12 0.004 60);
  --housing-2: oklch(0.19 0.005 60);
  --key-edge: oklch(0.12 0.004 60);
  --mark: #5a4d12;
  color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { transition: background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 "Jost", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Nagłówek */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
/* Logo: letters as a mask in the text colour, bar under the "k" in the brand orange
   (proportions from scripts/make-brand.py: 944x262, bar 12.08 % x 11.45 %) */
.brand { position: relative; display: block; width: 112px; color: var(--ink); flex: none; }
.brand img { width: 100%; height: auto; }
/* The logo file has dark letters: in the dark theme flip them light and turn the bar back to orange. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: invert(1) hue-rotate(180deg); } }
:root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.top nav a:not(.btn):hover { color: var(--accent-deep); }
@media (max-width: 860px) { .top nav .opt { display: none; } }

/* Przyciski: prostokąt jak kreska z logo. Główny pomarańczowy z ciemnym tekstem (kontrast). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 0; font-weight: 600; text-decoration: none; line-height: 1.25;
  border: 0; color: var(--ink); background: var(--line); cursor: pointer; font-family: inherit; font-size: 18px;
}
.btn:hover { color: var(--ink); background: var(--line-strong); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { color: var(--paper); background: var(--ink); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; }

/* Wspólne dla sekcji */
section { padding: clamp(80px, 11vw, 160px) 0; }
section.alt { background: var(--paper-2); }
h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 24px; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 600; text-wrap: balance; }
h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sub { color: var(--ink); margin: 0 0 48px; max-width: 60ch; }
.lead { font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0 0 32px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.note { font-size: 15px; color: var(--ink-2); margin: 20px 0 0; max-width: 46ch; }

/* Znacznik listy: mała kreska z logo */
ul.bars, .features, .points { list-style: none; padding: 0; margin: 0; }
ul.bars li, .features li, .points li { position: relative; padding-left: 30px; }
ul.bars li::before, .features li::before, .points li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 5px; background: var(--accent);
}

/* ---- Hero: napis na papierze, obok scena z kreski logo, która wychodzi za prawą i dolną krawędź ---- */
.hero { padding: 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
.hero-copy { padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 8vw, 112px); align-self: center; }
.hero-stage { position: relative; margin-top: 48px; margin-right: calc(-1 * ((100vw - min(var(--wrap), 100vw)) / 2 + 16px)); min-height: 560px; }
.stage-field { position: absolute; inset: 0; background: var(--accent); overflow: hidden; padding: 56px 0 0 56px; }
.stage-shot { margin: 0; width: 960px; }
.stage-shot img { width: 100%; height: auto; }
.hero-stage .phone { position: absolute; left: -56px; bottom: 40px; width: 190px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 40px 0 40px; }
  .lead { font-size: 20px; }
  .hero-stage { margin: 0 -16px; min-height: 400px; }
  .stage-field { padding: 32px 0 0 32px; }
  .stage-shot { width: 680px; }
  .hero-stage .phone { left: auto; right: 16px; bottom: 24px; width: 34%; max-width: 170px; }
}

/* ---- Krótko mówiąc: tablica kafli, pierwszy pomarańczowy niesie nagłówek ---- */
.proof { padding: 8px 0 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles li { background: var(--paper-2); padding: 26px 26px 24px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.tiles li.lead-tile { grid-column: span 2; background: var(--housing); color: var(--on-housing); justify-content: flex-start; }
.tiles h2 { margin: 0; }
.tiles b { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.tiles span { font-size: 18px; line-height: 1.45; color: var(--ink); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tiles li { min-height: 160px; padding: 18px; }
  .tiles li.lead-tile { min-height: 110px; }
}
@media (max-width: 420px) { .tiles b { font-size: 22px; } .tiles span { font-size: 15px; } }

/* ---- Funkcje ze zrzutami ---- */
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; margin: 0 0 20px; letter-spacing: -0.02em; }
.feature-text ul { color: var(--ink); }
.feature-text li { margin: 0 0 10px; }
.feature-text p { color: var(--ink); margin: 0; max-width: 60ch; }
.shot { margin: 0; overflow: hidden; background: var(--card); }
.shot img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feature.reverse .feature-text { order: 0; }
}
.phones { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; padding: 56px 0; }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phone { margin: 0; background: var(--housing); border-radius: 28px; padding: 7px; }
.phone img { border-radius: 22px; width: 100%; height: auto; }
@media (max-width: 860px) { .phones { grid-template-columns: 1fr; gap: 24px; } .phone-row { gap: 10px; } .phone { border-radius: 20px; padding: 5px; } .phone img { border-radius: 16px; } }

h3.mini { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.features b { display: block; font-weight: 600; }
.features span { color: var(--ink); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Pas z demo ---- */
.demo-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin: 72px 0 0; padding: 36px 40px; background: var(--card); }
.demo-band h3 { margin: 0 0 6px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.demo-band p { margin: 0; max-width: 52ch; }
.demo-band .btn { flex: none; }
@media (max-width: 760px) { .demo-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; } }

/* ---- Pas w połowie strony: kreska z logo na całą szerokość ---- */
.band { background: var(--accent); color: var(--accent-ink); padding: 44px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; }
.band p { margin: 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; max-width: 34ch; }
.band .btn.ink { background: var(--accent-ink); color: var(--accent); flex: none; }
.band .btn.ink:hover { background: var(--card); color: var(--accent-ink); }
@media (max-width: 760px) { .band .wrap { flex-direction: column; align-items: flex-start; } }

/* ---- Bezpieczeństwo: ciemne pole; te same nazwy barw, inne wartości ---- */
.dark {
  --ink: var(--on-housing);
  --ink-2: oklch(0.8 0.004 250);
  --card: var(--housing-2);
  --paper-2: var(--housing-2);
  --line: oklch(0.4 0.006 60);
  background: var(--housing); color: var(--ink);
}
.dark a:hover { color: var(--accent); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.compare thead th:last-child { color: var(--accent); font-weight: 600; }
.compare tbody th { font-weight: 600; width: 24%; }
.compare td { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); background: color-mix(in oklab, var(--accent) 16%, transparent); }
.table-scroll { overflow-x: auto; }
.compare { min-width: 620px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin: 72px 0 0; }
.points b { display: block; font-size: 22px; line-height: 1.2; font-weight: 600; margin-bottom: 8px; }
.points span { color: var(--ink); }
@media (max-width: 960px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; } .points b { font-size: 20px; } }
.honest { margin: 64px 0 0; padding: 24px 28px; background: var(--card); color: var(--ink); max-width: 820px; }

/* Tabela porównania na telefonie: karty zamiast przewijania w bok */
@media (max-width: 640px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 14px 16px; }
  .compare tbody tr:nth-child(even) { background: color-mix(in oklab, var(--ink) 5%, transparent); }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare tbody th { width: auto; margin-bottom: 4px; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-2); }
  .compare td:last-child { background: none; }
  .compare td:last-child::before { color: var(--accent); }
}

/* ---- Od pobrania do faktury: trzy pola obok siebie, kreska rośnie z każdym krokiem ---- */
.start { padding: 0; }
.fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.fields li { display: flex; flex-direction: column; min-height: 460px; padding: clamp(28px, 3.6vw, 56px); }
.fields li:nth-child(1) { background: var(--paper-2); --step: 33.34%; }
.fields li:nth-child(2) { background: var(--card); --step: 66.67%; }
.fields li:nth-child(3) { background: var(--accent); color: var(--accent-ink); --step: 100%; }
.fields li:nth-child(3)::before { background: var(--accent-ink); }
.fields li::before { content: ""; display: block; width: var(--step); height: 10px; background: var(--accent); margin-bottom: 32px; }
.fields h2 { margin: 0; }
.fields b { margin-top: auto; padding-top: 40px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.fields span { margin-top: 12px; max-width: 34ch; }
@media (max-width: 860px) {
  .fields { grid-template-columns: 1fr; }
  .fields li { min-height: 0; padding: 32px 16px 40px; }
  .fields b { padding-top: 24px; }
}

/* ---- Cennik: nazwy planów po lewej, jedna scena z ceną po prawej (assets/site.js) ---- */
.price-board { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.plan-names { display: none; }
.price-board.live .plan-names { display: flex; flex-direction: column; gap: 6px; }
.plan-names button {
  position: relative; text-align: left; border: 0; background: none; padding: 4px 0 4px 0; cursor: pointer;
  font: 600 clamp(32px, 4vw, 56px)/1.12 "Jost", system-ui, sans-serif; letter-spacing: -0.03em; color: var(--ink-2);
  transition: color .18s ease, padding-left .25s cubic-bezier(.2,.7,.2,1);
}
.plan-names button:hover { color: var(--ink); }
.plan-names button[aria-selected="true"] { color: var(--ink); padding-left: 1.1em; }
.plan-names button::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8em; height: 0.18em; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.plan-names button[aria-selected="true"]::before { transform: none; }
.plan-stages { display: grid; gap: 8px; }
.price-board:not(.live) { grid-template-columns: 1fr; }
.price-board:not(.live) .plan-stages { grid-template-columns: repeat(3, 1fr); }
.plan-stage { background: var(--paper-2); padding: clamp(28px, 3.4vw, 48px); }
.plan-stage p { margin: 0 0 24px; max-width: 46ch; }
.plan-name { font-size: 22px; font-weight: 600; }
.price-board.live .plan-name { display: none; }
.price-board.live .plan-stage:not(.on) { display: none; }
.price-board.live .plan-stage.on { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; } }
.figure { font-size: clamp(56px, 5.4vw, 78px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan-stage .figure { margin-bottom: 28px; }
.figure span { font-size: 18px; letter-spacing: 0; font-weight: 500; color: var(--ink-2); }
.promise { margin: 40px 0 0; max-width: 70ch; }
@media (max-width: 860px) {
  .price-board, .price-board:not(.live) .plan-stages { grid-template-columns: 1fr; gap: 24px; }
  .price-board.live .plan-names { gap: 2px; }
  .plan-stage .btn { width: 100%; }
}

/* ---- Pytania: nagłówek stoi, kafle się przewijają; otwarte pytanie jest pomarańczowe ---- */
#pytania { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.faq-grid h2 { position: sticky; top: 96px; }
.faq details { background: var(--card); margin: 0 0 8px; transition: background-color .18s ease; }
.faq details:not([open]):hover { background: var(--paper); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 22px; line-height: 1.35; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; min-height: 72px; }
.faq summary::after { content: "+"; flex: none; font-size: 30px; font-weight: 400; line-height: 1; color: var(--accent-deep); transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 24px 24px; max-width: 60ch; }
.faq details[open] a { color: inherit; text-decoration-color: currentColor; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-grid h2 { position: static; }
  .faq details { margin-bottom: 6px; }
  .faq summary { font-size: 18px; padding: 18px 20px; min-height: 64px; }
  .faq details p { padding: 0 20px 20px; font-size: 16px; }
}

/* ---- Pobierz: ciemne pole, zamknięcie strony ---- */
.get { background: var(--housing); color: var(--on-housing); }
.get h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: 0.98; letter-spacing: -0.04em; max-width: 14ch; margin-bottom: 28px; }
.get p { font-size: 22px; max-width: 46ch; margin: 0 0 36px; }
.get .text-link { color: var(--on-housing); }
.get .text-link:hover { color: var(--accent); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.btn.store { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 250px; padding: 14px 24px 16px; font-size: 22px; letter-spacing: -0.01em; }
.btn.store small { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.get .btn.primary:hover { background: var(--on-housing); color: var(--housing); }
@media (max-width: 560px) { .btn.store { width: 100%; } }

/* Stopka: znak z kreską na całą szerokość */
footer { background: var(--paper-2); padding: clamp(48px, 7vw, 96px) 0 40px; font-size: 15px; color: var(--ink-2); }
footer .mark { margin: 0 0 clamp(32px, 5vw, 64px); font-size: clamp(76px, 19vw, 264px); line-height: 0.8; font-weight: 600; letter-spacing: -0.055em; color: var(--ink); }
/* The bar under the "k", as in the logo: an underline sits on the baseline whatever the font metrics. */
footer .mark span { text-decoration: underline var(--accent); text-decoration-thickness: 0.09em; text-underline-offset: 0.07em; text-decoration-skip-ink: none; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--ink); }

/* Dokumenty prawne */
.doc { max-width: 760px; padding: 40px 16px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc code { font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.doc p, .doc li { color: var(--ink); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--ink-2); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
.doc th { background: var(--paper-2); }
.doc .table-scroll { overflow-x: auto; }

/* Cennik (/cennik): the account number, three plans in columns (0 / 9,99 / 99 zl), messages on the way
   back from Stripe. As wide as the landing page; the columns stack on a phone. */
.pricing { padding: 48px 0 72px; }
.pricing h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 12px; }
.pricing .lead { max-width: 60ch; font-size: 18px; color: var(--ink-2); }
.pricing section { padding: 0; }
.pricing .notice { max-width: 760px; padding: 12px 16px; background: var(--accent-soft); color: var(--ink); }
.pricing .account { display: grid; grid-template-columns: minmax(0, 26em) 1fr; gap: 6px 24px; align-items: center;
  background: var(--card); padding: 20px 24px; margin: 8px 0 16px; }
.pricing .account label { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
.pricing .account input { min-width: 0; padding: 12px 14px; border: 0; background: var(--paper-2);
  color: var(--ink); font: 15px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; } /* taste-skill-ignore: the account number is a code to copy */
.pricing .account input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pricing .account p { margin: 0; font-size: 14px; color: var(--ink-2); }
.pricing .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; padding-top: 32px; }
.pricing .plan { position: relative; display: flex; flex-direction: column; background: var(--card); padding: 26px 26px 22px; }
/* Pro rocznie — prawie czarne pole z białym tekstem; plakietka to kreska przez całą górę. Pole wystaje
   o wysokość plakietki nad pozostałe, więc nazwa, cena i przycisk stoją w jednej linii z sąsiednimi planami. */
.pricing .plan.best { background: oklch(0.17 0.005 60); color: oklch(0.97 0.002 250); margin-top: -32px; padding-top: 58px; }
.pricing .plan.best .price { font-size: 56px; }
.pricing .plan.best .btn.primary:hover { background: oklch(0.97 0.002 250); color: oklch(0.17 0.005 60); }
.pricing .plan h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.pricing .price { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 22px;
  padding-top: calc(56px - 1em); } /* ta sama wysokość przy 44 i 56 px — przyciski pod cenami w jednej linii */
.pricing .price span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.pricing .plan .btn, .pricing .plan-cta { width: 100%; min-height: 50px; margin: 0; }
.pricing .plan-cta { display: flex; align-items: center; color: var(--ink-2); font-size: 15px; }
.pricing .plan.best .btn.primary { background: var(--accent); }
.pricing .plan-lead { margin: 24px 0 10px; font-size: 15px; color: var(--ink-2); }
.pricing .plan.best .plan-lead, .pricing .plan.best .price span, .pricing .plan.best .plan-note { color: oklch(0.76 0.004 250); }
.pricing .checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pricing .checks li { position: relative; padding-left: 26px; line-height: 1.4; }
.pricing .checks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 4px; background: var(--accent); }
.pricing .plan-note { margin: auto 0 0; font-size: 14px; color: var(--ink-2); }
.pricing .badge { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: 5px 26px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.pricing .small { max-width: 80ch; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.pricing .pricing-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 48px; }
.pricing .pricing-more h2 { font-size: 22px; margin: 0 0 8px; }
.pricing .pricing-more p { margin: 0; }
@media (max-width: 860px) {
  .pricing .plans, .pricing .pricing-more, .pricing .account { grid-template-columns: 1fr; }
  .pricing .plans { padding-top: 0; }
  .pricing .plan.best { margin-top: 0; }
  .pricing .price { padding-top: 0; }
}
/* Dziękujemy (/dziekujemy): after a successful payment, one big message and three steps */
.thanks { padding: clamp(48px, 9vw, 112px) 0 clamp(64px, 10vw, 128px); }
.thanks .wrap { max-width: 760px; }
.thanks-mark { width: 72px; height: 15px; margin: 0 0 24px;  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 38px; font-weight: 700; line-height: 1; }
@media (max-width: 760px) {
  .thanks-mark{
    width: 40px; height: 10px;
  }
}
.thanks h1 { font-size: clamp(56px, 9vw, 104px); margin-bottom: 16px; }
.thanks .lead { font-size: clamp(20px, 2.4vw, 26px); max-width: none; margin-bottom: 36px; }
.thanks-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.thanks-steps li { counter-increment: step; position: relative; background: var(--card);
  padding: 18px 20px 18px 64px; font-size: 18px; line-height: 1.45; }
.thanks-steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 700; font-size: 15px; }
.thanks .small { font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.fill { background: var(--mark); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---- Nagłówek: przyklejony, język, motyw ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.top nav { align-items: center; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 15px; padding: 7px 14px; background: var(--paper-2); color: var(--ink); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: 13px; color: var(--ink-2); }
.lang-menu > div { position: absolute; right: 0; top: calc(100% + 6px); background: var(--housing); padding: 6px; min-width: 170px; display: grid; }
.top nav .lang-menu > div a { padding: 8px 10px; text-decoration: none; color: var(--on-housing); font-size: 15px; }
.top nav .lang-menu > div a:hover { background: color-mix(in oklab, var(--on-housing) 14%, var(--housing)); color: var(--on-housing); }
.top nav .lang-menu > div a[aria-current] { font-weight: 600; color: var(--accent); }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--line); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun { display: none; }
.theme-toggle.is-dark .i-sun { display: block; }
.theme-toggle.is-dark .i-moon { display: none; }
@media (max-width: 640px) { .top nav { gap: 8px; } .lang-menu summary { padding: 7px 10px; } }

/* ---- Animacje ---- */
/* Wejście części każdej sekcji; bez skryptu wszystko jest widoczne od razu. */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
/* Ruch-podpis: scena z kreski odsłania się od dołu, zrzut w niej osiada ze skali 1.12. */
.stage-field { animation: shutter 1.1s cubic-bezier(.7,0,.2,1) both .15s; }
.stage-shot img { animation: settle 1.5s cubic-bezier(.2,.7,.2,1) both .15s; transform-origin: 0 0; }
.hero-stage .phone { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .7s, float 6s ease-in-out infinite 1.6s; }
@keyframes shutter { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.btn { transition: transform .14s cubic-bezier(.22,1,.36,1), background-color .18s ease, color .18s ease; }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .stage-field, .stage-shot img, .hero-stage .phone { animation: none; }
  .btn:active { transform: none; }
  .plan-names button, .plan-names button::before { transition: none; }
  .price-board.live .plan-stage.on { animation: none; }
}

/* ---- Powiększanie zrzutów ---- */
a.zoom { display: block; cursor: zoom-in; position: relative; }
a.zoom::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .2s ease; }
a.zoom:hover::after, a.zoom:focus-visible::after { opacity: .9; transform: none; }
.shot, .phone-row .phone { transition: transform .3s ease; }
.shot:hover { transform: scale(1.015); }
.phone-row .phone:hover { transform: translateY(-6px); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 13, 11, .86); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; cursor: zoom-out; }
.lightbox.tall img { max-height: 90vh; }
.lightbox[open] { animation: pop .25s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.26); }
