/* Marketing site for Księguś. Same colours and type as the app (src/ksefapp/web/static/app.css),
   so the site and the app feel like one product. Plain CSS, no build step. */
:root {
  --ground: #F4F6F8; --surface: #FFFFFF; --ink: #14202B; --ink-2: #475467; --muted: #667085;
  --line: #E4E7EC; --accent: #0F6E66; --accent-ink: #0A4F49; --on-accent: #FFFFFF;
  --accent-soft: #E3F1EF; --chip: #EEF2F6; --chip-ink: #344054;
  --done-bg: #D1FADF; --done-ink: #05603A; --soon-bg: #FEF0C7; --soon-ink: #7A2E0E;
  --late-bg: #FEE4E2; --late-ink: #912018;
  --brand-tile: #0F6E66; --brand-glyph: #FFFFFF;
  --band: #14202B; --band-ink: #E6EBEF; --band-muted: #9AA6B2;
  --shadow: 20, 32, 43;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E151C; --surface: #151F28; --ink: #E6EBEF; --ink-2: #B4BFCA; --muted: #8B98A6;
    --line: #26323D; --accent: #5FC4B8; --accent-ink: #8ADBD0; --on-accent: #0B1218;
    --accent-soft: #14302D; --chip: #1E2A35; --chip-ink: #C9D2DB;
    --done-bg: #123526; --done-ink: #7FDDA9; --soon-bg: #3A2C0E; --soon-ink: #F8C97A;
    --late-bg: #3D1A17; --late-ink: #F6A59C;
    --brand-tile: #5FC4B8; --brand-glyph: #0B1218;
    --band: #18232D; --band-ink: #E6EBEF; --band-muted: #8B98A6;
    --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.skip, .sprite { position: absolute; left: -9999px; }
section.tight { padding-top: 0; }
.panel .more { margin-top: 20px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.site-menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.langs a { padding: 6px 7px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--chip); }
.site-head .wrap { max-width: 1360px; }
/* Narrow screens: the links, languages and sign-in fold into a menu under the button. */
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1300px) {
  .site-head .wrap { position: relative; }
  .menu-btn:not([hidden]) { display: inline-flex; }
  .site-head .btn.small:not(.login) { margin-left: auto; }
  .site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 24px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(var(--shadow), .35); }
  .site-head.open .site-menu { display: flex; }
  .site-nav { flex-direction: column; gap: 0; font-size: 17px; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-menu .login { align-self: flex-start; }
}
@media (max-width: 600px) { .site-menu { padding: 8px 16px 20px; } }
.nw { white-space: nowrap; }
@media (max-width: 420px) { .site-head .wrap { gap: 8px; } .brand { font-size: 18px; } .brand svg { width: 32px; height: 32px; } .langs a { padding: 6px 5px; } .site-head .btn.small { padding: 0 12px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); white-space: nowrap; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); color: var(--ink); background: var(--surface); }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.big { height: 54px; padding: 0 26px; font-size: 17px; }
.btn .wide-only { white-space: pre; } /* keep the space next to the word in flex buttons */
@media (max-width: 520px) { .site-head .wide-only { display: none; } }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-text { max-width: 760px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.025em; }
.hero .tagline { margin-top: 22px; font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; color: var(--accent-ink); max-width: 640px; line-height: 1.35; }
.hero .tagline + .lead { margin-top: 14px; }
.hero .tagline .kicker { display: block; color: var(--ink); }
.hero .eyebrow { display: inline-block; margin-bottom: 20px; padding: 6px 12px; border-radius: 8px; background: var(--soon-bg); color: var(--soon-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--ink-2); }
.trust li, .plan li { position: relative; padding-left: 24px; }
.trust li::before, .plan li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.have-account { margin-top: 12px; font-size: 15px; color: var(--muted); }
@media (max-width: 520px) { .hero .actions .btn { flex: 1 1 100%; } }
.shots { position: relative; margin-top: 56px; padding-bottom: 40px; }
.shot-desk { border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: none; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(var(--shadow), .35); max-width: 980px; background: var(--surface); }
.shot-desk .bar { height: 30px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot-desk .bar i { width: 10px; height: 10px; border-radius: 5px; background: var(--line); }
.shot-desk .bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.shot-phone { position: absolute; right: 0; bottom: 0; width: min(28%, 270px); border-radius: 30px; border: 8px solid var(--band); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(var(--shadow), .45); background: var(--surface); }
@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .shots { padding-bottom: 24px; }
  .shot-phone { width: 42%; right: -4px; border-width: 6px; border-radius: 22px; }
}
.hero-foot { border-top: 1px solid var(--line); background: var(--surface); }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Flow: the one sequence on the page, so it is numbered */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--accent); }
.flow li { counter-increment: step; padding: 22px 24px 0 0; position: relative; }
.flow li::before { content: counter(step); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow h3 { font-size: 19px; margin-top: 10px; }
.flow p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; border-top: none; border-left: 2px solid var(--accent); margin-left: 14px; }
  .flow li { padding: 0 0 32px 30px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { top: 0; left: -15px; }
  .flow h3 { margin-top: 2px; }
}

