:root {
  --color-brand: oklch(0.49 0.12 145);
  --color-brand-light: oklch(0.65 0.15 145);
  --color-brand-dark: oklch(0.39 0.13 145);

  --color-text: #1f2937;
  --color-text-muted: #4b5563;
  --color-text-inverse: rgba(255, 255, 255, 0.92);

  --color-surface: #ffffff;
  --color-surface-soft: oklch(0.985 0.01 145);
  --color-border: oklch(0.92 0.02 145);
  --color-shadow: rgba(17, 24, 39, 0.08);

  --radius-s: 0.5rem;
  --radius-m: 0.75rem;
  --radius-l: 1rem;
  --radius-full: 999px;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Umożliwia płynną animację height: auto (m.in. akordeon FAQ) */
  interpolate-size: allow-keywords;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Nunito Sans Variable", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(
      circle at 10% -10%,
      oklch(0.95 0.04 145) 0%,
      transparent 48%
    ),
    linear-gradient(
      160deg,
      oklch(0.99 0.01 145) 0%,
      oklch(0.98 0.01 145) 40%,
      oklch(0.99 0.01 145) 100%
    );
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: -1;
}

.bg-glow-a {
  top: -150px;
  right: -130px;
  background: var(--color-brand-light);
  opacity: 0.24;
}

.bg-glow-b {
  bottom: -220px;
  left: -170px;
  background: var(--color-brand);
  opacity: 0.2;
}

.topbar {
  position: sticky;
  top: 0;
  /* Nad treścią hero (m.in. mockupy z filter/transform i warstwami kompozytowymi) */
  z-index: 1000;
  isolation: isolate;
  backdrop-filter: blur(12px);
  background: oklch(0.985 0.01 145 / 0.82);
  border-bottom: 1px solid oklch(0.49 0.12 145 / 0.16);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-s);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -14px oklch(0.39 0.13 145 / 0.8);
}

.brand-icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topnav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--color-brand);
}

.topbar-end .topnav-cta {
  color: var(--color-text-inverse);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.topbar-end .topnav-cta:hover {
  color: var(--color-text-inverse);
}

.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.topnav-toggle {
  display: none;
}

.topnav-close {
  display: none;
}

.topnav-backdrop {
  display: none;
}

body.is-nav-open {
  overflow: hidden;
}

.hero {
  padding: calc(var(--space-16) + var(--space-4)) 0
    calc(var(--space-12) + var(--space-4));
  overflow: visible;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-10);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-status {
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-brand-dark);
  background: color-mix(in oklch, var(--color-brand) 12%, white);
  border: 1px solid color-mix(in oklch, var(--color-brand) 22%, white);
  border-radius: var(--radius-full);
  padding: 0.38rem 0.75rem;
  margin-bottom: var(--space-6);
}

.hero h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--color-brand);
}

.hero p {
  max-width: 48ch;
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero .hero-platform-note,
.panel-emphasis .hero-platform-note {
  flex-basis: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Hero device mockups ── */

.hero-devices {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-devices-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
}

/* Laptop */
.hero-laptop {
  position: relative;
  width: 100%;
}

.hero-laptop-screen {
  position: relative;
  background: #1a1a20;
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  border: 2px solid #2a2a32;
  border-bottom: none;
  box-shadow:
    0 -4px 30px -10px oklch(0.39 0.13 145 / 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-laptop-screen::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a44;
  margin: 0 auto 6px;
}

.hero-laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
}

.hero-laptop-base {
  position: relative;
  height: 18px;
  background: linear-gradient(180deg, #2e2e36 0%, #1e1e24 100%);
  border-radius: 0 0 4px 4px;
  border: 2px solid #2a2a32;
  border-top: 1px solid #3a3a44;
}

.hero-laptop-base::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 8px;
  background: linear-gradient(180deg, #28282e 0%, #1e1e22 100%);
  border-radius: 0 0 10px 10px;
  box-shadow:
    0 4px 16px -4px rgba(0, 0, 0, 0.35),
    0 12px 40px -10px oklch(0.39 0.13 145 / 0.18);
}

.hero-laptop-notch {
  width: 38%;
  height: 4px;
  background: #3a3a44;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  margin: 0 auto;
  position: relative;
  top: -1px;
}

/* Phone */
.hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  z-index: 2;
  animation: hero-float-phone 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes hero-float-phone {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hero-phone-screen {
  background: #1a1a20;
  border-radius: 20px;
  padding: 6px;
  border: 2px solid #2a2a32;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

.hero-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 0.72rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid oklch(0.49 0.12 145 / 0.3);
  outline-offset: 2px;
}

/* Jak <a class="btn"> — reset UA dla <button>, żeby kolor/tło/cień były spójne */
button.btn {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: inherit;
  text-align: center;
}

button.btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-text-inverse);
  box-shadow: 0 12px 24px -16px oklch(0.39 0.13 145 / 0.85);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand-dark);
  border-color: color-mix(in oklch, var(--color-brand) 35%, white);
  box-shadow: none;
}

.btn-outline:hover {
  background: transparent;
  border-color: var(--color-brand);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.66);
  border-color: color-mix(in oklch, var(--color-brand) 22%, white);
}

