/* ================================================================
   PAGE: Monitoring AI — showcase (cinematic scroll storytelling)
   Scoped under .p-aidemo. Loaded only on this page.
   Brand: dark #06080F + orange #FF6B00. Progressive enhancement.
   ================================================================ */

/* ---- HERO: subtle ambient background motion (elegant, GPU-cheap) ---- */
.p-aidemo .hero-ai__grad::after {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 52% at 32% 42%, rgba(255,107,0,.10), transparent 70%);
  animation: aidemo-ambient 15s ease-in-out infinite alternate;
}
@keyframes aidemo-ambient {
  from { transform: translate3d(0, 0, 0); opacity: .55; }
  to   { transform: translate3d(6%, 4%, 0); opacity: 1; }
}
/* ---- HERO: refined staggered entrance on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .p-aidemo .hero-ai__content > * { opacity: 0; animation: aidemo-rise .8s cubic-bezier(.16,1,.3,1) forwards; }
  .p-aidemo .hero-ai__content > *:nth-child(1) { animation-delay: .10s; }
  .p-aidemo .hero-ai__content > *:nth-child(2) { animation-delay: .22s; }
  .p-aidemo .hero-ai__content > *:nth-child(3) { animation-delay: .34s; }
  .p-aidemo .hero-ai__content > *:nth-child(4) { animation-delay: .46s; }
}
@keyframes aidemo-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .p-aidemo .hero-ai__grad::after { animation: none; }
  .p-aidemo .hero-ai__content > * { opacity: 1; animation: none; }
}

/* ---- STORY INTRO / OUTRO: rich SEO lead-in & summary (native scroll) ---- */
.p-aidemo .story-intro { position: relative; background: var(--bg-darker); padding: clamp(56px,8vh,104px) 0; }
.p-aidemo .story-intro .container { max-width: var(--container-w,1240px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; text-align: left; }
.p-aidemo .story-intro .eyebrow-ai { justify-content: flex-start; margin-bottom: 14px; }
.p-aidemo .story-intro__media { position: relative; margin: 0; }
.p-aidemo .story-intro__media img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,107,0,.14); }
.p-aidemo .story-intro__scan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; border-radius: 16px; pointer-events: none; }
@media (max-width: 860px) { .p-aidemo .story-intro .container { grid-template-columns: 1fr; } .p-aidemo .story-intro__media { order: -1; } }
.p-aidemo .story-intro h2 { font-size: clamp(1.9rem,3.6vw,2.8rem); line-height: 1.12; margin: 4px 0 20px; }
.p-aidemo .story-intro h2 .accent { color: var(--accent); }
.p-aidemo .story-intro p { color: var(--text-secondary); line-height: 1.8; font-size: clamp(1rem,1.3vw,1.1rem); }
.p-aidemo .story-intro p strong, .p-aidemo .story-outro p strong { color: var(--text-primary); font-weight: 600; }
.p-aidemo .story-outro { position: relative; background: var(--bg-darker); padding: clamp(28px,4vh,52px) 0 clamp(64px,10vh,130px); text-align: center; }
.p-aidemo .story-outro .container { max-width: 840px; }
.p-aidemo .story-outro p { color: var(--text-secondary); line-height: 1.8; font-size: clamp(1rem,1.3vw,1.1rem); margin-bottom: 22px; }
.p-aidemo .story-quote {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(1.35rem,2.6vw,2.05rem); line-height: 1.35; color: var(--text-primary);
  border-left: 3px solid var(--accent); padding: 4px 0 4px 24px;
  margin: 0 auto 26px; max-width: 760px; text-align: left;
}
.p-aidemo .story-quote .accent { color: var(--accent); }
.p-aidemo .story-regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 30px; }
.p-aidemo .story-regions a {
  padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(255,107,0,.28);
  background: rgba(255,107,0,.06); color: var(--text-secondary); font-size: .9rem; text-decoration: none;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), background .25s var(--ease-out), transform .25s var(--ease-out);
}
.p-aidemo .story-regions a:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,0,.12); transform: translateY(-2px); }
.p-aidemo .btn-lg { padding: 18px 40px; font-size: .95rem; }

