/* Aorum — shared styles for the home, product and information pages.
   One navy background across the site; local fonts and original app assets. */

/* ---------- Font: Poppins (SIL OFL 1.1, fonts/OFL-Poppins.txt) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2"),
       url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2"),
       url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Shared navy palette ----------
   Background reference chosen by the owner, 2026-09-30: Legalny Deweloper.
   Same navy #0B1B37 and two subtle gold glows; Aorum accents stay unchanged. */
:root {
  color-scheme: dark;
  --bg: #0B1B37;
  --surface: #192C4D;
  --surface-2: #142542;
  --header: #0B1B37;
  --text: #F5F7FB;
  --text-secondary: #C5CEDC;
  --text-muted: #9EAFC5;
  --separator: rgba(255, 255, 255, .28);
  --subtle-border: rgba(255, 255, 255, .12);
  --navy: #A6B9FF;
  --green: #5DC2A8;
  --brand-navy: #E9EDF7;
  --brand-green: #5DC2A8;
  --product-name-color: #6CC39A;
  --product-name-on-accent: #0B3D2B;
  --cta-fill: #6CC39A;
  --accent: #A6B9FF;
  --on-accent: #0B1B37;
  --accent-fill: rgba(166, 185, 255, .12);
  --accent-stroke: rgba(166, 185, 255, .5);
  --green-fill: rgba(93, 194, 168, .12);
  --green-stroke: rgba(93, 194, 168, .5);
  --shadow: 0 8px 24px rgba(0, 0, 0, .16);
  --bg-elevated: var(--surface);
  --border: var(--separator);
  --accent-contrast: var(--on-accent);
  --code-bg: var(--accent-fill);
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --legal-width: 760px;
  --gutter: 20px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  isolation: isolate;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Fixed glows stay continuous through the whole page, including mobile. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 80%, rgba(229, 175, 67, .08), transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(229, 175, 67, .12), transparent 50%);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

code,
.placeholder {
  font-family: var(--mono);
  background: var(--code-bg);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
  color: var(--text);
}

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

/* Przełączanie wersji językowej.
   Domyślnie (bez klasy na <html>) widoczna jest treść .lang-pl.
   Klasa .lang-en na <html> pokazuje treść .lang-en i ukrywa .lang-pl. */
html:not(.lang-en) .lang-en {
  display: none !important;
}

html.lang-en .lang-pl {
  display: none !important;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

/* ---------- Kontener ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Nagłówek (wspólny) ---------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--subtle-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav lang";
  align-items: center;
  gap: 8px 20px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

/* Stopka: samo „Aorum” z rodziny v8 (poniżej 80 px nie używamy pełnego logo). */
.brand--wordmark img {
  width: auto;
  height: 32px;
}

.brand--workspace img {
  width: auto;
  height: 80px;
  max-width: 100%;
}

/* Dawny znacznik marki ze stron zgodności (zachowany dla zgodności). */
.brand-mark {
  color: var(--brand-navy);
}

.site-nav {
  transform: none;
  grid-area: nav;
  min-width: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.0925rem;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent-fill);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-fill);
  border-color: var(--accent-stroke);
  font-weight: 600;
}

/* Przełącznik języka PL/EN — segmenty jak w aplikacji */
.lang-switch {
  grid-area: lang;
  display: inline-flex;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--product-name-color);
  color: #0B1B37;
}

@media (max-width: 1040px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    padding-top: 8px;
    padding-bottom: 4px;
    gap: 0 12px;
  }

  /* Nawigacja jako poziomy, przewijany pasek — mieści się od 360 px bez JS. */
  .site-nav {
    transform: none;
    margin: 0 calc(var(--gutter) * -1);
    /* 2026-09-29 QA: wygaszenie prawej krawędzi sygnalizuje, że pasek się przewija. */
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    justify-content: flex-start;
    padding: 2px var(--gutter) 6px;
    width: max-content;
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 1.058rem;
  }
}

/* ---------- Stopka (wspólna) ---------- */
.site-footer {
  margin-top: 0;
  background: transparent;
  border-top: 1px solid var(--subtle-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer .brand {
  font-size: 1.1rem;
}

.footer-tagline {
  margin: 8px 0 0;
  max-width: 32ch;
}

.footer-h {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--subtle-border);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Przyciski i znaczniki ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--cta-fill);
  color: var(--on-accent);
}

.btn--primary:hover {
  text-decoration: none;
  filter: brightness(1.12);
}

.btn--ghost {
  background: var(--accent-fill);
  border-color: var(--accent-stroke);
  color: var(--accent);
}

