/* ============================================================
   Case study pages - Deezer-styled overrides
   Bold uppercase + electric blue, dark/light alternation.
   ============================================================ */

/* --- Hero ---------------------------------------------------- */

.cs-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 28px 32px;
}

.cs-back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  margin-bottom: 28px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-white);
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.cs-back:hover { color: var(--c-black); border-color: var(--c-black); }
.cs-back [data-lucide] { width: 14px; height: 14px; }

.cs-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  white-space: nowrap;
}
.cs-tag .dot {
  width: 4px; height: 4px;
  background: var(--c-blue);
  border-radius: 999px;
}

.cs-h1 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(36px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--c-black);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 1000px;
  overflow-wrap: anywhere;
}
.cs-h1 em { color: var(--c-blue); font-style: normal; }

.cs-lead {
  font-size: 19px;
  color: var(--c-muted);
  max-width: 720px;
  line-height: 1.55;
  margin: 0 0 36px;
}

/* Hero split: tekst po lewej, czytelny telefon po prawej, duży laptop pod spodem */
.cs-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 8px;
}
.cs-hero-split .cs-h1 { font-size: clamp(32px, 4.6vw, 64px); margin-bottom: 16px; }
.cs-hero-split .cs-lead { margin-bottom: 0; }
.cs-hero-phone { display: flex; justify-content: center; }
.cs-hero-phone img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  background: transparent;
}
.cs-hero-laptop { margin: 12px 0 40px; }
.cs-hero-laptop img {
  width: 100%;
  max-width: 1040px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
}
@media (max-width: 820px) {
  .cs-hero-split { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .cs-hero-phone { justify-content: center; width: 100%; }
  .cs-hero-phone img { max-width: 360px; }
}

.cs-hero-cover {
  aspect-ratio: 16 / 9;
  background: var(--c-blue-soft);
  border: 1.5px solid var(--c-black);
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin: 0 0 40px;
}
.cs-hero-cover image-slot { width: 100%; height: 100%; display: block; }

/* Demo variant - used when an interactive demo replaces the image */
.cs-hero-cover--demo {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

/* Gallery variant - used to show side-by-side product screenshots */
.cs-hero-cover--gallery {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.cs-gallery {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: end;
}
@media (max-width: 720px) {
  .cs-gallery { grid-template-columns: 1fr; gap: 18px; }
}

/* Variant: two phone-style mockups side by side, centered */
.cs-gallery--phones {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .cs-gallery--phones { grid-template-columns: 1fr; max-width: 360px; }
}

.cs-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-gallery img {
  display: block;
  width: 100%;
  background: transparent;
  height: auto;
  border-radius: 20px;
  background: var(--c-cream);
}
.cs-gallery-phone img {
  /* phone screenshot already has device chrome - display as-is, no frame */
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  background: transparent;
  max-width: 340px;
  margin: 0 auto;
}
.cs-gallery-web img {
  border: 1.5px solid var(--c-black);
  border-radius: 20px;
  box-shadow: 12px 12px 0 0 var(--c-blue);
  background: #fff;
}
.cs-gallery figcaption {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-align: center;
}

/* Variant: laptop + phone (oba z własną oprawą, transparentne) obok siebie, bez ramek/tła */
.cs-gallery--devices {
  grid-template-columns: 1.7fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin: 0 0 40px;
}
.cs-gallery--devices figure { margin: 0; }
.cs-gallery--devices img {
  width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.cs-gallery--devices .cs-gallery-phone img { max-width: 280px; margin: 0 auto; }
@media (max-width: 720px) {
  .cs-gallery--devices { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
  .cs-gallery--devices .cs-gallery-laptop img { max-width: 520px; }
}
@media (max-width: 720px) {
  .cs-gallery-web img { box-shadow: 6px 6px 0 0 var(--c-blue); }
  .cs-gallery-phone img { max-width: 260px; }
}

/* Toggle between multiple demos in the hero */
.cs-demo-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px;
  background: var(--c-cream);
  border: 1.5px solid var(--c-black);
  border-radius: 14px;
}
@media (max-width: 640px) {
  .cs-demo-switch { grid-template-columns: 1fr; }
}

.cs-demo-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-sans);
  color: var(--c-ink);
  transition: background .15s, border-color .15s;
  width: 100%;
}
.cs-demo-tab:hover { background: rgba(0,0,0,0.04); }
.cs-demo-tab.is-active {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black);
}
.cs-demo-tab [data-lucide] {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--c-blue);
  stroke-width: 2;
}
.cs-demo-tab.is-active [data-lucide] { color: var(--c-blue-bright); }
.cs-demo-tab > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-demo-tab strong {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.cs-demo-tab em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  opacity: .7;
  line-height: 1.35;
}