/* ---- TRUST STRIP (credibility for non-scrollers) ---- */
.p-aidemo .trust-strip {
  position: relative; z-index: 6; margin-top: -94px; padding: 22px 0;
  background: rgba(6,8,15,.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255,107,0,.24);
  border-bottom: 1px solid rgba(255,107,0,.14);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .p-aidemo .trust-strip { background: rgba(6,8,15,.94); }
}
.p-aidemo .trust-strip .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.p-aidemo .trust-item { display: flex; align-items: center; gap: 14px; }
.p-aidemo .trust-item svg { width: 30px; height: 30px; stroke: var(--accent); flex-shrink: 0; }
.p-aidemo .trust-item b { display: block; font-family: var(--font-heading); font-size: 1.02rem; color: var(--text-primary); letter-spacing: .5px; line-height: 1.2; }
.p-aidemo .trust-item span { display: block; font-size: .8rem; color: var(--text-muted); line-height: 1.4; margin-top: 3px; }
@media (max-width: 900px) { .p-aidemo .trust-strip .container { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 540px) { .p-aidemo .trust-strip .container { grid-template-columns: 1fr; } }

/* ---- REGION BAR (local SEO, one-row area links) ---- */
.p-aidemo .region-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 4px;
  max-width: var(--container-w,1240px); margin: 0 auto; padding: 15px clamp(16px,4vw,40px);
  background: var(--bg-darker); border-bottom: 1px solid var(--border-subtle); font-size: .86rem;
}
.p-aidemo .region-bar__label { color: var(--text-muted); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; margin-right: 6px; }
.p-aidemo .region-bar a { color: var(--text-secondary); text-decoration: none; padding: 2px 3px; transition: color .2s var(--ease-out); }
.p-aidemo .region-bar a::after { content: "·"; color: rgba(255,107,0,.55); margin-left: 7px; }
.p-aidemo .region-bar a:last-of-type::after { content: ""; margin: 0; }
.p-aidemo .region-bar a:hover { color: var(--accent); }

/* ---- MINI COMPARISON: zwykły vs AI ---- */
.p-aidemo .compare-mini { background: var(--bg-body); padding: clamp(56px,8vh,110px) 0; }
.p-aidemo .compare-mini__head { text-align: center; margin-bottom: 40px; }
.p-aidemo .compare-mini__head .eyebrow-ai { justify-content: center; margin-bottom: 12px; }
.p-aidemo .compare-mini__head h2 { font-size: clamp(1.8rem,3.6vw,2.8rem); }
.p-aidemo .compare-mini__head h2 .accent { color: var(--accent); }
.p-aidemo .compare-mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
@media (max-width: 760px) { .p-aidemo .compare-mini__grid { grid-template-columns: 1fr; } }
.p-aidemo .compare-mini__col { position: relative; padding: 32px 28px; border-radius: 16px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,.02); }
.p-aidemo .compare-mini__col.is-ai { border-color: rgba(255,107,0,.35); background: linear-gradient(160deg, rgba(255,107,0,.08), rgba(255,107,0,.02)); box-shadow: var(--shadow-2); }
.p-aidemo .compare-mini__col h3 { font-size: 1.2rem; margin-bottom: 18px; }
.p-aidemo .compare-mini__col.is-ai h3 { color: var(--accent); }
.p-aidemo .compare-mini__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.p-aidemo .compare-mini__col li { position: relative; padding-left: 28px; color: var(--text-secondary); line-height: 1.5; }
.p-aidemo .compare-mini__col li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--text-muted); font-weight: 700; }
.p-aidemo .compare-mini__col.is-ai li::before { content: "✓"; color: var(--accent); }
.p-aidemo .compare-mini__col.is-ai li { color: var(--text-primary); }
.p-aidemo .compare-mini__badge { position: absolute; top: -12px; right: 22px; background: var(--accent); color: #0A0E1A; font-family: var(--font-heading); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }

.p-aidemo { --scan: #4fd6ff; }               /* tech-cyan accent for AI scan */

/* ---- generic section rhythm ---- */
.p-aidemo .scene { position: relative; padding: clamp(64px, 10vh, 140px) 0; }
.p-aidemo .scene .container { position: relative; z-index: 2; }
.p-aidemo .measure { max-width: 68ch; }
.p-aidemo .eyebrow-ai {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); text-transform: uppercase;
  letter-spacing: 3px; font-size: .74rem; color: var(--accent);
  margin-bottom: 14px;
}
.p-aidemo .eyebrow-ai::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
}
.p-aidemo h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: .5px; }
.p-aidemo h2 .accent { color: var(--accent); }
.p-aidemo .lead { color: var(--text-secondary); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.7; }

