/*
 * Strona glowna (Page/Home.twig) - sceny demo interfejsu z mockupu LP: hero-scene, karta rozmowy,
 * zakladki funkcji (feat), kroki, asystent, dla kogo, pochodzenie, CTA. Wylacznie var(--*) z tokens.css.
 * Wspolne komponenty (btn, card, tag, avatar, ticks, faq, pricing, step-list) sa w app.css.
 * Prefiksy: demo- (elementy makiety produktu), feat-, karta-, hero-scene-, chat/bubble, bar/score.
 */

/* ===== Hero: scena po prawej ===== */
.hero-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  align-self: stretch;
}

.hero-scene__line,
.hero-scene__beam {
  position: absolute;
  left: 50%;
  top: 44px;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  z-index: 0;
}

.hero-scene__line {
  background: linear-gradient(180deg, transparent, var(--brand-pink) 15%, var(--brand-green) 85%, var(--brand-green));
}

.hero-scene__beam {
  background: linear-gradient(180deg, transparent, var(--beam-on-dark) 50%, transparent);
  background-size: 100% 90px;
  background-repeat: no-repeat;
  background-position: 0 -90px;
  animation: tillio-flow-v 3.6s linear infinite;
  -webkit-mask: linear-gradient(180deg, transparent, var(--neutral-900) 36px calc(100% - 24px), transparent);
  mask: linear-gradient(180deg, transparent, var(--neutral-900) 36px calc(100% - 24px), transparent);
}

.hero-scene__pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: center;
  margin-bottom: 34px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--neutral-0);
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-float-dark);
  animation: tillio-up 0.7s var(--ease-out) 0.05s both;
}

.hero-scene__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: var(--brand-navy);
  font-size: 10px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.hero-scene__card {
  position: relative;
  z-index: 1;
  margin: 0 1px; /* 2 px wezsze, zeby z cieniem nie wychodzily optycznie za kontener */
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-float-dark);
  animation: tillio-up 0.7s var(--ease-out) 0.15s both;
}

.hero-scene__card--pink { border: 2px solid var(--brand-pink); }

.hero-scene__card--green {
  border: 2px solid var(--brand-green);
  animation-delay: 0.45s;
}

.hero-scene__ai {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  animation: tillio-up 0.7s var(--ease-out) 0.3s both;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--green-border);
  background: var(--brand-navy);
  color: var(--brand-green);
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  box-shadow: 0 0 24px var(--green-glow);
}

.hero__elbow {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 280px;
  height: 114px;
  pointer-events: none;
}

.hero__elbow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__elbow-path {
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 2;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.hero__elbow-dash {
  fill: none;
  stroke: var(--beam-on-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 16 200;
  vector-effect: non-scaling-stroke;
  animation: tillio-dash 3.6s linear infinite;
}

/* ===== Elementy makiety produktu (wspolne dla hero, karty, zakladek) ===== */
.demo-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  font-family: var(--font-app);
  color: var(--text-body);
}

.demo-card--clip {
  padding: 0;
  overflow: hidden;
}

.demo-card--anim { animation: tillio-up 0.5s var(--ease-out) both; }

.demo-card--anim-late { animation-delay: 0.9s; }

.demo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-card__head--spaced {
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.demo-card__label {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.demo-card__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.demo-card__who {
  flex: 1;
  min-width: 150px;
}

.demo-card__body { padding: 16px 20px; }

.demo-card__body--stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.demo-card__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.demo-card__foot--sunken { background: var(--surface-page); }

.demo-card__foot--row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-card__foot--row img { flex-shrink: 0; }

.demo-label {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.demo-label--sm {
  font-size: 10.5px;
  margin-bottom: 9px;
}

.demo-meta {
  font-size: 10.5px;
  color: var(--text-muted);
}

.demo-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.demo-note b { color: var(--brand-navy); }

.demo-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-person--tight { gap: 9px; }

.demo-person__body {
  flex: 1;
  min-width: 0;
}

.demo-person__name {
  font-size: 13.5px;
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
}

.demo-person__name--lg { font-size: 14.5px; }

.demo-person__name--sm { font-size: 11.5px; }

.demo-card__bar .demo-person__name { font-size: 12.5px; }

.demo-person__meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.demo-card__bar .demo-person__meta,
.karta__who .demo-person__meta { font-size: 12px; }

.demo-card__bar .demo-person__meta { font-size: 10.5px; }

.rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--status-danger);
}

.rec--sm {
  gap: 5px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
}

.rec__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--status-danger);
  animation: tillio-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.rec--sm .rec__dot {
  width: 7px;
  height: 7px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dot--green { background: var(--brand-green); }

.dot--pulse {
  width: 8px;
  height: 8px;
  animation: tillio-pulse 1.4s ease-in-out infinite;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex-shrink: 0;
}

.waveform i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--brand-green);
  transform-origin: center;
  animation: tillio-eq 1.1s ease-in-out infinite;
}

