/* ── LISTA REZERWOWA (podstrona funkcji) ────────────────
   Reużywa komponentów .sz-* (strona-zapisow.css): hero-std, sz-problem,
   sz-contrast, sz-solution, sz-bullets, sz-steps/sz-flow, sz-objection,
   final-cta. Tu: animowany panel statusu miejsc + karta zaproszenia. */

/* ── Hero — panel statusu miejsc + wyłaniający się wiersz ── */
.lr-stage { position: relative; }
.lr-panel {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 14px 36px rgba(17,17,17,0.08); overflow: hidden;
  animation: lrPanelDim 7s ease-in-out infinite;
}
@keyframes lrPanelDim {
  0%, 10% { filter: blur(0); opacity: 1; }
  16%, 84% { filter: blur(3px); opacity: 0.5; }
  90%, 100% { filter: blur(0); opacity: 1; }
}
.lr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.lr-title { margin: 0; font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; color: var(--text); }
.lr-sub { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.lr-badge { position: relative; flex-shrink: 0; min-width: 130px; height: 24px; }
.lr-badge-full, .lr-badge-free {
  position: absolute; right: 0; top: 0; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 4px; white-space: nowrap;
}
.lr-badge-full { color: #15803d; background: #dcfce7; animation: lrFull 7s ease-in-out infinite; }
.lr-badge-free { color: #b45309; background: #fef3c7; opacity: 0; animation: lrFree 7s ease-in-out infinite; }
@keyframes lrFull { 0%, 6% { opacity: 1; } 12%, 86% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes lrFree { 0%, 6% { opacity: 0; } 12%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
.lr-list { padding: 10px 8px 8px; }
.lr-list-label { padding: 4px 10px 8px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.lr-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 4px; }
.lr-pos {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.lr-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lr-meta { font-size: 11.5px; color: var(--text-muted); }

/* powiadomienie „zwolniło się miejsce" — na blurze, przed kartą */
.lr-notif {
  position: absolute; left: 50%; top: 100px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 14px 34px rgba(17,17,17,0.16); padding: 10px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--text); opacity: 0; animation: lrNotif 7s ease-in-out infinite;
}
.lr-notif-ic { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: #fef3c7; color: #b45309; display: flex; align-items: center; justify-content: center; }
.lr-notif-ic svg { width: 14px; height: 14px; }
@keyframes lrNotif {
  0%, 8% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  14%, 38% { opacity: 1; transform: translateX(-50%) translateY(0); }
  44%, 100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* wyłaniający się wiersz — pierwsza osoba z kolejki na wierzchu */
.lr-focus { position: absolute; left: 0; right: 0; top: 82px; display: flex; justify-content: center; pointer-events: none; }
.lr-focus-card {
  width: min(300px, 88%); background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 22px 44px rgba(17,17,17,0.22); padding: 14px 16px; opacity: 0; animation: lrEmerge 7s ease-in-out infinite;
}
@keyframes lrEmerge {
  0%, 44% { opacity: 0; transform: translateY(16px) scale(0.95); }
  52%, 82% { opacity: 1; transform: translateY(0) scale(1.04); }
  88%, 100% { opacity: 0; transform: translateY(16px) scale(0.95); }
}
.lr-fc-top { display: flex; align-items: center; gap: 11px; }
.lr-fc-pos { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.lr-fc-info { display: flex; flex-direction: column; min-width: 0; }
.lr-fc-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--text); }
.lr-fc-meta { font-size: 12px; color: var(--text-muted); }
.lr-fc-action { position: relative; height: 30px; margin-top: 12px; }
.lr-fc-invite, .lr-fc-joined {
  position: absolute; left: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 7px 10px; border-radius: 4px; white-space: nowrap; opacity: 0;
}
.lr-fc-invite { color: var(--brand); background: var(--brand-soft); animation: lrFcInvite 7s ease-in-out infinite; }
.lr-fc-joined { color: #15803d; background: #dcfce7; animation: lrFcJoined 7s ease-in-out infinite; }
.lr-fc-invite svg, .lr-fc-joined svg { width: 13px; height: 13px; flex-shrink: 0; }
@keyframes lrFcInvite { 0%, 54% { opacity: 0; } 58%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes lrFcJoined { 0%, 70% { opacity: 0; } 74%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lr-panel, .lr-badge-full, .lr-badge-free, .lr-focus-card, .lr-fc-invite, .lr-fc-joined, .lr-notif { animation: none; }
  .lr-panel { filter: none; opacity: 1; }
  .lr-badge-full { opacity: 1; } .lr-badge-free { opacity: 0; }
  .lr-focus, .lr-notif { display: none; }
  .lr-msg-bubble, .lr-msg-dot { animation: none; }
  .lr-msg-bubble { opacity: 1; transform: none; }
  .lr-msg-typing { display: none; }
}

/* ── Sekcja 3 — Rozwiązanie (copy + karta zaproszenia) ─ */
.lr-solution-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.lr-solution-copy { text-align: left; }
.lr-solution-copy .sz-eyebrow { margin-bottom: 14px; }
.lr-solution-copy h2 {
  margin: 0 0 14px; font-family: var(--font-heading); font-size: var(--fs-section, clamp(1.7rem, 2.7vw, 2.3rem));
  font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--text); text-wrap: balance;
}
.lr-solution-copy > p { margin: 0; max-width: 48ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.lr-solution-copy .sz-bullets { display: flex; margin-top: 24px; }
.lr-solution-copy .sz-bullet { font-size: 16px; }
.lr-phone {
  width: 248px; margin: 0 auto; background: #1c2530; border-radius: 40px; padding: 9px;
  box-shadow: 0 24px 54px rgba(17,17,17,0.22);
}
.lr-phone-screen { position: relative; height: 430px; border-radius: 32px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lr-phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 5; width: 72px; height: 20px; background: #0c1116; border-radius: 13px; }
.lr-msg-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px 0; color: #111; font-size: 11px; font-weight: 700; }
.lr-msg-ico { display: inline-flex; gap: 5px; align-items: center; }
.lr-msg-ico svg { height: 10px; width: auto; }
.lr-msg-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.lr-msg-back { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #2563eb; }
.lr-msg-back svg { width: 18px; height: 18px; }
.lr-msg-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.lr-msg-name { font-size: 12px; font-weight: 600; color: var(--text); }
.lr-msg-thread { flex: 1; padding: 14px; overflow: hidden; }
.lr-msg-day { text-align: center; font-size: 10px; color: var(--text-muted); margin-bottom: 12px; }
.lr-msg-typing {
  display: inline-flex; align-items: center; gap: 4px; background: #e9e9eb;
  border-radius: 16px; padding: 9px 12px; opacity: 0; animation: lrType 6.5s ease-in-out infinite;
}
.lr-msg-dot { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ad; animation: lrDot 1.1s ease-in-out infinite; }
.lr-msg-dot:nth-child(2) { animation-delay: 0.18s; }
.lr-msg-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes lrType {
  0% { opacity: 0; }
  4%, 18% { opacity: 1; }
  23%, 100% { opacity: 0; }
}
@keyframes lrDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.lr-msg-bubble {
  max-width: 84%; background: #e9e9eb; color: #111; border-radius: 18px 18px 18px 5px;
  padding: 10px 13px; font-size: 13px; line-height: 1.45;
  opacity: 0; transform-origin: left bottom; animation: lrBubbleIn 6.5s ease-in-out infinite;
}
@keyframes lrBubbleIn {
  0%, 23% { opacity: 0; transform: translateY(10px) scale(0.94); }
  29%, 94% { opacity: 1; transform: translateY(0) scale(1); }
  99%, 100% { opacity: 0; transform: translateY(10px) scale(0.94); }
}
.lr-msg-link { display: inline-block; margin-top: 4px; color: #2563eb; word-break: break-all; }
.lr-msg-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--border); }
.lr-msg-plus { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: #eef0f2; color: #8a929c; display: flex; align-items: center; justify-content: center; }
.lr-msg-plus svg { width: 16px; height: 16px; }
.lr-msg-field { flex: 1; height: 30px; border: 1px solid #d7dbe0; border-radius: 16px; display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: #9aa3ad; }
.lr-msg-send { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; }
.lr-msg-send svg { width: 15px; height: 15px; }

/* ── Równy rytm pionowy sekcji (gap ≈ 112px) ─────────── */
.lr-page .hero-std { padding-bottom: 88px; }
.lr-page .sz-problem { padding-top: 24px; padding-bottom: 88px; }
.lr-page .sz-solution { padding-top: 24px; padding-bottom: 88px; }
.lr-page .sz-steps { padding-top: 24px; padding-bottom: 88px; }
.lr-page .sz-objection { padding-top: 24px; padding-bottom: 88px; }

/* ── Responsywność ──────────────────────────────────── */
@media (max-width: 960px) {
  .lr-solution-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .lr-badge, .lr-status { min-width: 114px; }
}