/* ================================================================
   HERO STAGE — pinned "container scroll": night scene shrinks to
   centre while SEO columns slide in from the sides.
   ================================================================ */
.p-aidemo .stage { position: relative; height: 100vh; min-height: 640px; overflow: clip; }
.p-aidemo .stage__track {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr minmax(320px, 46vw) 1fr;
  align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 0 clamp(16px, 4vw, 72px);
}
.p-aidemo .stage__visual {
  position: relative; grid-column: 2; justify-self: center;
  width: 100%; aspect-ratio: 16 / 10; max-height: 82vh;
  border-radius: 8px; overflow: hidden; will-change: transform;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,107,0,.14);
}
.p-aidemo .stage__visual img.stage__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.72) contrast(1.05) saturate(1.05);
}
.p-aidemo #ai-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.p-aidemo .stage__grad {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(120% 90% at 50% 60%, transparent 40%, rgba(4,5,10,.7) 100%),
              linear-gradient(180deg, rgba(4,5,10,.5) 0%, transparent 30%, rgba(4,5,10,.85) 100%);
}
.p-aidemo .stage__copy {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 24px;
}
.p-aidemo .stage__copy h1 {
  font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: .5px;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.p-aidemo .stage__copy h1 .accent { color: var(--accent); }
.p-aidemo .stage__copy p { margin-top: 16px; max-width: 34ch; color: var(--text-secondary); font-size: clamp(.95rem, 1.4vw, 1.15rem); }

.p-aidemo .stage__side {
  align-self: center; max-width: 340px;
  opacity: 0;                     /* revealed by choreography (JS) */
}
.p-aidemo .stage__side--left { grid-column: 1; justify-self: end; text-align: right; }
.p-aidemo .stage__side--right { grid-column: 3; justify-self: start; text-align: left; }
.p-aidemo .stage__side h2 { font-size: 1.05rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; }
.p-aidemo .stage__side p { font-size: .92rem; color: var(--text-secondary); line-height: 1.65; }
.p-aidemo .stage__side .stat-big { font-family: var(--font-heading); font-size: 2.4rem; color: var(--text-primary); line-height: 1; display:block; }

.p-aidemo .scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.p-aidemo .scroll-cue span.dot { width: 3px; height: 22px; border-radius: 3px; background: linear-gradient(var(--accent), transparent); animation: aidemo-cue 1.8s ease-in-out infinite; }
@keyframes aidemo-cue { 0%,100%{opacity:.3; transform:translateY(0)} 50%{opacity:1; transform:translateY(4px)} }

/* No-JS / reduced-motion: show hero statically, sides visible in flow */
html:not(.cin-on) .p-aidemo .stage__side { opacity: 1; }

@media (max-width: 900px) {
  .p-aidemo .stage { height: auto; min-height: 0; }
  .p-aidemo .stage__track { position: static; display: block; padding: 0; }
  .p-aidemo .stage__visual { max-height: none; aspect-ratio: 3/4; border-radius: 0; }
  .p-aidemo .stage__side { opacity: 1; max-width: none; text-align: left !important; padding: 22px clamp(16px,5vw,24px); }
  .p-aidemo .stage__side--left, .p-aidemo .stage__side--right { border-top: 1px solid var(--border-subtle); }
}

/* ================================================================
   HOW IT WORKS — 3 steps
   ================================================================ */
.p-aidemo .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 820px) { .p-aidemo .steps { grid-template-columns: 1fr; } }
.p-aidemo .step {
  position: relative; padding: 28px 26px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  border: 1px solid var(--border-subtle);
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.p-aidemo .step:hover { transform: translateY(-6px); border-color: rgba(255,107,0,.3); box-shadow: var(--shadow-2); }
.p-aidemo .step__n { font-family: var(--font-heading); font-size: .8rem; letter-spacing: 2px; color: var(--accent); }
.p-aidemo .step__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 12px 0 16px; background: rgba(255,107,0,.1); border: 1px solid rgba(255,107,0,.28); color: var(--accent); }
.p-aidemo .step__ico svg { width: 26px; height: 26px; }
.p-aidemo .step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.p-aidemo .step p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ================================================================
   PARALLAX SCENE BAND
   ================================================================ */