/* Stats row */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 56px;
}
@media (max-width: 880px) { .cs-stats { grid-template-columns: repeat(2, 1fr); } }

.cs-stat {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1.5px solid var(--c-black);
}
.cs-stat:nth-child(1) {
  background: var(--c-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-blue);
}
.cs-stat-big {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.cs-stat-big em { font-style: normal; color: inherit; opacity: .9; }
.cs-stat:not(:nth-child(1)) .cs-stat-big em { color: var(--c-blue); opacity: 1; }
.cs-stat-lbl {
  font-size: 13px;
  margin-top: 10px;
  opacity: .85;
  font-weight: 500;
}

/* --- StoryBrand 7 steps (dark island) ----------------------- */

.sb-section {
  background: var(--c-black);
  color: #fff;
  padding: 96px 0;
  position: relative;
  box-shadow: 0 0 0 100vmax var(--c-black);
  clip-path: inset(0 -100vmax);
}
.sb-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.sb-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.sb-title {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 18px 0 16px;
  max-width: 800px;
  overflow-wrap: anywhere;
}
.sb-title em { color: var(--c-blue-bright); font-style: normal; }
.sb-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 48px;
}

.sb-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 0; padding: 0;
}
.sb-row {
  display: grid;
  grid-template-columns: 56px 220px 1fr;
  gap: 32px;
  padding: 28px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: start;
  transition: background .2s;
}
.sb-row:hover { background: rgba(255,255,255,0.03); }
.sb-row-num {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-blue-bright);
  padding-top: 6px;
  letter-spacing: 0.04em;
}
.sb-row-label {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.015em;
}
.sb-row-text {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  text-wrap: pretty;
  font-style: normal;
}
.sb-row-text::before, .sb-row-text::after { content: ""; }
.sb-step { display: block; }
.sb-step + .sb-step { margin-top: 12px; }
.sb-step b { color: #fff; font-weight: 700; }

.sb-row--problem .sb-row-num,
.sb-row--porazka .sb-row-num { color: #FF6B6B; }
.sb-row--cta .sb-row-num,
.sb-row--sukces .sb-row-num { color: var(--c-blue-bright); }
.sb-row--sukces .sb-row-text { color: #fff; font-weight: 500; }

@media (max-width: 880px) {
  .sb-section { padding: 64px 0; }
  .sb-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; }
  .sb-row-label { grid-column: 2; font-size: 17px; margin-bottom: 4px; }
  .sb-row-text { grid-column: 2; font-size: 16px; }
}

/* --- Stack pills -------------------------------------------- */

.cs-stack {
  max-width: 1180px;
  margin: 80px auto 64px;
  padding: 0 28px;
}
.cs-stack-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.cs-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}
.cs-stack-pill {
  background: var(--c-white);
  border: 1.5px solid var(--c-black);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-black);
  white-space: nowrap;
}

/* --- CTA block ---------------------------------------------- */

