/* /8 extra components on the live v4 page.
   Colors, radii and type map to --v4-* tokens. Existing v4 sections
   are not restyled except the scoped bugs listed at the bottom. */

:root {
  --n8-section-y: 80px;
  /* Type scale — card copy (Screening działek) is the reference */
  --n8-type-section: clamp(1.75rem, 2.8vw, 2.35rem);
  --n8-type-section-tight: clamp(1.65rem, 2.4vw, 2.05rem);
  --n8-type-lead: 1.05rem;
  --n8-type-body: 0.95rem;
  --n8-type-card-title: 1.02rem;
  --n8-type-card-body: 0.8rem;
  --n8-type-source-title: clamp(1.08rem, 1.4vw, 1.18rem);
  --n8-type-source-detail: 0.82rem;
}

html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

.n8-live,
.n8-gallery,
.n8-scene,
.n8-arch,
.n8-cover,
.n8-stage {
  position: relative;
  z-index: 2;
}

main {
  position: relative;
  z-index: 1;
  background: var(--v4-bg);
}

/* Eyebrow = hero pattern (dash + sentence case). Uppercase micro only inside cards. */
.n8-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--v4-ink);
}
.n8-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--v4-ink);
}
.n8-eyebrow--on-dark {
  color: #fff;
}
.n8-eyebrow--on-dark::before {
  background: rgba(255, 255, 255, 0.8);
}

.n8-micro {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a5a;
}

.n8-h2 {
  margin: 0;
  font-size: var(--n8-type-section);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.n8-lead {
  margin: 0;
  max-width: 40ch;
  font-size: var(--n8-type-lead);
  font-weight: 400;
  line-height: 1.55;
  color: var(--v4-muted);
}
.n8-body {
  margin: 0;
  font-size: var(--n8-type-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--v4-muted);
}

/* Info card: r22 + line. Foreground card: r32 + shadow. Media inside: r22. */
.n8-card-info {
  background: var(--v4-bg);
  border: 1px solid var(--v4-line);
  border-radius: var(--v4-radius-sm);
}
.n8-card-front {
  background: var(--v4-bg);
  border-radius: var(--v4-radius);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.1);
}

/* ── Live data / rolling stats ── */
.n8-live {
  background: var(--v4-bg);
  padding: var(--n8-section-y) 0;
}
.n8-live__head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.n8-live__head .n8-h2 {
  margin: 10px 0 0;
  max-width: 22ch;
  font-size: var(--n8-type-section-tight);
}