.p-aidemo .band { position: relative; min-height: 90vh; display: grid; align-items: center; overflow: clip; }
.p-aidemo .band__bg { position: absolute; inset: -12% 0; z-index: 0; }
.p-aidemo .band__bg img { width: 100%; height: 124%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.p-aidemo .band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,5,10,.92) 0%, rgba(4,5,10,.6) 45%, transparent 100%); }
.p-aidemo .band .container { z-index: 2; }
.p-aidemo .band__card { max-width: 560px; }

/* ================================================================
   STATS
   ================================================================ */
.p-aidemo .stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .p-aidemo .stats3 { grid-template-columns: 1fr; } }
.p-aidemo .statc { text-align: center; padding: 30px 20px; border-radius: 16px; border: 1px solid rgba(255,107,0,.14); background: rgba(255,107,0,.03); }
.p-aidemo .statc b { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent); line-height: 1; text-shadow: 0 0 30px rgba(255,107,0,.4); }
.p-aidemo .statc span { display: block; margin-top: 10px; color: var(--text-secondary); font-size: .9rem; line-height: 1.5; }
.p-aidemo .statc small { display:block; margin-top: 8px; color: var(--text-muted); font-size: .72rem; }

/* ================================================================
   FAQ — accordion (native <details>, a11y + AEO)
   ================================================================ */
.p-aidemo .faq { max-width: 820px; margin: 40px auto 0; }
.p-aidemo .faq details { border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 12px; background: rgba(255,255,255,.02); overflow: hidden; transition: border-color .3s var(--ease-out); }
.p-aidemo .faq details[open] { border-color: rgba(255,107,0,.32); }
.p-aidemo .faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-heading); font-size: 1.02rem; letter-spacing: .3px; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.p-aidemo .faq summary::-webkit-details-marker { display: none; }
.p-aidemo .faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease-out); line-height: 1; }
.p-aidemo .faq details[open] summary::after { transform: rotate(45deg); }
.p-aidemo .faq .faq__a { padding: 0 22px 20px; color: var(--text-secondary); line-height: 1.7; font-size: .95rem; }

/* ================================================================
   CTA
   ================================================================ */
.p-aidemo .cta-ai { text-align: center; padding: clamp(70px, 12vh, 150px) 0; position: relative; overflow: hidden; }
.p-aidemo .cta-ai::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(255,107,0,.16), transparent 70%); }
.p-aidemo .cta-ai h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.p-aidemo .cta-ai p { max-width: 52ch; margin: 16px auto 30px; color: var(--text-secondary); }

/* ================================================================
   HERO — full-bleed, 80vh, cinematic, with scroll cue (revised)
   ================================================================ */