.waveform i:nth-child(1) { height: 12px; animation-delay: 0s; background: var(--brand-pink); }
.waveform i:nth-child(2) { height: 20px; animation-delay: 0.12s; }
.waveform i:nth-child(3) { height: 28px; animation-delay: 0.24s; }
.waveform i:nth-child(4) { height: 16px; animation-delay: 0.36s; background: var(--brand-pink); }
.waveform i:nth-child(5) { height: 24px; animation-delay: 0.48s; }
.waveform i:nth-child(6) { height: 30px; animation-delay: 0.6s; }
.waveform i:nth-child(7) { height: 14px; animation-delay: 0.72s; background: var(--brand-pink); }
.waveform i:nth-child(8) { height: 22px; animation-delay: 0.84s; }
.waveform i:nth-child(9) { height: 18px; animation-delay: 0.96s; }
.waveform i:nth-child(10) { height: 26px; animation-delay: 1.08s; background: var(--brand-pink); }

.waveform--7 { height: 30px; }

.waveform--7 i:nth-child(1) { height: 12px; background: var(--brand-green); }
.waveform--7 i:nth-child(2) { height: 22px; }
.waveform--7 i:nth-child(3) { height: 28px; background: var(--brand-pink); }
.waveform--7 i:nth-child(4) { height: 16px; background: var(--brand-green); }
.waveform--7 i:nth-child(5) { height: 24px; }
.waveform--7 i:nth-child(6) { height: 14px; background: var(--brand-pink); }
.waveform--7 i:nth-child(7) { height: 26px; background: var(--brand-green); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row--tight { gap: 6px; }

.tag--xs {
  min-width: 44px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
}

.demo-tasks {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-task {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-body);
}

.demo-tasks--sm .demo-task {
  gap: 8px;
  font-size: var(--fs-xs);
}

.demo-tasks--xs .demo-task {
  gap: 8px;
  font-size: 11.5px;
}

.demo-task__when {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.demo-tasks--sm .demo-task__when,
.demo-tasks--xs .demo-task__when { font-size: 10.5px; }

.demo-task__when.tag { color: var(--brand-pink-700); }

.demo-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--border-default);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: var(--fw-bold);
}

.demo-check--sm {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  font-size: 10px;
}

.demo-check--done {
  background: var(--neutral-0);
  border: 1px solid var(--green-border);
  color: var(--brand-green-700);
}

.demo-check--pink { border-color: var(--brand-pink); }

.demo-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-body);
}

/* Opoznienia wejscia elementow sceny (tillio-up / tillio-tick) */
.demo-line--d1, .demo-line--d2, .demo-line--d3, .demo-line--d4, .demo-line--d5, .demo-line--d6, .demo-line--d7 {
  animation: tillio-up 0.45s var(--ease-out) both;
}

.demo-line--d1 { animation-delay: 0.2s; }
.demo-line--d2 { animation-delay: 0.4s; }
.demo-line--d3 { animation-delay: 0.6s; }
.demo-line--d4 { animation-delay: 0.8s; }
.demo-line--d5 { animation-delay: 1s; }
.demo-line--d6 { animation-delay: 1.2s; }
.demo-line--d7 { animation-delay: 1.4s; }

.demo-tick { animation: tillio-tick 0.4s var(--ease-out) both; }