.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--color-brand) 32%, white);
}

.section {
  padding: var(--space-10) 0;
}

.section-head {
  max-width: 980px;
}

.eyebrow {
  margin: 0;
  color: var(--color-brand-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section h2 {
  margin: var(--space-3) 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.section-lead {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Pełna szerokość — to samo tło co panele .panel-emphasis przy ofercie */
.section--audience-band,
.section--testimonial-band {
  padding-block: var(--space-16);
  background: linear-gradient(
    140deg,
    color-mix(in oklch, var(--color-brand) 10%, white) 0%,
    color-mix(in oklch, var(--color-brand-light) 16%, white) 100%
  );
  border-block: 1px solid color-mix(in oklch, var(--color-brand) 26%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.section--audience-band .audience span {
  background: var(--color-surface);
  box-shadow: 0 6px 18px -12px var(--color-shadow);
}

.feature-grid {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  box-shadow: 0 12px 28px -24px var(--color-shadow);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  border-color: color-mix(in oklch, var(--color-brand) 45%, white);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -20px oklch(0.39 0.13 145 / 0.28);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.feature-list-grid {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.feature-list {
  min-width: 0;
  padding: var(--space-6);
  background: color-mix(in oklch, var(--color-surface) 92%, transparent);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.feature-list h3 {
  margin: 0 0 var(--space-4);
  font-size: 1.08rem;
}

.feature-list ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.panel li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.feature-list li::before,
.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5lh;
  width: 6px;
  height: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-brand);
  transform: translateY(-50%);
}

.benefits-layout {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--space-4);
}

/* Pierwsza kolumna węższa, druga szersza (np. tekst po lewej, lista po prawej). */
.benefits-layout--narrow-wide {
  grid-template-columns: 0.88fr 1.12fr;
}

.seo-copy-grid,
.faq-list,
.resource-grid {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.seo-copy-grid {
  grid-template-columns: 1.15fr 1fr;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item h3 {
  margin-bottom: var(--space-3);
}

.faq-item p {
  margin: 0;
}

/* ── FAQ accordion (rozwijane pytania) ── */

.faq-acc {
  margin: var(--space-8) auto 0;
  max-width: 840px;
  display: grid;
  gap: var(--space-3);
}

.faq-acc-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 28px -24px var(--color-shadow);
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.faq-acc-item:hover {
  border-color: color-mix(in oklch, var(--color-brand) 35%, white);
}

.faq-acc-item[open] {
  border-color: color-mix(in oklch, var(--color-brand) 45%, white);
  box-shadow: 0 18px 34px -22px oklch(0.39 0.13 145 / 0.22);
}

/* Rozwijanie / zwijanie treści (przeglądarki z obsługą ::details-content) */
.faq-acc-item::details-content {
  overflow: hidden;
  transition:
    height 0.38s cubic-bezier(0.33, 1, 0.68, 1),
    content-visibility 0.38s allow-discrete;
}

.faq-acc-item:not([open])::details-content {
  height: 0;
}

.faq-acc-item[open]::details-content {
  height: auto;
}

.faq-acc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-acc-q::-webkit-details-marker,
.faq-acc-q::marker {
  display: none;
  content: "";
}

.faq-acc-q:hover {
  background: color-mix(in oklch, var(--color-brand) 5%, white);
}

.faq-acc-q:focus-visible {
  outline: 3px solid oklch(0.49 0.12 145 / 0.3);
  outline-offset: -3px;
}

.faq-acc-q::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.15rem;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-acc-item[open] .faq-acc-q::after {
  transform: rotate(225deg);
}

.faq-acc-a {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid color-mix(in oklch, var(--color-brand) 10%, white);
  padding-top: var(--space-4);
  margin-top: 0;
}

.faq-acc-a p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.faq-acc-a p + p {
  margin-top: var(--space-3);
}

/* Formularz w ostatniej pozycji FAQ — treść jak .faq-acc-a */
.faq-acc-a .faq-contact-lead {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.faq-contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.faq-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.faq-field--full {
  grid-column: 1 / -1;
}

.faq-contact-form label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
}

.faq-contact-form input,
.faq-contact-form textarea {
  width: 100%;
  margin: 0;
  border: 1px solid color-mix(in oklch, var(--color-brand) 28%, white);
  border-radius: var(--radius-s);
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-surface);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-contact-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.faq-contact-form input::placeholder,
.faq-contact-form textarea::placeholder {
  color: oklch(0.55 0.02 145);
}

.faq-contact-form input:focus,
.faq-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px oklch(0.65 0.15 145 / 0.22);
}

.faq-contact-submit {
  margin-top: var(--space-5);
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .faq-contact-fields {
    grid-template-columns: 1fr;
  }
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  text-decoration: none;
  color: inherit;
}

.resource-card h3 {
  color: var(--color-brand-dark);
}

.resource-card p {
  margin-top: var(--space-3);
}

.testimonial-panel {
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  margin-top: var(--space-8);
}

.testimonial-quote {
  margin: 0;
  border: 0;
  padding: 0;
  text-align: center;
}

.testimonial-panel .testimonial-quote > p:first-of-type {
  margin-top: 0;
}

.testimonial-pullquote {
  margin: 0 0 var(--space-8);
  padding: 0;
  border: none;
  text-align: center;
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.testimonial-body {
  margin: 0;
}

.panel-emphasis .testimonial-pullquote {
  margin-top: 0;
  color: var(--color-text);
}

.testimonial-footer {
  margin: var(--space-6) 0 0;
}

.testimonial-sig {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-brand-dark);
}

.panel-emphasis .testimonial-footer .testimonial-sig {
  margin-top: 0;
}

.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  background: var(--color-surface);
  box-shadow: 0 12px 30px -26px var(--color-shadow);
}

.panel.testimonial-panel {
  padding: var(--space-8);
}

/* Jak pigułki .audience na pasku „Dla kogo” — biała ramka, obwódka i tekst w kolorze marki */
.section--testimonial-band .testimonial-panel.panel-emphasis {
  background: var(--color-surface);
  border: 1px solid color-mix(in oklch, var(--color-brand) 24%, white);
  box-shadow: 0 6px 18px -12px var(--color-shadow);
}

.section--testimonial-band .testimonial-panel.panel-emphasis .testimonial-body {
  color: var(--color-brand-dark);
}

.panel h3 {
  margin: 0;
  font-size: 1.2rem;
}

.panel ul {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.panel-emphasis {
  background: linear-gradient(
    140deg,
    color-mix(in oklch, var(--color-brand) 10%, white) 0%,
    color-mix(in oklch, var(--color-brand-light) 16%, white) 100%
  );
  border-color: color-mix(in oklch, var(--color-brand) 26%, white);
}

.panel-emphasis p {
  margin: var(--space-4) 0 0;
  color: var(--color-brand-dark);
  line-height: 1.6;
}

/* Tylko panel CTA w sekcji demo mobilnego — jak mobile-demo-panel (eyebrow bez margin-top z .panel-emphasis p) */
.mobile-demo-left-col > .panel-emphasis > .eyebrow {
  margin-top: 0;
}

.mobile-demo-left-col > .panel-emphasis > .eyebrow + h3 {
  margin-top: var(--space-3);
}

.panel-emphasis .btn {
  margin-top: var(--space-6);
  display: inline-flex;
}

.panel.benefits-cta {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.panel.benefits-cta.panel-emphasis > .eyebrow {
  margin: 0;
}

.panel.benefits-cta .eyebrow + h2,
.panel.benefits-cta .eyebrow + h3 {
  margin: var(--space-3) auto 0;
  max-width: 100%;
  width: max-content;
  margin-inline: auto;
  white-space: nowrap;
  font-size: clamp(1.05rem, 2.4vw + 0.55rem, 2.2rem);
  line-height: 1.2;
}

.panel.benefits-cta p:not(.eyebrow) {
  max-width: 500px;
  margin: var(--space-4) auto 0;
}

.panel.benefits-cta .benefits-cta-actions {
  margin-top: var(--space-6);
}

.panel.benefits-cta .benefits-cta-actions .btn {
  margin-top: 0;
  justify-content: center;
}

@media (max-width: 420px) {
  .panel.benefits-cta .eyebrow + h2,
  .panel.benefits-cta .eyebrow + h3 {
    font-size: clamp(0.9rem, 4.5vw, 1.05rem);
    letter-spacing: -0.01em;
  }
}

.audience {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.audience span {
  background: color-mix(in oklch, var(--color-brand) 10%, white);
  border: 1px solid color-mix(in oklch, var(--color-brand) 24%, white);
  color: var(--color-brand-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  white-space: nowrap;
  padding: 0.52rem 0.95rem;
}

/* ── Gallery ── */

.gallery {
  margin-top: var(--space-8);
}

.gallery-showcase {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gallery-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px -6px var(--color-shadow);
}

.gallery-nav:hover {
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-color: var(--color-brand);
  transform: scale(1.08);
  box-shadow: 0 8px 20px -8px oklch(0.39 0.13 145 / 0.5);
}

.gallery-nav:active {
  transform: scale(0.96);
}

.gallery-main {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in oklch, var(--color-brand) 4%, white) 100%
  );
  box-shadow:
    0 20px 50px -20px oklch(0.39 0.13 145 / 0.15),
    0 4px 16px -8px var(--color-shadow);
}

.gallery-main-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease;
}

.gallery-main-img.is-fading {
  opacity: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.gallery-counter {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.gallery-label {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gallery-progress {
  margin-top: var(--space-4);
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
}

@keyframes gallery-progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.gallery-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-brand) 35%, white);
  width: 0%;
}

.gallery-progress-bar.is-animating {
  animation: gallery-progress 5s linear forwards;
}

.gallery-thumbs {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklch, var(--color-brand) 20%, white)
    transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--color-brand) 20%, white);
  border-radius: var(--radius-full);
}

.gallery-thumb {
  flex-shrink: 0;
  width: 90px;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--color-surface);
  opacity: 0.55;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px -4px var(--color-shadow);
}

.gallery-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px var(--color-shadow);
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--color-brand);
  box-shadow:
    0 0 0 2px color-mix(in oklch, var(--color-brand) 20%, white),
    0 4px 12px -6px oklch(0.39 0.13 145 / 0.3);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-tooltip {
  position: absolute;
  z-index: 9999;
  background: var(--color-surface);
  border: 1px solid color-mix(in oklch, var(--color-brand) 16%, white);
  color: var(--color-text);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-m);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  box-shadow: 0 10px 24px -10px oklch(0.39 0.13 145 / 0.25);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.gallery-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pricing ── */

#oferta.section {
  padding-top: var(--space-16);
}

#oferta .section-head {
  margin-bottom: var(--space-10);
  margin-inline: auto;
}

