@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope/Manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("fonts/sora/Sora-variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #011638;
  --navy-2: #02245F;
  --blue: #004EE0;
  --blue-hover: #0043c7;
  --blue-pressed: #0039ad;
  --blue-soft: #E8F0FF;
  --ice: #D7E4FF;
  --bg: #EEF1F6;
  --surface: #FFFFFF;
  --white: #FFFFFF;
  --ink: #0F172A;
  --muted: #5B6B82;
  --line: #D5DEEC;
  --scrollbar-track: #d6ebff;
  --shadow: 0 18px 50px rgba(1, 22, 56, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(213, 222, 236, 0.9);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1120px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1220;
  --surface: #151D2E;
  --white: #151D2E;
  --ink: #E8EEF7;
  --muted: #94A3B8;
  --line: #2D3A4F;
  --blue-soft: #1A2F4A;
  --ice: #1A2F4A;
  --scrollbar-track: #151D2E;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(21, 29, 46, 0.92);
  --nav-border: rgba(45, 58, 79, 0.95);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}

/* DEO app scrollbar (same as QualityControlApp.Web .app-main-scroll) */
@supports (-moz-appearance: none) {
  html {
    scrollbar-width: auto;
    scrollbar-color: var(--blue) var(--scrollbar-track);
  }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: var(--blue);
  border-radius: 7px;
  border: 2px solid var(--scrollbar-track);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue-hover);
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
  background-color: var(--blue-pressed);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(0, 78, 224, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(1, 22, 56, 0.05), transparent 50%),
    var(--bg);
  z-index: -1;
}

.sigma-band {
  position: relative;
  width: 100%;
  margin-top: calc(48px + clamp(56px, 7vw, 96px) + 88px);
  padding: 8px 0 36px;
  background: linear-gradient(115deg, #011638 0%, #02245F 55%, #02245F 100%);
  color: #fff;
  overflow: visible;
  scroll-margin-top: 90px;
}

#o-deo,
#kontakt {
  scroll-margin-top: 320px;
}

#korzysci {
  scroll-margin-top: 165px;
}

#mozliwosci {
  scroll-margin-top: 120px;
}

#problem {
  scroll-margin-top: 180px;
}

.sigma-wave {
  width: 100%;
  line-height: 0;
}

.sigma-wave svg {
  display: block;
  width: 100%;
  height: 96px;
  shape-rendering: geometricPrecision;
}

.sigma-wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: -88px;
  height: 110px;
  overflow: hidden;
}

.sigma-wave-top svg {
  width: 100%;
  height: 100%;
}

.sigma-wave-mid {
  width: 100%;
  margin: 40px 0 4px;
  overflow: hidden;
}

.sigma-wave-mid svg { height: 88px; }

.sigma-band-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.sigma-band-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
  color: #fff;
  max-width: 16ch;
}