.n8-live__hero {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  min-height: 280px;
  min-width: 0;
  border-radius: var(--v4-radius);
  overflow: hidden;
  background: var(--v4-ink);
  color: #fff;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.1);
}
.n8-live__hero::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 140%;
  left: -8%;
  top: -30%;
  background: radial-gradient(circle, rgba(31, 138, 102, 0.38), transparent 62%);
  pointer-events: none;
}
.n8-live__hero > * { position: relative; z-index: 1; }
.n8-live__hero-num strong {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: clamp(2.8rem, 12vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.n8-live__hero-num strong em {
  font-style: normal;
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.n8-live__hero-num p {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.86;
}
.n8-live__hero-photo { justify-self: end; }
.n8-live__hero-photo img {
  width: min(280px, 100%);
  height: 168px;
  object-fit: cover;
  border-radius: var(--v4-radius-sm);
}
.n8-live__hero-photo p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.82;
  max-width: 28ch;
  margin-left: auto;
}
.n8-live__hero-viz {
  align-self: stretch;
  justify-self: end;
  width: min(150%, 520px);
  margin-left: -25%;
  margin-right: 0;
  height: calc(100% - 0px);
  min-height: 220px;
  max-height: 280px;
  overflow: hidden;
  padding: 14px 0 14px 0;
  border-radius: var(--v4-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.n8-live__hero-viz ul {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  will-change: transform;
}
.n8-live__hero-viz li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.7fr) 44px 36px minmax(110px, 1.1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.n8-live__hero-viz li > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.n8-live__hero-viz li > span:nth-child(3),
.n8-live__hero-viz li > span:nth-child(4),
.n8-live__hero-viz li > span:nth-child(5) {
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}
.n8-zones {
  display: flex;
  width: 100%;
  min-width: 110px;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.n8-zones i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--w, 50%);
  min-width: 0;
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  line-height: 1;
}
.n8-zones i[data-z="sw"] { background: #8B5A2B; color: #fff; }
.n8-zones i[data-z="su"] { background: #C62828; color: #fff; }
.n8-zones i[data-z="sp"] { background: #6A1B9A; color: #fff; }
.n8-zones i[data-z="other"] { background: #e0a060; }
@media (min-width: 800px) {
  .n8-live__hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr); align-items: stretch; }
  .n8-live__hero-viz {
    margin: 18px 18px 18px 0;
    height: auto;
    min-height: 0;
    align-self: stretch;
    width: auto;
    max-width: none;
  }
}
@media (max-width: 799px) {
  .n8-live__hero-viz {
    width: 100%;
    margin: 0;
    max-height: 220px;
  }
  .n8-live__hero-viz li {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(72px, 0.8fr);
    grid-template-rows: auto auto;
  }
  .n8-live__hero-viz li > span:nth-child(4),
  .n8-live__hero-viz li > span:nth-child(5) { display: none; }
  .n8-live__hero-viz li .n8-zones { grid-column: 1 / -1; }
}

.n8-live__meta {
  display: block;
  height: 42px;
  margin: 18px 0 14px;
  pointer-events: none;
}

.n8-metrics {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 720px) {
  .n8-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.n8-metric {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
  padding: 22px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 calc(var(--lift) * 16px) calc(var(--lift) * 40px) rgba(0, 0, 0, calc(var(--lift) * 0.08));
  will-change: transform;
}
.n8-metric.reveal {
  transform: translateY(22px);
}
.n8-metric.reveal.is-visible {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(calc(var(--lift) * -4px));
}
.n8-metric__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.n8-metric strong {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  margin: 16px 0 12px;
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.n8-metric strong em {
  font-style: normal;
  font-size: 0.38em;
  color: var(--v4-muted);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.n8-metric p {
  margin: 0;
  color: var(--v4-muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

/* ── Selectable gallery ── */
.n8-gallery {
  padding: var(--n8-section-y) 0 0;
  background: var(--v4-bg);
}
.n8-gallery__grid {
  display: grid;
  gap: 40px;
  min-width: 0;
}
@media (min-width: 900px) {
  .n8-gallery__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.296fr);
    gap: 48px;
    align-items: stretch;
  }
  .n8-gallery__grid > .reveal:first-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .n8-gallery__grid > .reveal:first-child .n8-spec {
    margin-top: auto;
  }
}
.n8-gallery .n8-h2 { margin: 10px 0 14px; }
.n8-gallery .n8-h2 span { color: var(--v4-muted); }

.n8-spec {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.n8-spec li {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--v4-line);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--v4-muted);
  line-height: 1.4;
}

.n8-gallery__stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: var(--v4-radius-sm);
  background: var(--v4-soft);
  transform: translateZ(0);
}
.n8-gallery__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.n8-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.n8-thumbs button {
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--v4-radius-sm);
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.n8-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.n8-thumbs button.is-active,
.n8-thumbs button[aria-pressed="true"] { border-color: var(--v4-ink); }
.n8-thumbs button:focus-visible { outline: 2px solid var(--v4-ink); outline-offset: 2px; }
.n8-gallery__caption {
  margin: 14px 0 18px;
  max-width: 48ch;
  min-height: 3.2em;
  color: var(--v4-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Digital Twin bento ── */
.n8-scene {
  z-index: 2;
  background: var(--v4-bg);
  padding: var(--n8-section-y) 0;
  height: auto;
}
.n8-pin {
  padding: 0;
  position: static;
  height: auto;
}
.n8-bento {
  display: grid;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.n8-bento__photo {
  position: relative;
  aspect-ratio: 1935 / 1135;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--v4-radius-sm);
  background: #d7e4ed;
}
.n8-bento__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.n8-bento__mid,
.n8-stat {
  padding: 18px 20px;
}
.n8-bento__mid {
  display: flex;
  flex-direction: column;
}
.n8-bento__mid .n8-h2 {
  margin: 8px 0 12px;
  font-size: var(--n8-type-section-tight);
}
.n8-bento__mid .n8-body { margin: 0 0 16px; max-width: none; }
.n8-bento__mid .v4-btn { margin-top: auto; align-self: flex-start; }

@media (min-width: 720px) and (max-width: 1099px) {
  .n8-bento { grid-template-columns: minmax(0, 1fr); }
  .n8-bento__photo { grid-column: 1 / -1; min-height: 280px; }
}
@media (min-width: 1100px) {
  .n8-bento {
    grid-template-columns: minmax(0, 1.87fr) minmax(0, 1.2fr);
    align-items: stretch;
  }
  .n8-bento__photo {
    aspect-ratio: 1935 / 1135;
    min-height: 0;
    height: auto;
  }
  .n8-bento__mid { min-height: 0; height: auto; }
}
.n8-cover {
  z-index: 3;
  background: var(--v4-soft);
  border-radius: 0;
  box-shadow: none;
  padding: var(--n8-section-y) 0 100px;
  margin-top: 0;
}

.n8-cover__head {
  display: block;
  margin-bottom: 36px;
}
.n8-cover__head .n8-h2 {
  margin: 10px 0 0;
  max-width: none;
  text-align: left;
}

.n8-plans {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 720px) { .n8-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .n8-plans { grid-template-columns: repeat(4, 1fr); } }

.n8-plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.n8-plan__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  padding: 22px 20px 18px;
  background: var(--v4-soft);
}
.n8-plan__top h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.n8-plan__top p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--v4-muted);
  max-width: 22ch;
}
.n8-plan__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--v4-pill);
  background: var(--v4-bg);
  color: var(--v4-ink);
  display: grid;
  place-items: center;
}
.n8-plan__icon svg { width: 22px; height: 22px; }
.n8-plan__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.n8-chip {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: var(--v4-pill);
  background: var(--v4-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a5a;
}
.n8-plan__price {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--v4-muted-2);
}
.n8-plan ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a1a;
}
.n8-plan li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.n8-plan li::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.n8-plan .v4-btn {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
}

.variant-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--v4-pill);
  background: rgba(10, 10, 12, 0.88);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.75rem;
  font-weight: 600;
}
.variant-bar a {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: var(--v4-pill);
  color: rgba(255, 255, 255, 0.72);
}
.variant-bar a:hover { color: #fff; }
.variant-bar a[aria-current="page"] { background: #fff; color: var(--v4-ink); }
.variant-bar__live { font-size: 0.68rem; padding: 0 10px; }

/* Scoped v4 repairs on /8 only */
main > .v4-section.v4-section--soft {
  padding: var(--n8-section-y) 0;
}
.v4-intro { margin-bottom: 0; }
.v4-intro--centered {
  display: block;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.v4-intro--centered .v4-intro__text {
  margin-inline: auto;
}

.v4-nav__cta.v4-btn--white {
  display: inline-flex;
  padding: 8px 8px 8px 22px;
  background: #fff;
  border: none;
  color: #111;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  white-space: nowrap;
}
.v4-nav__cta.v4-btn--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.v4-nav.nav--scrolled .v4-nav__cta.v4-btn--white {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(10, 10, 10, 0.08);
}
@media (max-width: 899px) {
  .v4-nav__cta.v4-btn--white {
    padding: 8px 8px 8px 16px;
    font-size: 0.82rem;
  }
}
@media (max-width: 399px) {
  .v4-nav__cta.v4-btn--white {
    padding: 8px 8px 8px 14px;
    font-size: 0.78rem;
    gap: 10px;
  }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .v4-nav__links {
    gap: 14px;
    font-size: 0.88rem;
  }
}
.v4-section h2,
.v4-form-section h2 { line-height: 1.08; }
.v4-form .v4-btn--dark {
  padding: 8px 8px 8px 22px;
  justify-content: space-between;
}

.form-field--checkbox label.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}
.form-field--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

/* Variant switcher sits over the footer edge without adding page gap */
body:has(.variant-bar) .v4-footer { padding-bottom: 72px; }

/* Hero four-step strip — keep copy below the nav, steps at the bottom */
.v4-hero {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 128px;
  padding-bottom: 64px;
}
.v4-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 52px;
  width: min(var(--v4-max), 100%);
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  min-height: 0;
}
.v4-hero__inner {
  padding-top: 0;
  transform: none;
}
.v4-hero__lead { margin-bottom: 0; }
.v4-hero__steps {
  width: 100%;
}
.v4-hero__steps-kicker {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}
.v4-hero__steps-grid {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v4-hero__steps-grid li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li {
  animation: n8-step-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li:nth-child(1) { animation-delay: 0.08s; }
.v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li:nth-child(2) { animation-delay: 0.16s; }
.v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li:nth-child(3) { animation-delay: 0.24s; }
.v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li:nth-child(4) { animation-delay: 0.32s; }
@keyframes n8-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.v4-hero__step-num {
  display: block;
  margin: -4px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.v4-hero__steps-grid strong {
  display: block;
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.v4-hero__steps-grid p {
  margin: 6px 0 0;
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fff;
}
.v4-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  transform: translateX(-50%);
  color: #fff;
}
.v4-hero__scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.v4-hero__scroll svg {
  display: block;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.45));
  animation: v4-scroll-nudge 1.8s ease-in-out infinite;
}
@keyframes v4-scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (min-width: 800px) {
  .v4-hero__steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 800px) and (min-height: 860px) {
  .v4-hero__steps {
    translate: 0 -50%;
  }
}
@media (max-height: 820px) and (min-width: 800px) {
  .v4-hero {
    padding-top: 108px;
    padding-bottom: 52px;
  }
  .v4-hero__content { gap: 28px; }
  .v4-hero__step-num { font-size: 1.45rem; }
  .v4-hero__steps-grid p { font-size: 0.8rem; }
}
@media (max-height: 700px) and (min-width: 800px) {
  .v4-hero {
    padding-top: 92px;
    padding-bottom: 40px;
  }
  .v4-hero__content { gap: 18px; }
  .v4-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
}
@media (max-width: 799px) {
  :root { --n8-section-y: 56px; }

  .v4-hero__steps-grid {
    grid-template-columns: 1fr;
  }
  .v4-hero h1 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
  .v4-hero__content { gap: 28px; padding-bottom: 8px; }
  .v4-hero {
    padding-top: 104px;
    padding-bottom: 80px;
  }
  .v4-intro--centered {
    max-width: none;
  }
  .v4-intro__text {
    font-size: clamp(1.35rem, 5.2vw, 1.55rem);
  }
  .n8-gallery__grid { gap: 32px; }
  .n8-spec li { padding: 10px 0; }
  .n8-live__head .n8-h2 { max-width: none; }
  .n8-live__meta {
    height: 42px;
  }
}
@media (max-width: 899px) {
  .v4-hero-spacer { display: none; }
  .v4-hero {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }
}
@media (min-width: 800px) and (max-width: 1199px) {
  :root { --n8-section-y: 72px; }
}
@media (max-width: 479px) {
  .v4-nav__inner,
  .v4-hero__content,
  .v4-wrap {
    padding-inline: 20px;
  }
}

/* ── Architecture collage (Lumière-style 3+1+2) ── */
.n8-arch {
  z-index: 2;
  background: var(--v4-bg);
  padding: var(--n8-section-y) 0;
}
.n8-arch__head {
  margin: 0 0 36px;
}
.n8-arch__head .n8-h2 {
  margin: 10px 0 0;
  max-width: 28em;
}
.n8-arch__grid {
  display: grid;
  gap: 10px;
}
.n8-arch__col {
  display: grid;
  gap: 10px;
}
.n8-arch__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 110px;
  padding: 16px 18px;
  background: var(--v4-soft);
  border-radius: var(--v4-radius-sm);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 calc(var(--lift) * 14px) calc(var(--lift) * 36px) rgba(0, 0, 0, calc(var(--lift) * 0.07));
  will-change: transform;
}
.n8-arch__card.reveal {
  transform: translateY(22px);
}
.n8-arch__card.reveal.is-visible {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(calc(var(--lift) * -5px));
}
.n8-arch__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.n8-arch__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--v4-ink);
}
.n8-arch__icon svg { display: block; width: 18px; height: 18px; }
.n8-arch__card h3 {
  margin: 0 0 4px;
  font-size: var(--n8-type-card-title);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.n8-arch__card p {
  margin: 0;
  font-size: var(--n8-type-card-body);
  line-height: 1.45;
  color: var(--v4-muted);
  max-width: 42ch;
}
.n8-arch__photo {
  position: relative;
  margin: 0;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--v4-radius-sm);
  background: var(--v4-soft);
}
.n8-arch__photo-shift {
  position: absolute;
  inset: -14% 0;
  height: 128%;
}
.n8-arch__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 700ms cubic-bezier(0.25, 1, 0.5, 1);
}
.n8-arch__photo:hover img { transform: scale(1.04); }
@media (min-width: 720px) and (max-width: 959px) {
  .n8-arch__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .n8-arch__photo {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 285px;
  }
}
@media (min-width: 960px) {
  .n8-arch__head { margin-bottom: 32px; }
  .n8-arch__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
    min-height: min(480px, 58vh);
    align-items: stretch;
  }
  .n8-arch__col { min-height: 0; min-width: 0; }
  .n8-arch__col--left { grid-template-rows: repeat(3, 1fr); }
  .n8-arch__col--right { grid-template-rows: repeat(2, 1fr); }
  .n8-arch__card { min-height: 0; padding: 18px 20px; }
  .n8-arch__col--right .n8-arch__card h3 { font-size: var(--n8-type-card-title); }
  .n8-arch__photo { min-height: 0; height: 100%; }
}