.btn--ghost:hover {
  text-decoration: none;
  background: transparent;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--subtle-border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--live {
  background: var(--green-fill);
  border-color: var(--green-stroke);
  color: var(--brand-green);
}


.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Sekcje landingów ---------- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: transparent;
  border-top: 1px solid var(--subtle-border);
  border-bottom: 1px solid var(--subtle-border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-note {
  max-width: 48rem;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.hero--product h1 {
  max-width: 20ch;
}

.hero__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.hero__note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero--compact {
  padding-bottom: 48px;
}

.hero--compact .hero__grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-mark {
  width: 168px;
  height: 168px;
  border-radius: 40px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--subtle-border);
  box-shadow: var(--shadow);
  color: var(--brand-navy);
}

.product-mark svg {
  width: 84px;
  height: 84px;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero__grid,
  .hero--compact .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero--compact .hero__visual {
    display: none;
  }
}

/* Nawigacja wewnątrz strony produktu */
.page-nav {
  border-bottom: 1px solid var(--subtle-border);
  background: transparent;
}

.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-nav ul::-webkit-scrollbar {
  display: none;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-nav a:hover {
  background: var(--accent-fill);
  color: var(--accent);
}

/* ---------- Karty ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.card p:last-child {
  margin-bottom: 0;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-fill);
  color: var(--accent);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--green {
  background: var(--green-fill);
  color: var(--green);
}


/* Karty aplikacji rodziny */
.app-card {
  display: flex;
  flex-direction: column;
}

.app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--subtle-border);
  color: var(--brand-navy);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.app-icon svg {
  width: 30px;
  height: 30px;
}

.app-card ul {
  list-style: none;
  margin: 4px 0 16px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.app-card li {
  position: relative;
  padding: 6px 0 6px 18px;
}

.app-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}

.app-card__link {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.app-card__link:hover {
  text-decoration: underline;
}

/* Lista funkcji w dwóch kolumnach (strona Mail) */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--subtle-border);
}

.feature-list .fl-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-fill);
  color: var(--accent);
}

.feature-list .fl-icon svg {
  width: 22px;
  height: 22px;
}

.feature-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lista „Pulpit” */
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--subtle-border);
  color: var(--text-secondary);
}

.plain-list li strong {
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Pole informacyjne (prywatność, status) */
.callout {
  background: var(--surface);
  border: 1px solid var(--accent-stroke);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 24px;
}

.callout p {
  margin: 0;
}

.callout--green {
  border-color: var(--green-stroke);
  background: var(--green-fill);
}

.prose {
  max-width: 46rem;
}

.prose p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* ---------- Cennik ---------- */
.price-card {
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent-stroke);
  box-shadow: 0 0 0 1px var(--accent-stroke), var(--shadow);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.price-card__head h3 {
  margin: 0;
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.price-alt {
  margin: 4px 0 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.check-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green);
}


.price-card .card__foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Tabela porównania ---------- */
.table-scroll {
  /* 2026-09-29 QA: ukryte etykiety (.visually-hidden) w komórkach wypychały stronę w bok przy 360–390 px. */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.compare caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px 6px;
  font-weight: 600;
  color: var(--text);
}

.compare th,
.compare td {
  padding: 12px 14px;
  text-align: center;
  vertical-align: top;
  border-top: 1px solid var(--subtle-border);
}

.compare thead th {
  border-top: none;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  vertical-align: bottom;
}

.compare th[scope="row"] {
  text-align: left;
  font-weight: 400;
  color: var(--text);
  min-width: 190px;
}

/* Pierwsza kolumna przyklejona przy przewijaniu w poziomie */
.compare th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--subtle-border);
}

.compare .col-aorum {
  background: var(--accent-fill);
}

.compare tfoot th,
.compare tfoot td {
  font-weight: 600;
  border-top: 1px solid var(--separator);
}

.mark {
  display: inline-block;
  min-width: 1.3em;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Apple Symbols", var(--font);
}

.mark--yes {
  color: var(--green);
}


.mark--part,
.mark--no,
.mark--unk {
  color: var(--text-muted);
}

.cell-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.scroll-hint {
  display: none;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .scroll-hint {
    display: block;
  }
}

/* ---------- FAQ i rozwijane sekcje (także strony zgodności) ---------- */
details {
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 10px;
  background: var(--surface);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.2em;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details[open] summary {
  margin-bottom: 4px;
}

details > :last-child {
  margin-bottom: 16px;
}

.faq {
  max-width: 48rem;
}

.faq p {
  color: var(--text-secondary);
}

/* ---------- „Daj znać, że czekasz” ---------- */
.notify {
  background: var(--surface);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.notify h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.notify p {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .notify {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
}

/* ---------- Strony zgodności: privacy / terms / support ----------
   Kontener .page (węższy), dawne klasy .box, .meta, .lead, details, code, .placeholder. */
.page {
  max-width: var(--legal-width);
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

.page h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  margin: 0 0 8px;
}

.page h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--subtle-border);
}

.page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.page h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
}

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

.page ul,
.page ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.page li {
  margin-bottom: 6px;
}

.lead {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 4px 0 24px;
}

.box {
  background: var(--surface);
  border: 1px solid var(--accent-stroke);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}