.demo-tick--d1 { animation-delay: 0.25s; }
.demo-tick--d2 { animation-delay: 0.5s; }
.demo-tick--d3 { animation-delay: 0.75s; }
.demo-tick--d4 { animation-delay: 1s; }
.demo-tick--d5 { animation-delay: 1.15s; }
.demo-tick--d6 { animation-delay: 1.3s; }
.demo-tick--d7 { animation-delay: 1.45s; }
.demo-tick--d8 { animation-delay: 1.6s; }

/* Paski postepu i ocena */
.bar {
  position: relative;
  display: block;
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-sunken);
  overflow: hidden;
}

.bar--lg {
  height: 9px;
  border-radius: 5px;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-navy);
  transform-origin: left;
}

.bar__fill--green { background: var(--brand-green); }
.bar__fill--pink { background: var(--brand-pink); }
.bar__fill--green-grad { background: linear-gradient(90deg, var(--brand-green), var(--brand-green-600)); }
.bar__fill--grow { animation: tillio-grow 0.9s var(--ease-out) 0.25s both; }
.bar__fill--36 { width: 36%; }
.bar__fill--42 { width: 42%; }
.bar__fill--52 { width: 52%; }
.bar__fill--64 { width: 64%; }
.bar__fill--74 { width: 74%; }
.bar__fill--82 { width: 82%; }

.score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score--lg { gap: 14px; }

.score__value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
}

.score__value--lg {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1;
}

.score__of {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.score__value--lg .score__of { font-size: var(--fs-sm); }

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-navy);
  color: var(--neutral-0);
  flex-shrink: 0;
}

.play--sm {
  width: 26px;
  height: 26px;
}

.timeline {
  flex: 1;
  min-width: 220px;
}

.timeline__track {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-sunken);
}

.timeline__done {
  position: absolute;
  left: 0;
  top: 0;
  width: 34%;
  height: 100%;
  border-radius: 4px;
  background: var(--brand-navy);
}

.timeline__dot {
  position: absolute;
  top: -3px;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--neutral-0);
  box-shadow: var(--shadow-dot);
}

.timeline__dot--pink { background: var(--brand-pink); }
.timeline__dot--green { background: var(--brand-green); }
.timeline__dot--a { left: 34%; }
.timeline__dot--b { left: 93%; }
.timeline__dot--c { left: 92%; }

.timeline__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ===== Karta rozmowy pod hero ===== */
.karta-band { background: var(--surface-page); }

.karta-wrap {
  position: relative;
  z-index: 5;
  max-width: var(--container); /* rowno z .container (naglowek, hero) */
  margin: -110px auto 0;
  padding: 0 var(--space-6);
}

.karta-ring {
  padding: 2px;
  border-radius: 22px;
  background:
    conic-gradient(from var(--tillio-a) at 50% 50%, var(--beam-on-dark) 0deg 16deg, transparent 34deg 360deg),
    linear-gradient(var(--brand-pink), var(--brand-pink));
  box-shadow: var(--shadow-xl);
  animation: tillio-spin 3.6s linear infinite, tillio-up 0.8s var(--ease-out) 0.3s both;
}

.karta {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  font-family: var(--font-app);
}

.karta__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.karta__who {
  flex: 1;
  min-width: 180px;
}

.karta__bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.karta__cell { padding: 20px 22px; }

.karta__summary {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-body);
}

.karta__moments {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.karta__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-page);
  flex-wrap: wrap;
}

.karta__caption {
  margin: 14px 0 0;
  padding-bottom: 4px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ===== Zakladki funkcji ===== */
.feat {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.feat__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat__tab {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.feat__tab:hover { border-color: var(--green-border); }

.feat__tab.is-active {
  background: var(--surface-page);
  border-color: var(--green-border);
}

.feat__tab:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.feat__tab-title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
}

.feat__tab-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.feat__stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 30px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  font-family: var(--font-app);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.feat__stage.is-dark {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.feat__col {
  max-width: 520px;
  margin: 0 auto;
}

.feat__col--narrow { max-width: 460px; }

.feat__col--mid { max-width: 480px; }

.feat__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content; /* tillio-tick skaluje do 1.18: blok na pelna szerokosc wystawal poza viewport na 480-560 px */
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 0;
  animation: tillio-tick 0.5s var(--ease-out) 0.8s both;
}

.feat__connector-text {
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--brand-pink);
}

.feat__arrow {
  color: var(--brand-pink);
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 1;
  animation: tillio-blink 1.6s ease-in-out infinite;
}

.feat__arrow--center {
  text-align: center;
  font-size: 13px;
}

.feat__caption {
  margin: 20px 0 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-muted);
  text-wrap: pretty;
}