/* Datasource sticky cards — denser lists, no CTA */
.v4-plan--data h3 {
  font-size: var(--n8-type-source-title);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.v4-plan--data .v4-plan__body {
  justify-content: flex-start;
  padding: 24px 28px 28px;
}
@media (min-width: 860px) {
  .v4-plan--data .v4-plan__body { padding: 32px 36px; }
}
.v4-plan--data .v4-plan__icon {
  width: 32px;
  height: 32px;
  margin: 0 0 10px;
  border-radius: 10px;
}
.v4-plan--data .v4-plan__icon img {
  width: 18px;
  height: 18px;
}
.v4-plan--data ul { gap: 8px; margin-bottom: 0; }
.v4-plan--data li {
  font-size: var(--n8-type-source-detail);
  line-height: 1.45;
  color: var(--v4-muted);
}
@media (min-width: 860px) {
  .v4-plan--data {
    min-height: min(560px, calc(100vh - var(--v4-stack-top) - 48px));
  }
}

.n8-gallery__stage img,
.n8-arch__photo img,
.n8-stage__shot img,
.v4-hero__media img,
.v4-cta-bleed__media img {
  max-width: none;
}

/* Product shot — screenshot only, wider frame + backdrop shadow */
.n8-stage {
  background: var(--v4-bg);
  padding: 64px 0 72px;
}
.n8-stage__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.n8-stage__head {
  margin: 0 0 28px;
}
.n8-stage__head .n8-h2 {
  margin: 0;
}
.n8-stage__shot {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 2558 / 1301;
  border-radius: var(--v4-radius-sm);
  background: #f6f6f6;
  box-shadow:
    0 18px 40px rgba(10, 10, 10, 0.07),
    0 48px 90px rgba(10, 10, 10, 0.08);
}
.n8-stage__shot.reveal {
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.n8-stage__shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
  transition: transform 1.2s var(--ease-out-expo);
}
.n8-stage__shot.reveal.is-visible img {
  transform: scale(1);
}
@media (max-width: 699px) {
  .n8-stage {
    padding: 40px 0 48px;
  }
  .n8-stage__inner {
    width: calc(100% - 24px);
  }
  .n8-stage__head {
    margin: 0 0 20px;
  }
}

/* Pricing — comparison table + one early-access CTA */
.n8-pricing {
  z-index: 2;
}
.n8-pricing__head {
  margin: 0 0 36px;
}
.n8-pricing__head .n8-h2 {
  margin: 10px 0 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.n8-price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  border: 1px solid var(--v4-line);
  border-radius: var(--v4-radius-sm);
  background: var(--v4-bg);
}
.n8-price-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.n8-price-table th,
.n8-price-table td {
  padding: 8px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--v4-line);
  font-size: 0.78rem;
  line-height: 1.4;
}
.n8-price-table thead th {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-top: 12px;
  padding-bottom: 10px;
  color: var(--v4-ink);
}
.n8-price-table tbody th {
  font-weight: 500;
  color: var(--v4-ink);
  width: 28%;
}
.n8-price-table tbody td {
  color: var(--v4-muted);
}
.n8-price-table__group th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 8px;
  background: var(--v4-soft);
  color: var(--v4-ink);
  text-align: left;
  width: auto;
  position: static;
  box-shadow: none;
}
.n8-price-table tbody tr:first-child.n8-price-table__group th {
  padding-top: 12px;
}
.n8-price-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  color: var(--v4-ink);
}
.n8-price-na {
  color: var(--v4-muted);
}
.n8-price-table tbody tr:last-child th,
.n8-price-table tbody tr:last-child td {
  border-bottom: none;
}
.n8-price-table thead th:not(:first-child),
.n8-price-table td:not(:first-child) {
  text-align: center;
}
.n8-price-table th:first-child,
.n8-price-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--v4-bg);
  z-index: 1;
  box-shadow: 8px 0 12px -8px rgba(0, 0, 0, 0.08);
}
.n8-price-table col.n8-price-table__feat {
  width: 32%;
}
.n8-price-table .n8-price-table__group th,
.n8-price-table .n8-price-table__group th:first-child {
  position: static;
  box-shadow: none;
  background: var(--v4-soft);
  width: auto;
  text-align: left;
}
.n8-pricing__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.n8-pricing__cta .v4-btn {
  max-width: 100%;
}