.section-head-compact {
  margin-top: 28px;
  margin-bottom: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* NAV */
.nav-shell {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: min(calc(100% - 32px), 1280px);
  margin: 18px auto 0;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-logo img,
.nav-logo-img {
  height: 34px;
  width: auto;
}

html[data-theme="dark"] .nav-logo-light { display: none; }
html[data-theme="dark"] .nav-logo-dark { display: block; }
html:not([data-theme="dark"]) .nav-logo-dark { display: none; }

.theme-toggle,
.lang-toggle {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--nav-border);
  border-radius: 50%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle { right: -60px; }
.lang-toggle { left: -60px; }

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.lang-flag {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-toggle[data-lang="pl"] .lang-flag-en { visibility: hidden; }
.lang-toggle[data-lang="pl"] .lang-flag-pl { visibility: visible; }
.lang-toggle[data-lang="en"] .lang-flag-pl { visibility: hidden; }
.lang-toggle[data-lang="en"] .lang-flag-en { visibility: visible; }

.theme-icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}

html[data-theme="dark"] .theme-toggle {
  color: #E8EEF7;
}

html[data-theme="dark"] .theme-icon-moon { visibility: hidden; }
html[data-theme="dark"] .theme-icon-sun { visibility: visible; }
html:not([data-theme="dark"]) .theme-icon-sun { visibility: hidden; }
html:not([data-theme="dark"]) .theme-icon-moon { visibility: visible; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 650;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { background: var(--blue-soft); }

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 10px 18px !important;
}

.nav-cta:hover { background: var(--blue) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* HERO */
.hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 48px auto 0;
  padding: clamp(40px, 5vw, 72px) 8px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-height: 0;
  background: transparent;
}

.hero-visual img {
  position: absolute;
  top: 0;
  left: calc(50% + 21px);
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.eyebrow.light { color: var(--ice); }

.hero h1,
.section-head h2,
.about-copy h2,
.cta-copy h2 {
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  max-width: 12ch;
}

.accent-line {
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0 0.18em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  transition: background-size 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.accent-line.is-drawn {
  background-size: 100% 0.18em;
}

@media (prefers-reduced-motion: reduce) {
  .accent-line {
    background-size: 100% 0.18em;
    transition: none;
  }
}

.hero-lead,
.section-lead,
.about-copy > p,
.cta-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
}

.hero-actions .btn {
  padding: 18px 30px;
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.hero .btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 22, 56, 0.22);
}

.btn-primary:hover { background: var(--blue); }

.btn-ghost {
  background: var(--blue-soft);
  color: var(--navy);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn.wide { width: 100%; }

.hero-proof {
  margin: 28px 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
}

/* SECTIONS */
.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 72px auto 0;
}

/* PROBLEM → SOLUTION (shares sigma-band ribbon) */
.section-problem-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.section-problem .section-head-wide {
  max-width: none;
  margin-bottom: 36px;
}

.section-problem .section-head-wide h2 {
  color: #fff;
  max-width: none;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 14px;
}

.section-problem .section-lead {
  max-width: none;
  color: rgba(215, 228, 255, 0.88);
  font-size: 1.08rem;
}

.problem-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: 340px;
}

.problem-side {
  position: relative;
  z-index: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transform: scale(1);
  transition: transform 0.28s ease;
}

.problem-side:hover {
  transform: scale(1.03);
  z-index: 1;
}

.benefit-card {
  transform: scale(1);
  transition: transform 0.28s ease;
}

.benefit-card:hover {
  transform: scale(1.03);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .problem-side,
  .benefit-card {
    transition: none;
  }

  .problem-side:hover,
  .benefit-card:hover {
    transform: none;
  }
}

.problem-side-label {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.problem-side-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.problem-side-chaos {
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(0, 78, 224, 0.05), transparent 60%),
    var(--white);
}

.chaos-docs {
  position: relative;
  flex: 1;
  min-height: 220px;
}

.doc-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translateZ(0) rotate(var(--rx));
  transform-origin: center center;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: #F7F9FC;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(1, 22, 56, 0.07);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  white-space: nowrap;
}

.doc-ext {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.doc-excel .doc-ext { background: #1D6F42; }
.doc-pdf .doc-ext { background: #B42318; }
.doc-form .doc-ext { background: #1B4F9C; }
.doc-note .doc-ext { background: #5B6B82; }
.doc-sheet .doc-ext { background: #0E7490; }
.doc-mail .doc-ext {
  background: #02245F;
  font-size: 1.05rem;
}

.problem-arrow {
  display: grid;
  place-items: center;
  color: #8EC5FF;
  align-self: center;
  width: 56px;
}

.problem-arrow svg {
  width: 56px;
  height: 24px;
}

.problem-side-deo {
  background:
    linear-gradient(160deg, rgba(232, 240, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 55%),
    var(--white);
  border-color: rgba(0, 78, 224, 0.22);
}

.deo-hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 0;
}

.deo-hub-core {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(1, 22, 56, 0.22);
}

.deo-hub-core img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
}

.deo-hub-core strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.deo-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
}

.deo-hub-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(0, 78, 224, 0.18);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.deo-hub-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.deo-hub-rows .deo-hub-list {
  max-width: none;
  flex-wrap: nowrap;
}

.deo-hub-rows .deo-hub-list:first-child {
  gap: 4px;
}

.section-alt {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.section-head { margin-bottom: 28px; max-width: 720px; }

.section-product .section-head {
  max-width: none;
}

.section-product .section-head h2,
.section-product .section-lead {
  max-width: none;
}
.section-head-center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.section-head h2,
.about-copy h2,
.cta-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 750;
  margin-bottom: 12px;
}

.section-lead { margin: 0; }

/* PRODUCT SHOWCASE — Windows-style DEO app */
.section-product {
  position: relative;
  padding-bottom: 8px;
}

.product-showcase {
  position: relative;
  margin-top: 36px;
}

.product-click-hint {
  position: absolute;
  left: -84px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 72px;
  color: var(--blue);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.product-click-hint-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 78, 224, 0.18);
  display: grid;
  place-items: center;
  animation: product-click-nudge 2.4s ease-in-out infinite;
}

.product-click-hint-icon svg {
  width: 30px;
  height: 30px;
}

.product-click-hint p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--muted);
}

@keyframes product-click-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

html[data-theme="dark"] .product-click-hint-icon {
  background: rgba(0, 78, 224, 0.18);
  border-color: rgba(75, 163, 255, 0.28);
  color: #4BA3FF;
}

html[data-theme="dark"] .product-click-hint p {
  color: #94A3B8;
}

.win-app {
  background: #F3F5F9;
  border: 1px solid #C9D3E3;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(1, 22, 56, 0.16);
  overflow: hidden;
  height: clamp(480px, 62vw, 620px);
  min-height: clamp(480px, 62vw, 620px);
  max-height: clamp(480px, 62vw, 620px);
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding-left: 12px;
  background: #EEF1F6;
  border-bottom: 1px solid #D5DEEC;
  user-select: none;
}

.win-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.win-titlebar-left img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.win-caption {
  display: flex;
  height: 100%;
}

.win-caption button {
  width: 46px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: default;
  padding: 0;
}

.win-caption button svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
}