.feat__caption--left { text-align: left; }

.feat__stage.is-dark .feat__caption { color: var(--on-dark-72); }

/* Panel 2: momenty */
.scan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.scan__track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-sunken);
}

.scan__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-pink));
  animation: tillio-scan 4s ease-in-out infinite;
}

.scan__track .timeline__dot {
  width: 12px;
  height: 12px;
}

.scan__time {
  font-size: 10.5px;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.quotes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-muted);
}

.moment {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--neutral-0);
  font-weight: var(--fw-semibold);
}

.moment--pink {
  border: 1px solid var(--pink-border);
  color: var(--brand-pink-800);
}

.moment--green {
  border: 1px solid var(--green-border);
  color: var(--brand-green-700);
}

.moment__quote {
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

.moment__play {
  align-self: center;
  font-size: 10.5px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

/* Panel 3: ocena leada */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 12px;
  color: var(--text-muted);
}

.stats-list__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.stats-list__item .bar { flex: none; }

.stats-list__ok {
  font-weight: var(--fw-bold);
  color: var(--brand-green-700);
}

.stats-list__warn {
  font-weight: var(--fw-bold);
  color: var(--brand-pink-800);
}

.stats-list__num {
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
}

/* Panel 4 i asystent: czat */
.sender {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-navy);
  color: var(--neutral-0);
  font-size: 10px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 20px;
  background: var(--surface-page);
}

.chat--assistant {
  gap: 12px;
  padding: 16px;
}

.chat__time {
  align-self: center;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.chat__msg { max-width: 88%; }

.chat__msg--in {
  align-self: flex-start;
  transform-origin: left bottom;
}

.chat__msg--out {
  align-self: flex-end;
  transform-origin: right bottom;
}

.chat__msg--wide { max-width: 92%; }

.bubble {
  padding: 10px 13px;
  border-radius: 12px 12px 12px 4px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-body);
}

.bubble--me {
  border: 0;
  border-radius: 12px 12px 4px 12px;
  background: var(--brand-navy);
  color: var(--neutral-0);
}

.bubble--sm {
  align-self: flex-start;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px 9px 9px 3px;
  background: var(--surface-sunken);
  font-size: 10.5px;
}

.chat__status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--brand-green-700);
}

.chat__status-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: var(--neutral-0);
  font-size: 8px;
}

.chat__suggest { padding-top: 4px; }

.topics {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

.topics__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topics__label {
  width: 110px;
  font-size: 11px;
  color: var(--text-muted);
}

.topics__pct {
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
}

/* Panel 5: historia */
.history {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.history::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-pink), var(--demo-blue), var(--brand-green));
  opacity: 0.35;
  transform-origin: top;
  animation: tillio-line 1.1s var(--ease-out) 0.15s both;
}

.history__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.history__icon {
  position: relative;
  z-index: 1;
}

.avatar--violet {
  background: var(--demo-violet);
  color: var(--neutral-0);
}

.history__body {
  flex: 1;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
}

.history__body b { color: var(--brand-navy); }

.history__when {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Panel 6: kierowanie polaczen */
.avatar--pulse { animation: tillio-pulse 1.4s ease-in-out infinite; }

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

.route__box {
  padding: 12px;
  border-radius: var(--radius-md);
}

.route__box--active { border: 1.5px solid var(--green-border); }

.route__box--dashed { border: 1px dashed var(--border-default); }

.route__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.route__who .avatar--xs {
  width: 26px;
  height: 26px;
}

.route__title { margin-bottom: 7px; }

.route__meta {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.route__tag {
  margin-top: 7px;
  font-size: 10px;
  padding: 3px 9px;
}

.route__stack { margin-top: 8px; }

.notify {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.notify .demo-note { font-size: 11px; }

/* ===== Jak dziala: szkielet transkrypcji ===== */
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.skeleton__line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-sunken);
}

.skeleton__line--90 { width: 90%; }
.skeleton__line--70 { width: 70%; }

.step__visual .demo-meta { font-size: 10px; }

/* ===== Asystent ===== */
.assistant__ticks { margin-top: 24px; }

.assistant {
  max-width: 500px;
  margin-left: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-float-dark);
}