.box p:last-child {
  margin-bottom: 0;
}

/* ---------- Strona 404 ---------- */
.notfound {
  padding: 96px 0;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  margin: 16px 0 12px;
}

.notfound p {
  color: var(--text-secondary);
}

.notfound .btn-row {
  justify-content: center;
}

/* ---------- Wąskie ekrany ---------- */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .card {
    padding: 22px 20px;
  }

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

  .page {
    padding-top: 28px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Dodatki strony Mail ---------- */
.section-title {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  margin: 0 0 12px;
}

.after-table {
  margin-top: 32px;
}

.eyebrow--logo {
  gap: 12px 16px;
}

.product-logo {
  display: block;
  width: auto;
  height: 40px;
}

/* Kolumna Aorum ma tło 12 % akcentu — tekst pomocniczy w niej ciemniejszy/jaśniejszy (kontrast AA w obu motywach). */
.compare .col-aorum .cell-note,
.compare .col-aorum .mark--part,
.compare .col-aorum .mark--no,
.compare .col-aorum .mark--unk {
  color: var(--text-secondary);
}

.price-card__head,
.app-card__top {
  flex-wrap: wrap;
}

.app-card .badge {
  white-space: normal;
}

/* 2026-09-29 QA: na telefonie węższa przyklejona kolumna tabeli porównania,
   żeby obok niej mieściło się więcej kolumn aplikacji. */
@media (max-width: 640px) {
  .compare th[scope="row"] {
    min-width: 128px;
  }

  .compare th,
  .compare td {
    padding: 10px 10px;
  }
}

/* ---------- Ikony w menu produktów (2026-09-29) ---------- */
.site-nav a {
  gap: 7px;
}

.site-nav a svg {
  width: 20.7px;
  height: 20.7px;
  flex: none;
}

/* ---------- Aorum Workspace intro ---------- */
.intro {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  text-align: center;
  background: transparent;
}

.intro h1 {
  font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
}

.intro h1 em {
  display: block;
  font-style: normal;
  color: var(--brand-green);
  background: linear-gradient(90deg, #A6B9FF 0%, #5DC2A8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro__lead {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
}

.intro .btn-row {
  justify-content: center;
  margin-top: 42px;
  gap: 18px;
}

.intro__note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.035rem;
}

/* Scena ze zrzutem rozłożonego iPhone'a Duo (przezroczyste tło wokół urządzenia) */
.intro__stage {
  margin-top: 48px;
}

.intro__device {
  display: block;
  width: min(1040px, 100%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 70px rgba(166, 185, 255, 0.10));
}

.intro__caption {
  max-width: 40rem;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 0.9775rem;
}

@media (prefers-reduced-motion: no-preference) {
  .intro__device {
    animation: duo-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  @keyframes duo-in {
    from {
      opacity: 0;
      transform: translateY(48px) scale(0.97);
    }
  }
}

/* Galeria zrzutów Duo pod intrem — ta sama ciemna scena */
.intro-gallery {
  padding: 24px 0 88px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.intro-gallery .section-head {
  padding-top: 56px;
}

.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
  align-items: end;
}

.duo-shot {
  margin: 0;
  text-align: center;
}

.duo-shot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.duo-shot--folded img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
}

.duo-shot figcaption {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .intro {
    padding: 56px 0 48px;
  }

  .intro__stage {
    margin-top: 40px;
  }

  .duo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---------- Refined product presentation ---------- */
.intro { padding-top: 48px; padding-bottom: 64px; }
.intro h1 { font-size: clamp(2.1rem, 1.2rem + 3.25vw, 3.75rem); text-wrap: balance; }
.intro__lead { max-width: 35rem; font-size: 1.1rem; line-height: 1.6; text-wrap: balance; }
.intro__stage { margin-top: 40px; }
.intro__caption { margin-top: 18px; }
.screen-link { display: block; position: relative; color: inherit; text-decoration: none; border-radius: 16px; }
.screen-link__hint { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 18px auto 0; padding: 7px 14px; border: 0; border-radius: 0; font-size: .75rem; font-weight: 600; line-height: 1.5; color: var(--product-name-color); }
.screen-link:hover .screen-link__hint { background: var(--accent-fill); color: var(--product-name-color); }
.intro__screen { max-width: 1000px; margin-inline: auto; }
.intro__screen .screen-link__hint { margin-top: 22px; font-size: .8625rem; }
.intro-gallery { padding-top: 0; padding-bottom: 64px; }
.intro-gallery .section-head { padding-top: 56px; max-width: 43rem; margin-bottom: 48px; }
.duo-showcase { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 48px; }
.duo-showcase .duo-shot--folded img { max-height: 390px; }
.duo-shot figcaption { text-align: left; margin-top: 24px; font-size: .86rem; line-height: 1.65; }
.duo-shot figcaption strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 5px; }
.theme-gallery { margin: 56px 0 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.theme-gallery summary { padding: 24px 0; font-size: 1rem; }
.theme-gallery > p { max-width: 40rem; margin: 0 0 32px; color: var(--text-secondary); }
.theme-gallery > .duo-grid { padding-bottom: 24px; }
#apps .app-card { box-shadow: none; padding: 30px; }
#apps .app-card > .lang-pl, #apps .app-card > .lang-en { display: flex; flex-direction: column; flex: 1; }
#apps .app-card__link { align-self: flex-start; }
.values-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr); gap: 64px; }
.values-layout > .section-head { margin: 0; }
.value-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.value-item { padding-top: 24px; }
.value-item h3 { font-size: 1.05rem; margin: 0 0 10px; }
.value-item p { color: var(--text-secondary); font-size: .92rem; margin: 0 0 12px; }
.value-item .card__icon { background: transparent; border-radius: 0; place-items: start; width: auto; height: auto; margin-bottom: 18px; }
.mail-device { width: min(100%, 350px); margin: 0; }
.mail-device img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.2)); }
.mail-device figcaption { margin-top: 18px; text-align: center; color: var(--text-muted); font-size: .8rem; }
.hero--product .hero__grid { gap: 72px; }
.hero--product h1 { font-size: clamp(2rem, 1.35rem + 2.45vw, 3.15rem); text-wrap: balance; }
.menu-toggle { display: none; }

