/* ==========================================================================
   LANDING KURSU „Claude od podstaw" (kurs/index.html)
   ========================================================================== */

.kurs-hero { padding-bottom: 40px; }
.kurs-hero__layout { grid-template-columns: 1.2fr 0.8fr; }
.kurs-hero .hero__title { font-size: 52px; }
.kurs-hero .hero__lead { max-width: 560px; }

.kurs-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; max-width: 580px; font-size: 16.5px; line-height: 1.55; color: var(--text-soft); }
.kurs-points li { position: relative; padding-left: 24px; }
.kurs-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--acid); }
.kurs-points b { color: var(--ink); }

.kurs-facts {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  font-size: 14.5px; color: var(--text-mute);
}
.kurs-facts b { font-family: var(--head-font); font-size: 22px; color: var(--ink); margin-right: 6px; }
.kurs-facts .dot-live { margin-right: 8px; }
.kurs-author { margin-top: 26px; max-width: 580px; }

/* ==========================================================================
   Telefon: symulacja rolek (przewijanie lekcji + menu z modułami)
   ========================================================================== */

.kurs-phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kurs-phone {
  position: relative; width: 280px; aspect-ratio: 390 / 844;
  border-radius: 38px; padding: 10px; background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(22, 22, 15, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(-3deg);
  overflow: hidden;
  color: #f4f1e9; font-family: var(--body-font);
}
.kurs-phone::before { content: ""; position: absolute; inset: 10px; border-radius: 30px; background: #0b0b08; z-index: 0; }
.kurs-phone > * { position: relative; z-index: 1; }

.demo-top { position: absolute; left: 22px; right: 22px; top: 24px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.demo-top__mark { width: 20px; height: 20px; border-radius: 3px; background: #16160f; border: 1px solid rgba(244,241,233,0.3); display: flex; align-items: baseline; justify-content: center; padding-top: 3px; box-sizing: border-box; font-family: var(--head-font); font-weight: 700; font-size: 12px; line-height: 1; }
.demo-top__mark i { font-style: normal; color: var(--acid); }
.demo-top__title { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--head-font); font-weight: 700; font-size: 11px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.demo-top__title small { font-family: var(--mono-font); font-weight: 400; font-size: 8px; color: #d6d1c1; }

.demo-feed { position: absolute; left: 10px; right: 10px; top: 10px; bottom: 10px; border-radius: 30px; overflow: hidden; }
.demo-feed .demo-slide {
  position: absolute; inset: 0; background: #000;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.demo-slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.demo-cap { position: absolute; left: 14px; right: 50px; bottom: 26px; z-index: 2; }
.demo-cap i { display: block; font-family: var(--mono-font); font-style: normal; font-size: 7.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--acid); margin-bottom: 3px; }
.demo-cap b { display: block; font-family: var(--head-font); font-weight: 700; font-size: 11px; line-height: 1.25; }

.demo-rail { position: absolute; right: 18px; bottom: 80px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.demo-rail__btn { width: 28px; height: 28px; border-radius: 50%; background: rgba(22,22,15,0.62); border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; }
.demo-rail__btn svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-rail__btn--txt { font-family: var(--mono-font); font-size: 8px; font-weight: 700; background: var(--acid); color: var(--ink); }
.demo-rail__btn.is-press { transform: scale(0.85); background: var(--acid); }
.demo-progress { position: absolute; left: 22px; right: 22px; bottom: 18px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.25); z-index: 4; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--acid); border-radius: inherit; transition: width 0.3s linear; }

/* palec: pokazuje przewinięcie i dotknięcie */
.demo-finger {
  position: absolute; z-index: 6; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: 2px solid rgba(255,255,255,0.8);
  left: 50%; top: 62%; margin: -11px 0 0 -11px; opacity: 0;
  transition: top 0.5s cubic-bezier(0.3, 0.7, 0.3, 1), left 0.4s ease, opacity 0.25s ease, transform 0.2s ease;
}
.demo-finger.is-on { opacity: 1; }
.demo-finger.is-tap { transform: scale(0.7); }

/* arkusz z modułami */
.demo-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 78%;
  border-radius: 22px 22px 30px 30px; background: #15150f; z-index: 5;
  transform: translateY(104%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 10px 14px 0; overflow: hidden;
}
.demo-sheet.is-open { transform: translateY(0); }
.demo-sheet__grip { width: 30px; height: 4px; border-radius: 4px; background: rgba(244,241,233,0.2); margin: 0 auto 10px; }
.demo-sheet__head i { display: block; font-style: normal; font-family: var(--mono-font); font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.demo-sheet__head b { display: block; font-family: var(--head-font); font-size: 15px; line-height: 1.1; margin: 3px 0 2px; }
.demo-sheet__head span { font-family: var(--mono-font); font-size: 8px; color: #8a8577; }
.demo-meter { height: 4px; border-radius: 4px; background: #26261d; margin: 8px 0 4px; overflow: hidden; }
.demo-meter i { display: block; width: 5%; height: 100%; background: var(--acid); }
.demo-sheet__list { border-top: 1px solid rgba(244,241,233,0.08); margin-top: 6px; padding-top: 4px; }
.demo-mod { display: flex; align-items: baseline; gap: 6px; padding: 9px 4px 4px; font-family: var(--head-font); font-weight: 700; font-size: 10.5px; }
.demo-mod i { font-family: var(--mono-font); font-style: normal; font-weight: 400; font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8577; }
.demo-mod span { margin-left: auto; font-family: var(--mono-font); font-weight: 400; font-size: 7.5px; color: #8a8577; }
.demo-les { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; padding: 5px 4px; border-radius: 7px; font-size: 9px; color: #e3dfd2; }
.demo-les b { width: 18px; height: 18px; border-radius: 50%; background: #26261d; display: grid; place-items: center; font-family: var(--mono-font); font-weight: 600; font-size: 7.5px; color: #b9b3a0; }
.demo-les.is-done b { background: var(--acid); color: var(--ink); }
.demo-les.is-done { color: #9a9483; }
.demo-les.is-cur { background: rgba(205,221,26,0.12); box-shadow: inset 0 0 0 1px rgba(205,221,26,0.35); color: #fff; }
.demo-les.is-cur b { background: #22240f; color: var(--acid); }
.demo-les.is-pick { background: rgba(205,221,26,0.35); }

.kurs-phone__note { margin: 0; font-family: var(--mono-font); font-size: 12px; color: var(--text-faint); text-align: center; }

/* ==========================================================================
   Chmura haseł: obracająca się kula
   ========================================================================== */

.kurs-cloud-block { position: relative; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.kurs-cloud-title { margin: 0 0 10px; }
.kurs-cloud-block .kicker { justify-content: center; }
.kurs-cloud-lead { margin: 0 auto 0; max-width: 560px; color: var(--text-soft); font-size: 17px; line-height: 1.55; }

.kurs-sphere {
  position: relative; height: 600px; max-width: 1180px; margin: 0 auto;
  perspective: 900px; overflow: hidden; cursor: grab;
}
.kurs-sphere span {
  position: absolute; left: 50%; top: 50%;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line-strong);
  font-size: 16px; color: var(--text-soft);
  will-change: transform, opacity;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.kurs-sphere span.is-front { background: var(--acid); border-color: var(--acid); color: var(--ink); font-weight: 700; box-shadow: 0 14px 34px -14px rgba(205,221,26,0.9); }

.kurs-cloud-cta { margin-top: 10px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.kurs-cloud-cta__note { font-size: 14px; color: var(--text-faint); }

/* ==========================================================================
   Wezwanie na koniec
   ========================================================================== */

.kurs-final { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.kurs-final__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.kurs-final__title { font-family: var(--head-font); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.kurs-final__lead { margin: 0; color: var(--text-soft); font-size: 16.5px; line-height: 1.5; max-width: 560px; }
.kurs-final__btn { font-size: 18px; padding: 20px 32px; }

@media (max-width: 1024px) {
  .kurs-hero__layout, .kurs-final__inner { grid-template-columns: 1fr; }
  .kurs-phone-wrap { order: -1; }
  .kurs-phone { width: 230px; transform: none; }
  .kurs-sphere { height: 440px; }
}
@media (max-width: 720px) {
  .kurs-hero .hero__title { font-size: 38px; }
  .kurs-sphere { height: 380px; }
  .kurs-sphere span { font-size: 12.5px; padding: 6px 10px; }
  .kurs-final { padding: 48px 0; }
  .kurs-final__title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-feed .demo-slide, .demo-sheet, .demo-finger { transition: none; }
}