@media (max-width: 799px) {
  .n8-pricing.v4-section,
  #faq.v4-section {
    padding: var(--n8-section-y) 0;
  }
  .n8-price-table th,
  .n8-price-table td {
    padding: 7px 8px;
    font-size: 0.68rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .n8-price-table thead th {
    font-size: 0.82rem;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .n8-price-table__group th {
    font-size: 0.64rem;
    padding-top: 10px;
    padding-bottom: 6px;
  }
  .n8-price-table tbody th {
    width: 34%;
  }
  .n8-price-table th:first-child,
  .n8-price-table td:first-child {
    position: static;
    box-shadow: none;
  }
  .n8-metric strong {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
  .n8-arch__head .n8-h2 {
    max-width: none;
  }
}
@media (min-width: 900px) and (max-width: 1079px) {
  .v4-nav__links {
    gap: 10px;
    font-size: 0.8rem;
  }
}

.v4-cta-bleed p { margin-bottom: 0; }
.v4-form-section:has(.v4-form.is-success) [data-form-lead] { display: none; }
#n8-liczby,
#cyfrowy-blizniak,
#metoda,
#cennik,
#produkt,
#faq,
#kontakt,
#zrodla { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  .v4-hero__inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
  [data-shift] { transform: none !important; }
  .n8-arch__photo:hover img { transform: none; }
  .n8-arch__card,
  .n8-metric {
    transform: none !important;
    box-shadow: none !important;
  }
  .n8-stage__shot img {
    transform: none !important;
  }
  .v4-hero__scroll svg {
    animation: none;
  }
  .v4-hero__steps.reveal.is-visible .v4-hero__steps-grid li,
  .v4-plan-slot.is-visible .v4-plan--data li,
  .v4-faq details[open] p {
    animation: none !important;
  }
}