.pricing-layout {
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 16px 40px -24px oklch(0.39 0.13 145 / 0.35),
    0 12px 30px -26px var(--color-shadow);
}

.pricing-layout > .pricing-card:nth-child(1) {
  border-color: color-mix(in oklch, var(--color-brand) 14%, white);
}

.pricing-layout > .pricing-card:nth-child(2) {
  border-color: color-mix(in oklch, var(--color-brand) 38%, white);
}

.pricing-layout > .pricing-card:nth-child(3) {
  border-color: color-mix(in oklch, var(--color-brand) 62%, white);
}

.pricing-note {
  margin: var(--space-10) auto var(--space-10);
  max-width: 35rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.pricing-card--featured {
  z-index: 1;
}

.pricing-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: normal;
  text-transform: none;
}

.pricing-card.panel-emphasis > .pricing-name {
  margin-top: 0;
  color: var(--color-text);
}

.pricing-price {
  margin: var(--space-5) 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.pricing-price h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1;
}

.pricing-period {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-card.panel-emphasis > .pricing-desc {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.pricing-card.panel-emphasis .btn {
  margin-top: auto;
}

/* ── Mobile demo (iframe + Android frame) ── */

.mobile-demo-layout {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.mobile-demo-left-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-self: start;
  width: 100%;
}

.mobile-demo-left-col > .panel {
  width: 100%;
  min-width: 0;
}

.mobile-demo-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-demo-panel > p:first-of-type:not(.eyebrow) {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.mobile-demo-panel > .eyebrow + h3 {
  margin-top: var(--space-3);
}

.mobile-demo-panel > h3 + p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.mobile-demo-phone-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.mobile-demo-hint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-5);
  padding: 0.5rem 0.85rem;
  border: 1px solid color-mix(in oklch, var(--color-brand) 22%, white);
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-brand) 8%, white);
  color: var(--color-brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-demo-hint-icon {
  flex: 0 0 auto;
}

.mobile-demo-stage {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  height: min(78vh, 820px);
  max-height: min(78vh, 820px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  --phone-scale: 1;
}

.mobile-demo-scale-track {
  width: 100%;
  position: relative;
  flex-shrink: 0;
  height: calc(808px * var(--phone-scale, 1));
}

.mobile-demo-scale-inner {
  position: absolute;
  left: 50%;
  top: 0;
  width: 414px;
  height: 808px;
  margin-left: -207px;
  transform: scale(var(--phone-scale, 1));
  transform-origin: top center;
}

.android-device {
  width: 414px;
  height: 808px;
  box-sizing: border-box;
  padding: 12px 12px 16px;
  border-radius: 40px;
  background: linear-gradient(165deg, #2e2e36 0%, #16161a 52%, #1e1e24 100%);
  box-shadow:
    0 24px 56px -20px oklch(0.39 0.13 145 / 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 -2px 0 rgba(0, 0, 0, 0.35) inset;
  position: relative;
}

.android-device-screen {
  width: 390px;
  height: 780px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45) inset;
}

.android-device-iframe {
  display: block;
  width: 390px;
  height: 780px;
  border: 0;
}

.footer {
  border-top: 1px solid oklch(0.49 0.12 145 / 0.16);
  margin-top: var(--space-12);
}

.footer-inner {
  padding: var(--space-5) 0 var(--space-8);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  flex: 1 1 16rem;
  min-width: min(100%, 12rem);
}

.footer-copyright {
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}

.footer-inner a {
  color: var(--color-brand);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-inner a:hover {
  color: var(--color-brand-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topnav {
    gap: var(--space-4);
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero p {
    max-width: 100%;
  }

  .hero-devices-wrapper {
    max-width: 520px;
    margin: 0 auto;
    overflow-x: clip;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list-grid {
    grid-template-columns: 1fr;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .seo-copy-grid,
  .faq-list,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .pricing-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
    margin-inline: auto;
  }
}

/* Menu hamburger: od ~900px pełna belka linków się nie mieści; blur na pasku daje też szare smużenie nad ciemnym hero */
@media (max-width: 900px) {
  .bg-glow-a {
    right: -60px;
    width: min(430px, 70vw);
  }

  .bg-glow-b {
    left: -60px;
    width: min(430px, 70vw);
  }

  .topbar {
    backdrop-filter: none;
    background: oklch(0.98 0.012 145);
    border-bottom: 1px solid oklch(0.49 0.12 145 / 0.14);
  }

  .topbar-inner {
    gap: var(--space-3);
    position: relative;
    z-index: 2;
  }

  .topbar-end {
    gap: var(--space-3);
    flex-shrink: 0;
  }

  .topnav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: oklch(0.28 0.03 145 / 0.42);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  .topbar.is-nav-open .topnav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid
      color-mix(in oklch, var(--color-brand) 28%, var(--color-border));
    border-radius: var(--radius-s);
    background: var(--color-surface);
    color: var(--color-brand-dark);
    cursor: pointer;
    flex-shrink: 0;
    transition:
      border-color 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .topnav-toggle:hover {
    border-color: color-mix(in oklch, var(--color-brand) 45%, white);
    background: color-mix(in oklch, var(--color-brand) 6%, white);
  }

  .topnav-toggle:focus-visible {
    outline: 3px solid oklch(0.49 0.12 145 / 0.35);
    outline-offset: 2px;
  }

  .topnav-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.25rem;
  }

  .topnav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 0.26s cubic-bezier(0.33, 1, 0.68, 1),
      opacity 0.2s ease;
  }

  .topnav-toggle[aria-expanded="true"] .topnav-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topnav-toggle[aria-expanded="true"] .topnav-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .topnav-toggle[aria-expanded="true"] .topnav-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topnav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(19rem, 88vw);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--space-5) + env(safe-area-inset-top, 0px)) var(--space-5)
      calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    box-shadow: -16px 0 40px -28px oklch(0.35 0.05 145 / 0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.33, 1, 0.68, 1),
      visibility 0.32s;
  }

  .topbar.is-nav-open .topnav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .topnav a {
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-s);
    font-size: 1.02rem;
  }

  .topnav a:hover {
    background: color-mix(in oklch, var(--color-brand) 7%, white);
  }

  .topnav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 var(--space-4);
    padding: 0;
    border: 1px solid
      color-mix(in oklch, var(--color-brand) 28%, var(--color-border));
    border-radius: var(--radius-s);
    background: var(--color-surface);
    color: var(--color-brand-dark);
    cursor: pointer;
    flex-shrink: 0;
    transition:
      border-color 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .topnav-close:hover {
    border-color: color-mix(in oklch, var(--color-brand) 45%, white);
    background: color-mix(in oklch, var(--color-brand) 6%, white);
  }

  .topnav-close:focus-visible {
    outline: 3px solid oklch(0.49 0.12 145 / 0.35);
    outline-offset: 2px;
  }

  .topnav .topnav-cta {
    margin-top: var(--space-6);
    width: 100%;
    justify-content: center;
    text-align: center;
    color: var(--color-text-inverse);
    font-size: 0.95rem;
    padding: 0.72rem 1.2rem;
  }

  .topnav .topnav-cta:hover {
    color: var(--color-text-inverse);
    background: var(--color-brand-dark);
  }

  .topnav-cta--bar {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .topbar.is-nav-open .topnav-cta--bar {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 901px) {
  .topnav-cta--bar {
    display: none;
  }
}

@media (max-width: 740px) {
  .hero {
    padding-top: calc(var(--space-12) + var(--space-4));
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-phone {
    width: 24%;
    right: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .btn:not(.topnav-cta) {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .topbar-end .topnav-cta {
    width: auto;
    display: inline-flex;
  }

  /* Gallery mobile */
  .gallery-nav {
    display: none;
    /* Ukryte strzałki, zostaje touch / miniatury */
  }

  .gallery-main {
    border-radius: var(--radius-m);
  }

  .gallery-caption {
    padding: var(--space-2) var(--space-3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .gallery-thumb {
    width: 75px;
  }

  .mobile-demo-stage {
    height: min(72vh, 760px);
    max-height: min(72vh, 760px);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .mobile-demo-layout {
    grid-template-columns: 1fr;
  }

  .mobile-demo-panel--hide-when-stacked {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
