/* ============================================================
   Rise360 — Prezentacja: slides.css
   Stage (skalowane 16:9), chrome UI, overview, 7 szablonów
   ============================================================ */

/* ---------- Stage / letterbox ---------- */
.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.deck {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  transform-origin: center center;   /* skalowane przez engine.js */
  flex: none;
}

/* ---------- Slide base ---------- */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  background: var(--bg-light);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility 0s linear var(--t);
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease);
  z-index: 2;
}
.slide.prev { transform: translateX(-40px); }     /* wychodzący w lewo */

/* Watermark logo Rise (małe, prawy dół jasnych slajdów) */
.slide__brand {
  position: absolute;
  bottom: calc(var(--pad) * .55);
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gray);
  z-index: 3;
}
.slide__brand .sep { width: 1px; height: 16px; background: var(--line); }

/* Logo Rise — auto white/black wg jasności slajdu */
.rise-logo { display: inline-flex; align-items: center; line-height: 0; }
.rise-logo img { display: block; width: auto; }
.rise-logo .l-white { display: none; }
.slide--dark .rise-logo .l-black { display: none; }
.slide--dark .rise-logo .l-white { display: block; }
.slide__brand .rise-logo img { height: 24px; }
.slide--dark .slide__brand { color: var(--on-dark-soft); }
.slide--dark .slide__brand .sep { background: var(--on-dark-faint); }

/* Wspólne elementy */
.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slide--dark .kicker { color: var(--accent); }
.lead { font-size: 20px; font-weight: 300; color: var(--gray-soft); line-height: 1.55; max-width: 60ch; }
.slide--dark .lead { color: var(--on-dark-soft); }
.accent-rule { width: 64px; height: 5px; background: var(--accent); border-radius: 3px; margin-top: 28px; }

h1 { font-size: 58px; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: 40px; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: 22px; font-weight: 600; }

/* Slajd ciemny */
.slide--dark {
  background: radial-gradient(120% 130% at 80% -10%, var(--navy-soft) 0%, var(--navy) 55%);
  color: var(--on-dark);
}
.slide--light-2 { background: var(--bg-light-2); }

/* ============================================================
   1. TITLE — tytuł + opis
   ============================================================ */
.t-title h1 { margin-bottom: 22px; max-width: 18ch; }
.t-title .lead { max-width: 52ch; }

/* topbar co-branding (tytuł) */
.cobrand {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cobrand .rise-logo img { height: 38px; }
.cobrand .client {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--on-dark-soft);
}
.cobrand .client::before { content: ""; width: 1px; height: 28px; background: var(--on-dark-faint); }
.cobrand .client img { height: 34px; width: auto; max-width: 180px; object-fit: contain; }

/* ============================================================
   2. TEXT + MEDIA — split 50/50
   ============================================================ */