.cs-cta-block {
  max-width: 1180px;
  margin: 88px auto 96px;
  padding: 0 28px;
}
.cs-cta-card {
  background: var(--c-black);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .cs-cta-card { padding: 40px 28px; gap: 24px; }
  .cs-cta-block { padding: 0 16px; }
  .cs-hero { padding-left: 18px; padding-right: 18px; }
  .cs-stack { padding: 0 18px; }
  .legal-hero, .legal-body { padding-left: 20px; padding-right: 20px; }
  .sb-inner { padding: 0 20px; }
}
.cs-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 100% 0%, rgba(79, 123, 255, 0.35), transparent 60%);
  pointer-events: none;
}
.cs-cta-card > * { position: relative; z-index: 1; }
.cs-cta-card h2 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  max-width: 600px;
  overflow-wrap: anywhere;
}
.cs-cta-card h2 em { color: var(--c-blue-bright); font-style: normal; }

/* Booking calendar inside the dark CTA card */
.cs-cta-lead {
  font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.78);
  max-width: 560px; margin: 0 auto;
}
.cs-cta-cal { width: 100%; max-width: 560px; margin: 8px auto 0; text-align: left; }
.cs-cta-cal .cc-widget { width: 100%; max-width: 100%; }
@media (max-width: 640px) {
  .cs-cta-cal { max-width: 100%; }
}

/* --- Widget section (kept light, in case it's used) --------- */

.cs-widget-section {
  background: var(--c-cream);
  padding: 96px 0;
  border-radius: 0;
  margin-top: 0;
}
.cs-widget-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.cs-widget-eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.cs-widget-title {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--c-black);
  margin: 10px 0 14px;
  max-width: 800px;
}
.cs-widget-title em { color: var(--c-blue); font-style: normal; }
.cs-widget-lead {
  font-size: 17px;
  color: var(--c-muted);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 40px;
}

/* --- Legal pages (polityka / regulamin) --------------------- */

.legal-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 28px 24px;
}
.legal-hero .g-eyebrow {
  background: var(--c-blue-soft);
  color: var(--c-blue);
  border-color: transparent;
}
.legal-hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-black);
  margin: 18px 0 16px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.legal-hero h1 em { color: var(--c-blue); font-style: normal; }
.legal-hero .legal-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 28px 96px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
}
.legal-body p { margin: 14px 0; color: var(--c-muted); }
.legal-body p strong { color: var(--c-black); font-weight: 600; }
.legal-body h2 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  color: var(--c-black);
  margin: 56px 0 16px;
  text-wrap: balance;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-body h2:first-of-type { margin-top: 32px; }
.legal-body h2 .num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.legal-body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  color: var(--c-black);
  margin: 24px 0 8px;
  letter-spacing: -0.005em;
}
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 14px 0; color: var(--c-muted); }
.legal-body li { margin: 8px 0; }
.legal-body li::marker { color: var(--c-blue); }
.legal-body li strong { color: var(--c-black); font-weight: 600; }
.legal-body a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--c-blue-deep); }

.legal-placeholder {
  background: rgba(45, 90, 247, 0.05);
  border: 1px dashed rgba(45, 90, 247, 0.4);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-blue-deep);
  margin: 14px 0;
}
.legal-placeholder::before { content: "// "; opacity: 0.6; }

.legal-toc {
  background: var(--c-cream);
  border: 1.5px solid var(--c-black);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin: 28px 0 48px;
}
.legal-toc-title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 14px;
}
.legal-toc ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
  counter-reset: toc;
  column-count: 2;
  column-gap: 36px;
}
.legal-toc li {
  counter-increment: toc;
  padding: 5px 0;
  font-size: 14.5px;
  break-inside: avoid;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero) ".";
  font-family: var(--f-mono);
  color: var(--c-blue);
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
}
.legal-toc a { color: var(--c-ink); text-decoration: none; font-weight: 500; }
.legal-toc a:hover { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .legal-hero { padding: 64px 20px 20px; }
  .legal-body { padding: 24px 20px 64px; }
  .legal-toc { padding: 22px 22px; }
  .legal-toc ol { column-count: 1; }
  .legal-body h2 { flex-direction: column; gap: 4px; }
}
