/* BlueWato - strona WWW */
:root {
  --bg: #ffffff; --bg-alt: #f4f7fb; --bg-dark: #0f1729;
  --text: #0f172a; --muted: #5b6677; --line: #e4e9f0;
  --accent: #0ea5e9; --accent-2: #2563eb; --accent-soft: #e0f2fe;
  --ok: #16a34a;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; overflow-wrap: anywhere; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; }
.center .lead { margin-inline: auto; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.kicker { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; margin-bottom: 10px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(37, 99, 235, .36); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.badge { display: inline-block; background: var(--accent-soft); color: #0369a1; font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 66px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; color: var(--text); letter-spacing: -.02em; }
.logo b { font-weight: 800; }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav > a:not(.btn) { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.site-nav > a:not(.btn):hover, .site-nav > a.is-active { background: var(--bg-alt); text-decoration: none; }
.site-nav .btn { margin-left: 6px; }
.nav-toggle, .nav-burger { display: none; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: 11px; }
.lang-menu[open] summary, .lang-menu summary:hover { background: var(--bg-alt); }
.lang-menu > div { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 150px; padding: 6px; display: flex; flex-direction: column; }
.lang-menu > div a { padding: 8px 12px; border-radius: 7px; color: var(--text); font-size: 14px; }
.lang-menu > div a:hover, .lang-menu > div a.is-active { background: var(--bg-alt); text-decoration: none; }
.lang-menu > div a.is-active { font-weight: 600; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1200px 500px at 80% -10%, #dbeafe 0%, transparent 60%), radial-gradient(800px 400px at 0% 100%, #e0f2fe 0%, transparent 60%); }
.hero-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { color: var(--muted); font-size: 14px; }
.mock { background: #0b1220; border-radius: 18px; box-shadow: 0 30px 70px rgba(15,23,42,.35), 0 0 0 1px rgba(255,255,255,.06) inset; overflow: hidden; color: #cbd5e1; font-size: 13px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #111a2e; }
.mock-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #334155; margin-right: 5px; }
.mock-dots i:first-child { background: #f87171; } .mock-dots i:nth-child(2) { background: #fbbf24; } .mock-dots i:nth-child(3) { background: #34d399; }
.mock-title { font-weight: 600; color: #e2e8f0; }
.mock-status { margin-left: auto; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.mock-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.mock-tabs { display: flex; gap: 4px; padding: 8px 14px 0; background: #111a2e; }
.mock-tabs span { padding: 6px 14px; border-radius: 8px 8px 0 0; color: #94a3b8; }
.mock-tabs .is-active { background: #0b1220; color: #e2e8f0; }
.mock-screen { position: relative; height: 320px; background: linear-gradient(160deg, #1e3a8a 0%, #0f2a5e 45%, #0b1a3f 100%); overflow: hidden; }
.mock-window { position: absolute; background: #f8fafc; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.35); overflow: hidden; }
.mock-window-bar { height: 14px; background: #e2e8f0; }
.w1 { left: 5%; top: 10%; width: 44%; height: 42%; }
.w2 { left: 30%; top: 30%; width: 40%; height: 48%; }
.mock-lines { padding: 10px; } .mock-lines i { display: block; height: 7px; border-radius: 4px; background: #cbd5e1; margin-bottom: 8px; }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: calc(100% - 14px); padding: 12px; }
.mock-chart b { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 4px 4px 0 0; }
.mock-term { position: absolute; right: 4%; bottom: 6%; width: 52%; background: rgba(2, 6, 23, .92); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: #e2e8f0; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.mock-term span { color: #7dd3fc; } .mock-term .muted { color: #94a3b8; } .mock-term .ok { color: #34d399; }
.mock-term .cursor { display: inline-block; width: 7px; height: 12px; background: #7dd3fc; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }
.mock-cursor { position: absolute; left: 58%; top: 48%; width: 0; height: 0; border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: rotate(-30deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); animation: move 6s ease-in-out infinite alternate; }
@keyframes move { to { left: 40%; top: 30%; } }

.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; padding: 16px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-dark .lead { color: #94a3b8; } .section-dark .kicker { color: #7dd3fc; }
.page-head { padding: 64px 0 24px; }
.page-head + .section { padding-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.card-dark p { color: #94a3b8; }
.card-flat { background: var(--bg-alt); border: 0; }
.icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-pf svg { fill: var(--accent-2); stroke: none; }
.platforms .card:first-child .icon-pf svg { fill: none; stroke: var(--accent-2); }
.steps { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg-alt); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }

.diagram { position: relative; display: grid; grid-template-columns: 1fr 70px 1.2fr 70px 1fr; align-items: center; gap: 0; padding: 34px 20px 70px; border: 1px dashed var(--line); border-radius: var(--radius); }
.diag-node { text-align: center; font-weight: 600; font-size: 15px; }
.diag-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.diag-node svg { display: block; width: 42px; height: 42px; margin: 0 auto 8px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; }
.diag-link { height: 2px; border-top: 2px dashed #94a3b8; }
.diag-p2p { position: absolute; left: 10%; right: 10%; bottom: 22px; height: 22px; border: 3px solid var(--accent); border-top: 0; border-radius: 0 0 18px 18px; }
.diag-p2p span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: #fff; padding: 2px 12px; color: var(--accent-2); font-weight: 700; font-size: 13px; white-space: nowrap; }

.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }

.producer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.producer-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt); border-radius: var(--radius); padding: 26px; font-size: 15px; }
.producer-card .btn { align-self: flex-start; margin-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }

.cta { padding: 80px 0; background: linear-gradient(135deg, #0ea5e9, #2563eb 60%, #1d4ed8); color: #fff; text-align: center; }
.cta h2 { color: #fff; } .cta p { color: rgba(255,255,255,.85); font-size: 18px; }
.cta .btn-primary { background: #fff; color: var(--accent-2); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ---------------------------------------------------------------- cennik */
.notice { background: #fef9c3; border: 1px solid #fde68a; color: #713f12; padding: 14px 18px; border-radius: var(--radius-sm); margin: 24px 0; font-size: 15px; }
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 8px 0 28px; }
.billing-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.billing-toggle button.is-active { background: var(--text); color: #fff; }
.billing-toggle em { font-style: normal; font-size: 12px; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.billing-toggle button.is-active em { background: #34d399; color: #052e16; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.plan.is-featured { border: 2px solid var(--accent-2); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 22px; margin-bottom: 2px; }
.plan-tag { color: var(--muted); font-size: 14px; min-height: 42px; }
.plan-price { margin: 6px 0 18px; }
.plan-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-limits, .plan-features { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14.5px; }
.plan-limits li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan-limits li:last-child { border-bottom: 1px solid var(--line); }
.plan-features li { padding: 5px 0 5px 24px; position: relative; color: var(--muted); }
.plan-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- strony prawne */
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 26px; }
.legal ol, .legal ul { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }
.legal .toc { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 18px 24px 18px 40px; margin: 0 0 30px; }
.legal .toc li { margin-bottom: 4px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 20px; }
.legal-section { padding-top: 20px; }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0b1220; color: #94a3b8; padding: 60px 0 30px; font-size: 14.5px; }
.site-footer a { color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid > div > a { display: block; margin-bottom: 8px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-domains a { color: #7dd3fc; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.footer-langs a { margin-left: 14px; } .footer-langs a.is-active { color: #fff; font-weight: 600; }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,23,42,.25); padding: 16px 20px; display: flex; gap: 16px; align-items: center; font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1; }

/* ---------------------------------------------------------------- responsywnosc */
@media (max-width: 1000px) {
  .grid-3, .plans { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .producer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 44px; }
  .grid-3, .grid-2, .plans, .steps, .contact-grid { grid-template-columns: 1fr; }
  .plan-badge { top: -12px; }
  .diagram { grid-template-columns: 1fr; gap: 14px; padding-bottom: 60px; }
  .diag-link { width: 2px; height: 28px; border-top: 0; border-left: 2px dashed #94a3b8; margin: 0 auto; }
  .diag-p2p { left: 6px; right: auto; top: 30px; bottom: 60px; width: 22px; height: auto; border: 3px solid var(--accent); border-right: 0; border-radius: 18px 0 0 18px; }
  .diag-p2p span { left: -6px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; font-size: 11px; }
  .nav-burger { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; cursor: pointer; border-radius: 8px; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 22px; height: 2px; background: var(--text); position: relative; transition: .2s; }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -7px; } .nav-burger span::after { top: 7px; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-burger span::after { transform: rotate(-45deg); top: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav .btn { margin: 6px 0 0; }
  .lang-menu > div { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .cookie-bar, .cta { display: none; }
  body { font-size: 12pt; }
}