.t-text-media { flex-direction: row; padding: 0; gap: 0; }
.t-text-media .col-text {
  flex: 1; padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
.t-text-media .col-text h2 { margin-bottom: 18px; }
.t-text-media .col-media {
  flex: 1; position: relative; background: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.t-text-media.media-left { flex-direction: row-reverse; }
.media-fill { width: 100%; height: 100%; object-fit: cover; display: block; }
/* diagramy/SVG: pokaż w całości bez przycinania boków */
.media-fill.media-contain { object-fit: contain; background: #F4F6FB; padding: 24px; }
.media-fill[data-src]:not([src]) { background: linear-gradient(135deg, var(--accent), var(--navy)); }
.media-frame { width: 100%; height: 100%; border: 0; display: block; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 22px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* ============================================================
   3. INFOGRAPHIC — duże liczby
   ============================================================ */
.t-infographic h2 { margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 32px; }
.stat .num { font-size: 64px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.stat .num small { font-size: 34px; font-weight: 600; }
.stat .stat-label { font-size: 17px; margin-top: 12px; font-weight: 500; }
.stat .stat-desc { font-size: 14px; color: var(--gray); margin-top: 4px; font-weight: 300; }
.slide--dark .stat .stat-desc { color: var(--on-dark-soft); }
.stat .bar { height: 6px; background: var(--bg-light-2); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.slide--dark .stat .bar { background: var(--on-dark-faint); }
.stat .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .9s var(--ease); }

/* wariant z ikonami w kółkach */
.icons-row { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 28px; }
.icon-item { text-align: center; }
.icon-item .badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 36px;
}
.icon-item h3 { font-size: 18px; margin-bottom: 6px; }
.icon-item p { font-size: 14px; color: var(--gray); font-weight: 300; }

/* ============================================================
   4. TABLE
   ============================================================ */
.t-table h2 { margin-bottom: 32px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.r-table thead th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 16px 20px; font-weight: 500; font-size: 15px;
  letter-spacing: .02em;
}
.r-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.r-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.r-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.r-table tbody tr:nth-child(even) { background: var(--bg-light-3); }
.r-table tbody tr.is-highlight { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.r-table tbody tr.is-highlight td { font-weight: 600; }
.r-table td .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-link);
}

/* ============================================================
   5. PRICING — wycena
   ============================================================ */
.t-pricing h2 { margin-bottom: 36px; }
.price-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 22px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; background: #fff;
}
.price-card.is-featured {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 24px 60px rgba(17,24,39,.28); transform: translateY(-10px);
}
.price-card .tier { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); font-weight: 600; }
.price-card.is-featured .tier { color: var(--accent); }
.price-card .badge-top {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.price-card .amount { font-size: 44px; font-weight: 700; margin: 14px 0 4px; letter-spacing: -.02em; }
.price-card .amount span { font-size: 16px; font-weight: 400; color: var(--gray); }
.price-card.is-featured .amount span { color: var(--on-dark-soft); }
.price-card ul { list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.price-card li { font-size: 15px; font-weight: 300; padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .price-cta {
  margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 15px; color: var(--accent);
}
.price-card.is-featured .price-cta { color: #fff; }

/* ============================================================
   6. CTA — pełnoekranowy
   ============================================================ */
.t-cta { align-items: flex-start; text-align: left; }
.t-cta h2 { font-size: 52px; max-width: 20ch; margin-bottom: 22px; }
.t-cta .lead { margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 18px; padding: 16px 32px; border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost { background: transparent; border: 1.5px solid var(--on-dark-faint); color: #fff; }
.cta-contact { display: flex; gap: 40px; margin-top: 40px; font-size: 16px; color: var(--on-dark-soft); }
.cta-contact b { color: #fff; font-weight: 600; display: block; font-size: 18px; }

/* ============================================================
   7. SECTION — przerywnik
   ============================================================ */
.t-section { justify-content: center; }
.t-section .sec-num { font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: .2em; }
.t-section h2 { font-size: 72px; margin-top: 12px; max-width: 16ch; }

/* ============================================================
   Wspólne dla szablonów 8–11: nagłówek z belką + miękkie tło
   ============================================================ */
.head-bar {
  display: flex; align-items: center; gap: 16px;
  font-size: 34px; font-weight: 700; line-height: 1.12; color: var(--navy);
  letter-spacing: -.01em;
}
.head-bar::before {
  content: ""; flex: none; width: 6px; height: 1.05em;
  background: var(--accent); border-radius: 3px;
}
.slide--dark .head-bar { color: #fff; }

/* miękkie tło z delikatnymi plamami w narożnikach */
.slide--soft { background: var(--bg-light-3); }
.slide--soft::before, .slide--soft::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none;
}
.slide--soft::before {
  width: 340px; height: 340px; right: -90px; top: -110px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}
.slide--soft::after {
  width: 280px; height: 280px; left: -100px; bottom: -110px;
  background: radial-gradient(circle, rgba(16,185,129,.22), transparent 70%);
}
.slide--soft > * { position: relative; z-index: 1; }

/* ============================================================
   8. QUOTE — cytat / statystyka z atrybucją
   ============================================================ */
.t-quote { justify-content: flex-start; }
.t-quote .head-bar { margin-bottom: 24px; }
.t-quote .quote-body { margin: auto 0; text-align: center; align-self: center; max-width: 46ch; }
.t-quote .q-mark {
  font-family: Georgia, "Times New Roman", serif; font-size: 72px; font-weight: 700;
  color: var(--accent); line-height: .4; display: block; margin-bottom: 18px;
}
.t-quote blockquote { font-size: 32px; font-weight: 500; line-height: 1.42; color: var(--navy); }
.t-quote blockquote b { color: var(--accent); font-weight: 700; }
.t-quote .q-source {
  margin-top: 30px; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   9. CARDS — kafelki z ikoną, opisem i źródłem
   ============================================================ */
.t-cards { justify-content: flex-start; }
.t-cards .head-bar { margin-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 26px; margin: auto 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 14px 36px rgba(17,24,39,.06);
  display: flex; flex-direction: column;
}
.card .card-icon { font-size: 30px; line-height: 1; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 21px; color: var(--navy); margin-bottom: 12px; }
.card p { font-size: 15.5px; font-weight: 300; color: var(--gray-soft); line-height: 1.62; }
.card .card-source {
  margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   10. STAT-TEXT — duża liczba + blok tekstu
   ============================================================ */
.t-stat-text { justify-content: flex-start; }
.t-stat-text .head-bar { margin-bottom: 48px; }
.st-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; margin: auto 0; }
.st-num {
  font-size: 120px; font-weight: 700; line-height: .92; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent) 10%, #22D3EE 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-num .pre { font-size: 42px; font-weight: 600; margin-right: 10px; }
.st-num small { font-size: 64px; font-weight: 700; }
.st-label {
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); margin-top: 10px;
}
.st-text h3 { font-size: 24px; color: var(--navy); margin-bottom: 16px; }
.st-text p { font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--gray-soft); }
.st-text p + p { margin-top: 12px; }
.st-text .st-source {
  margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray);
}

/* ============================================================
   11. COMPARISON — porównanie produktów (✓ / ✗ / wartość)
   ============================================================ */
.t-compare { justify-content: flex-start; }
.t-compare .head-bar { margin-bottom: 36px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 17px; margin: auto 0; }
.cmp thead th {
  padding: 16px 18px; text-align: center; font-weight: 600; font-size: 16px; color: var(--navy);
}
.cmp thead th:first-child {
  text-align: left; font-weight: 500; font-size: 14px; color: var(--gray);
  text-transform: uppercase; letter-spacing: .08em;
}
.cmp thead th.is-featured {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cmp tbody td { padding: 14px 18px; text-align: center; font-weight: 500; border-top: 1px solid var(--line); }
.cmp tbody td:first-child { text-align: left; font-weight: 400; color: var(--gray-soft); }
.cmp tbody td.is-featured { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--navy); font-weight: 700; }
.cmp tbody tr:last-child td.is-featured { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.cmp .yes, .cmp .no { font-size: 20px; font-weight: 700; line-height: 1; }
.cmp .yes { color: #10B981; }                         /* ✓ */
.cmp .no  { color: #EF4444; }                          /* ✗ */
.cmp td.is-featured .yes { color: var(--accent); }
.cmp .cmp-note { display: block; font-size: 12px; font-weight: 400; color: var(--gray); margin-top: 2px; }

/* ============================================================
   CHROME UI — progress, counter, arrows, hint
   ============================================================ */
.ui { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.ui > * { pointer-events: auto; }

.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--accent); transition: width var(--t) var(--ease); z-index: 60;
}
.counter {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: rgba(255,255,255,.85); letter-spacing: .05em;
  background: rgba(17,24,39,.55); padding: 7px 16px; border-radius: 999px;
  backdrop-filter: blur(8px); font-variant-numeric: tabular-nums;
}
.counter b { color: #fff; font-weight: 600; }

.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px;
  display: grid; place-items: center; backdrop-filter: blur(8px);
  transition: background var(--t-fast), opacity var(--t-fast);
}
.nav-arrow:hover { background: rgba(255,255,255,.25); }
.nav-arrow[disabled] { opacity: .25; cursor: default; }
.nav-arrow.prev { left: 20px; }
.nav-arrow.next { right: 20px; }

.toolbar {
  position: fixed; top: 18px; right: 18px; display: flex; gap: 8px;
}
.toolbar button {
  width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 16px;
  display: grid; place-items: center; backdrop-filter: blur(8px);
  transition: background var(--t-fast);
}
.toolbar button:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   OVERVIEW (siatka miniatur)
   ============================================================ */
.overview {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,12,22,.94); backdrop-filter: blur(6px);
  display: none; padding: 56px; overflow-y: auto;
}
.overview.open { display: block; }
.overview h4 {
  color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 24px; opacity: .7;
}
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ov-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; background: #fff;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.ov-thumb:hover { transform: translateY(-3px); }
.ov-thumb.current { border-color: var(--accent); }
.ov-thumb .ov-scale { position: absolute; top: 0; left: 0; width: var(--slide-w); height: var(--slide-h); transform-origin: top left; }
.ov-thumb .ov-no {
  position: absolute; bottom: 8px; left: 10px; z-index: 5;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(17,24,39,.7); padding: 2px 9px; border-radius: 6px;
}

/* ============================================================
   Responsive: na małych ekranach chrome mniejszy
   ============================================================ */
@media (max-width: 640px) {
  .nav-arrow { width: 42px; height: 42px; font-size: 18px; }
  .toolbar button { width: 34px; height: 34px; }
}

/* ============================================================
   LIVE-DEMO — demo wyszukiwarki w ramce przeglądarki (iframe)
   ============================================================ */
.t-live-demo { justify-content: flex-start; gap: 18px; padding: 36px 40px; }
.t-live-demo .head-bar { flex: none; font-size: 30px; }
.demo-frame {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #1b1b1b;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .18);
}
.demo-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: #2a2a2a; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: #555; flex: none; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url {
  margin-left: 10px; padding: 5px 16px; border-radius: 999px;
  background: #1b1b1b; color: #bdbdbd; font-size: 13px; font-weight: 500;
}
.demo-hint { margin-left: auto; color: #8a8a84; font-size: 13px; }
/* viewport przycina; iframe renderuje się w 1/0.6 = 166.667% rozmiaru i jest
   skalowany do 60% — treść demo wygląda na mniejszą, a wypełnia całą ramkę */
.demo-viewport { flex: 1; min-height: 0; overflow: hidden; position: relative; background: #1b1b1b; }
.demo-iframe {
  position: absolute; top: 0; left: 0;
  width: 166.667%; height: 166.667%;
  transform: scale(.6); transform-origin: top left;
  border: 0; background: #1b1b1b; display: block;
}
