/* Scarbo — strona. Papier, śliwkowy atrament i złoto skarbu. */
:root {
  --bg: #F6EFE3;
  --surface: #FFFAF1;
  --raised: #FFFFFF;
  --sunken: #EEE4D3;
  --text: #2B1D2E;
  --muted: #665463;
  --primary: #3F2449;
  --on-primary: #FFF4E0;
  --primary-soft: #EBDFEE;
  --accent: #E3AE45;
  --on-accent: #2B1D2E;
  --accent-text: #855A0C;
  --accent-graphic: #A5741A;
  --positive: #2C6A4C;
  --negative: #A34A2A;
  --border: #E4D8C4;
  --border-strong: #9C8B78;
  --focus: #3F2449;
  --link: #3F2449;
  --shadow: 0 2px 8px rgba(63, 36, 73, .06), 0 12px 32px rgba(63, 36, 73, .08);
  --shadow-lg: 0 24px 60px rgba(63, 36, 73, .16);
  --badge-bg: #2B1D2E;
  --badge-fg: #FFF4E0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171214;
    --surface: #211A1D;
    --raised: #2B2226;
    --sunken: #100C0E;
    --text: #F4EADC;
    --muted: #BCAC9F;
    --primary: #E8B84F;
    --on-primary: #1E1609;
    --primary-soft: #3A2C17;
    --accent: #E8B84F;
    --on-accent: #1E1609;
    --accent-text: #F2CE7A;
    --accent-graphic: #E8B84F;
    --positive: #86C9A2;
    --negative: #EBA07F;
    --border: #3A2F34;
    --border-strong: #7A6A71;
    --focus: #E8B84F;
    --link: #D7B6E8;
    --shadow: 0 0 0 1px rgba(244, 234, 220, .05);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(244, 234, 220, .06);
    --badge-bg: #F4EADC;
    --badge-fg: #171214;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; color: var(--accent-text); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-graphic); border-radius: 2px; }
em.gold { font-style: italic; color: var(--accent-text); }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 2px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Hero */
.hero { padding: 32px 0 72px; position: relative; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } .hero { padding: 48px 0 96px; } }
.hero h1 .skarb { position: relative; white-space: nowrap; color: var(--primary); }
.hero h1 .skarb::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em;
  background: var(--accent); opacity: .55; border-radius: 4px; z-index: -1;
}
.hero h1 { position: relative; z-index: 0; }
.pun { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; margin-top: 1.25rem; }
.pun b { font-style: normal; font-weight: 600; color: var(--text); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--badge-bg); color: var(--badge-fg); border-radius: 12px; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: .72rem; opacity: .85; letter-spacing: .02em; }
.badge strong { font-size: 1.12rem; font-weight: 600; }
.badge-note { font-size: .9rem; color: var(--muted); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 20px 0 0; font-size: .95rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--positive); flex: none; }