/* ===== Dla kogo: przed / po, liczby, CRM ===== */
.before-after {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
}

.before-after::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-default) 20% 80%, transparent);
}

.before-after__col { padding: 8px 56px 8px 0; }

.before-after__col--after { padding: 8px 0 8px 56px; }

.before-after__label {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.before-after__label--brand { display: flex; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stats__cell { padding: 30px 28px; }

.stats__cell + .stats__cell { border-left: 1px solid var(--border-subtle); }

.stats__num {
  font-size: 32px;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--brand-pink);
  font-variant-numeric: tabular-nums;
}

.stats__text {
  margin-top: 8px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

.crm-band {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 34px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.crm-band__copy {
  flex: 1;
  min-width: 280px;
}

.crm-band__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.3px;
  color: var(--brand-navy);
}

.crm-band__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.crm-band__diagram {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--font-app);
}

.crm-band__pill { align-self: center; }

.crm-band__legs {
  align-self: center;
  display: flex;
  gap: 120px;
  height: 22px;
  margin: 4px 0;
}

.crm-band__legs span {
  width: 2px;
  background: var(--border-default);
}

.crm-opt {
  padding: 16px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.crm-opt--dashed {
  background: transparent;
  border: 1.5px dashed var(--brand-green);
}

.crm-opt__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.crm-opt__name {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
}

/* ===== Skad pochodzi ===== */
.origin {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.origin__arrow {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--brand-pink);
}

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

/* ===== CTA na navy (#kontakt) ===== */
.cta-dark {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background: var(--gradient-hero);
  color: var(--text-onDark);
}

.cta-dark .section__title { color: var(--text-onDark); }

.cta-dark__lead {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--on-dark-85);
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .karta__bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__elbow { display: none !important; }

  .hero-scene {
    justify-self: center;
    max-width: 420px;
  }

  .karta-wrap { margin-top: -90px; }

  .feat {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feat__tab { padding: 14px 16px; }

  .feat__stage {
    min-height: 0;
    padding: 20px 16px;
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .before-after::before { display: none; }

  .before-after__col,
  .before-after__col--after { padding: 0; }

  /* Pasek CRM: ponizej 900 px copy (min 280) i diagram (min 320) nie mieszcza sie obok siebie - kolumna,
     oba na pelna szerokosc; karty opcji w 2 kolumnach (app.css zeruje grid--2 na 900, tu przywracamy) */
  .crm-band {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 20px;
  }

  .crm-band__copy {
    min-width: 0;
    max-width: 640px;
  }

  .crm-band__diagram { min-width: 0; }

  .crm-band__diagram .crm-band__options { grid-template-columns: 1fr 1fr; }

  .assistant { margin-left: 0; }

  .cta-dark { padding: 64px 0; }
}

@media (max-width: 620px) {
  .karta__bento { grid-template-columns: 1fr; }

  .karta__cell + .karta__cell { border-top: 1px solid var(--border-subtle); }

  .karta-wrap { padding: 0 var(--space-4); }

  .stats { grid-template-columns: 1fr; }

  .stats__cell + .stats__cell {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }

  .crm-band { padding: 20px; }

  .route { grid-template-columns: 1fr; }
}

/* Karty paska CRM: 2 kolumny, dopoki kontener kart ma >= 532 px (2 x 260 + gap 12), czyli viewport >= 604
   (604 - 32 container - 40 padding paska). Ponizej jedna kolumna i jedna nozka na srodku od pilla do pierwszej karty */
@media (max-width: 603px) {
  .crm-band__diagram .crm-band__options { grid-template-columns: 1fr; }

  .crm-band__legs {
    gap: 0;
    height: 18px;
  }

  .crm-band__legs span:last-child { display: none; }
}

@media (max-width: 560px) {
  .hero-scene__card { padding: 16px; }

  .timeline { min-width: 160px; }

  .karta__head,
  .karta__foot { padding: 14px 16px; }

  .karta__cell { padding: 16px; }

  .topics__label { width: 90px; }
}