.win-caption button:hover { background: #E2E8F0; }
.win-caption .win-close:hover {
  background: #E81123;
  color: #fff;
}

.win-body {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: calc(clamp(480px, 62vw, 620px) - 36px);
}

.win-sidebar {
  background: #011638;
  color: #D7E4FF;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #02245F;
}

.win-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.win-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
}

.win-brand strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.1;
}

.win-brand span,
.win-user > div span {
  display: block;
  color: #8FA3C4;
  font-size: 0.72rem;
}

.win-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  flex: 1;
}

.win-nav-label {
  margin: 0 8px 8px;
  color: #8FA3C4;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.win-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #C9D7F0;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.win-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.win-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.win-nav-item.is-active {
  background: rgba(0, 78, 224, 0.28);
  color: #fff;
}

.win-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.win-user strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
}

.win-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #004EE0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
  text-align: center;
}

.win-main {
  background: #F7F9FC;
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 16px;
  overflow: auto;
}

.win-panel[hidden] { display: none; }

.win-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.win-feature-wide-copy {
  grid-template-columns: 1.25fr 0.75fr;
}

.win-feature-charts {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.win-feature-charts .win-feature-visual {
  display: flex;
  flex-direction: column;
}

.win-feature-points-fixed {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 8px;
}

.win-feature-points-fixed li {
  flex: 0 0 auto;
  min-height: 42px;
}

.win-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 4px 0 2px;
}

.win-feature-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.win-feature-copy h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.win-feature-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 38ch;
}

.win-feature-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

.win-feature-points li {
  position: relative;
  padding: 10px 12px 10px 32px;
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 42px;
}