.p-aidemo .hero-ai {
  position: relative; width: 100%; height: 80vh;
  min-height: 560px; max-height: 940px;
  display: flex; align-items: flex-start; overflow: hidden;
}
.p-aidemo .hero-ai__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(.6) contrast(1.05) saturate(1.05);
  transform: scale(1.06); will-change: transform; z-index: 1;
}
.p-aidemo #ai-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.p-aidemo .hero-ai__grad {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(4,5,10,.55) 0%, rgba(4,5,10,.12) 34%, rgba(4,5,10,.5) 74%, rgba(4,5,10,.96) 100%),
    linear-gradient(90deg, rgba(4,5,10,.7) 0%, transparent 55%);
}
.p-aidemo .hero-ai__content { position: relative; z-index: 4; width: 100%; padding-top: clamp(84px, 15vh, 180px); }
.p-aidemo .hero-ai__content .eyebrow-ai { color: #fff; }
.p-aidemo .hero-ai h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: .5px;
  max-width: 16ch; text-shadow: 0 4px 42px rgba(0,0,0,.65);
}
.p-aidemo .hero-ai h1 .accent { color: var(--accent); }

/* ---- animated shimmer underline on accent words (hero / intro / compare) ---- */
.p-aidemo .hero-ai h1 .accent,
.p-aidemo .story-intro h2 .accent,
.p-aidemo .compare-mini__head h2 .accent { position: relative; display: inline-block; }
.p-aidemo .hero-ai h1 .accent::after,
.p-aidemo .story-intro h2 .accent::after,
.p-aidemo .compare-mini__head h2 .accent::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  background-size: 200% 100%; border-radius: 2px;
  animation: aidemo-shimmer 3s linear infinite;
}
@keyframes aidemo-shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) {
  .p-aidemo .hero-ai h1 .accent::after,
  .p-aidemo .story-intro h2 .accent::after,
  .p-aidemo .compare-mini__head h2 .accent::after { animation: none; }
}
.p-aidemo .hero-ai .lead { max-width: 48ch; margin-top: 18px; color: var(--text-secondary); font-size: clamp(1rem, 1.5vw, 1.22rem); }
.p-aidemo .hero-ai__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.p-aidemo .hero-ai__cue {
  position: absolute; left: 50%; bottom: 122px; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-secondary); text-decoration: none;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; font-size: .68rem;
}
.p-aidemo .hero-ai__cue svg { width: 26px; height: 26px; stroke: var(--accent); animation: aidemo-bounce 1.8s ease-in-out infinite; }
@keyframes aidemo-bounce { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }
@media (max-width: 820px) { .p-aidemo .hero-ai { height: 84vh; } }
@media (prefers-reduced-motion: reduce) { .p-aidemo .hero-ai__cue svg { animation: none; } .p-aidemo .hero-ai__bg { transform: none; } }

/* ================================================================
   STORY — full-bleed AUTO-PLAYING showcase (desktop).
   Each beat fills the screen with its scene image + reader/SEO copy;
   beats auto-advance with energetic (back.out) entrances.
   Mobile / no-JS: beats stack as a readable image + text list.
   ================================================================ */
.p-aidemo .story { position: relative; background: var(--bg-darker); padding: clamp(48px,7vh,90px) 0; }
.p-aidemo .story__viewport { position: relative; max-width: var(--container-w,1240px); margin: 0 auto; padding: 0 clamp(16px,4vw,40px); }
.p-aidemo .story__eyebrow { display: block; margin-bottom: 28px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 3px; font-size: .76rem; color: var(--accent); }

/* default (mobile / no-JS): stacked readable cards */
.p-aidemo .story__beat { position: relative; margin-bottom: 44px; }
.p-aidemo .story__bg { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2); }
.p-aidemo .story__bg img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.p-aidemo .story__scrim { display: none; }
.p-aidemo .story__content { display: block; padding: 20px 2px 0; }
.p-aidemo .story__n { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 3px; color: var(--accent); display: block; }
.p-aidemo .story__beat h2 { font-size: clamp(1.7rem,4vw,2.4rem); line-height: 1.05; margin: 6px 0 12px; }
.p-aidemo .story__beat p { color: var(--text-secondary); line-height: 1.7; font-size: 1.02rem; max-width: 62ch; }
.p-aidemo .story__beat p strong { color: var(--text-primary); font-weight: 600; }
.p-aidemo .story__right { margin-top: 18px; }
.p-aidemo .story__right h3 { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.p-aidemo .story__keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.p-aidemo .story__keys li { position: relative; padding-left: 24px; color: var(--text-secondary); line-height: 1.5; }
.p-aidemo .story__keys li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,107,0,.5); }
.p-aidemo .story__nav { display: none; }