/* Modules */
.teaser { margin-top: 48px; font-size: 20px; font-weight: 600; color: var(--accent-ink); }
.hl { font-style: italic; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 .08em; }
.standouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.standouts > div { background: var(--accent-soft); border-radius: 12px; padding: 22px 24px; }
.standouts h3 { font-size: 18px; color: var(--accent-ink); }
.standouts p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .standouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .standouts { grid-template-columns: 1fr; } }
.tabs-prompt { margin: -16px 0 16px; font-size: 20px; font-weight: 600; color: var(--accent-ink); }
.mods-lead { max-width: 680px; margin-bottom: 24px; color: var(--ink-2); font-size: 18px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.module { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.module svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.module h3 { font-size: 19px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.module p { margin-top: 6px; color: var(--ink-2); font-size: 16px; grid-column: 2; }
.tag { font-size: 12px; font-weight: 600; border-radius: 20px; padding: 2px 9px; background: var(--accent-soft); color: var(--accent-ink); letter-spacing: 0; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }

/* What sets it apart: a dark band, the only one on the page */
.apart { background: var(--band); color: var(--band-ink); }
.apart .sec-head p { color: var(--band-muted); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.points h3 { font-size: 20px; }
.points p { margin-top: 10px; color: var(--band-muted); font-size: 16px; }
.points b { color: var(--band-ink); font-weight: 600; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; gap: 32px; } }

/* Demo */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--chip); border-radius: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: none; border-radius: 9px; padding: 10px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow), .12); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.panel[hidden] { display: none; }
.panel.phone { grid-template-columns: 300px minmax(0, 1fr); }
.panel figure { margin: 0; }
.panel .frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 50px -30px rgba(var(--shadow), .35); }
.panel.phone .frame { border-radius: 28px; border: 8px solid var(--band); max-width: 300px; }
.panel h3 { font-size: 22px; }
.panel .who { margin-top: 6px; font-size: 14px; color: var(--muted); }
.panel ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.panel li + li { margin-top: 8px; }
@media (max-width: 860px) {
  .panel, .panel.phone { grid-template-columns: 1fr; gap: 24px; }
  .panel.phone figure { order: 2; }
}
.demo-note { margin-top: 40px; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-note p { color: var(--ink-2); max-width: 640px; }

.note-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pricing: four plans side by side, the recommended one stands out */
.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.period { display: inline-flex; gap: 4px; padding: 4px; background: var(--chip); border-radius: 12px; margin: -16px 0 28px; }
.period[hidden] { display: none; }
.period button { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: none; border-radius: 9px; padding: 10px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.period button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow), .12); }
.free-note { margin: -8px 0 28px; padding: 14px 18px; border-radius: 12px; background: var(--done-bg); color: var(--done-ink); font-size: 16px; max-width: 760px; }
.free-note b { font-weight: 700; }
.free-note + .free-note { margin-top: -16px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 24px; }
.plan.best { background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 24px 50px -30px rgba(var(--shadow), .45); }
.plan .badge { position: absolute; top: -13px; left: 20px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; border-radius: 20px; padding: 3px 12px; }
.plan h3 { font-size: 22px; }
.plan-for { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 3.1em; }
.price { margin: 18px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.price b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.price .cur { font-size: 20px; font-weight: 600; }
.price .per { flex-basis: 100%; margin-top: 6px; font-size: 14px; color: var(--muted); }
.plans .y, .plans.yearly .m { display: none; }
.plans.yearly .y { display: inline; }
.plans.yearly .per.y { display: block; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; font-size: 15px; color: var(--ink-2); }
.plan li + li { margin-top: 8px; }
/* Cards in a row share row heights, so prices and buttons line up. */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .plan .btn { align-self: start; }
}
.plan li.all { font-weight: 600; color: var(--ink); }
.plans-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.start-steps { margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--accent-soft); display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
.start-steps h3 { font-size: 20px; color: var(--accent-ink); }
.start-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.start-steps li { counter-increment: step; position: relative; padding-left: 40px; font-size: 15px; color: var(--ink-2); }
.start-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.start-steps b { display: block; color: var(--ink); }
.acct-band { margin-top: 32px; padding: 26px 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--ground); display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.acct-band h3 { font-size: 20px; }
.acct-band p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 760px; }
.acct-band .acct-check { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .start-steps, .acct-band { grid-template-columns: 1fr; }
  .acct-band .btn { justify-self: start; }
  .start-steps ol { grid-template-columns: 1fr; }
  .start-steps .btn { justify-self: start; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
  .period { margin-top: -24px; }
  .start-steps { padding: 22px; }
  .start-steps .btn, .acct-band .btn { justify-self: stretch; }
  .acct-band { padding: 22px; }
}

/* For whom */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.aud h3 { font-size: 22px; }
.aud p { margin-top: 12px; color: var(--ink-2); }
.aud ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.aud li + li { margin-top: 6px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } .aud { padding: 24px; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 680px; }

/* Contact and footer */
.contact { padding-top: 0; }
.contact .box { background: var(--accent); color: var(--on-accent); border-radius: 20px; padding: 48px; display: flex; gap: 24px 48px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.contact h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 560px; }
.contact p { margin-top: 10px; opacity: .85; max-width: 560px; }
.contact .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.contact .btn:hover { opacity: .9; color: var(--accent); }
.contact p a { color: inherit; }
@media (max-width: 600px) { .contact .box { padding: 28px 22px; } }
.site-foot { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 64px 0; }
.lost h1 { font-size: 40px; }
.lost p { color: var(--ink-2); max-width: 560px; }

/* Security page */
.brand + .langs { margin-left: auto; }
.page-head { padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.025em; }
.page-head .lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.facts > div { padding: 24px 0; border-top: 1px solid var(--line); }
.facts h2 { font-size: 19px; }
.facts p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.subs { overflow-x: auto; max-width: 760px; }
.subs table { width: 100%; border-collapse: collapse; font-size: 16px; }
.subs th, .subs td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.subs th { font-size: 14px; color: var(--muted); font-weight: 600; }
.note { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 760px; }

/* First steps page */
.video { margin: 0; max-width: 960px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(var(--shadow), .35); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface); }
.steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps b { color: var(--ink); font-weight: 600; }

