/* ============================================================
   Strona informacyjna platformy — arkusz stylów
   Wyłącznie zatwierdzona paleta kolorów w :root
   ============================================================ */

:root {
  --bg-deep: #0f1012;
  --bg: #111214;
  --card: #1a1c1f;
  --line: #2a2d31;
  --text: #eceef1;
  --text-muted: #b4bac1;
  --accent: #a3e635;
  --accent-ink: #16220a;
  --danger: #ef4444;

  /* Przezroczystości tych samych barw bazowych */
  --accent-soft: rgba(163, 230, 53, 0.12);
  --danger-soft: rgba(239, 68, 68, 0.12);
  --bg-header: rgba(17, 18, 20, 0.94);
  --backdrop: rgba(15, 16, 18, 0.82);

  /* Jednolity promień zaokrągleń i skala typograficzna */
  --radius: 10px;
  --h1-size: clamp(2rem, 3.6vw, 3rem);
  --h2-size: clamp(1.5rem, 2.5vw, 2rem);
  --h3-size: 1.125rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Widoczny fokus dla klawiatury */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 1. Nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* Znak tekstowy z geometrycznym akcentem */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 22px;
  padding: 4px;
  background-color: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.brand__bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  transition: width 0.32s cubic-bezier(.45,.05,.55,.95);
}