/* desktop cinematic: full-bleed, absolute beats, only active visible */
html.cin-on .p-aidemo .story { padding: 0; }
html.cin-on .p-aidemo .story__viewport { max-width: none; padding: 0; height: 100vh; min-height: 640px; max-height: 940px; overflow: hidden; }
html.cin-on .p-aidemo .story__eyebrow { position: absolute; top: clamp(80px,11vh,116px); left: clamp(40px,7vw,110px); margin: 0; z-index: 4; }
html.cin-on .p-aidemo .story__beat { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; z-index: 1; transition: opacity .55s ease; }
html.cin-on .p-aidemo .story__beat.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
html.cin-on .p-aidemo .story__bg { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
html.cin-on .p-aidemo .story__bg img { height: 100%; aspect-ratio: auto; filter: brightness(.6) saturate(1.05); will-change: transform; }
html.cin-on .p-aidemo .story__scrim { display: block; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(4,5,10,.94) 0%, rgba(4,5,10,.62) 42%, rgba(4,5,10,.22) 74%, rgba(4,5,10,.5) 100%),
              linear-gradient(0deg, rgba(4,5,10,.85), transparent 46%); }
html.cin-on .p-aidemo .story__content { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px,4vw,72px); padding: 0 clamp(40px,7vw,120px); }
html.cin-on .p-aidemo .story__left { max-width: 560px; }
html.cin-on .p-aidemo .story__n { font-size: clamp(2.4rem,4vw,3.4rem); text-shadow: 0 0 30px rgba(255,107,0,.4); margin-bottom: 2px; line-height: 1; }
html.cin-on .p-aidemo .story__beat h2 { font-size: clamp(2.4rem,5vw,4rem); line-height: 1.02; margin: 0 0 18px; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
html.cin-on .p-aidemo .story__beat p { font-size: clamp(1rem,1.35vw,1.18rem); max-width: 46ch; }
html.cin-on .p-aidemo .story__beat p strong { color: #fff; }
html.cin-on .p-aidemo .story__right { justify-self: start; margin: 0; max-width: 340px; }
html.cin-on .p-aidemo .story__right h3 { color: var(--text-secondary); }
html.cin-on .p-aidemo .story__keys li { color: #fff; font-size: 1.02rem; }

/* nav dots with auto-play progress fill */
html.cin-on .p-aidemo .story__nav { display: flex; position: absolute; bottom: clamp(28px,5vh,54px); left: clamp(40px,7vw,110px); z-index: 5; gap: 10px; }
html.cin-on .p-aidemo .story__dot { width: 46px; height: 5px; border-radius: 3px; border: none; padding: 0; background: rgba(255,255,255,.24); cursor: pointer; overflow: hidden; position: relative; transition: background .3s var(--ease-out); }
html.cin-on .p-aidemo .story__dot:hover { background: rgba(255,255,255,.42); }
html.cin-on .p-aidemo .story__dot-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--accent); }

/* STARTER beat = "zwykły vs AI" comparison (bg wallpaper + centred content) */
html.cin-on .p-aidemo .story__beat--compare { background: var(--bg-darker); }
html.cin-on .p-aidemo .story__beat--compare .story__bg img { filter: brightness(.34) saturate(1.05); }
html.cin-on .p-aidemo .story__beat--compare .story__scrim {
  background: radial-gradient(120% 92% at 50% 42%, rgba(4,5,10,.5), rgba(4,5,10,.9) 100%);
}
html.cin-on .p-aidemo .story__compare {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px,13vh,130px) clamp(40px,7vw,120px) clamp(80px,10vh,110px);
}
html.cin-on .p-aidemo .story__beat--compare .compare-mini__head { margin-bottom: clamp(22px,4vh,38px); }
html.cin-on .p-aidemo .story__beat--compare .compare-mini__grid { max-width: 980px; margin: 0 auto; width: 100%; }