/* Legal pages (regulamin, polityka prywatności, umowa powierzenia): long text. */
.legal { max-width: 760px; padding-bottom: 32px; color: var(--ink-2); }
.legal h2 { color: var(--ink); font-size: 22px; font-weight: 700; margin: 0 0 14px; scroll-margin-top: 84px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal .subs + p { margin-top: 12px; }
.legal ol, .legal ul { margin: 0; padding-left: 1.4em; }
.legal li + li { margin-top: 8px; }
.legal li > ul { margin-top: 8px; }
.legal .subs { margin-top: 8px; }
.legal .subs table { font-size: 15px; }
.legal .subs th, .legal .subs td { padding-right: 14px; }
.legal .subs td { min-width: 140px; }
.legal .note { margin-top: 12px; }
.legal code { font-size: 15px; }
.toc { max-width: 760px; margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.binding { max-width: 760px; margin-top: 24px; padding: 12px 16px; border-radius: 10px; background: var(--soon-bg); color: var(--soon-ink); font-size: 15px; }
.binding a { color: inherit; }
.legal > * + h2 { margin-top: 44px; }
.page-head h1 { hyphens: auto; overflow-wrap: break-word; }

/* News (Aktualności): the list and one post, built by scripts/site_blog.py from blog/posts/. */
.site-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.posts { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.post-card { position: relative; padding: 26px 0; border-top: 1px solid var(--line); }
.post-card h2 { font-size: 23px; font-weight: 700; margin-top: 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h2 a { color: var(--accent-ink); }
.post-card p { margin-top: 8px; color: var(--ink-2); }
.post-card .more { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
.post-meta { margin: 0; font-size: 14px; color: var(--muted); }
.post-meta a { text-decoration: none; font-weight: 500; }
.post .page-head { padding-bottom: 32px; }
.post .page-head .post-meta { margin-bottom: 18px; }
.post-body { color: var(--ink-2); padding-bottom: 24px; }
.post-body > * { max-width: 760px; }
.post-body h2 { color: var(--ink); font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.post-body p + p, .post-body p + ul, .post-body p + ol, .post-body ul + p, .post-body ol + p { margin-top: 12px; }
.post-body ul, .post-body ol { margin: 0; padding-left: 1.4em; }
.post-body li + li { margin-top: 8px; }
.post-body b { color: var(--ink); font-weight: 600; }
.post-body figure { margin: 28px 0; }
.post-body figure img, .post-shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(var(--shadow), .35); }
.post-shot { margin: 0 0 8px; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts { max-width: 760px; margin: 24px 0 0; padding-left: 20px; color: var(--ink-2); }
.facts li { margin: 8px 0; }
.cta-row { margin-top: 24px; }
