/* RCP Token — redesign 2026, mobile-first. Wspólny dla /pl /en /de. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0f1e36; --teal: #0e7490; --teal-d: #0a5c73; --teal-l: #22d3ee;
  --ink: #0f172a; --gray: #475569; --gray-l: #e2e8f0; --bg-alt: #f8fafc; --white: #fff;
}
/* scroll-padding-top: nagłówek jest sticky (~64 px) — bez tego skok do kotwicy
   chowa tytuł sekcji pod menu. */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--gray); line-height: 1.6; overflow-x: hidden; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.12; color: var(--white); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; color: var(--ink); font-weight: 900; margin-bottom: .6rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: inherit; font-weight: 800; }
.skip-link { position: absolute; left: -9999px; background: var(--teal); color: #fff; padding: .7rem 1.2rem; z-index: 99; }
.skip-link:focus { left: 0; top: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-l); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,30,54,.97); backdrop-filter: blur(8px); }
.nav { max-width: 1160px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { color: #fff; font-weight: 900; font-size: 1.2rem; text-decoration: none; }
.logo span { color: var(--teal-l); }
.nav-side { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; gap: .35rem; align-items: center; color: #64748b; font-size: .95rem; }
.lang-switch a { color: #94a3b8; text-decoration: none; padding: .5rem .35rem; min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch a.lang-active { color: var(--teal-l); font-weight: 800; text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; min-height: 44px; min-width: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s; }
.nav-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: .95rem; padding: .5rem .15rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: #fff; }
.nav-login { color: #94a3b8 !important; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; gap: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-cta { margin-top: .6rem; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem; border-radius: 8px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-ghost { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.section-dark .btn-ghost, .hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn.full { width: 100%; }

/* Hero */
.hero { background: linear-gradient(140deg, #0a1929, #0f2a45 55%, #0c3347); color: #cbd5e1; padding: clamp(2.5rem, 7vw, 5rem) 1rem 3rem; text-align: left; }
.hero > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.kicker { color: var(--teal-l); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .8rem; }
.hero-desc { font-size: clamp(1rem, 2.5vw, 1.15rem); margin: 1rem auto .5rem; }
/* Hero jest ciemny — nota musi być jasna, inaczej kontrast leci poniżej WCAG AA. */
.hero-note { font-size: clamp(.95rem, 2.3vw, 1.05rem); color: #cbd5e1; font-weight: 600; margin: 0 auto 1.2rem; }
.hero-points { list-style: none; display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.hero-points li { padding-left: 1.4rem; position: relative; color: #e2e8f0; font-weight: 600; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-l); font-weight: 900; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-price { margin-top: .9rem; font-weight: 700; color: #94a3b8; }
.hero-img { margin: 2rem auto 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; max-width: min(100%, 680px); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; max-width: 1160px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-dark { background: var(--navy); max-width: none; color: #cbd5e1; }
.section-dark > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-dark h2 { color: #fff; }
.lead { font-size: clamp(1rem, 2.3vw, 1.12rem); max-width: 720px; margin-bottom: 1.4rem; }
.problem-list { list-style: none; display: grid; gap: .6rem; max-width: 720px; }
.problem-list li { padding: .8rem 1rem .8rem 2.2rem; background: var(--bg-alt); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; position: relative; font-weight: 600; color: var(--ink); }
.problem-list li::before { content: "✕"; position: absolute; left: .8rem; color: #b91c1c; font-weight: 900; }

.steps { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--gray-l); border-radius: 12px; padding: 1.3rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: 1.15rem; margin-bottom: .7rem; }
.steps h3 { color: var(--ink); margin-bottom: .3rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--gray-l); border-radius: 12px; padding: 1.3rem; }
.card h3 { color: var(--ink); margin-bottom: .35rem; }
.rollout-cta { margin-top: 1.4rem; }
/* Honeypot: ukryty przed człowiekiem, widoczny dla botów. Nie używamy
   display:none, bo część botów je pomija. Pole nie jest wysyłane do API. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero-scenario { padding-bottom: 2.2rem; }
.points-list { margin-top: 1rem; }
.other-industries { list-style: none; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 0; margin: 0 0 1.4rem; }
.other-industries a { color: var(--teal-d); font-weight: 600; }
.form-msg.ok { color: #15803d; font-weight: 700; }
.form-msg.err { color: #b91c1c; font-weight: 700; }
/* Karty branżowe. Cała karta klikalna przez rozciągnięty pseudoelement jednego
   <a> — bez zagnieżdżonych linków, bez JS, z zachowaną semantyką nagłówka.
   Hover zmienia wyłącznie kolor i cień, więc układ nigdy się nie przesuwa. */
.card-industry { display: flex; flex-direction: column; }
.card-linked { position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.card-linked:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(15, 30, 54, .13); }
.card-linked:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.industry-icon svg { width: 30px; height: 30px; color: var(--teal); display: block; margin-bottom: .6rem; }
.industry-link { color: inherit; text-decoration: none; }
.industry-link::after { content: ""; position: absolute; inset: 0; } /* klikalna cała karta */
.industry-link:focus-visible { outline: none; } /* widoczny focus daje :focus-within na karcie */
.card-linked:hover .industry-link { text-decoration: underline; }
.industry-cta { margin-top: auto; padding-top: .9rem; color: var(--teal-d); font-weight: 700; font-size: .95rem; }
.industry-arrow { display: inline-block; margin-left: .35rem; transition: transform .15s ease; }
.card-linked:hover .industry-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .card-linked, .industry-arrow { transition: none; } }

/* Tagi branżowe: osobne elementy listy, nigdy sklejony tekst. */
.industry-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .3rem; margin: .75rem 0 0; padding: 0; }
.industry-tags li { background: var(--bg-alt); border: 1px solid var(--gray-l); border-radius: 14px; padding: .15rem .6rem; font-size: .85rem; }
.benefits .card { border-top: 4px solid var(--teal); }

.panel-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.panel-list { list-style: none; display: grid; gap: .55rem; }
.panel-list li { padding-left: 1.5rem; position: relative; font-weight: 600; color: #e2e8f0; }
.panel-list li::before { content: "→"; position: absolute; left: 0; color: var(--teal-l); font-weight: 900; }
.panel-mock { background: #fff; border-radius: 12px; padding: 1rem; color: var(--ink); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.panel-mock-title { font-weight: 900; margin-bottom: .7rem; }
.panel-row { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .6rem .7rem; border-radius: 8px; margin-bottom: .45rem; font-size: .95rem; border: 1px solid var(--gray-l); }
.panel-row.ok { background: #f0fdf4; border-color: #bbf7d0; }
.panel-row.warn { background: #fef2f2; border-color: #fecaca; font-weight: 700; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.plan { background: #fff; border: 1px solid var(--gray-l); border-radius: 14px; padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.plan-featured { border: 2px solid var(--teal); box-shadow: 0 8px 30px rgba(14,116,144,.14); }
.plan h3 { color: var(--teal); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.plan-price strong { font-size: clamp(1.9rem, 5vw, 2.4rem); color: var(--navy); font-weight: 900; }
.plan-price span { color: var(--gray); font-weight: 600; }
.plan-limits { list-style: none; display: grid; gap: .35rem; color: var(--ink); }
.plan-limits li { padding-left: 1.3rem; position: relative; }
.plan-limits li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.plan-cost { border: 1px solid var(--gray-l); border-radius: 10px; background: var(--bg-alt); }
.plan-cost summary { cursor: pointer; padding: .8rem 1rem; font-weight: 800; color: var(--teal); list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
.plan-cost summary::after { content: "+"; font-size: 1.3rem; }
.plan-cost[open] summary::after { content: "–"; }
.calc { padding: 0 1rem .5rem; display: grid; gap: .45rem; }
.calc div { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .95rem; }
.calc dt { color: var(--gray); }
.calc dd { color: var(--ink); text-align: right; }
.calc-total { border-top: 1px dashed var(--gray-l); padding-top: .45rem; }
.calc-note { padding: .4rem 1rem .8rem; font-size: .85rem; color: var(--gray); }
.plan-enterprise { background: var(--bg-alt); }
.token-price { margin-top: 1.4rem; font-size: 1.05rem; color: var(--ink); }
.pricing-note { margin-top: .6rem; font-size: .92rem; max-width: 760px; }

/* [hidden] musi wygrać z .plans{display:grid} i innymi display z klas */
[hidden] { display: none !important; }

/* Przełącznik waluty (/en) */
.currency-switch { display: inline-flex; gap: .3rem; margin-bottom: 1.2rem; border: 1px solid var(--gray-l); border-radius: 10px; padding: .25rem; background: #fff; }
.currency-btn { min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: 7px; background: transparent; font-weight: 800; font-size: .95rem; color: var(--gray); cursor: pointer; }
.currency-btn.currency-active { background: var(--teal); color: #fff; }

/* Monitoring */
#monitoring .badge { display: inline-block; background: #fef9c3; color: #854d0e; border: 1px solid #fde047; border-radius: 18px; padding: .3rem .85rem; font-weight: 800; font-size: .85rem; margin-bottom: .8rem; }
.monitoring-price { font-size: 1.2rem; color: var(--navy); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-l); max-width: 820px; }
.faq-item summary { cursor: pointer; padding: 1rem .2rem; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 .2rem 1.1rem; max-width: 720px; }

/* Form */
.lead-form { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; max-width: 820px; }
.lead-form label { display: grid; gap: .3rem; font-weight: 700; color: var(--ink); font-size: .95rem; min-width: 0; }
.lead-form input, .lead-form select, .lead-form textarea { font-size: 16px; padding: .7rem .8rem; border: 1px solid var(--gray-l); border-radius: 8px; min-height: 48px; width: 100%; font-family: inherit; }
.lead-form textarea { min-height: 110px; }
.lead-form .full { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; font-weight: 700; min-height: 1.2em; }
.form-msg.ok { color: #166534; }
.form-msg.err { color: #b91c1c; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; text-align: center; padding: 1.6rem 1rem; font-size: .95rem; display: grid; gap: .4rem; }