.win-feature-points li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.win-feature-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.win-feature-visual-stack {
  gap: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.win-feature-visual-stack .win-spc-card {
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 10px 4px;
  display: flex;
  flex-direction: column;
}

.win-feature-visual-stack .win-spc-head {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.win-feature-visual-stack .win-spc-chart,
.win-feature-visual-stack .win-spc-chart-wide {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.win-kpi-row.compact {
  grid-template-columns: 1fr 1fr;
}

.win-chart-card.soft {
  flex: 1;
  min-height: 0;
}

.win-spc-card {
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 220px;
}

.win-spc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.win-spc-head h4 { margin: 0; }

.win-spc-head span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.win-spc-chart {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 180px;
  height: auto;
}

.win-table-card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 8px;
}

.win-toolbar.compact {
  margin-bottom: 10px;
}

.win-toolbar.compact input {
  width: 100%;
  flex: 1;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.win-search-static {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
  cursor: default;
}

.win-table-wrap.flat {
  flex: 1;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
}

.win-table-deo thead th {
  background: #011638;
  color: #fff;
  border-bottom-color: #011638;
}

.win-table .col-center,
.win-table-deo th:last-child,
.win-table-deo td:last-child {
  text-align: center;
}

.win-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.win-panel-head h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.win-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.win-btn {
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  white-space: nowrap;
  cursor: default;
}

.win-btn.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid #D5DEEC;
}

.win-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.win-toolbar input {
  flex: 1;
  min-width: 180px;
  border: 1px solid #D5DEEC;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #94A3B8;
  font-family: var(--font);
  font-size: 0.9rem;
}

.win-chip {
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 750;
}

.win-table-wrap {
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: 12px;
  overflow: auto;
}

.win-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.win-table th,
.win-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #E8EEF6;
  white-space: nowrap;
}

.win-table td {
  color: #0F172A;
}

.win-table th {
  background: #F4F7FB;
  color: #5B6B82;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 750;
}

.win-table tr:last-child td { border-bottom: 0; }
.win-table tbody tr:hover td { background: #F8FAFC; }

/* mock DEO stays light — lock text against page dark mode */
html[data-theme="dark"] .win-table td,
html[data-theme="dark"] .win-panel-head h3,
html[data-theme="dark"] .win-spc-head h4,
html[data-theme="dark"] .win-kpi-row strong,
html[data-theme="dark"] .win-chart-card h4 {
  color: #0F172A;
}

html[data-theme="dark"] .win-kpi-row strong.danger {
  color: #B42318;
}

html[data-theme="dark"] .win-panel-head p,
html[data-theme="dark"] .win-spc-head span,
html[data-theme="dark"] .win-kpi-row span {
  color: #5B6B82;
}

html[data-theme="dark"] .win-table-deo thead th {
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
}

.tag-ok { background: #E8F8EF; color: #147A42; }
.tag-warn { background: #FFF4DF; color: #9A6700; }
.tag-bad { background: #FFE8E6; color: #B42318; }
.tag-muted { background: #EEF1F6; color: #5B6B82; }

.win-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.win-kpi-row article {
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: 12px;
  padding: 12px 14px;
}

.win-kpi-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.win-kpi-row strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.35rem;
}

.win-kpi-row .danger { color: #B42318; }

.win-chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.win-chart-card {
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: 12px;
  padding: 14px;
  min-height: 180px;
}

.win-chart-card h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 0.95rem;
}

.win-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
}

.win-chart-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #4BA3FF, #004EE0);
}

.win-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.win-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.win-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.win-legend .c1 { background: #004EE0; }
.win-legend .c2 { background: #4BA3FF; }
.win-legend .c3 { background: #02245F; }
.win-legend .c4 { background: #94A3B8; }

.win-chart-bars-lg {
  flex: 1;
  min-height: 160px;
  margin: 8px 0 14px;
  padding: 0 4px;
}

.win-legend.compact {
  margin-top: auto;
  gap: 8px;
}

.win-legend.compact li {
  font-size: 0.84rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(1, 22, 56, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3,
.role-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.15rem;
}

.feature-card p { margin: 0; color: var(--muted); }

.role-grid {
  display: grid;
  gap: 14px;
}

.role-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid #D5DEEC;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.role-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.role-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-band {
  position: relative;
  width: 100%;
  margin-top: 120px;
  padding: 48px 0 64px;
  background: linear-gradient(115deg, #011638 0%, #02245F 55%, #02245F 100%);
  color: #fff;
  overflow: visible;
}

.benefit-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -86px;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.benefit-wave svg {
  width: 100%;
  height: 100%;
}

.benefit-band-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.benefit-band .section-head h2,
.benefit-band .benefit-close {
  color: #fff;
}

.benefit-band .section-lead {
  color: rgba(215, 228, 255, 0.88);
}

.benefit-head {
  max-width: none;
  margin-bottom: 32px;
}

.benefit-head h2,
.benefit-head .section-lead {
  max-width: none;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
}

.benefit-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  width: 148px;
  height: 148px;
  margin: 0;
  color: #D7E3F2;
  pointer-events: none;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-card h3,
.benefit-card p {
  position: relative;
  z-index: 1;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  color: #011638;
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.benefit-card h3 span {
  color: #004EE0;
  margin-right: 6px;
}

.benefit-card p {
  margin: 0;
  color: #5B6B82;
  font-size: 0.98rem;
  line-height: 1.55;
}

.benefit-close {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--navy);
}

.role-label {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-card li {
  position: relative;
  padding: 4px 0 4px 16px;
  color: var(--ink);
  font-size: 0.98rem;
}

.role-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.about-copy {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.pillars {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.pillars > div {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #011638 0%, #02245F 55%, #004EE0 140%);
  color: #fff;
}

.pillars span {
  display: block;
  color: #A8C4FF;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pillars strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.about-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span { color: var(--muted); font-weight: 600; }

.stat-card.accent {
  background: linear-gradient(160deg, #011638 0%, #004EE0 130%);
  color: #fff;
}

.stat-card.accent strong,
.stat-card.accent span { color: #fff; }
.stat-card.accent span { color: #C9D7F0; }

.section-cta { margin-bottom: 72px; }

.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  background: linear-gradient(160deg, #011638 0%, #02245F 50%, #004EE0 130%);
  color: #fff;
}

.cta-copy .eyebrow { margin-bottom: 0; }

.cta-copy h2 {
  color: #fff;
  margin-top: 36px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  white-space: nowrap;
}
.cta-copy > p:not(.cta-close) {
  color: #C9D7F0;
  margin: 10px 0 0;
  max-width: none;
}

html[lang="en"] .cta-intro {
  font-size: 0.94rem;
}

.cta-copy > .cta-close {
  margin-top: auto;
  padding-top: 28px;
  max-width: none;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-form {
  padding: 20px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #F7F9FC;
  color: #0F172A;
  caret-color: #0F172A;
  outline: none;
  resize: vertical;
}

.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.msg-field {
  position: relative;
  display: block;
}

.msg-field textarea {
  display: block;
}

.cta-form textarea {
  scrollbar-width: none;
}

.cta-form textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.msg-field.is-scrollable textarea {
  padding-right: 26px;
}

.msg-scrollbar {
  display: none;
  position: absolute;
  top: 12px;
  right: 5px;
  bottom: 12px;
  width: 10px;
  background: var(--scrollbar-track);
  border-radius: 999px;
  overflow: hidden;
}

.msg-field.is-scrollable .msg-scrollbar {
  display: block;
}

.msg-scrollbar-thumb {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 0;
  border-radius: 999px;
  background: var(--blue);
  touch-action: none;
}

.msg-scrollbar-thumb:hover {
  background: var(--blue-hover);
}

.msg-field.is-drag .msg-scrollbar-thumb {
  background: var(--blue-pressed);
}

.form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* FOOTER */
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 12px;
}
.footer p { color: var(--muted); margin: 0; }
.footer h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.95rem;
}

.footer a {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.footer a:hover { color: var(--blue); }

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy p { margin: 0; }

.footer-copy a {
  display: inline;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero,
  .about-grid,
  .cta-card,
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    position: static;
    left: auto;
    transform: none;
    height: auto;
    width: min(240px, 70%);
    margin: 0 auto;
  }

  .problem-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .problem-arrow {
    width: 100%;
    transform: rotate(90deg);
    height: 40px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .product-click-hint {
    left: -76px;
    width: 64px;
  }

  .product-click-hint-icon {
    width: 44px;
    height: 44px;
  }

  .product-click-hint-icon svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 1120px) {
  /* no side margin — tuck hint above the window instead of shrinking it */
  .product-click-hint {
    left: 0;
    top: -58px;
    transform: none;
    width: auto;
    flex-direction: row;
    gap: 10px;
  }

  .product-click-hint p {
    text-align: left;
  }

  .product-click-hint p br {
    display: none;
  }

  .theme-toggle {
    right: 0;
    top: auto;
    bottom: -56px;
    margin-top: 0;
  }

  .lang-toggle {
    left: 0;
    top: auto;
    bottom: -56px;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .cta-copy h2 { white-space: normal; }

  .win-body {
    grid-template-columns: 1fr;
  }

  .win-sidebar {
    border-right: 0;
    border-bottom: 1px solid #02245F;
  }

  .win-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: none;
  }

  .win-user { display: none; }

  .win-feature,
  .win-feature-wide-copy,
  .win-feature-charts {
    grid-template-columns: 1fr;
  }

  .win-kpi-row,
  .win-chart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-shell {
    width: min(calc(100% - 20px), 1280px);
  }

  .nav {
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .theme-toggle,
  .lang-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-toggle { display: grid; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav.open .nav-links { display: flex; }

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

  .role-card {
    grid-template-columns: 1fr;
  }

  .footer-inner { grid-template-columns: 1fr; }

  .section,
  .section-alt,
  .section-problem-inner,
  .benefit-band-inner,
  .footer,
  .hero {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
    max-width: none;
  }
}

/* Dark mode — page chrome (DEO #0B1220); product mock stays light */
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .role-card h3,
html[data-theme="dark"] .benefit-close,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .about-copy h2,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .nav-links a:not(.nav-cta) {
  color: var(--ink);
}

/* Section 3 (Możliwości): readable heading on dark page; leads stay muted */
html[data-theme="dark"] .section-product .section-head h2 {
  color: #E8EEF7;
}

html[data-theme="dark"] .section-product .win-feature-copy h3 {
  color: #011638;
}

html[data-theme="dark"] .section-product .section-lead,
html[data-theme="dark"] .section-product .win-feature-lead {
  color: #5B6B82;
}

html[data-theme="dark"] .nav-links a:not(.nav-cta):hover {
  color: #fff;
}

html[data-theme="dark"] .footer h4 {
  color: #E8EEF7;
}

html[data-theme="dark"] .hero .eyebrow {
  color: #8EC5FF;
}

html[data-theme="dark"] .benefit-card {
  background: #151D2E;
  border-color: #2D3A4F;
}

html[data-theme="dark"] .benefit-card h3 {
  color: #E8EEF7;
}

html[data-theme="dark"] .benefit-card h3 span {
  color: #8EC5FF;
}

html[data-theme="dark"] .benefit-card p {
  color: #94A3B8;
}

html[data-theme="dark"] .benefit-icon {
  color: #243044;
}

/* Umów rozmowę: swap default ↔ hover vs light */
html[data-theme="dark"] .nav-cta {
  background: var(--blue) !important;
}

html[data-theme="dark"] .nav-cta:hover {
  background: var(--navy) !important;
}

html[data-theme="dark"] .btn-primary {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 78, 224, 0.28);
}

html[data-theme="dark"] .btn-primary:hover {
  background: var(--navy);
}

html[data-theme="dark"] .problem-side,
html[data-theme="dark"] .deo-hub-list li {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .problem-side-label,
html[data-theme="dark"] .deo-hub-core strong {
  color: #E8EEF7;
}

html[data-theme="dark"] .problem-side-caption {
  color: #94A3B8;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 66px;
  z-index: 80;
  width: clamp(240px, calc((100vw - var(--max)) / 2 - 16px), 360px);
  max-height: calc(100vh - 82px);
  background: transparent;
  pointer-events: none;
}

html[data-consent="set"] .cookie-banner {
  display: none;
}

html[data-consent="set"] .cookie-banner.is-open {
  display: block;
}

.cookie-launcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(1, 22, 56, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cookie-launcher svg {
  width: 40px;
  height: 40px;
  display: block;
}

.cookie-launcher:hover {
  background: var(--blue-hover);
  color: var(--blue-hover);
}

.cookie-banner-inner {
  width: 100%;
  max-height: calc(100vh - 82px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(1, 22, 56, 0.16);
  pointer-events: auto;
}

.cookie-banner-copy p {
  margin: 0;
}

.cookie-banner-copy p + p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cookie-banner-copy a {
  color: var(--blue);
  font-weight: 750;
}

#cookie-title {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 750;
}

.cookie-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cookie-option strong {
  display: block;
  font-size: 0.78rem;
}

.cookie-option-note,
.cookie-option-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 500;
}

.cookie-switch {
  appearance: none;
  flex-shrink: 0;
  width: 36px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  position: relative;
  cursor: pointer;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.cookie-switch:checked {
  background: var(--blue);
}

.cookie-switch:checked::after {
  transform: translateX(14px);
}

.cookie-switch:disabled {
  cursor: default;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.cookie-btn {
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.cookie-btn-save {
  align-self: flex-end;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cookie-btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.cookie-btn-ghost:hover {
  background: var(--blue-soft);
}

.cookie-btn-primary:hover {
  background: var(--blue-hover);
}

@media (max-width: 720px) {
  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

.legal {
  width: min(calc(100% - 32px), 760px);
  margin: 56px auto 72px;
}

.legal h1,
.legal h2 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: 0;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 750;
  line-height: 1.15;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-date {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal p,
.legal li {
  color: var(--ink);
  line-height: 1.6;
}

.legal p { margin: 0 0 12px; }

.legal ul,
.legal ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal li + li { margin-top: 6px; }

.legal a { color: var(--blue); }

.legal-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-table-wrap {
  margin: 0 0 12px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.legal-table th {
  font-weight: 750;
}

html[data-theme="dark"] .page-bg {
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(0, 78, 224, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(0, 78, 224, 0.08), transparent 50%),
    var(--bg);
}