/* Hero envelope card */
.chest {
  position: relative; background: var(--surface); border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; justify-self: center;
  transform: rotate(-1.2deg);
}
.chest::before { /* papierowa zakładka pod spodem */
  content: ""; position: absolute; inset: 14px -10px -12px 10px; background: var(--sunken);
  border-radius: var(--r-xl); z-index: -1; transform: rotate(3deg);
}
.pool {
  position: relative; background: var(--accent); color: var(--on-accent); border-radius: var(--r-l);
  padding: 22px 20px 18px; margin-bottom: 18px;
  clip-path: polygon(0 0, 46% 0, 50% 7px, 54% 0, 100% 0, 100% 100%, 0 100%);
}
.pool small { display: block; font-weight: 600; font-size: .9rem; }
.pool .amount { font-weight: 700; font-size: clamp(2rem, 6vw, 2.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pool .amount .zl { font-size: .62em; font-weight: 600; opacity: .8; }
.env { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.env li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.env li:last-child { border-bottom: 0; }
.env .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1rem; }
.env .ic svg { width: 18px; height: 18px; color: var(--primary); }
.env .name { font-weight: 600; }
.env .val { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.env .val.neg { color: var(--negative); }
.env .val.pos { color: var(--positive); }
.env .bar { grid-column: 2 / 4; height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.env .bar i { display: block; height: 100%; background: var(--accent-graphic); border-radius: 99px; }
.env .bar i.neg { background: var(--negative); }
.chest-foot { margin-top: 14px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.coin {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; right: -14px; top: -18px;
  background: radial-gradient(circle at 35% 30%, #F6D892, #E3AE45 55%, #A5741A);
  box-shadow: 0 8px 20px rgba(133, 90, 12, .35), inset 0 0 0 4px rgba(255, 244, 224, .35);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: #5a3d08; font-size: 1.3rem;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(8deg); } }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.band { background: var(--surface); border-block: 1px solid var(--border); }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-l); padding: 26px 24px 22px;
  position: relative; overflow: hidden;
}
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.feature .fi svg { width: 24px; height: 24px; }
.feature.wide { grid-column: 1 / -1; display: grid; gap: 8px 32px; }
@media (min-width: 900px) { .feature.wide { grid-template-columns: 1fr 1fr; align-items: start; } }
.feature.gold { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.feature.gold p { color: var(--on-accent); }
.feature.gold .fi { background: rgba(43, 29, 46, .1); color: var(--on-accent); }
.banks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.banks li { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 99px; padding: 6px 14px; font-weight: 500; font-size: .95rem; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: s; position: relative; padding: 28px 24px 24px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(s); font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 1;
  color: var(--accent-graphic); display: block; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }
.example { margin-top: 32px; padding: 20px 22px; border-left: 3px solid var(--accent-graphic); background: var(--surface); border-radius: 0 var(--r-m) var(--r-m) 0; max-width: 760px; }
.example p { margin: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 28px; margin: 0 -16px; scrollbar-width: thin; }
@media (min-width: 640px) { .shots { margin: 0 -28px; padding: 8px 28px 28px; } }
.shots figure { flex: 0 0 auto; width: min(240px, 64vw); margin: 0; scroll-snap-align: start; }
.shots .frame { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lg); background: var(--sunken); }
.shots figcaption { margin-top: 14px; font-size: .95rem; color: var(--muted); text-align: center; }
.shots:focus-visible { outline-offset: -2px; }

/* Privacy block */
.privacy { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--positive); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent-graphic); border-bottom: 2px solid var(--accent-graphic);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .a { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta .badges { justify-content: center; }
.cta .lede { margin: 0 auto; }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--border); font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; color: var(--text); margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.copy { grid-column: 1 / -1; font-size: .88rem; padding-top: 16px; border-top: 1px solid var(--border); }

/* Legal / document pages */
.doc { padding: 24px 0 88px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: 16px; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--sans); font-weight: 600; }
.doc p, .doc li { max-width: 70ch; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--accent-text); font-weight: 600; }
.meta { color: var(--muted); font-size: .95rem; }
.tldr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 22px 24px; margin: 28px 0 8px; box-shadow: var(--shadow); }
.tldr h2 { margin-top: 0; font-size: 1.25rem; }
.tldr ul { margin: 0; }
.toc { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent-graphic); background: var(--surface); border-radius: 0 var(--r-m) var(--r-m) 0; }
.toc h2 { font-size: 1rem; font-family: var(--sans); margin: 0 0 .5em; }
.toc ol { margin: 0; columns: 2 16em; column-gap: 2em; }
.toc li { break-inside: avoid; margin-bottom: .3em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--border); border-radius: var(--r-m); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--sunken); }
tr:last-child td { border-bottom: 0; }
.card-grid { display: grid; gap: 16px; margin: 28px 0; }
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 22px; }
.card h2 { margin-top: 0; font-size: 1.3rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  background: var(--primary); color: var(--on-primary); border-radius: 999px; font-weight: 600; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost .big { font-family: var(--serif); font-weight: 700; font-size: clamp(5rem, 22vw, 10rem); line-height: 1; color: var(--accent-graphic); margin: 0 0 .1em; }
.lost .lede { margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .badges, .skip, .coin { display: none !important; }
  body { background: #fff; color: #000; }
}
.w35 { width: 35%; } .w62 { width: 62%; } .w88 { width: 88%; } .w100 { width: 100%; }
@media (prefers-color-scheme: dark) {
  .hero h1 .skarb::after { background: #CDA7E0; opacity: .3; }
}
