/* Prognoo — strona produktu. Bez zewnętrznych czcionek, skryptów śledzących i ciasteczek. */
:root {
  --blue: #1F6FEB;
  --blue-ink: #1558C7;
  --navy: #14213D;
  --accent: #79B8FF;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FC;
  --card: #FFFFFF;
  --line: #DCE3EE;
  --text: #14213D;
  --muted: #4A5568;
  --chip: #E8F1FE;
  --chip-ink: #1251B5;
  --ok: #0F7A3D;
  --warn: #8A5300;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --radius: 14px;
  --max: 1140px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4C8DF6;
    --blue-ink: #79B8FF;
    --bg: #0C1424;
    --bg-soft: #111C31;
    --card: #15213A;
    --line: #26365A;
    --text: #E8EEF8;
    --muted: #AEBBD2;
    --chip: #1B2D52;
    --chip-ink: #A9CCFF;
    --ok: #4ADE80;
    --warn: #FCD34D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-ink); margin-bottom: .6em; }
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue-ink); }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: #1F6FEB; color: #fff; }
.btn-primary:hover { background: #1558C7; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.ctas.center { justify-content: center; }
.note { font-size: .92rem; color: var(--muted); }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--blue-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.badges li { background: var(--chip); color: var(--chip-ink); font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* Ilustracja „zrzutu ekranu” (dane fikcyjne) */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.shot-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-body { padding: 16px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.kpi b { display: block; font-size: 1.1rem; }
.kpi small { color: var(--muted); font-size: .75rem; display: block; }
.kpi .up { color: var(--ok); font-weight: 700; font-size: .75rem; }
.kpi .down { color: var(--warn); font-weight: 700; font-size: .75rem; }
.chart { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 4px; }
.chart-title { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.legend { display: flex; gap: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mini-table th, .mini-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table th { color: var(--muted); font-weight: 600; }
.shot-caption { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Siatki kart */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); margin-bottom: 12px; }
.card .ico svg { width: 24px; height: 24px; }
.section-head { margin-bottom: 32px; }

/* Ból → rozwiązanie */
.pain { display: grid; gap: 6px; }
.pain h3 { color: var(--text); }
.pain .was { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); font-size: .95rem; margin: 0; }

/* Biura rachunkowe / bezpieczeństwo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231F6FEB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.portfolio { display: grid; gap: 8px; }
.portfolio .row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; background: var(--card); }
.portfolio .row.head { font-weight: 700; color: var(--muted); border-style: dashed; background: transparent; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

/* 30 dni */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li .when { font-weight: 800; color: var(--blue-ink); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* Cennik */
.price { display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price .tag { align-self: flex-start; background: #1F6FEB; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.price .amount { font-size: 2rem; font-weight: 800; margin: 4px 0 0; }
.price .amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price .example { font-size: .82rem; color: var(--warn); font-weight: 700; margin-bottom: 14px; }
.price p.small { font-size: .85rem; margin: 2px 0 14px; }
.price ul { padding-left: 20px; margin: 0 0 20px; flex: 1; }
.price li { margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--blue-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* CTA końcowe i stopka */
.final { background: #14213D; color: #fff; border-radius: 20px; padding: 48px 24px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #D5DEEE; }
.final .btn-ghost { background: transparent; color: #fff; border-color: #50608A; }
.final .btn-ghost:hover { border-color: #79B8FF; }
footer { border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { font-size: .95rem; margin-bottom: .6em; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--text); }
footer .legal { margin-top: 28px; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { img.logo-light { display: none; } img.logo-dark { display: block; } }