/* Hover na logo: słupki zmieniają długość (script.js), a po nich przechodzi skan — z góry na dół, potem z lewej do prawej. */
.brand__mark { position: relative; overflow: hidden; }
.brand__mark::before,
.brand__mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 6px 1px rgba(163, 230, 53, 0.6);
  opacity: 0;
  pointer-events: none;
}
.brand__mark::before { left: 0; right: 0; top: 0; height: 1px; }
.brand__mark::after { top: 0; bottom: 0; left: 0; width: 1px; }
.brand:hover .brand__mark::before,
.site-footer__brand:hover .brand__mark::before { animation: brand-scan-y 1.6s linear infinite; }
.brand:hover .brand__mark::after,
.site-footer__brand:hover .brand__mark::after { animation: brand-scan-x 1.6s linear infinite; }
/* Jednorazowy przebieg przy wejściu na stronę (klasa zdejmowana po 1,65 s w script.js). */
.brand.is-intro .brand__mark::before { animation: brand-scan-y 1.6s linear 1; }
.brand.is-intro .brand__mark::after { animation: brand-scan-x 1.6s linear 1; }
@keyframes brand-scan-y {
  0% { transform: translateY(0); opacity: 1; }
  48% { transform: translateY(22px); opacity: 1; }
  50%, 100% { transform: translateY(22px); opacity: 0; }
}
@keyframes brand-scan-x {
  0%, 50% { transform: translateX(0); opacity: 0; }
  52% { opacity: 1; }
  98% { transform: translateX(22px); opacity: 1; }
  100% { transform: translateX(22px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand__bar { transition: none; }
  .brand:hover .brand__mark::before, .brand:hover .brand__mark::after,
  .site-footer__brand:hover .brand__mark::before, .site-footer__brand:hover .brand__mark::after { animation: none; }
}

.brand__bar--top {
  width: 70%;
  background-color: var(--accent);
}

.brand__bar--mid {
  width: 100%;
  background-color: var(--text);
}

.brand__bar--bot {
  width: 82%;
  background-color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__link {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.site-nav__link:hover {
  color: var(--text);
}

.site-nav__login {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  transition: color 0.18s ease;
}

.site-nav__login:hover {
  color: var(--text);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Przyciski i oznaczenia ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn--ghost {
  background-color: var(--card);
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--accent);
}

.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background-color: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- 2. Hero ---------- */
.hero {
  padding: 48px 0 56px;
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: 32px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero__title {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero__lead {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__sources {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Podgląd interfejsu w Hero (czytelny od razu, bez czekania) */
.hero-preview {
  width: 100%;
}

.ui-window {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: subtleFadeIn 0.35s ease-out;
}

@keyframes subtleFadeIn {
  from {
    opacity: 0.92;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ui-window__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ui-window__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-window__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.ui-window__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ui-badge--accent {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.ui-badge--danger {
  background-color: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.ui-window__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  padding: 16px;
}

.ui-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ui-panel {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.ui-panel--danger {
  border-color: var(--danger);
}

.ui-panel--summary {
  border-color: var(--line);
}

.ui-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ui-panel__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.ui-panel__label--danger {
  color: var(--danger);
}

.ui-panel__meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ui-doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ui-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
}

.ui-doc-item__name {
  font-weight: 500;
  color: var(--text);
}

.ui-doc-item__pages {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.ui-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-req-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.ui-req-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ui-req-list__text {
  font-size: 0.86rem;
  color: var(--text);
}

.ui-cite {
  display: inline-block;
  align-self: flex-start;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.ui-cite--danger {
  color: var(--danger);
}

.ui-panel__quote {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.ui-compare {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-compare__item {
  padding: 8px 10px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: 6px;
}

.ui-compare__quote {
  font-size: 0.86rem;
  color: var(--text);
  margin-top: 3px;
}

.ui-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ui-summary-row__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ui-summary-row__val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
}

.ui-summary-row__status {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Rytm sekcji ---------- */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.section__head {
  margin-bottom: 28px;
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section__title {
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Subtelne odsłanianie sekcji */
.reveal,
.reveal-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.18s ease;
}

.reveal.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 3. Przykład postępowania (demo) ---------- */
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.demo-stepper__item {
  min-width: 0;
}

.demo-stepper__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.18s ease;
}

.demo-stepper__btn:hover {
  border-color: var(--accent);
}

.demo-stepper__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-stepper__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-stepper__item.is-active .demo-stepper__btn {
  border-color: var(--accent);
  background-color: var(--bg-deep);
}

.demo-stepper__item.is-active .demo-stepper__num {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.demo-stepper__item.is-active .demo-stepper__label {
  color: var(--text);
  font-weight: 700;
}

.demo-stepper__item.is-done .demo-stepper__num {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-live {
  margin-bottom: 18px;
  padding: 12px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.94rem;
  color: var(--text);
}

.demo-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-stage {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.demo-stage.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.demo-stage.is-done {
  opacity: 0.88;
}

.demo-stage__head {
  margin-bottom: 16px;
}

.demo-stage__step {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}

.demo-stage__step--danger {
  color: var(--danger);
}

.demo-stage__title {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--text);
}

/* Dane ogłoszenia */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notice-grid__item {
  padding: 14px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice-grid__item dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.notice-grid__item dd {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}

/* Duże, czytelne cytaty i numery stron */
.demo-quotes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.quote-card {
  padding: 16px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-card--danger {
  border-color: var(--danger);
}

.quote-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quote-card__topic {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.quote-card__topic--danger {
  color: var(--danger);
}

.quote-card__cite {
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background-color: var(--card);
  border: 1px solid var(--line);
  color: var(--accent);
}

.quote-card__cite--danger {
  border-color: var(--danger);
  color: var(--danger);
}

.quote-card__body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

/* Rozbieżność OPZ vs przedmiar */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-quote {
  padding: 16px;
  background-color: var(--bg);
  border: 1px solid var(--danger);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
}

.doc-quote__source {
  display: inline-block;
  font-style: normal;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 8px;
}

.doc-quote__text {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

/* Gotowe pytanie (art. 135 Pzp) */
.question-draft {
  padding: 16px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.question-draft__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.question-draft__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.question-draft__ref {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.question-draft__body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

/* Przedział ceny w demo */
.valuation-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.valuation-bar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.valuation-bar__label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.valuation-bar__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.valuation-bar__median {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.valuation-bar__fit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Przyciski dokumentów (modal) */
.docs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.doc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.doc-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.doc-btn__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-btn__name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.doc-btn__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc-btn__state {
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.docs-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- 4. Jak działa (4 etapy) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card:hover {
  border-color: var(--accent);
}

.step-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card__icon svg {
  width: 22px;
  height: 22px;
}

.step-card__title {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--text);
}

.step-card__desc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ---------- 5. Pierwszy segment wdrożenia ---------- */
.segment-box {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.segment-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-chip {
  padding: 8px 14px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- 6. Wycena i dane ---------- */
.pricing-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.pricing-card__title {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--text);
}

.pricing-card__lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  width: 100%;
}

.pricing-example {
  width: 100%;
  padding: 16px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-example__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pricing-example__label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-example__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.pricing-example__basis {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-rules {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-rules strong {
  color: var(--text);
}

/* ---------- 7. Bezpieczeństwo ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.security-card:hover {
  border-color: var(--accent);
}

.security-card__title {
  font-size: var(--h3-size);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.security-card__desc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ---------- 8. Końcowe CTA ---------- */
.section--cta {
  border-bottom: 1px solid var(--line);
}

.cta-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card__title {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.cta-card__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 22px;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-card__hint {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Stopka ---------- */
.site-footer {
  padding: 32px 0;
  background-color: var(--bg-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer__sep {
  color: var(--line);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

/* ---------- Okno modalne (podgląd dokumentu) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background-color: var(--backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.modal__sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal__close {
  flex-shrink: 0;
}

.modal__body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-preview-sheet {
  padding: 18px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-preview-sheet__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.doc-preview-sheet__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.doc-preview-sheet__key {
  color: var(--text-muted);
}

.doc-preview-sheet__val {
  font-weight: 700;
  color: var(--text);
}

.doc-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.doc-preview-table th,
.doc-preview-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.doc-preview-table th {
  color: var(--text-muted);
  font-weight: 700;
}

.doc-preview-table td {
  color: var(--text);
}

/* ---------- Responsywność: tablet ---------- */
@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Responsywność: telefon (od 360 px) ---------- */
@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .site-header__cta {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background-color: var(--card);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__login {
    padding-left: 0;
    padding-top: 10px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding: 32px 0 40px;
  }

  .section {
    padding: 48px 0;
  }

  /* Uproszczony, czytelny podgląd interfejsu na telefonie */
  .ui-window__grid,
  .steps-grid,
  .demo-stepper,
  .notice-grid,
  .quotes-grid,
  .valuation-bar,
  .docs-row,
  .pricing-layout,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .demo-stage,
  .step-card,
  .pricing-card,
  .security-card,
  .segment-box {
    padding: 18px;
  }

  .cta-card {
    padding: 32px 18px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal__header,
  .modal__body {
    padding: 16px;
  }
}

/* Wyłączenie animacji przy prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-card,
  .ui-window {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Warstwa głębi i ruchu (17.11.2026) — te same kolory i teksty, więcej życia:
   scena hero (siatka planu, poświata, ziarno), marker w nagłówku, pochylenie okna sprawy
   za kursorem, pływające etykiety, pas faktów z licznikami, taśma źródeł, oś czasu etapów
   wypełniana przewijaniem, wykres rozkładu cen, światło za kursorem na kartach, obracająca się
   ramka zaproszenia. Wszystko wyłączone przy prefers-reduced-motion (stan końcowy).
   ========================================================================== */

:root {
  --accent-glow: rgba(163, 230, 53, 0.18);
  --accent-line: rgba(163, 230, 53, 0.45);
  --grid-line: rgba(236, 238, 241, 0.045);
}

/* Ziarno na całej stronie — usuwa „płaskość” jednolitego tła */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Scena hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  filter: blur(10px);
}

/* Marker pod końcem nagłówka */
.hero__mark {
  background-image: linear-gradient(transparent 62%, rgba(163, 230, 53, 0.28) 62%, rgba(163, 230, 53, 0.28) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: mark-sweep 1.1s 0.5s cubic-bezier(.2,.8,.2,1) forwards;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}
@keyframes mark-sweep { to { background-size: 100% 100%; } }

/* --- Pas faktów i taśma ---------------------------------------------------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 28, 31, 0.6), rgba(15, 16, 18, 0.2));
  overflow: hidden;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact {
  padding: 34px 24px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.fact:first-child { border-left: 0; }
.fact__num {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fact:nth-child(odd) .fact__num { color: var(--accent); }
.fact__label { color: var(--text-muted); font-size: 0.92rem; line-height: 1.4; }
.segment-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.ticker {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; gap: 44px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track span {
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 44px;
}
.ticker__track span::after { content: '◆'; color: var(--accent); font-size: 0.55rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Oś czasu „Jak działa” ------------------------------------------------- */
.steps-grid--timeline { position: relative; padding-top: 28px; }
.steps-line {
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.steps-line__fill {
  height: 100%;
  width: calc(var(--steps-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), rgba(163, 230, 53, 0.4));
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.15s linear;
}
.step-card { position: relative; overflow: hidden; }
.step-card__num {
  position: absolute; right: 14px; top: 6px;
  font-size: 3.6rem; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 238, 241, 0.14);
  letter-spacing: -0.04em;
  transition: -webkit-text-stroke-color 0.3s;
  pointer-events: none;
}
.step-card.is-lit { border-color: var(--accent-line); }
.step-card.is-lit .step-card__num { -webkit-text-stroke-color: var(--accent-line); }
.step-card.is-lit .step-card__icon { color: var(--accent-ink); background: var(--accent); }
.step-card__icon { transition: background 0.3s, color 0.3s; }

/* --- Światło za kursorem na kartach --------------------------------------- */
.step-card, .security-card, .pricing-card {
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(163, 230, 53, 0.08), transparent 45%);
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover, .security-card:hover, .pricing-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.security-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.security-card__icon svg { width: 22px; height: 22px; }

/* --- Wykres rozkładu cen: szybki skan od lewej do prawej odsłania słupki i dane --------- */
.dist { margin: 6px 0 18px; }
.dist__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.dist__tag { font: 600 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.dist__plot { position: relative; }
.dist__svg { width: 100%; height: 210px; display: block; overflow: visible; clip-path: inset(0 100% 0 0); }
.dist.is-visible .dist__svg { animation: dist-reveal 1.1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes dist-reveal { to { clip-path: inset(0 0 0 0); } }
.dist__grid { stroke: rgba(236, 238, 241, 0.05); }
.dist__band { fill: var(--accent-soft); stroke: var(--accent-line); stroke-dasharray: 4 4; }
.dist__bar { fill: rgba(236, 238, 241, 0.2); transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.dist__bar.is-in { fill: var(--accent); }
.dist.is-visible .dist__bar { transform: scaleY(1); }
.dist__median { stroke: var(--text); stroke-width: 2; stroke-dasharray: 3 3; }
.dist__estimate { stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 1 4; stroke-linecap: round; }
.dist__axis { stroke: var(--line); }
.dist__tick { fill: var(--text-muted); font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dist__label { font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: 0; transition: opacity 0.3s ease; }
.dist__label--band { fill: var(--accent); }
.dist__label--median { fill: var(--text); }
.dist__label--estimate { fill: var(--text-muted); }
.dist.is-visible .dist__label { opacity: 1; transition-delay: calc(var(--lx) / 520 * 1.1s + 0.15s); }
/* Wiązka skanowania (pionowa), przebiega raz od lewej do prawej */
.dist__beam {
  position: absolute; top: 0; bottom: 18px; left: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px rgba(163, 230, 53, 0.6), -40px 0 60px -10px rgba(163, 230, 53, 0.25);
  opacity: 0;
  pointer-events: none;
}
.dist.is-visible .dist__beam { animation: dist-beam 1.1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes dist-beam { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.dist__legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.dist__key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.dist__key--band { background: var(--accent-soft); border: 1px dashed var(--accent-line); }
.dist__key--median { width: 14px; height: 0; border-top: 2px dashed var(--text); margin-left: 8px; }
.dist__key--estimate { width: 14px; height: 0; border-top: 2px dotted var(--text-muted); margin-left: 8px; }
@media (prefers-reduced-motion: reduce) {
  .dist__svg { clip-path: none; animation: none !important; }
  .dist__beam { display: none; }
  .dist__bar { transform: scaleY(1); transition: none; }
  .dist__label { opacity: 1; transition: none; }
}

/* --- Zaproszenie z obracającą się ramką ----------------------------------- */
.cta-card--glow { position: relative; isolation: isolate; border-color: transparent; }
.cta-card--glow::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0deg, var(--accent) 60deg, transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cta-spin 6s linear infinite;
  z-index: -1;
}
.cta-card--glow::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at 50% 0%, var(--accent-glow), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.cta-card--glow .cta-card__title { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; }
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes cta-spin { to { --cta-angle: 360deg; } }

/* --- Telefon ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact { border-top: 1px solid var(--line); padding: 22px 16px; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .steps-line { display: none; }
  .steps-grid--timeline { padding-top: 0; }
  .hero__glow { width: 420px; height: 420px; right: -180px; top: -120px; }
}

/* --- Bez ruchu ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .cta-card--glow::before { animation: none !important; }
  .hero__mark { animation: none; background-size: 100% 100%; }
  .dist__bar { transform: scaleY(1); transition: none; }
  .step-card, .security-card, .pricing-card { transition: none; }
  .step-card:hover, .security-card:hover, .pricing-card:hover { transform: none; }
}

/* Segment: tło z cienkich linii, chipy wchodzą po kolei i reagują na kursor */
.segment-box { position: relative; overflow: hidden; isolation: isolate; }
.segment-box::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(500px circle at 100% 0%, var(--accent-glow), transparent 60%),
    repeating-linear-gradient(135deg, var(--grid-line) 0 1px, transparent 1px 22px);
}
.segment-chip { transition: border-color 0.25s, color 0.25s, transform 0.25s, background 0.25s; }
.segment-chip:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }
.reveal .segment-chip { opacity: 0; transform: translateY(8px); }
.reveal.is-visible .segment-chip { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s, border-color 0.25s, color 0.25s, background 0.25s; }
.reveal.is-visible .segment-chip:nth-child(2) { transition-delay: 0.05s; }
.reveal.is-visible .segment-chip:nth-child(3) { transition-delay: 0.1s; }
.reveal.is-visible .segment-chip:nth-child(4) { transition-delay: 0.15s; }
.reveal.is-visible .segment-chip:nth-child(5) { transition-delay: 0.2s; }
.reveal.is-visible .segment-chip:nth-child(6) { transition-delay: 0.25s; }
.reveal.is-visible .segment-chip:nth-child(7) { transition-delay: 0.3s; }
.reveal.is-visible .segment-chip:nth-child(8) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal .segment-chip { opacity: 1; transform: none; }
}


/* ==========================================================================
   Animacja hero (17.11.2026, wersja 3): wiązka czyta po kolei SWZ → OPZ → przedmiar.
   Z każdego dokumentu „wypadają” jego wyniki (lecąca etykieta → pozycja wyniku zapala się),
   przeczytana kartka odlatuje, a na wierzch wchodzi następna. Cykl 15 s:
   SWZ 0–30% · zmiana 30–34% · OPZ 34–63% · zmiana 63–67% · przedmiar 67–93% · powrót 93–100%.
   Przy prefers-reduced-motion: stan końcowy bez ruchu.
   ========================================================================== */
.scan-hero {
  --cycle: 15s;
  --scan-h: 430px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 470px;
}
.scan-hero__stack { position: relative; height: var(--scan-h); }

.doc {
  position: absolute; inset: 0;
  overflow: hidden;
  padding: 22px 22px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1d2023, #17191c);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  animation: var(--cycle) cubic-bezier(.55,.05,.3,1) infinite;
}
.doc--a { animation-name: card-a; }
.doc--b { animation-name: card-b; }
.doc--c { animation-name: card-c; }
/* Pozycje: przód (F), druga (B1), trzecia (B2), odlot (OUT) */
@keyframes card-a {
  0%, 30% { transform: none; opacity: 1; z-index: 3; }
  34% { transform: translate(-70px, 30px) rotate(-9deg); opacity: 0; z-index: 3; }
  34.2% { transform: translate(26px, -22px) rotate(4deg); opacity: 0; z-index: 1; }
  38%, 63% { transform: translate(26px, -22px) rotate(4deg); opacity: 0.4; z-index: 1; }
  67%, 93% { transform: translate(13px, -11px) rotate(2deg); opacity: 0.7; z-index: 2; }
  97%, 100% { transform: none; opacity: 1; z-index: 3; }
}
@keyframes card-b {
  0%, 30% { transform: translate(13px, -11px) rotate(2deg); opacity: 0.7; z-index: 2; }
  34%, 63% { transform: none; opacity: 1; z-index: 3; }
  67% { transform: translate(-70px, 30px) rotate(-9deg); opacity: 0; z-index: 3; }
  67.2% { transform: translate(26px, -22px) rotate(4deg); opacity: 0; z-index: 1; }
  71%, 93% { transform: translate(26px, -22px) rotate(4deg); opacity: 0.4; z-index: 1; }
  97%, 100% { transform: translate(13px, -11px) rotate(2deg); opacity: 0.7; z-index: 2; }
}
@keyframes card-c {
  0%, 30% { transform: translate(26px, -22px) rotate(4deg); opacity: 0.4; z-index: 1; }
  34%, 63% { transform: translate(13px, -11px) rotate(2deg); opacity: 0.7; z-index: 2; }
  67%, 93% { transform: none; opacity: 1; z-index: 3; }
  97% { transform: translate(-70px, 30px) rotate(-9deg); opacity: 0; z-index: 3; }
  97.2% { transform: translate(26px, -22px) rotate(4deg); opacity: 0; z-index: 1; }
  100% { transform: translate(26px, -22px) rotate(4deg); opacity: 0.4; z-index: 1; }
}

.doc__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc__name { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.doc__page { font-size: 0.75rem; color: var(--text-muted); }
.doc__body { display: flex; flex-direction: column; gap: 13px; }
.l { display: block; height: 9px; width: var(--w, 80%); border-radius: 4px; background: rgba(236, 238, 241, 0.1); }

.hit {
  position: relative;
  height: auto; width: fit-content; max-width: 100%;
  padding: 4px 8px; margin-left: -8px;
  font-size: 0.78rem; line-height: 1.35;
  color: transparent;
  background: rgba(236, 238, 241, 0.1);
  border-radius: 3px;
  white-space: nowrap;
  --hc: var(--accent);
  --hs: var(--accent-soft);
  animation: var(--cycle) steps(1, end) infinite;
}
.hit--risk { --hc: var(--danger); --hs: var(--danger-soft); }
/* Ramka detekcji: cztery narożniki (jak pole rozpoznanego tekstu) */
.hit::before {
  content: '';
  position: absolute; inset: -5px -6px;
  background:
    linear-gradient(var(--hc), var(--hc)) top left / 10px 2px,
    linear-gradient(var(--hc), var(--hc)) top left / 2px 10px,
    linear-gradient(var(--hc), var(--hc)) top right / 10px 2px,
    linear-gradient(var(--hc), var(--hc)) top right / 2px 10px,
    linear-gradient(var(--hc), var(--hc)) bottom left / 10px 2px,
    linear-gradient(var(--hc), var(--hc)) bottom left / 2px 10px,
    linear-gradient(var(--hc), var(--hc)) bottom right / 10px 2px,
    linear-gradient(var(--hc), var(--hc)) bottom right / 2px 10px;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.25);
  animation: inherit;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}
/* Znacznik źródła czcionką maszynową */
.hit::after {
  content: attr(data-tag);
  position: absolute; left: -6px; bottom: calc(100% + 6px);
  font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--hc);
  white-space: nowrap;
  opacity: 0;
  animation: inherit;
}
.hit--a1 { animation-name: hit-a1; }
.hit--a1::before { animation-name: box-a1; }
.hit--a1::after { animation-name: tag-a1; }
@keyframes hit-a1 { 0%, 9% { color: transparent; background: rgba(236,238,241,.1); } 9.6% { color: var(--hc); background: var(--hs); } 10.2% { color: transparent; background: rgba(236,238,241,.1); } 10.8%, 96% { color: var(--text); background: var(--hs); } 100% { color: transparent; background: rgba(236,238,241,.1); } }
@keyframes box-a1 { 0%, 9% { opacity: 0; transform: scale(1.25); } 10.5%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes tag-a1 { 0%, 10% { opacity: 0; } 10.4% { opacity: 1; } 10.7% { opacity: .3; } 11%, 96% { opacity: 1; } 100% { opacity: 0; } }
.hit--a2 { animation-name: hit-a2; }
.hit--a2::before { animation-name: box-a2; }
.hit--a2::after { animation-name: tag-a2; }
@keyframes hit-a2 { 0%, 18% { color: transparent; background: rgba(236,238,241,.1); } 18.6% { color: var(--hc); background: var(--hs); } 19.2% { color: transparent; background: rgba(236,238,241,.1); } 19.8%, 96% { color: var(--text); background: var(--hs); } 100% { color: transparent; background: rgba(236,238,241,.1); } }
@keyframes box-a2 { 0%, 18% { opacity: 0; transform: scale(1.25); } 19.5%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes tag-a2 { 0%, 19% { opacity: 0; } 19.4% { opacity: 1; } 19.7% { opacity: .3; } 20%, 96% { opacity: 1; } 100% { opacity: 0; } }
.hit--b1 { animation-name: hit-b1; }
.hit--b1::before { animation-name: box-b1; }
.hit--b1::after { animation-name: tag-b1; }
@keyframes hit-b1 { 0%, 46% { color: transparent; background: rgba(236,238,241,.1); } 46.6% { color: var(--hc); background: var(--hs); } 47.2% { color: transparent; background: rgba(236,238,241,.1); } 47.8%, 96% { color: var(--text); background: var(--hs); } 100% { color: transparent; background: rgba(236,238,241,.1); } }
@keyframes box-b1 { 0%, 46% { opacity: 0; transform: scale(1.25); } 47.5%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes tag-b1 { 0%, 47% { opacity: 0; } 47.4% { opacity: 1; } 47.7% { opacity: .3; } 48%, 96% { opacity: 1; } 100% { opacity: 0; } }
.hit--c1 { animation-name: hit-c1; }
.hit--c1::before { animation-name: box-c1; }
.hit--c1::after { animation-name: tag-c1; }
@keyframes hit-c1 { 0%, 73% { color: transparent; background: rgba(236,238,241,.1); } 73.6% { color: var(--hc); background: var(--hs); } 74.2% { color: transparent; background: rgba(236,238,241,.1); } 74.8%, 96% { color: var(--text); background: var(--hs); } 100% { color: transparent; background: rgba(236,238,241,.1); } }
@keyframes box-c1 { 0%, 73% { opacity: 0; transform: scale(1.25); } 74.5%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes tag-c1 { 0%, 74% { opacity: 0; } 74.4% { opacity: 1; } 74.7% { opacity: .3; } 75%, 96% { opacity: 1; } 100% { opacity: 0; } }
.hit--c2 { animation-name: hit-c2; }
.hit--c2::before { animation-name: box-c2; }
.hit--c2::after { animation-name: tag-c2; }
@keyframes hit-c2 { 0%, 83% { color: transparent; background: rgba(236,238,241,.1); } 83.6% { color: var(--hc); background: var(--hs); } 84.2% { color: transparent; background: rgba(236,238,241,.1); } 84.8%, 96% { color: var(--text); background: var(--hs); } 100% { color: transparent; background: rgba(236,238,241,.1); } }
@keyframes box-c2 { 0%, 83% { opacity: 0; transform: scale(1.25); } 84.5%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes tag-c2 { 0%, 84% { opacity: 0; } 84.4% { opacity: 1; } 84.7% { opacity: .3; } 85%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Wiązki: każda w czasie „swojego” dokumentu na wierzchu */
.doc__beam {
  /* Jedna linia z poświatą wokół niej — bez smugi nad linią i bez cienia przesuniętego w dół (wyglądały jak druga poświata). */
  position: absolute; left: 0; right: 0; top: 62px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(163, 230, 53, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: var(--cycle) linear infinite;
}
.doc__beam--a { animation-name: beam-a; }
.doc__beam--b { animation-name: beam-b; }
.doc__beam--c { animation-name: beam-c; }
@keyframes beam-a { 0% { transform: translateY(-70px); opacity: 0; } 2% { opacity: 1; } 27% { transform: translateY(var(--scan-h)); opacity: 1; } 29%, 100% { transform: translateY(var(--scan-h)); opacity: 0; } }
@keyframes beam-b { 0%, 35% { transform: translateY(-70px); opacity: 0; } 37% { opacity: 1; } 60% { transform: translateY(var(--scan-h)); opacity: 1; } 62%, 100% { transform: translateY(var(--scan-h)); opacity: 0; } }
@keyframes beam-c { 0%, 68% { transform: translateY(-70px); opacity: 0; } 70% { opacity: 1; } 91% { transform: translateY(var(--scan-h)); opacity: 1; } 93%, 100% { transform: translateY(var(--scan-h)); opacity: 0; } }

/* Lot: mini-karta wyniku odrywa się od trafionego wiersza i leci łukiem do swojej pozycji */
.fly {
  position: absolute; z-index: 5;
  left: 8%; top: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text);
  background: #202326;
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9), 0 0 28px -6px rgba(163, 230, 53, 0.65);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: var(--cycle) cubic-bezier(.45,0,.25,1) infinite;
}
.fly b { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fly--risk { border-color: rgba(239, 68, 68, 0.5); border-left-color: var(--danger); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9), 0 0 28px -6px rgba(239, 68, 68, 0.6); }
.fly--risk b { color: var(--danger); }
.fly--1 { animation-name: fly-1; }
@keyframes fly-1 { 0%, 11.6% { opacity: 0; left: 8%; top: 136px; transform: scale(.6); } 12.4% { opacity: 1; left: 9%; top: 128px; transform: scale(1.04); } 14.4% { opacity: 1; left: 34%; top: 36px; transform: scale(1.08) rotate(-2deg); } 16.2% { opacity: 1; left: 58%; top: 82px; transform: scale(1); } 16.8%, 100% { opacity: 0; left: 58%; top: 82px; transform: scale(.96); } }
.fly--2 { animation-name: fly-2; }
@keyframes fly-2 { 0%, 20.6% { opacity: 0; left: 8%; top: 218px; transform: scale(.6); } 21.4% { opacity: 1; left: 9%; top: 210px; transform: scale(1.04); } 23.4% { opacity: 1; left: 34%; top: 115px; transform: scale(1.08) rotate(-2deg); } 25.2% { opacity: 1; left: 58%; top: 161px; transform: scale(1); } 25.8%, 100% { opacity: 0; left: 58%; top: 161px; transform: scale(.96); } }
.fly--3 { animation-name: fly-3; }
@keyframes fly-3 { 0%, 48.6% { opacity: 0; left: 8%; top: 156px; transform: scale(.6); } 49.4% { opacity: 1; left: 9%; top: 148px; transform: scale(1.04); } 51.4% { opacity: 1; left: 34%; top: 110px; transform: scale(1.08) rotate(-2deg); } 53.2% { opacity: 1; left: 58%; top: 239px; transform: scale(1); } 53.8%, 100% { opacity: 0; left: 58%; top: 239px; transform: scale(.96); } }
.fly--4 { animation-name: fly-4; }
@keyframes fly-4 { 0%, 75.6% { opacity: 0; left: 8%; top: 113px; transform: scale(.6); } 76.4% { opacity: 1; left: 9%; top: 105px; transform: scale(1.04); } 78.4% { opacity: 1; left: 34%; top: 67px; transform: scale(1.08) rotate(-2deg); } 80.2% { opacity: 1; left: 58%; top: 317px; transform: scale(1); } 80.8%, 100% { opacity: 0; left: 58%; top: 317px; transform: scale(.96); } }
.fly--5 { animation-name: fly-5; }
@keyframes fly-5 { 0%, 85.6% { opacity: 0; left: 8%; top: 217px; transform: scale(.6); } 86.4% { opacity: 1; left: 9%; top: 209px; transform: scale(1.04); } 88.4% { opacity: 1; left: 34%; top: 171px; transform: scale(1.08) rotate(-2deg); } 90.2% { opacity: 1; left: 58%; top: 396px; transform: scale(1); } 90.8%, 100% { opacity: 0; left: 58%; top: 396px; transform: scale(.96); } }

/* Wynik analizy: pozycja pojawia się dopiero, gdy doleci do niej mini-karta */
.scan-hero__result { list-style: none; display: flex; flex-direction: column; gap: 10px; position: relative; }
.scan-hero__result::before {
  content: 'Wynik analizy';
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.res {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  opacity: 0;
  animation: var(--cycle) cubic-bezier(.2,.8,.2,1) infinite;
}
.res__k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.res__k em { font-style: normal; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--text-muted); opacity: 0.8; margin-left: 6px; }
.res__v { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.res--risk { border-left-color: var(--danger); }
.res--risk .res__k { color: var(--danger); }
.res--accent { background: linear-gradient(90deg, var(--accent-soft), var(--card) 70%); }
.res--accent .res__v { color: var(--accent); }
.res--1 { animation-name: res-1; }
@keyframes res-1 { 0%, 16.2% { opacity: 0; transform: none; box-shadow: none; } 16.599999999999998% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 1px rgba(163,230,53,.6), 0 0 30px -4px rgba(163,230,53,.6); } 19.2%, 96% { opacity: 1; transform: none; box-shadow: none; } 100% { opacity: 0; } }
.res--2 { animation-name: res-2; }
@keyframes res-2 { 0%, 25.2% { opacity: 0; transform: none; box-shadow: none; } 25.599999999999998% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 1px rgba(239,68,68,.55), 0 0 30px -4px rgba(239,68,68,.55); } 28.2%, 96% { opacity: 1; transform: none; box-shadow: none; } 100% { opacity: 0; } }
.res--3 { animation-name: res-3; }
@keyframes res-3 { 0%, 53.2% { opacity: 0; transform: none; box-shadow: none; } 53.6% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 1px rgba(163,230,53,.6), 0 0 30px -4px rgba(163,230,53,.6); } 56.2%, 96% { opacity: 1; transform: none; box-shadow: none; } 100% { opacity: 0; } }
.res--4 { animation-name: res-4; }
@keyframes res-4 { 0%, 80.2% { opacity: 0; transform: none; box-shadow: none; } 80.60000000000001% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 1px rgba(239,68,68,.55), 0 0 30px -4px rgba(239,68,68,.55); } 83.2%, 96% { opacity: 1; transform: none; box-shadow: none; } 100% { opacity: 0; } }
.res--5 { animation-name: res-5; }
@keyframes res-5 { 0%, 90.2% { opacity: 0; transform: none; box-shadow: none; } 90.60000000000001% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 1px rgba(163,230,53,.6), 0 0 30px -4px rgba(163,230,53,.6); } 93.2%, 96% { opacity: 1; transform: none; box-shadow: none; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .scan-hero { --scan-h: 330px; grid-template-columns: 1fr; min-height: 0; margin-top: 12px; }
  .fly { display: none; }
  .res { padding: 9px 12px; }
  .res__v { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .doc, .doc__beam, .hit, .hit::before, .hit::after, .res, .fly { animation: none; }
  .hit--a1::before, .hit--a2::before, .hit--a1::after, .hit--a2::after { opacity: 1; transform: none; }
  .doc__beam, .fly { display: none; }
  .doc--a { transform: none; opacity: 1; z-index: 3; }
  .doc--b { transform: translate(13px, -11px) rotate(2deg); opacity: 0.7; z-index: 2; }
  .doc--c { transform: translate(26px, -22px) rotate(4deg); opacity: 0.4; z-index: 1; }
  .hit--a1 { color: var(--text); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
  .hit--a2 { color: var(--text); background: var(--danger-soft); box-shadow: inset 2px 0 0 var(--danger); }
  .res { opacity: 1; filter: none; transform: none; }
}

/* ==========================================================================
   Przykład krok po kroku jako animacja w jednej ramce (17.11.2026, wersja 2 — techniczna):
   wszystkie kroki w tym samym miejscu (ramka = najwyższy krok), widać tylko aktywny.
   Zmiana kroku: stary zwija się do poziomej linii i gaśnie, nowy rozwija się z linii,
   a po nim przechodzi wiązka skanowania (jak w hero). Bez przewijania strony.
   ========================================================================== */
.demo-board { display: grid; gap: 0; position: relative; }
.demo-board > .demo-stage {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(50% 0 50% 0);
  transition:
    clip-path 0.22s cubic-bezier(.7,0,.84,0),
    opacity 0.12s linear 0.16s,
    visibility 0s linear 0.3s;
  border-color: var(--accent);
}
.demo-board > .demo-stage.is-active {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 0.5s cubic-bezier(.16,1,.3,1) 0.28s,
    opacity 0s linear 0.28s,
    visibility 0s linear 0.28s;
  box-shadow: 0 0 0 1px var(--accent-line), 0 30px 70px -40px rgba(163, 230, 53, 0.35);
}
/* Wiązka skanowania po wejściu kroku */
.demo-board > .demo-stage::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(163, 230, 53, 0.12) 70%, rgba(163, 230, 53, 0.2));
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 6px 22px -4px rgba(163, 230, 53, 0.5);
  opacity: 0;
  pointer-events: none;
}
.demo-board > .demo-stage.is-active::after { animation: stage-scan 0.9s cubic-bezier(.45,.05,.55,.95) 0.5s both; }
@keyframes stage-scan {
  0% { transform: translateY(-60px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(var(--stage-h, 420px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-board > .demo-stage,
  .demo-board > .demo-stage.is-active { transition: none; clip-path: none; }
  .demo-board > .demo-stage.is-active::after { animation: none; }
}

/* Wycena i dane w jednym poziomym bloku (17.11.2026): wykres na całą szerokość i wyższy,
   pod nim przykład; zasady interpretacji w trzech kolumnach pod spodem. */
.pricing-layout { grid-template-columns: 1fr; }
.pricing-layout .pricing-card { align-items: stretch; }
.pricing-layout .dist { width: 100%; }
.pricing-layout .dist__svg { height: 300px; }
.pricing-layout .pricing-card > .section-tag { align-self: flex-start; }
.pricing-layout .pricing-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 6px 28px;
  align-items: baseline;
}
.pricing-layout .pricing-example__row { display: flex; flex-direction: column; gap: 4px; }
.pricing-layout .pricing-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 900px) {
  .pricing-layout .dist__svg { height: 220px; }
  .pricing-layout .pricing-example,
  .pricing-layout .pricing-rules { grid-template-columns: 1fr; }
}

/* ============================================================
   Warstwa taktyczna (22.11) — strona w tym samym języku co aplikacja Agenta:
   Inter + czcionka maszynowa w etykietach i liczbach, zaokrąglenia 4 px, narożniki ramek,
   siatka 32 px w tle, ciemniejsze tło (#0c0c0f), zieleń „Składamy” rgb(0 255 94), czerwień „Nie składamy”.
   Zasady: docs/agent-design-rules.md. Animacje krótkie, wyłączone przy prefers-reduced-motion.
   ============================================================ */
:root {
  --bg-deep: #0a0a0d;
  --bg: #0c0c0f;
  --card: #16161b;
  --card-2: #1d1d23;
  --line: #2a2a31;
  --text-muted: #a9b0b8;
  --success: #00ff5e;
  --success-soft: rgba(0, 255, 94, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --warning: #f59e0b;
  --radius: 4px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg-header: rgba(12, 12, 15, 0.92);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(42, 42, 49, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 49, 0.32) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Typografia: nagłówki Inter 600 z ciasnym światłem, etykiety maszynowe wersalikami */
.hero__title, .section__title, .cta-card__title { font-weight: 600; letter-spacing: -0.025em; }
.hero__eyebrow, .tac-tag, .tac-label, .section-tag, .demo-stage__step, .quote-card__cite, .doc-quote__source,
.notice-grid__item dt, .valuation-bar__label, .demo-stepper__label, .question-draft__label, .question-draft__ref,
.hero__sources, .ticker__track span, .docs-download__meta, .res__k, .doc__name, .doc__page {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--accent); }
.hero__sources { font-size: 11px; color: var(--text-muted); }
.quote-card__cite, .doc-quote__source, .question-draft__ref { font-size: 10.5px; letter-spacing: 0.08em; }
.notice-grid__item dt, .valuation-bar__label { font-size: 10.5px; color: var(--text-muted); }
.demo-stepper__label { font-size: 11px; letter-spacing: 0.12em; }
.doc__name, .doc__page { letter-spacing: 0.04em; text-transform: none; }

.tac-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; font-size: 11px; color: var(--accent);
}
.tac-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); }
.tac-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.18em; }
.tac-label--accent { color: var(--accent); }
.tac-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); }
.tac-num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tac-link { color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tac-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-tag { border-radius: 2px; font-size: 10.5px; }

/* Liczby w faktach — czcionką maszynową jak HUD w aplikacji */
.fact__num { font-family: var(--mono); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Narożniki ramki — ten sam rysunek co .card w aplikacji (8 gradientów, bez dodatkowych elementów) */
.tac-frame, .step-card, .security-card, .demo-board .demo-stage.is-active, .segment-box, .cta-card, .modal {
  --tac-c: rgba(163, 230, 53, 0.6);
  background-image:
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c));
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat;
}
.tac-frame { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* Przyciski: 4 px, główny z taktycznym hoverem (narożniki zjeżdżają z zewnątrz + skan) */
.btn { border-radius: var(--radius); position: relative; isolation: isolate; }
.btn--primary { font-weight: 600; }
.btn--primary::before {
  content: ''; position: absolute; inset: -5px; pointer-events: none; opacity: 0;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 2px, linear-gradient(var(--c), var(--c)) top left / 2px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 2px, linear-gradient(var(--c), var(--c)) top right / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px 9px;
  background-repeat: no-repeat;
  transform: scale(1.12);
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.btn--primary { overflow: visible; }
.btn--primary:hover::before, .btn--primary:focus-visible::before { opacity: 1; transform: none; }
.btn--primary {
  background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0;
}
.btn--primary:hover { animation: tac-btn-sweep .55s cubic-bezier(.4,0,.2,1); }
@keyframes tac-btn-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.btn--primary:hover { transform: none; }
@keyframes tac-sweep { from { left: -40%; } to { left: 100%; } }

/* Kroki przykładu — prostokątne znaczniki */
.demo-stepper__btn { border-radius: var(--radius); }
.demo-stepper__num { border-radius: 2px; font-family: var(--mono); }
.segment-chip { border-radius: 2px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* Pobranie kompletu dokumentów w kroku 7 */
.docs-download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.docs-download__meta { font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.1em; }

/* ---------- Cena: celownik ---------- */
.scope { padding: 0; overflow: hidden; }
.scope__hud {
  display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 0;
  background: rgba(163, 230, 53, 0.07); border-bottom: 1px solid var(--line);
}
.scope__hud > * { padding: 22px 24px; }
.scope__hud > * + * { border-left: 1px dashed rgba(163, 230, 53, 0.3); }
.scope__price { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--text); }
.scope__price small { font-family: var(--mono); font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.scope__safer { border-top: 1px dashed rgba(163, 230, 53, 0.45); padding-top: 10px; }
.scope__safer p { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.scope__safer b { color: var(--text); font-size: 15px; }
.scope__plus { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.scope__metric { display: flex; flex-direction: column; gap: 8px; }
.scope__metric b { font-size: 1.5rem; font-weight: 600; color: var(--text); line-height: 1.1; }
.scope__hint { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.scope__meter { display: block; height: 7px; width: 100%; max-width: 140px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 7px); position: relative; }
.scope__meter i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 7px); }

.scope__chart { margin: 0; padding: 20px 24px 18px; position: relative; }
.scope__chart figcaption { margin-bottom: 10px; }
.scope__chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--mono); }
.sc-band { fill: rgba(163, 230, 53, 0.08); }
.scope__chart svg line, .scope__chart svg path, .scope__chart svg rect { vector-effect: non-scaling-stroke; }
.sc-hatch { stroke: rgba(248, 113, 113, 0.35); stroke-width: 2; }
.sc-loss { stroke: var(--danger); stroke-width: 1.5; }
.sc-grid line { stroke: rgba(255, 255, 255, 0.06); }
.sc-ticks text { fill: var(--text-muted); font-size: 11px; }
.sc-band-label { fill: var(--accent); font-size: 10.5px; letter-spacing: 0.14em; }
.sc-loss-tag rect { fill: var(--bg); }
.sc-loss-tag text { fill: var(--danger); font-size: 10px; letter-spacing: 0.12em; }
.sc-best-band { fill: #b4bac1; }
.sc-best-label { fill: var(--text-muted); font-size: 9.5px; letter-spacing: 0.12em; }
.sc-win { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.sc-profit { fill: none; stroke: #8b9099; stroke-width: 1.5; stroke-dasharray: 5 5; }
.sc-guide { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.sc-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.sc-safer rect { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.sc-safer-tag rect { fill: var(--bg); stroke: #4b4f57; }
.sc-safer-tag text { fill: var(--text); font-size: 11px; }
.sc-reticle path, .sc-reticle line { fill: none; stroke: var(--accent); stroke-width: 2; }
.sc-reticle circle { fill: var(--accent); }
.sc-peak-tag rect { fill: var(--accent); }
.sc-peak-tag text { fill: var(--accent-ink); font-size: 12px; font-weight: 600; }
.scope__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.scope__legend li { display: inline-flex; align-items: center; gap: 8px; }
.k { display: inline-block; width: 18px; height: 2px; background: var(--accent); }
.k--profit { background: repeating-linear-gradient(90deg, #8b9099 0 4px, transparent 4px 7px); }
.k--best { height: 4px; background: #b4bac1; }
.k--safer { width: 8px; height: 8px; background: transparent; border: 2px solid var(--accent); transform: rotate(45deg); }
.k--band { width: 14px; height: 10px; background: rgba(163, 230, 53, 0.18); }
.k--loss { width: 14px; height: 10px; background: repeating-linear-gradient(45deg, rgba(248, 113, 113, 0.5) 0 2px, transparent 2px 5px); }

/* Odsłonięcie wykresu skanem od lewej (jak w aplikacji) */
.reveal .scope__chart svg { clip-path: inset(-40px 100% -40px -40px); }
.reveal.is-visible .scope__chart svg { animation: sc-reveal 1s cubic-bezier(.4,0,.2,1) .15s forwards; }
@keyframes sc-reveal { to { clip-path: inset(-40px -40px -40px -40px); } }

/* Drabina podstaw ceny */
.ladder { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.ladder__head p { margin-top: 10px; color: var(--text-muted); font-size: 14px; }
.ladder__list { list-style: none; display: grid; gap: 8px; }
.ladder__item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ladder__n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.ladder__name { font-size: 14.5px; }
.ladder__pct { font-size: 1.15rem; color: var(--text); }
.ladder__bar { grid-column: 2 / -1; height: 3px; background: var(--line); position: relative; }
.ladder__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .8s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal-card.is-visible .ladder__bar i { width: var(--v); }

/* ---------- Decyzja ---------- */
.decision { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.decision__panel { padding: 26px 24px; text-align: center; }
.decision__status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: 14px; color: var(--text-muted); }
.decision__kv b { color: var(--text); font-weight: 500; }
.decision__agent { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 600; }
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 2px; border: 1px solid; font-size: 12.5px; font-weight: 500; }
.pill--warning { color: var(--warning); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.12); }
.pill--success { color: var(--success); border-color: rgba(0, 255, 94, 0.45); background: var(--success-soft); }
.pill--accent { color: var(--accent); border-color: rgba(163, 230, 53, 0.5); background: var(--accent-soft); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.decision__note { margin: 6px auto 18px; max-width: 520px; padding: 12px 14px; text-align: left; font-size: 14px; color: var(--text-muted); background: rgba(245, 158, 11, 0.08); border-left: 2px solid var(--warning); }
.decision__note b { color: var(--text); font-weight: 600; }
.decision__label { display: block; margin-bottom: 10px; }
.decision__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tac-choice {
  --tac-tone: 0, 255, 94;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  cursor: default; transition: border-color .18s, background-color .18s, color .18s;
}
.tac-choice--danger { --tac-tone: 248, 113, 113; }
.tac-choice .sq { width: 9px; height: 9px; background: rgb(var(--tac-tone)); }
.tac-choice__tag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); padding: 1px 6px; font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); background: var(--card-2); }
.tac-choice > .tac-c { position: absolute; width: 10px; height: 10px; opacity: 0; transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s; }
.tac-choice > .tac-c.tl { left: 3px; top: 3px; border-left: 2px solid rgb(var(--tac-tone)); border-top: 2px solid rgb(var(--tac-tone)); transform: translate(-6px, -6px); }
.tac-choice > .tac-c.tr { right: 3px; top: 3px; border-right: 2px solid rgb(var(--tac-tone)); border-top: 2px solid rgb(var(--tac-tone)); transform: translate(6px, -6px); }
.tac-choice > .tac-c.bl { left: 3px; bottom: 3px; border-left: 2px solid rgb(var(--tac-tone)); border-bottom: 2px solid rgb(var(--tac-tone)); transform: translate(-6px, 6px); }
.tac-choice > .tac-c.br { right: 3px; bottom: 3px; border-right: 2px solid rgb(var(--tac-tone)); border-bottom: 2px solid rgb(var(--tac-tone)); transform: translate(6px, 6px); }
.tac-choice::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(var(--tac-tone), 0.22), transparent); pointer-events: none; }
.tac-choice:hover { border-color: rgba(var(--tac-tone), 0.55); background: rgba(var(--tac-tone), 0.1); color: rgb(var(--tac-tone)); }
.tac-choice:hover > .tac-c { opacity: 1; transform: none; }
.tac-choice:hover::after { animation: tac-sweep .55s cubic-bezier(.4,0,.2,1); }
.decision__points { list-style: none; display: grid; gap: 18px; }
.decision__points p { margin-top: 6px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Kontrast tekstu drugorzędnego i treści */
.section__sub, .step-card__desc, .security-card__desc { color: var(--text-muted); }
.cta-card .tac-tag { margin-bottom: 8px; }

@media (max-width: 960px) {
  .scope__hud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope__target { grid-column: 1 / -1; border-bottom: 1px dashed rgba(163, 230, 53, 0.3); }
  .scope__hud > .scope__metric:first-of-type { border-left: 0; }
  .ladder, .decision { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scope__hud > * { padding: 16px; }
  .scope__metric b { font-size: 1.2rem; }
  .scope__chart { padding: 16px 12px 14px; }
  .sc-ticks text { font-size: 30px; }
  .sc-ticks text:nth-child(2), .sc-ticks text:nth-child(4), .sc-ticks text:nth-child(n+6):nth-child(-n+10) { display: none; }
  .sc-band-label, .sc-loss-tag, .sc-best-label, .sc-safer-tag, .sc-peak-tag { display: none; }
  .decision__choices { grid-template-columns: 1fr; }
  .tac-choice { min-height: 54px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary::before, .tac-choice > .tac-c { transition: none; }
  .btn--primary:hover, .tac-choice:hover::after { animation: none; }
  .reveal .scope__chart svg, .reveal.is-visible .scope__chart svg { clip-path: none; animation: none; }
  .ladder__bar i { transition: none; width: var(--v); }
}

/* Jedna ramka (22.11): narożniki zamiast pełnej limonkowej obwódki — aktywny krok przykładu i hover kart
   mają zwykłą linię; akcent niosą wyłącznie narożniki (jak .card w aplikacji). */
.demo-stage.is-active,
.demo-board > .demo-stage.is-active { border-color: var(--line); box-shadow: 0 30px 70px -40px rgba(163, 230, 53, 0.25); }
.step-card:hover, .security-card:hover, .step-card.is-lit { border-color: #3a3a43; }
.cta-card--glow { border-color: var(--line); }
.cta-card--glow::before { display: none; }

/* Hover kroków przykładu i dokumentów (22.11): przebłysk od lewej do prawej + narożniki zjeżdżające z zewnątrz,
   ramka zostaje zwykła (akcent tylko w narożnikach i skanie) — ten sam ruch co przyciski decyzji w aplikacji. */
.demo-stepper__btn, .doc-btn { position: relative; overflow: hidden; isolation: isolate; }
.demo-stepper__btn::before, .doc-btn::before {
  content: ''; position: absolute; inset: 2px; pointer-events: none; opacity: 0; transform: scale(1.08);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 8px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 8px,
    linear-gradient(var(--c), var(--c)) top right / 8px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 8px,
    linear-gradient(var(--c), var(--c)) bottom left / 8px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 8px,
    linear-gradient(var(--c), var(--c)) bottom right / 8px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 8px;
  background-repeat: no-repeat;
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.demo-stepper__btn::after, .doc-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.22), transparent);
}
.demo-stepper__btn:hover, .doc-btn:hover { border-color: #3a3a43; transform: none; }
.demo-stepper__btn:hover::before, .doc-btn:hover::before,
.demo-stepper__btn:focus-visible::before, .doc-btn:focus-visible::before { opacity: 1; transform: none; }
.demo-stepper__btn:hover::after, .doc-btn:hover::after { animation: tac-row-sweep .6s cubic-bezier(.4,0,.2,1); }
@keyframes tac-row-sweep { from { left: -45%; } to { left: 100%; } }
/* Aktywny krok: narożniki na stałe, ramka zwykła (bez podwójnej obwódki) */
.demo-stepper__item.is-active .demo-stepper__btn { border-color: var(--line); }
.demo-stepper__item.is-active .demo-stepper__btn::before { opacity: 1; transform: none; }

/* Boks branż: wdrożone vs możliwe wdrożenia */
.segment-group + .segment-group { margin-top: 18px; }
.segment-group .tac-label { margin-bottom: 10px; }
.segment-chip--next { color: var(--text-muted); border-style: dashed; }

@media (prefers-reduced-motion: reduce) {
  .demo-stepper__btn::before, .doc-btn::before { transition: none; }
  .demo-stepper__btn:hover::after, .doc-btn:hover::after { animation: none; }
}
/* Przełączanie kroków: krok wychodzący i wchodzący bez pełnej limonkowej ramki — tylko linia + narożniki. */
.demo-board > .demo-stage, .demo-board > .demo-stage.is-done { border-color: var(--line); box-shadow: none; }

/* Cytaty w przykładzie (22.11) — jak [data-tech="quote"] w aplikacji: zwykła ramka, narożniki w kolorze znaczenia
   (limonka / czerwień przy ryzyku), jednorazowy skan od góry, gdy krok staje się aktywny; źródło jako znacznik maszynowy. */
.quote-card, .doc-quote, .question-draft { position: relative; overflow: hidden; border: 1px solid var(--line); --qt: 163, 230, 53; }
.quote-card--danger, .doc-quote { --qt: 248, 113, 113; border-color: var(--line); border-left-width: 1px; }
.quote-card::before, .doc-quote::before, .question-draft::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  --c: rgba(var(--qt), 0.85);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 9px;
  background-repeat: no-repeat;
}
.quote-card::after, .doc-quote::after, .question-draft::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent calc(100% - 18px), rgba(var(--qt), 0.18));
  border-bottom: 1.5px solid rgba(var(--qt), 0.9);
}
.demo-stage.is-active .quote-card::before, .demo-stage.is-active .doc-quote::before, .demo-stage.is-active .question-draft::before {
  animation: q-box .45s cubic-bezier(.2,.8,.2,1) .55s both;
}
.demo-stage.is-active .quote-card::after, .demo-stage.is-active .doc-quote::after, .demo-stage.is-active .question-draft::after {
  animation: q-scan .7s ease-in-out .65s both;
}
.demo-stage.is-active .quote-card:nth-child(2)::after, .demo-stage.is-active .doc-quote:nth-child(2)::after { animation-delay: .8s; }
.demo-stage.is-active .quote-card:nth-child(3)::after { animation-delay: .95s; }
@keyframes q-box { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes q-scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }

.quote-card__cite, .quote-card__cite--danger, .doc-quote__source {
  padding: 0; border: 0; background: none; border-radius: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: none;
  color: rgb(var(--qt));
}
.quote-card__cite--danger { color: var(--danger); }
.doc-quote__source { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .demo-stage.is-active .quote-card::before, .demo-stage.is-active .doc-quote::before, .demo-stage.is-active .question-draft::before,
  .demo-stage.is-active .quote-card::after, .demo-stage.is-active .doc-quote::after, .demo-stage.is-active .question-draft::after { animation: none; }
}

/* Ile to daje: 4 kafle z dużą liczbą i podstawą szacunku */
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.impact__item { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.impact__num { font-size: clamp(1.4rem, 1.9vw, 1.75rem); font-weight: 600; color: var(--text); line-height: 1.1; }
.impact__num i { font-style: normal; color: var(--accent); }
.impact__num--accent { color: var(--accent); }
.impact__label { font-size: 15px; line-height: 1.5; color: var(--text); }
.impact__basis { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-muted); }
@media (max-width: 1100px) { .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .impact { grid-template-columns: 1fr; } }

/* Celownik — warstwa interaktywna (krzyżyki za kursorem, cienkie etykiety) */
.scope__chart svg { cursor: cell; touch-action: pan-y; }
.sc-hover { opacity: 0; transition: opacity .15s; pointer-events: none; }
.scope__chart svg.is-hovering .sc-hover { opacity: 1; }
.scope__chart svg.is-hovering .sc-peak-tag, .scope__chart svg.is-hovering .sc-safer-tag { opacity: 0.25; }
.sc-hover-guide { stroke: rgba(236, 238, 241, 0.35); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.sc-hover-reticle path { fill: none; stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.sc-hover-reticle.is-win path { stroke: var(--accent); }
.sc-hover-reticle.is-win circle { fill: var(--accent); }
.sc-hover-reticle.is-profit path { stroke: #c9ced5; }
.sc-hover-reticle.is-profit circle { fill: #c9ced5; }
.sc-hover-reticle.is-loss path { stroke: var(--danger); }
.sc-hover-reticle.is-loss circle { fill: var(--danger); }
.sc-hover-label rect { fill: var(--bg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-hover-label text { font-variant-numeric: tabular-nums; }
.sc-hover-label.is-win rect { stroke: var(--accent); }
.sc-hover-label.is-win text { fill: var(--accent); }
.sc-hover-label.is-profit rect { stroke: #6b7079; }
.sc-hover-label.is-profit text { fill: var(--text); }
.sc-hover-label.is-loss rect { stroke: var(--danger); }
.sc-hover-label.is-loss text { fill: var(--danger); }
@media (prefers-reduced-motion: reduce) { .sc-hover { transition: none; } }
.impact__hl { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }

/* Nagłówek (22.11): „Zaloguj” jako przycisk — prezentację umawia hero i formularz na dole */
.site-header__login { padding: 8px 16px; font-size: 0.9rem; font-weight: 600; }
.site-header__login::before {
  content: ''; position: absolute; inset: -5px; pointer-events: none; opacity: 0; transform: scale(1.12);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 2px, linear-gradient(var(--c), var(--c)) top left / 2px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 2px, linear-gradient(var(--c), var(--c)) top right / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px 9px;
  background-repeat: no-repeat;
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.site-header__login:hover::before { opacity: 1; transform: none; }
@media (max-width: 720px) { .site-header__login { padding: 7px 12px; font-size: 0.84rem; } }

/* Nawigacja (22.11): etykiety maszynowe wersalikami, hover taktyczny — narożniki zjeżdżają z zewnątrz,
   przebłysk od lewej do prawej, tekst w akcencie; bieżąca sekcja / strona ma belkę akcentu pod spodem. */
.site-nav { gap: 6px; }
.site-nav__link {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 8px 12px; border-radius: 2px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); transition: color .18s;
}
.site-nav__link::before {
  content: ''; position: absolute; inset: 1px; pointer-events: none; opacity: 0; transform: scale(1.15);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) top right / 7px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 7px;
  background-repeat: no-repeat;
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.site-nav__link::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -50%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.2), transparent);
}
.site-nav__link:hover, .site-nav__link:focus-visible { color: var(--accent); }
.site-nav__link:hover::before, .site-nav__link:focus-visible::before { opacity: 1; transform: none; }
.site-nav__link:hover::after { animation: tac-row-sweep .55s cubic-bezier(.4,0,.2,1); }
.site-nav__link[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 900px) {
  .site-nav { gap: 4px; }
  .site-nav__link { padding: 12px; font-size: 12px; }
  .site-nav__link[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav__link::before { transition: none; }
  .site-nav__link:hover::after { animation: none; }
}

/* Formularz „zostaw e-mail” w końcowym CTA */
.cta-card__lead { margin: 10px auto 0; max-width: 520px; color: var(--text-muted); font-size: 16px; }
.lead-form { width: 100%; max-width: 560px; margin: 24px auto 0; text-align: left; }
.lead-form .tac-label { margin-bottom: 8px; }
.lead-form__row { display: flex; gap: 10px; }
.lead-form__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 15px/1 var(--mono); letter-spacing: 0.02em;
  transition: border-color .18s, box-shadow .18s;
}
.lead-form__input::placeholder { color: #5d626b; }
.lead-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.lead-form__input[aria-invalid="true"] { border-color: var(--danger); }
.lead-form .btn { height: 46px; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__status { min-height: 20px; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted); }
.lead-form__status.is-ok { color: var(--accent); }
.lead-form__status.is-error { color: var(--danger); }
.cta-card__hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .lead-form__row { flex-direction: column; } .lead-form .btn { width: 100%; } }

/* ---------- Strona /cennik ---------- */
.pricing-hero { padding-bottom: 24px; }
.pricing-hero__title { font-size: var(--h1-size); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.pricing-hero .section__sub { margin-top: 12px; max-width: 720px; }
.trial-strip { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; background-color: rgba(163, 230, 53, 0.06); }
.trial-strip p { flex: 1; min-width: 240px; color: var(--text-muted); }
.trial-strip b { color: var(--text); font-weight: 600; }
.pricing-plans { padding-top: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .18s; position: relative; overflow: hidden; isolation: isolate; }
.plan::after { content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.12), transparent); }
.plan:hover { border-color: #3a3a43; }
.plan:hover::after { animation: tac-row-sweep .7s cubic-bezier(.4,0,.2,1); }
.plan__price { font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--text); }
.plan__price small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.04em; }
.plan__facts { list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-muted); }
.plan__facts b { color: var(--text); font-weight: 600; }
.plan__unit { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); }
.plan--enterprise { background-color: rgba(163, 230, 53, 0.06); }
.plan--enterprise .tac-link { margin-top: auto; }
.extras { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.extras__item { padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius); }
.extras__item p { margin-top: 6px; color: var(--text-muted); font-size: 14.5px; }
.extras__item b { color: var(--text); }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans, .extras { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .plan:hover::after { animation: none; } }
.cta-card__lead + .cta-card__actions { margin-top: 22px; }

/* Przyklejony pasek (22.11): overflow-x: hidden na body robiło z niego kontener przewijania i wyłączało
   position: sticky nagłówka — clip ukrywa wystające dekoracje bez tego efektu.
   Na dole paska linia postępu przewijania (limonka), po zjechaniu z góry pasek ciemnieje. */
html, body { overflow-x: clip; }
.site-header { position: sticky; top: 0; transition: background-color .2s, box-shadow .2s; }
.site-header::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--scroll, 0%);
  background: var(--accent); box-shadow: 0 0 10px rgba(163, 230, 53, 0.6); pointer-events: none;
}
.site-header.is-scrolled { background-color: rgba(12, 12, 15, 0.97); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }

.plan__price--text { font-size: 1.35rem; line-height: 1.2; }

/* /cennik (22.11 wieczór): 3 pakiety, pasek oferty, pilotaż */
.plan__analyses { font-size: 1.05rem; color: var(--text); }
.plan__analyses b { font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.offer-strip { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--card); }
.offer-strip p { flex: 1; min-width: 240px; color: var(--text); }
.pilot__box { padding: 28px; }
.pilot__variants { margin: 22px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pilot__variant { padding: 18px 20px; background: rgba(163, 230, 53, 0.06); border: 1px dashed rgba(163, 230, 53, 0.35); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.pilot__std { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); }
.pilot__terms { margin-bottom: 18px; max-width: 760px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 560px) { .pilot__variants { grid-template-columns: 1fr; } .pilot__box { padding: 20px 16px; } }

/* Sterowanie przykładem (22.11): kwadratowe przyciski z ikonami — stała szerokość, nic nie skacze;
   odtwórz/wstrzymaj zmienia tylko ikonę (aria-pressed). Hover taktyczny: narożniki + przebłysk. */
.demo-controls { gap: 6px; flex-wrap: nowrap; }
.tac-icon-btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .18s, color .18s, background-color .18s, opacity .18s;
}
.tac-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tac-icon-btn .ic-play, .tac-icon-btn .ic-pause rect { fill: currentColor; stroke: none; }
.tac-icon-btn .ic-pause { display: none; }
.tac-icon-btn[aria-pressed="true"] .ic-play { display: none; }
.tac-icon-btn[aria-pressed="true"] .ic-pause { display: inline; }
.tac-icon-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tac-icon-btn::before {
  content: ''; position: absolute; inset: 2px; pointer-events: none; opacity: 0; transform: scale(1.2);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) top right / 7px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 7px,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 7px;
  background-repeat: no-repeat;
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.tac-icon-btn--primary::before { --c: var(--accent-ink); }
.tac-icon-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.22), transparent); }
.tac-icon-btn--primary::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); }
.tac-icon-btn:hover:not(:disabled) { border-color: #3a3a43; color: var(--accent); }
.tac-icon-btn--primary:hover:not(:disabled) { color: var(--accent-ink); border-color: var(--accent); }
.tac-icon-btn:hover:not(:disabled)::before, .tac-icon-btn:focus-visible::before { opacity: 1; transform: none; }
.tac-icon-btn:hover:not(:disabled)::after { animation: tac-row-sweep .5s cubic-bezier(.4,0,.2,1); }
.tac-icon-btn:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .tac-icon-btn::before { transition: none; } .tac-icon-btn:hover::after { animation: none; } }

/* „Zaloguj” (22.11): jedna ramka — same kątowniki, bez zaokrąglonej obwódki. W spoczynku kątowniki przy krawędziach,
   na hoverze dociągają się do środka, tekst w akcencie i przebłysk. */
.site-header__login { border-color: transparent; background-color: transparent; overflow: hidden; }
.site-header__login::before { inset: 0; opacity: 1; transform: none; --c: rgba(163, 230, 53, 0.7); }
.site-header__login::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.2), transparent); }
.site-header__login:hover:not(:disabled) { border-color: transparent; color: var(--accent); }
.site-header__login:hover::before { --c: var(--accent); transform: scale(0.94); }
.site-header__login:hover::after { animation: tac-row-sweep .5s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .site-header__login:hover::after { animation: none; } .site-header__login:hover::before { transform: none; } }

/* Przyciski z obwódką (22.11): ten sam taktyczny hover co „Zaloguj” — obwódka znika, wchodzą kątowniki
   i przebłysk, tekst w akcencie (jedna ramka naraz). Główne przyciski: kątowniki z zewnątrz + skan (wyżej). */
.btn--ghost { overflow: hidden; }
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: scale(1.1);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 2px, linear-gradient(var(--c), var(--c)) top left / 2px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 2px, linear-gradient(var(--c), var(--c)) top right / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px 9px;
  background-repeat: no-repeat;
  transition: transform .18s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.btn--ghost::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.2), transparent); }
.btn--ghost:hover:not(:disabled), .btn--ghost:focus-visible { border-color: transparent; color: var(--accent); }
.btn--ghost:hover:not(:disabled)::before, .btn--ghost:focus-visible::before { opacity: 1; transform: none; }
.btn--ghost:hover:not(:disabled)::after { animation: tac-row-sweep .5s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .btn--ghost::before { transition: none; } .btn--ghost:hover::after { animation: none; } }
/* Pasek oferty: kątowniki z .tac-frame zamiast własnego tła */
.offer-strip.tac-frame { background-color: var(--card); }

/* Zielone przyciski (22.11): kątowniki WEWNĄTRZ przycisku (kolor tekstu), nic nie wystaje poza zaokrąglenie —
   jedna ramka naraz, jak „Zaloguj” i przyciski z obwódką. Przebłysk bez zmian. */
.btn--primary { overflow: hidden; }
.btn--primary::before { inset: 3px; --c: var(--accent-ink); transform: scale(1.15); }
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: none; opacity: 1; }

/* Zielone przyciski — wersja 3 (22.11): w spoczynku pełna limonka; na hoverze wypełnienie gaśnie do jasnej zieleni,
   tekst w akcencie, kątowniki na krawędziach (jak „Zaloguj”) i przebłysk — jedna ramka, bez zaokrąglonego wypełnienia. */
.btn--primary { border: 1px solid var(--accent); transition: background-color .18s, color .18s, border-color .18s; }
.btn--primary::before { inset: 0; --c: var(--accent); transform: scale(1.12); }
.btn--primary:hover:not(:disabled), .btn--primary:focus-visible {
  background-color: rgba(163, 230, 53, 0.1); color: var(--accent); border-color: transparent;
  background-image: none; animation: none;
}
.btn--primary:hover:not(:disabled)::after { animation: tac-row-sweep .5s cubic-bezier(.4,0,.2,1); }
.btn--primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.25), transparent); }
@media (prefers-reduced-motion: reduce) { .btn--primary:hover::after { animation: none; } }

/* Kafle pod pakietami (22.11): ta sama obwoluta co pasek oferty — zielona przerywana ramka + kątowniki, bez tła. */
.extras__item.tac-frame { border: 1px dashed rgba(163, 230, 53, 0.45); background-color: transparent; }

/* Przerywana ramka z kątownikami (22.11): kreski rysowane osobno na każdym boku i kończą się 14 px przed rogiem —
   nie przechodzą przez kątowniki. Zamiast `border: dashed` (który biegnie przez rogi). */
.extras__item.tac-frame {
  border: 1px solid transparent;
  --tac-c: rgba(163, 230, 53, 0.6);
  --d: rgba(163, 230, 53, 0.45);
  background-image:
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    linear-gradient(var(--tac-c), var(--tac-c)), linear-gradient(var(--tac-c), var(--tac-c)),
    repeating-linear-gradient(90deg, var(--d) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, var(--d) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(180deg, var(--d) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(180deg, var(--d) 0 4px, transparent 4px 8px);
  background-size:
    10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px,
    calc(100% - 28px) 1px, calc(100% - 28px) 1px, 1px calc(100% - 28px), 1px calc(100% - 28px);
  background-position:
    top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right,
    left 14px top 0, left 14px bottom 0, left 0 top 14px, right 0 top 14px;
  background-repeat: no-repeat;
  background-origin: border-box;
}
.extras__item.tac-frame { background-color: transparent; }
/* Wyraźna przerwa: kreski od 18 px (kątownik 10 px + 8 px odstępu), ostre rogi kątowników. */
.extras__item.tac-frame {
  border-radius: 0;
  background-size:
    10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px,
    calc(100% - 36px) 1px, calc(100% - 36px) 1px, 1px calc(100% - 36px), 1px calc(100% - 36px);
  background-position:
    top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right,
    left 18px top 0, left 18px bottom 0, left 0 top 18px, right 0 top 18px;
}
/* Pasek oferty (22.11): bez przerywanej ramki — zwykła linia + kątowniki, jak karty pakietów. */
.offer-strip.tac-frame { border: 1px solid var(--line); background-color: rgba(163, 230, 53, 0.05); }

/* Panel decyzji (22.11): oczekiwanie — zielona przerywana ramka; rekomendacje jako jeden blok w stałych wierszach
   (nazwy wyrównane, blok przesuwa się w całości); zalecany przycisk — stałe kątowniki w jego kolorze zamiast napisu. */
.pill--warning { color: var(--accent); background: transparent; border: 1px dashed rgba(163, 230, 53, 0.6); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.decision__recs { display: inline-grid; grid-template-columns: auto auto; align-items: start; gap: 6px 12px; margin: 4px auto 14px; text-align: left; font-size: 14px; color: var(--text-muted); }
.decision__recs-label { padding-top: 4px; }
.decision__recs-list { display: grid; grid-template-columns: max-content max-content; gap: 6px 10px; margin: 0; }
.decision__rec { display: contents; }
.decision__rec dt { padding-top: 4px; color: var(--text); font-weight: 500; }
.decision__rec dd { margin: 0; }
.decision__panel { display: flex; flex-direction: column; align-items: stretch; }
.decision__panel .decision__recs { align-self: center; }
.tac-choice.is-recommended { border-color: rgba(var(--tac-tone), 0.45); }
.tac-choice.is-recommended > .tac-c { opacity: 1; transform: none; }
.tac-choice__tag { display: none; }
@media (max-width: 560px) { .decision__recs { grid-template-columns: 1fr; } }
/* Notka rekomendacji: bez pomarańczu — zielona przerywana ramka dookoła, jak „Czeka na decyzję”. */
.decision__note { background: transparent; border: 1px dashed rgba(163, 230, 53, 0.6); border-left: 1px dashed rgba(163, 230, 53, 0.6); }
/* Notka na pełną szerokość panelu — krawędzie równo z przyciskami decyzji. */
.decision__note { max-width: none; width: 100%; margin: 6px 0 18px; }

/* Panel decyzji — karta danych (22.11): etykiety maszynowe po lewej, wartości po prawej, przerywane separatory;
   pełna szerokość, równo z notką i przyciskami. */
.decision__sheet { margin: 0 0 16px; text-align: left; }
.decision__row { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.decision__row:first-child { padding-top: 0; }
.decision__row dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.decision__row dd { margin: 0; }
.decision__val { color: var(--text); font-weight: 500; font-size: 14px; }
.decision__row--recs { align-items: start; }
.decision__row--recs dt { padding-top: 5px; }
.decision__row--recs dd { display: grid; gap: 6px; }
.decision__rec2 { display: grid; grid-template-columns: 112px auto; align-items: center; gap: 10px; justify-content: start; }
.decision__rec2 .decision__agent { font-size: 13px; }
@media (max-width: 560px) { .decision__row { grid-template-columns: 1fr; gap: 6px; } }

/* Formularz kontaktu (22.11): imię i nazwisko, e-mail, firma (opcjonalnie) — siatka 2 × 2, przycisk w ostatniej komórce. */
.lead-form { max-width: 640px; }
.lead-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-items: end; }
.lead-form__field { display: flex; flex-direction: column; gap: 8px; }
.lead-form__field .tac-label em { font-style: normal; color: #6b7079; letter-spacing: 0.1em; }
.lead-form__submit { height: 46px; width: 100%; }
@media (max-width: 560px) { .lead-form__grid { grid-template-columns: 1fr; } }
.lead-form__field .lead-form__input { flex: none; width: 100%; height: 46px; }

/* ============================================================
   Wersja mobilna (≤ 760 px): karuzele ze snapem, gesty, rytm sekcji
   Na komputerze (> 760 px) pasek karuzeli i przycisk menu są ukryte.
   ============================================================ */
.carousel-bar {
  display: none;
}

.nav-toggle.tac-icon-btn {
  display: none;
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  /* 1. Nawigacja: jeden wiersz, przyklejona, przycisk z ikoną w stylu .tac-icon-btn */
  .site-header__inner {
    min-height: 60px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__login {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .nav-toggle.tac-icon-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-toggle .ic-close {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .ic-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .ic-close {
    display: inline;
  }

  .site-nav {
    top: 60px;
    padding: 12px 16px 16px;
    gap: 4px;
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Przyciski: min. 44 px wysokości dla wygodnego dotyku */
  .btn,
  .tac-icon-btn,
  .doc-btn,
  .demo-stepper__btn {
    min-height: 44px;
  }

  .tac-icon-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  /* Rytm sekcji i czytelna treść (min. 14 px dla akapitów i opisów) */
  .section {
    padding: 40px 0;
  }

  .section__head {
    margin-bottom: 20px;
  }

  .section__title {
    font-size: clamp(1.38rem, 5.6vw, 1.75rem);
    line-height: 1.18;
  }

  .section__sub,
  .step-card__desc,
  .security-card__desc,
  .quote-card__body,
  .doc-quote__text,
  .question-draft__body,
  .decision__points p,
  .decision__note,
  .impact__label,
  .ladder__head p,
  .ladder__name,
  .trial-strip p,
  .offer-strip p,
  .extras__item p,
  .pilot__terms,
  .cta-card__lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  /* 2. Hero: mocny pierwszy ekran (nagłówek, opis, przyciski, kompaktowe podsumowanie) */
  .hero {
    padding: 24px 0 32px;
  }

  .hero__layout {
    gap: 20px;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
    margin-bottom: 12px;
  }

  .hero__lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .scan-hero {
    --scan-h: 230px;
    gap: 14px;
    margin-top: 4px;
  }

  .scan-hero__stack {
    display: none;
  }

  .scan-hero__result {
    gap: 8px;
  }

  .scan-hero__result .res {
    opacity: 1;
    animation: none;
    transform: none;
    box-shadow: none;
    padding: 10px 12px;
  }

  .res__v {
    font-size: 0.9rem;
  }

  /* Pas faktów: zwarta siatka 2 × 2 */
  .facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    padding: 18px 14px;
  }

  .fact__num {
    font-size: 1.55rem;
  }

  .fact__label {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .ticker {
    padding: 10px 0;
  }

  /* 3. Karuzele ze snapem: #jak-dziala (.steps-grid), #ile-to-daje (.impact), /cennik (.plans) */
  .steps-grid--timeline,
  .impact,
  .plans {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 0;
    padding-bottom: 4px;
  }

  .steps-grid--timeline::-webkit-scrollbar,
  .impact::-webkit-scrollbar,
  .plans::-webkit-scrollbar {
    display: none;
  }

  .steps-line {
    display: none;
  }

  .steps-grid--timeline > .step-card,
  .impact > .impact__item,
  .plans > .plan {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Pasek pod karuzelą: kropki/kreski postępu + przyciski prev/next */
  .carousel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .carousel-dot {
    position: relative;
    width: 28px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .carousel-dot::before {
    content: '';
    width: 100%;
    height: 3px;
    background-color: var(--line);
    transition: background-color 0.18s ease, height 0.18s ease;
  }

  .carousel-dot.is-active::before {
    background-color: var(--accent);
    height: 4px;
  }

  .carousel-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* 4. Sekcja 02 · Przykład: pasek kroków w poziomie i karta podatna na swipe */
  .section__head--row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .demo-controls {
    justify-content: flex-start;
  }

  .demo-stepper {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    margin-bottom: 12px;
  }

  .demo-stepper::-webkit-scrollbar {
    display: none;
  }

  .demo-stepper__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .demo-stepper__btn {
    padding: 8px 12px;
    white-space: nowrap;
  }

  .demo-live {
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 12px;
  }

  .demo-board {
    touch-action: pan-y;
  }

  /* Tylko aktywny krok zajmuje wysokość — brak pustego miejsca pod krótszymi krokami */
  .demo-board > .demo-stage:not(.is-active) {
    display: none;
  }

  .demo-stage {
    padding: 16px;
  }

  .notice-grid,
  .demo-quotes-list,
  .quotes-grid,
  .valuation-bar,
  .docs-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quote-card,
  .doc-quote,
  .question-draft,
  .notice-grid__item {
    padding: 14px;
  }

  .docs-download {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .docs-download .btn {
    width: 100%;
  }

  /* 5. Cena, Decyzja, Branże, Bezpieczeństwo, Kontakt */
  .scope__hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scope__target {
    grid-column: 1 / -1;
    padding: 16px;
  }

  .scope__metric {
    padding: 12px 10px;
  }

  .scope__metric b {
    font-size: 1.15rem;
  }

  .ladder__item {
    padding: 12px 14px;
  }

  .decision__panel {
    padding: 18px 16px;
  }

  .decision__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .decision__choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tac-choice {
    min-height: 50px;
  }

  .segment-box {
    padding: 20px 16px;
  }

  .segment-chips {
    gap: 8px;
  }

  .segment-chip {
    padding: 7px 11px;
  }

  .security-grid {
    gap: 12px;
  }

  .cta-card {
    padding: 26px 16px;
  }

  .lead-form__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 6. Strona /cennik na telefonie */
  .trial-strip,
  .offer-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .trial-strip p,
  .offer-strip p {
    min-width: 0;
  }

  .trial-strip .btn,
  .offer-strip .btn,
  .pilot__box .btn {
    width: 100%;
  }

  .extras {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pilot__box {
    padding: 20px 16px;
  }

  .pilot__variants {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Stopka i okno modalne */
  .site-footer {
    padding: 24px 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__links {
    gap: 12px 18px;
  }

  .doc-preview-table th,
  .doc-preview-table td {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .steps-grid--timeline,
  .impact,
  .plans,
  .demo-stepper {
    scroll-behavior: auto;
  }

  .carousel-dot::before {
    transition: none;
  }
}