/* The image links and navigation remain usable without JavaScript. */
@media (max-width: 900px) {
  .values-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero--product .hero__grid { gap: 40px; }
  .mail-device { width: min(100%, 310px); }
}
@media (max-width: 1040px) {
  .site-header { position: relative; z-index: 5; }
  .site-header__inner { grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand lang menu" "nav nav nav"; padding-block: 10px; gap: 8px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand:not(.brand--workspace) img { width: 26px; height: 26px; }
  .brand--workspace img { width: auto; height: 32px; }
  .site-nav { margin: 0; mask-image: none; -webkit-mask-image: none; overflow: visible; }
  .site-nav ul { width: auto; flex-wrap: wrap; padding: 8px 0; }
  [data-site-ready] .menu-toggle { grid-area: menu; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: transparent; border: 1px solid var(--subtle-border); border-radius: 0; cursor: pointer; }
  [data-site-ready] .site-header__inner { grid-template-areas: "brand lang menu"; }
  [data-site-ready] .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 14px; background: var(--header); border-bottom: 1px solid var(--subtle-border); box-shadow: var(--shadow); }
  [data-site-ready] .menu-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent-stroke); background: var(--accent-fill); }
  [data-site-ready] .menu-toggle[aria-expanded="true"] + .site-nav { display: block; }
  [data-site-ready] .site-nav ul { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; }
  [data-site-ready] .site-nav a { width: 100%; min-height: 48px; border-radius: 0; }
}
@media (max-width: 520px) {
  .site-header__inner,
  [data-site-ready] .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand brand" "lang menu" "nav nav";
  }
  [data-site-ready] .site-header__inner { grid-template-areas: "brand brand" "lang menu"; }
  .site-header .brand--workspace { justify-self: start; }
  .lang-switch { justify-self: start; }
}
@media (max-width: 760px) {
  .intro { padding: 32px 0 40px; }
  .intro h1 { font-size: clamp(1.85rem, 7.8vw, 2.6rem); line-height: 1.13; margin-bottom: 18px; }
  .intro__lead { max-width: 30ch; font-size: 1rem; }
  .intro .btn-row { margin-top: 33px; gap: 9px; }
  .intro .btn--ghost { background: transparent; border-color: transparent; }
  .intro__note { max-width: 34ch; margin: 10px auto 0; font-size: .8625rem; }
  .intro__stage { margin-top: 28px; }
  .intro__caption { font-size: .8625rem; max-width: 35ch; }
  .intro-gallery { padding-bottom: 40px; }
  .intro-gallery .section-head { padding-top: 40px; margin-bottom: 32px; }
  .duo-showcase { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .duo-shot figcaption { text-align: center; margin-top: 18px; }
  .duo-showcase .duo-shot--folded img { max-height: 420px; }
  .duo-shot--folded .screen-link { max-width: 310px; margin-inline: auto; }
  .theme-gallery { margin-top: 40px; }
  .theme-gallery summary { padding-block: 20px; }
}
@media (max-width: 520px) {
  .value-list { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .value-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 0 16px; padding-block: 22px; }
  .value-item .card__icon { grid-column: 1; grid-row: 1; margin: 2px 0 0; }
  .value-item > .lang-pl, .value-item > .lang-en { grid-column: 2; grid-row: 1; }
  #apps .app-card { padding: 24px; }
}

/* Native modal: Escape, focus containment and a full-resolution zoom state. */
body.has-image-preview { overflow: hidden; }
.image-viewer { --accent: #A6B9FF; color-scheme: dark; width: min(1400px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #414750; border-radius: 20px; color: #fff; background: #15171B; box-shadow: 0 30px 100px #0008; }
.image-viewer::backdrop { background: rgba(4,6,10,.9); }
.image-viewer__toolbar { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #414750; }
.image-viewer__toolbar h2 { margin: 0 auto 0 0; color: #fff; font-size: 1rem; }
.image-viewer__toolbar form { margin: 0; }
.image-viewer__toolbar button { min-height: 44px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; color: #fff; border: 1px solid #737c8c; border-radius: 0; background: transparent; cursor: pointer; }
.image-viewer__toolbar button:hover { background: #ffffff14; }
.image-viewer__canvas { overflow: auto; max-height: calc(100dvh - 140px); padding: 24px; overscroll-behavior: contain; }
.image-viewer__canvas img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 188px); margin: auto; object-fit: contain; }
.image-viewer.is-zoomed .image-viewer__canvas img { max-width: none; max-height: none; }
@media (max-width: 760px) {
  .image-viewer { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .image-viewer__toolbar { padding: 12px; gap: 8px; flex-wrap: wrap; }
  .image-viewer__toolbar h2 { width: 100%; font-size: .9rem; }
  .image-viewer__toolbar form { margin-left: auto; }
  .image-viewer__canvas { padding: 12px; max-height: calc(100dvh - 144px); }
}

/* Actual application artwork, also used in the product navigation. */
.nav-app-icon { display: block; width: 27.6px; height: 27.6px; flex: none; object-fit: contain; border-radius: 6px; }
.product-app-icon { display: block; width: 48px; height: 48px; flex: none; border-radius: 12px; }
.product-mark--app { padding: 0; overflow: hidden; background: transparent; border: 0; }
.product-mark--app img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .hero--app .hero__visual { display: flex; justify-content: flex-start; grid-row: 1; }
  .hero--app .product-mark--app { width: 80px; height: 80px; border-radius: 20px; }
  .hero--app .hero__grid { gap: 24px; }
}

/* Product accents follow the Workspace logo; primary buttons use the dark variant. */
.product-name { color: var(--product-name-color); }
.btn--primary .product-name { color: var(--product-name-on-accent); }

/* Named Phosphor controls share the same icon weight and label alignment. */
.image-viewer__toolbar button, .skip-link { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle { gap: 8px; }
.menu-toggle svg, .image-viewer__toolbar button svg, .skip-link svg, .screen-link__hint svg { width: 20px; height: 20px; flex: none; }
.lang-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }


/* Pricing note uses the full desktop content width and wraps on smaller screens. */
#pricing .section-note { max-width: none; }

/* Header actions follow the app links: language, then pricing. */
.header-actions { grid-area: lang; display: flex; align-items: center; gap: 12px; }
.header-pricing { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-secondary); font-size: 1.0925rem; text-decoration: none; white-space: nowrap; }
.header-pricing svg { width: 20.7px; height: 20.7px; flex: none; }
.header-pricing:hover { color: var(--product-name-color); }
.values-logo { display: block; width: auto; height: 80px; max-width: 100%; margin-top: 18px; object-fit: contain; object-position: left; }
@media (max-width: 1040px) { .header-pricing { font-size: 1.058rem; } }
@media (max-width: 520px) { .header-actions { gap: 10px; } }

/* Keep short phrases together and allow desktop descriptions the full content width. */
.keep-together { white-space: nowrap; }
#apps .section-head { max-width: none; }
@media (min-width: 761px) {
  .intro__lead, .intro__caption { max-width: none; }
}
#apps { border-bottom: 0; }
#values, #pricing { border-top: 0; border-bottom: 0; }
body:has(#pricing) .site-footer { border-top: 0; }
.footer-app-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-app-link img { display: block; width: 24px; height: 24px; border-radius: 5px; flex: none; }

.image-viewer__navigation { display: flex; align-items: center; gap: 8px; }
.image-viewer__navigation button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 8px; color: var(--product-name-color); }
.image-viewer__navigation button svg { width: 20px; height: 20px; }
.image-viewer__previous svg { transform: rotate(180deg); }
.image-viewer__navigation button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.image-viewer__position { min-width: 3.5em; text-align: center; font-size: .85rem; white-space: nowrap; }
.image-viewer__navigation button:disabled { opacity: .4; cursor: default; }
@media (max-width: 760px) {
  .image-viewer__toolbar { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .image-viewer__toolbar h2 { flex: 1 0 100%; }
  .image-viewer__navigation { margin-right: auto; }
  .image-viewer__toolbar button { padding: 8px; }
}

.theme-gallery__title { display: inline-flex; align-items: center; gap: 10px; }
.theme-gallery__title svg { width: 22px; height: 22px; flex: none; color: var(--product-name-color); }

.theme-gallery .duo-grid figcaption { text-align: center; }
.app-link-name { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.app-link-logo { display: inline-block; width: 22px; height: 22px; flex: none; margin-right: 0; vertical-align: middle; border-radius: 5px; }
#pricing .section-head h2 svg { display: inline-block; width: .85em; height: .85em; margin-right: .3em; vertical-align: -.03em; color: var(--product-name-color); }
.footer-info-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-info-link svg { width: 24px; height: 24px; flex: none; color: var(--product-name-color); }

.intro-title-line { display: block; }
.intro__actions { margin-top: 40px; }
@media (min-width: 761px) { #intro-title-en .intro-title-line { white-space: nowrap; } }
@media (max-width: 760px) { .intro__actions { margin-top: 28px; } }

/* Desktop navigation occupies a dedicated column at the right edge.
   2026-09-30: column 200 px; logo, menu and language switch stack in one fixed container. */
@media (min-width: 1041px) {
  body { padding-top: 48px; padding-right: 232px; }
  .site-header { position: relative; border-bottom: 0; background: transparent; }
  .site-header__inner { position: fixed; top: 64px; right: 22px; z-index: 10; display: flex; flex-direction: column; align-items: stretch; gap: 18px; width: 200px; max-width: none; margin: 0; padding: 0; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .site-header .brand--workspace { width: 200px; }
  .site-header .brand--workspace img { width: 100%; height: auto; }
  .site-header .site-nav { position: static; width: auto; transform: none; }
  .site-header .site-nav ul { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
  .site-header .site-nav a { width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 60px; padding: 8px 10px; text-align: center; font-size: 1rem; line-height: 1.25; }
  .site-header .nav-app-icon { width: 24px; height: 24px; }
  .site-header .site-nav a svg { width: 20px; height: 20px; }
  .site-header .header-actions { justify-content: center; margin: 0; }
  .intro__text { container-type: inline-size; }
  .intro h1 { font-size: clamp(2.1rem, 5cqw, 3.75rem); overflow-wrap: normal; hyphens: manual; }
}
@media (max-width: 1040px) {
  .site-header__inner { grid-template-areas: "lang brand menu" "nav nav nav"; grid-template-columns: auto minmax(0,1fr) auto; }
  [data-site-ready] .site-header__inner { grid-template-areas: "lang brand menu"; }
  .site-header .brand--workspace { justify-self: end; }
}
@media (max-width: 520px) {
  .site-header__inner { grid-template-areas: "lang brand menu" "nav nav nav"; grid-template-columns: auto minmax(0,1fr) auto; }
  [data-site-ready] .site-header__inner { grid-template-areas: "lang brand menu"; }
  .site-header .brand--workspace img { height: 30px; }
  .lang-switch button { min-width: 40px; width: 40px; }
  [data-site-ready] .menu-toggle { padding: 0 10px; }
}

@media (min-width: 1041px) {
  body:has(.intro) .site-header { position: absolute; top: 0; left: 0; width: calc(100% - 232px); z-index: 5; pointer-events: none; }
  body:has(.intro) .site-header__inner { pointer-events: auto; }
  .intro { padding-top: 10px; }
}

/* Heading sits to the left of Duo; the image starts alongside the language controls. */
@media (min-width: 1041px) {
  .intro { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 24px; align-items: start; padding: 10px var(--gutter) 72px; }
  .intro > .wrap { width: 100%; max-width: none; margin: 0; padding-inline: 0; min-width: 0; }
  .intro > .intro__text:first-child { grid-column: 1; grid-row: 1; padding-top: 64px; text-align: left; }
  .intro > .intro__stage { grid-column: 2; grid-row: 1; margin-top: 0; }
  .intro > .intro__actions { grid-column: 1 / -1; margin-top: 16px; }
  .intro h1 { font-size: clamp(1.5rem, 10cqw, 2.8rem); line-height: 1.12; text-wrap: balance; }
  #intro-title-en .intro-title-line { white-space: normal; }
  .intro__device { width: 100%; }
}

/* 2026-09-30: on phones the app family stays a short overview before the Duo gallery;
   feature lists live on each app's own page ("Więcej o…" link stays). */
@media (max-width: 760px) {
  #apps .app-card ul { display: none; }
  #apps .app-card { padding: 22px; }
  #apps .grid--2 { gap: 14px; }
}

/* 2026-09-30: concrete benefit under the headline; the family line follows it closely. */
.intro__benefit { color: var(--text); }
.intro__benefit + .intro__lead { margin-top: 10px; }
@media (min-width: 1041px) {
  .intro > .intro__text:first-child .intro__benefit + .intro__lead { margin-top: 10px; }
}

/* Desktop: one blank line above the page (body padding in the column block); the language switch
   closes the right column. Since 2026-09-30 it sits outside <nav>, so the mobile bar shows it too. */
@media (min-width: 1041px) {
  body:has(.intro) .site-header__inner { top: 58px; }
  body:has(.intro) .site-header { top: 48px; }
  .intro > .intro__text:first-child { padding-top: 0; }
  .intro h1 { font-size: clamp(1.98rem, 11cqw, 3.685rem); line-height: 1.3; }
  .intro > .intro__text:first-child .intro__lead { margin-top: 48px; text-align: left; text-wrap: pretty; }
}

/* Hero actions follow the introduction in the left column. */
.intro > .intro__text:first-child .btn-row { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
.intro > .intro__text:first-child .btn { width: 100%; min-width: 0; justify-content: flex-start; white-space: normal; padding: 12px 14px; text-align: left; }
.intro > .intro__text:first-child .btn > span { min-width: 0; }
.intro > .intro__text:first-child .intro__note { margin-top: 32px; text-align: left; }

/* 2026-09-30: pricing anchor and product pages start close to the top edge; no separators;
   product-page gaps cut by 75%; the "What we're planning" tiles fit without scrolling. */
body:has(main > .hero:first-child) .section--alt,
body:has(main > .hero:first-child) .page-nav,
body:has(main > .hero:first-child) .site-footer { border-top: 0; border-bottom: 0; }
@media (min-width: 1041px) {
  #pricing { scroll-margin-top: -72px; }
  body:has(.intro) #pricing { padding-bottom: 0; }
  body:has(.intro) .site-footer__inner { padding-top: 32px; }
  body:has(main > .hero:first-child) { padding-top: 0; }
  body:has(main > .hero:first-child) .hero { padding-top: 16px; }
  body:has(main > .hero:first-child) .hero--compact { padding-bottom: 0; }
  body:has(main > .hero:first-child) .hero--compact + .section { padding-top: 32px; }
  body:has(main > .hero:first-child) .hero--compact .hero__lead { max-width: none; font-size: 1.06rem; line-height: 1.55; }
  body:has(main > .hero:first-child) .hero--compact .eyebrow { margin-bottom: 10px; }
  body:has(main > .hero:first-child) .hero--compact h1 { margin-bottom: 12px; }
  body:has(main > .hero:first-child) .hero--compact + .section .card p { font-size: .9rem; line-height: 1.55; }
  body:has(main > .hero:first-child) .hero--compact + .section .section-head { max-width: none; margin-bottom: 16px; }
  body:has(main > .hero:first-child) .hero--compact + .section .section-head h2 { margin-bottom: 8px; }
  body:has(main > .hero:first-child) .hero--compact + .section .grid { gap: 16px; }
  body:has(main > .hero:first-child) .hero--compact + .section .card { padding: 20px 22px; }
  /* Tile icon sits beside the title instead of above it. */
  body:has(main > .hero:first-child) .hero--compact + .section .card__icon { float: left; width: 34px; height: 34px; border-radius: 11px; margin: 0 12px 0 0; }
  body:has(main > .hero:first-child) .hero--compact + .section .card h3 { min-height: 34px; display: flex; align-items: center; margin-bottom: 8px; }
  body:has(main > .hero:first-child) .hero--compact + .section .card { display: flow-root; }
  body:has(main > .hero:first-child) .hero--compact + .section .card__icon svg { width: 20px; height: 20px; }
}

/* 2026-09-30 round 4: no separators at all on product pages (Mail lists, table, legal line);
   "Let us know" box 50% closer to the tiles and fully visible; Mail hero fills the first screen. */
body:has(main > .hero:first-child) .footer-legal { border-top: 0; }
body:has(main > .hero--product:first-child) main li,
body:has(main > .hero--product:first-child) main th,
body:has(main > .hero--product:first-child) main td { border-top: 0; border-bottom: 0; }
@media (min-width: 1041px) {
  body:has(main > .hero:first-child) main .wrap { max-width: 1200px; }
  body:has(main > .hero--compact:first-child) #features { padding-bottom: 40px; }
  body:has(main > .hero--compact:first-child) #notify { padding-top: 40px; }
  body:has(main > .hero--compact:first-child) .notify { padding: 26px 32px; }
  .hero--product { padding-bottom: 24px; }
  .hero--product .hero__grid { min-height: calc(100dvh - 40px); }
  .hero--product h1 { font-size: clamp(2.4rem, 1.4rem + 2.7vw, 3.75rem); }
  .hero--product .hero__lead { font-size: 1.2rem; }
  .hero--product .mail-device { width: min(100%, 460px); }
}
@media (min-width: 1041px) {
  /* Round 4b: tighter tiles and box so "Let us know" fits on the first screen, Files included. */
  body:has(main > .hero--compact:first-child) .hero--compact .hero__lead { font-size: 1rem; line-height: 1.5; }
  body:has(main > .hero--compact:first-child) #features .card { padding: 16px 20px; }
  body:has(main > .hero--compact:first-child) #features .card h3 { margin-bottom: 6px; }
  body:has(main > .hero--compact:first-child) #features .card p { font-size: .86rem; line-height: 1.45; }
  body:has(main > .hero--compact:first-child) #features .grid { gap: 12px; }
  body:has(main > .hero--compact:first-child) .notify { padding: 20px 28px; }
  body:has(main > .hero--compact:first-child) .notify h2 { font-size: 1.35rem; margin-bottom: 4px; }
  body:has(main > .hero--compact:first-child) .hero--compact h1 { font-size: 3rem; }
  body:has(main > .hero--compact:first-child) #features .section-head h2 { font-size: 1.9rem; }
  body:has(main > .hero--compact:first-child) .hero--compact .hero__note { margin-top: 8px; }
}

/* 2026-09-30 round 5: no separators on the home page or above the legal line; language
   switch stacked; app cards compact with the name beside the icon; themes title like a section
   heading; "Let us know" lower on Plan and Projects; Mail sections 50% closer. */
body:has(.intro) main > section { border-top: 0; border-bottom: 0; }
.footer-legal { border-top: 0; }
#apps .app-card__top { justify-content: flex-start; gap: 14px; margin-bottom: 12px; }
#apps .app-card__top h3 { margin: 0; flex: 1 1 auto; min-width: 0; }
#apps .app-card__top .badge { margin-left: auto; }
#apps .app-icon { width: 48px; height: 48px; border-radius: 12px; }
.theme-gallery__title { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.theme-gallery__title svg { display: none; }
body:has(main > .hero--product:first-child) main > .section { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 1040px) {
  body:has(main > .hero--product:first-child) main > .section { padding-top: 28px; padding-bottom: 28px; }
}
@media (min-width: 1041px) {
  .site-header .lang-switch { flex-direction: column; }
  #apps { scroll-margin-top: -72px; }
  #apps .app-card__top { flex-wrap: nowrap; }
  #apps .app-card { padding: 22px 28px; }
  #apps .app-card p { margin-bottom: 4px; }
  #apps .app-card ul { margin: 2px 0 6px; }
  #apps .app-card li { padding: 3px 0 3px 18px; }
  #apps .app-card li::before { top: .8em; }
  #apps .app-card__link { min-height: 36px; }
  #apps .grid { gap: 20px; }
  body:has(.site-nav a[aria-current="page"][href*="calendar/"]) #notify,
  body:has(.site-nav a[aria-current="page"][href*="projects/"]) #notify { padding-top: 80px; }
}

/* 2026-09-30 round 6: no focus frame on PL/EN after a click (keyboard focus shows an
   underline instead); Files "Let us know" a little higher; Duo captions fit on one screen. */
.lang-switch button:focus, .lang-switch button:focus-visible { outline: none; }
.lang-switch button:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1041px) {
  body:has(.site-nav a[aria-current="page"][href*="files/"]) #features { padding-bottom: 32px; }
  body:has(.site-nav a[aria-current="page"][href*="files/"]) #notify { padding-top: 0; }
  .intro-gallery .section-head { max-width: none; margin-bottom: 24px; }
  .duo-showcase .duo-shot--wide img { width: auto; max-width: 100%; max-height: 460px; margin-inline: auto; display: block; }
  .duo-showcase .screen-link__hint { margin-top: 10px; }
  .duo-showcase .duo-shot figcaption { margin-top: 12px; }
}

/* 2026-09-30 round 8: headline sized to the text column so "środowisko pracy dla" stays on one
   line and "profesjonalistów" is never split; right-hand menu highlight half as wide. */
@media (min-width: 1041px) {
  .intro > .intro__text:first-child h1,
  .intro h1 { font-size: clamp(1.6rem, 9.6cqw, 3.685rem); }
  .site-header .site-nav a { display: flex; width: 50%; margin-inline: auto; padding-inline: 4px; }
}
@media (min-width: 761px) { #intro-title-pl .intro-title-line { white-space: nowrap; } }

/* 2026-09-30 round 9: every caption under a screenshot is centred. */
.duo-shot figcaption, .duo-showcase .duo-shot figcaption { text-align: center; }

/* 2026-09-30 round 10: on the first screen of the home page the logo sits above the headline and
   the Mail icon lines up with the top of the Duo screenshot; after scrolling past it the right
   column shows logo + icons again (class "past-hero" set by site-interactions.js). */
.intro__brand { display: none; }
@media (min-width: 1041px) {
  .intro__brand { display: block; width: 200px; margin: 0 0 28px; }
  .intro__brand img { display: block; width: 100%; height: auto; }
  body:has(.intro) .site-header .brand--workspace { opacity: 0; visibility: hidden; }
  body:has(.intro) .site-header__inner { transform: translateY(-94px); }
  html.past-hero body:has(.intro) .site-header .brand--workspace { opacity: 1; visibility: visible; }
  html.past-hero body:has(.intro) .site-header__inner { transform: none; }
}
@media (min-width: 1041px) and (prefers-reduced-motion: no-preference) {
  html.nav-anim .site-header__inner { transition: transform .35s ease; }
  html.nav-anim .site-header .brand--workspace { transition: opacity .25s ease, visibility .25s; }
}
