/*
 * Webbuy – site.css
 * Public site sections on top of base.css (tokens, type, grid, buttons, forms).
 * Order: shell (header, nav, footer, cookie) → shared parts (section heads, lists, devices) → home sections
 * (hero, statement & problem, automation, features, work, panel demo, audience, pricing, process, reviews,
 * faq, contact) → sub-pages (page head, cases, case study, legal, 404, CTA band) → motion & print.
 */

/* ------------------------------------------------------------- site tokens */

/* The header keeps one height while scrolling (a shrinking sticky header shifts the page under it and can
   make the scrolled state flicker); phones get a slightly lower bar. */
:root {
  --header-h: 72px;
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
  --device: #0D1320;
  --device-edge: #2A3449;
  --device-metal: #C7CCD6;
  --device-metal-2: #A9AFBC;
  --ui-font: var(--font-body);
  interpolate-size: allow-keywords;
}

/* Dark theme of the public site: the page sinks to navy-950 and the full-bleed bands keep navy-900, as in the
   light theme. With base.css alone the bands (navy-950) were darker than the page by ~1.03:1 and the whole
   home page read as one dark slab; now hero, #automation, #contact, the CTA band and the footer stand out
   again. Inside a band the dark token set of base.css (--bg #0A1322, surfaces…) still applies. */
[data-theme="dark"] {
  --bg: var(--navy-950);
  --band-bg: var(--navy-900);
  --device-metal: #3A4458;
  --device-metal-2: #2B3346;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy-950);
    --band-bg: var(--navy-900);
    --device-metal: #3A4458;
    --device-metal-2: #2B3346;
  }
}

@media (max-width: 719.98px) {
  :root {
    --header-h: 64px;
  }
}

body.site {
  overflow-x: clip;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

/* phone numbers never wrap inside the number */
a[href^="tel:"] {
  white-space: nowrap;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Reveal safety net: base.css hides html.js [data-reveal] until site.js adds .is-visible. The inline bootstrap
   sets html.js before site.js has even loaded, so if site.js is blocked, fails to load or cannot run, the
   content would stay invisible. site.js sets html.reveal-ready as soon as its reveal code runs, which removes
   this animation before it fires; without it everything appears after 2.5 s. */
html.js:not(.reveal-ready) [data-reveal]:not(.is-visible) {
  animation: zw-reveal-net 0s 2.5s forwards;
}

@keyframes zw-reveal-net {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

.site-header[data-tone="dark"] {
  background-color: var(--band-bg);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: var(--header-h);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.logo {
  width: auto;
  height: 30px;
  color: currentColor;
}

.site-header .logo {
  transition: height .3s var(--ease-out);
}

.site-header.is-scrolled .logo {
  height: 27px;
}

.site-nav {
  display: none;
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--text);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
}

.site-nav__link[aria-current="page"]::after {
  height: 2px;
  background: var(--accent);
  transform: scaleX(1);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 1120px) {
  .site-nav {
    display: block;
  }
  .site-header__tools {
    margin-left: 0;
  }
}

.site-header__cta {
  display: none;
}

@media (min-width: 560px) {
  .site-header__cta {
    display: inline-flex;
  }
}

/* language menu (details/summary disclosure) */
.lang-menu {
  position: relative;
}

@media (max-width: 519.98px) {
  html.js .lang-menu {
    display: none;
  }
}

.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.lang-menu__toggle::-webkit-details-marker {
  display: none;
}

.lang-menu__toggle:hover,
.lang-menu[open] .lang-menu__toggle {
  color: var(--text);
  border-color: var(--line-strong);
}

.lang-menu__globe {
  width: 16px;
  height: 16px;
}

.lang-menu__chev {
  width: 14px;
  height: 14px;
  transition: transform .25s var(--ease-out);
}

.lang-menu[open] .lang-menu__chev {
  transform: rotate(180deg);
}

ul.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
}

.lang-menu__item:hover {
  background: var(--surface-2);
}

.lang-menu__item[aria-current="true"] {
  font-weight: 600;
}

.lang-menu__item[aria-current="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: auto;
  background: var(--accent-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.lang-menu__item-code {
  width: 22px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-3);
}

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text-2);
  transition: color .2s ease, border-color .2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }
}

html.no-js .theme-toggle {
  display: none;
}

/* mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}

.nav-toggle__bars span:first-child {
  top: 1px;
}

.nav-toggle__bars span:last-child {
  top: 7.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  top: 4.25px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  top: 4.25px;
  transform: rotate(-45deg);
}

@media (min-width: 1120px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .nav-toggle {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

/* without JS the small-screen menu is a wrapped link row under the bar */
html.no-js .nav-toggle {
  display: none;
}

@media (max-width: 1119.98px) {
  html.no-js .site-nav {
    display: block;
    width: 100%;
  }
  html.no-js .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }
  html.no-js .site-nav__list {
    flex-wrap: wrap;
    gap: 4px 18px;
  }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  animation: zw-menu-in .35s var(--ease-out);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100%;
  padding-block: 24px 40px;
}

.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.mobile-nav__n {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.mobile-nav__cta {
  display: grid;
  gap: 10px;
}

.mobile-nav__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
}

.mobile-nav__langs a {
  color: var(--text-2);
  text-decoration: none;
}

.mobile-nav__langs a[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Only the root: with overflow on body too, body becomes its own scroll container and the sticky header
   sticks to it (scrollTop 0) instead of the viewport – opened below the top, the bar and its „Zamknij”
   button would sit far above the screen. */
html.nav-open {
  overflow: hidden;
}

@keyframes zw-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ------------------------------------------------------- shared: headings */

.sec-head {
  max-width: 780px;
}

.sec-head .section-num {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.sec-head__title {
  max-width: 13.32em; /* 20ch in the web font */
}

.sec-head__lead {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 36.589em; /* 58ch in the web font */
}

/* Two variations so the home page does not open every section with the same beat (SPEC §1):
   --split (pricing): a short, larger title on the left, the lead set against it on the right, bottoms aligned;
   --wide (process): a long-measure title over the timeline, the lead offset into the right half. */
@media (min-width: 1024px) {
  .sec-head--split,
  .sec-head--wide {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    max-width: none;
  }
  .sec-head--split .section-num,
  .sec-head--wide .section-num {
    grid-column: 1 / -1;
  }
  .sec-head--split {
    align-items: end;
  }
  .sec-head--split .sec-head__title {
    grid-column: 1 / span 6;
    max-width: none;
    font-size: clamp(3rem, 4.6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }
  .sec-head--split .sec-head__lead {
    grid-column: 8 / span 5;
    margin-top: 0;
    padding-bottom: .3em;
    font-size: 1.125rem;
  }
  .sec-head--wide .sec-head__title {
    grid-column: 1 / span 11;
    max-width: 22em;
  }
  .sec-head--wide .sec-head__lead {
    grid-column: 7 / span 6;
    margin-top: clamp(20px, 2.4vw, 32px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 1.125rem;
  }
}

.on-dark .section-num__n,
.band-dark .section-num__n {
  color: var(--accent);
}

.hl {
  color: var(--accent-ink);
}

.band-dark .hl,
.on-dark .hl {
  color: var(--accent);
}

/* ------------------------------------------------------ shared: tick lists */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks > li {
  position: relative;
  padding-left: 28px;
}

.ticks > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 16px;
  height: 16px;
  background: var(--accent-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.band-dark .ticks > li::before,
.on-dark .ticks > li::before {
  background: var(--accent);
}

.ticks--minus > li::before {
  background: var(--text-3) !important;
  -webkit-mask-image: var(--i-minus);
  mask-image: var(--i-minus);
}

.ticks--arrow > li::before {
  background: var(--text-2) !important;
  -webkit-mask-image: var(--i-arrow);
  mask-image: var(--i-arrow);
}

.ticks--plus > li::before {
  -webkit-mask-image: var(--i-plus);
  mask-image: var(--i-plus);
}

.nw {
  white-space: nowrap;
}

/* .on-dark swaps the tokens; colour must be re-resolved on the element itself */
.on-dark {
  color: var(--text);
}

/* --------------------------------------------------------- shared: devices */

.laptop {
  position: relative;
  container-type: inline-size;
  width: 100%;
}

.laptop__lid {
  position: relative;
  margin-inline: 6.5%;
  padding: 2.1cqi 2.1cqi 2.6cqi;
  background: var(--device);
  border-radius: 2.4cqi 2.4cqi .6cqi .6cqi;
  box-shadow: inset 0 0 0 1px var(--device-edge), 0 30px 60px -30px rgb(7 15 30 / .55);
}

.laptop__lid::before {
  content: "";
  position: absolute;
  top: .85cqi;
  left: 50%;
  width: .7cqi;
  height: .7cqi;
  margin-left: -.35cqi;
  border-radius: 50%;
  background: #1F293C;
}

.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: .5cqi;
  background: #FFFFFF;
}

.laptop__screen > img,
.laptop__screen > .shot-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.laptop__screen > .shot-placeholder,
.phone__screen > .shot-placeholder {
  aspect-ratio: auto !important;
  height: 100%;
}

.laptop__base {
  position: relative;
  height: 2.4cqi;
  background: var(--device-metal);
  border-radius: .3cqi .3cqi 3cqi 3cqi / .3cqi .3cqi 2.2cqi 2.2cqi;
  box-shadow: inset 0 -.5cqi .8cqi -.3cqi var(--device-metal-2), 0 18px 30px -18px rgb(7 15 30 / .5);
}

.laptop__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: .9cqi;
  transform: translateX(-50%);
  border-radius: 0 0 1cqi 1cqi;
  background: var(--device-metal-2);
}

/* The phone is the query container; every cqi below lives on a descendant, so 1cqi = 1% of the phone width. */
.phone {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: var(--shot-ratio, 9 / 19.3);
}

.phone__screen {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3.4cqi solid var(--device);
  border-radius: 15cqi;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--device-edge), 0 30px 60px -28px rgb(7 15 30 / .6);
  isolation: isolate;
}

.phone__screen::after {
  content: "";
  position: absolute;
  top: 2.4cqi;
  left: 50%;
  z-index: 5;
  width: 30%;
  height: 7.2cqi;
  transform: translateX(-50%);
  border-radius: 6cqi;
  background: #05080F;
  pointer-events: none;
}

.phone__screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/*
 * Real screenshots: the screen starts with a status-bar strip (time, signal) in the capture's own top colour
 * (--shot-top, sampled on the server; the frame colour when unknown), so the island never covers the capture.
 * The frame ratio set by site_phone() already includes the strip (12cqi, keep in sync with SITE_PHONE_STATUS).
 */
.phone--shot .phone__screen {
  display: flex;
  flex-direction: column;
  background: var(--shot-top, var(--device));
}

.phone__status {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 12cqi;
  padding: 0 9.5cqi 0 11cqi;
  color: var(--shot-ink, #FFFFFF);
  font-family: var(--font-body);
  font-size: 4cqi;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.phone__sig {
  display: inline-flex;
  align-items: flex-end;
  gap: .8cqi;
  height: 3.4cqi;
}

.phone--shot .phone__screen > img {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}

.phone__screen > .shot-placeholder .shot-placeholder__frame {
  inset: 16% 8% 7%;
}

@container (max-width: 180px) {
  .shot-placeholder__hint {
    display: none;
  }
}

@container (max-width: 240px) {
  .shot-placeholder__size {
    display: none;
  }
  .shot-placeholder__hint {
    font-size: .8125rem;
  }
  .shot-placeholder__label {
    gap: .45em;
    font-size: .625rem;
    letter-spacing: .08em;
  }
}

/* outlined "empty" devices for the next-case slot */
.laptop--ghost .laptop__lid,
.phone--ghost .phone__screen {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--line-strong);
}

.phone--ghost .phone__screen::after {
  top: 3.4cqi;
  height: 6cqi;
  background: transparent;
  border: 1.5px dashed var(--line-strong);
}

.laptop--ghost .laptop__lid::before {
  display: none;
}

.laptop--ghost .laptop__screen,
.phone--ghost .phone__screen {
  background: transparent;
}

.laptop--ghost .laptop__base {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--line-strong);
  border-top: 0;
}

.laptop--ghost .laptop__base::before {
  display: none;
}

.ghost-site {
  position: absolute;
  inset: 9% 8%;
  display: grid;
  align-content: start;
  gap: 6%;
}

.ghost-site i {
  display: block;
  height: 7cqi;
  max-height: 22px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.ghost-site i:nth-child(1) {
  width: 42%;
}

.ghost-site i:nth-child(2) {
  width: 78%;
  height: 14cqi;
  max-height: 40px;
}

.ghost-site i:nth-child(3) {
  width: 64%;
}

.ghost-site i:nth-child(4) {
  width: 30%;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

.ghost-site--phone {
  inset: 22% 10% 10%;
}

.ghost-site--phone i {
  height: 9cqi;
}

/* browser window frame (case page) */
.browser {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser__dots {
  display: inline-flex;
  gap: 6px;
}

.browser__dots i,
.msite__dots i,
.device-chrome__dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: .55;
}

.browser__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 420px;
  flex: 1;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser__url .icon {
  width: 12px;
  height: 12px;
}

.browser__close {
  margin-left: auto;
}

.browser__viewport {
  max-height: min(78vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.browser__viewport img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.browser__viewport--live {
  height: min(78vh, 760px);
}

.browser__viewport--live iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* =================================================================== HERO */

.hero {
  overflow: clip;
  padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
}

.hero__eyebrow {
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--text-2);
}

.hero__eyebrow .marker {
  width: 8px;
  height: 8px;
}

.hero__title {
  max-width: 8.762em; /* 13ch in the web font */
  font-size: clamp(2.6rem, 1.45rem + 4.9vw, 4.875rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--text);
}

.hero__title .hl {
  color: var(--accent);
}

.hero__lead {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 31.542em; /* 50ch in the web font */
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

@media (max-width: 519.98px) {
  .hero__ctas .btn {
    width: 100%;
  }
}

.hero__visual {
  position: relative;
  margin: 0;
  min-width: 0;
}

.hero-mock__stage {
  position: relative;
  aspect-ratio: 1 / .86;
}

.hero-mock__laptop {
  position: absolute;
  top: 0;
  left: -14%;
  width: 104%;
}

.hero-mock__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  max-width: 260px;
}

.hero-mock__caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* caption row under the devices: "Sample data" + the pause control (the button comes first in the DOM because
   a figcaption has to be the figure's first or last child; only the button is focusable, so order is safe) */
.hero-mock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
}

.hero-mock__stage {
  flex: 0 0 100%;
}

.hero-mock__caption {
  order: 1;
}

.hero-mock__pause {
  order: 2;
  display: inline-grid;
  align-items: center;
  justify-items: start;
  min-height: 32px;
  margin: 10px 0 0 -10px; /* centred on the caption's line (18px + 16px / 2 = 10px + 32px / 2) */
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-mock__pause[hidden] {
  display: none;
}

/* both labels share one grid cell, so the button keeps the width of the longer one and never re-wraps */
.hero-mock__pause > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-mock__pause .icon {
  width: 13px;
  height: 13px;
}

.hero-mock__pause:hover {
  color: var(--text);
}

.hero-mock__pause:hover > span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-mock__pause-held,
.hero-mock.is-paused .hero-mock__pause-run {
  visibility: hidden;
}

.hero-mock.is-paused .hero-mock__pause-held {
  visibility: visible;
}

/* paused by the button, or while the hero is off screen (site.js); without JS the loop stops after 3 rounds */
.hero-mock.is-paused :is(.msite__cursor, .msite__send, .ptoast, .mapp__row--fresh),
.hero-mock.is-offscreen :is(.msite__cursor, .msite__send, .ptoast, .mapp__row--fresh) {
  animation-play-state: paused;
}

html.no-js .hero-mock :is(.msite__cursor, .msite__send, .ptoast, .mapp__row--fresh) {
  animation-iteration-count: 3;
}

@media (min-width: 720px) {
  .hero-mock__stage {
    aspect-ratio: 1 / .7;
  }
  .hero-mock__laptop {
    left: 0;
    width: 88%;
  }
  .hero-mock__phone {
    width: 28%;
    right: 2%;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: center;
  }
  .hero__copy {
    grid-column: 1 / span 6;
    position: relative;
    z-index: 1;
  }
  /* the devices stay inside the container, so the hero is centred on wide screens too */
  .hero__visual {
    grid-column: 7 / span 6;
  }
  .hero-mock__stage {
    aspect-ratio: 1 / .72;
  }
  .hero-mock__laptop {
    top: 2%;
    left: 21%;
    width: 79%;
  }
  .hero-mock__phone {
    left: 0;
    right: auto;
    bottom: 0;
    width: 29%;
    max-width: none;
  }
  .hero-mock__caption {
    margin-left: 33%;
  }
}

/* Two-column hero: the headline scales with its 6-column copy column (≈ 45vw up to the container width),
   not only with the viewport, so the Polish headline keeps 4 lines from 1024 px up and both CTAs stay in the
   first screen on 1280–1536 px laptops. */
@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(3.25rem, 5.45vw, 4.875rem);
  }
}

/* Short laptop screens (1280×720, 1366×768, 1280×800): tighter vertical rhythm above the CTAs. */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero {
    padding-top: clamp(20px, 2.5vw, 40px);
  }
  .hero__eyebrow {
    margin-bottom: 18px;
  }
  .hero__lead {
    margin-top: 20px;
  }
  .hero__ctas {
    margin-top: 28px;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    max-width: 8.425em; /* 12.5ch in the web font */
  }
}

/* fictional client website inside the laptop */
.msite {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #F7F5F0;
  color: #13201A;
  font-family: var(--ui-font);
  font-size: 1.5cqi;
  line-height: 1.35;
  text-align: left;
}

.msite .icon {
  width: 1.25em;
  height: 1.25em;
}

.msite__chrome {
  display: flex;
  align-items: center;
  gap: 2cqi;
  height: 5.6%;
  padding: 0 2cqi;
  background: #E9E6DF;
  border-bottom: 1px solid #DDD8CE;
}

.msite__dots {
  display: inline-flex;
  gap: .7cqi;
}

.msite__dots i {
  width: 1.1cqi;
  height: 1.1cqi;
  background: #BDB7AB;
  opacity: 1;
}

.msite__url {
  display: inline-flex;
  align-items: center;
  gap: .6cqi;
  height: 62%;
  padding: 0 1.6cqi;
  margin-inline: auto;
  border-radius: .6cqi;
  background: #F7F5F0;
  color: #55605A;
  font-size: 1.25cqi;
}

.msite__url .icon {
  width: 1.1cqi;
  height: 1.1cqi;
}

.msite__nav {
  display: flex;
  align-items: center;
  gap: 3cqi;
  padding: 2.2cqi 4.4cqi;
}

.msite__brand {
  display: inline-flex;
  align-items: center;
  gap: 1cqi;
  font-family: var(--font-head);
  font-size: 1.9cqi;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.msite__mark {
  display: inline-grid;
  place-items: center;
  width: 3cqi;
  height: 3cqi;
  border-radius: .7cqi;
  background: #2F6B4F;
  color: #F7F5F0;
}

.msite__mark .icon {
  width: 1.8cqi;
  height: 1.8cqi;
}

.msite__links {
  display: inline-flex;
  gap: 2.6cqi;
  margin-left: auto;
  color: #44514A;
}

.msite__navcta {
  padding: .9cqi 1.8cqi;
  border-radius: .8cqi;
  background: #13201A;
  color: #F7F5F0;
  font-weight: 600;
}

.msite__hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4cqi;
  padding: 3.4cqi 4.4cqi 0;
  flex: 1;
}

.msite__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8cqi;
  padding-top: 2cqi;
}

.msite__eyebrow {
  font-size: 1.2cqi;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2F6B4F;
}

.msite__title {
  font-family: var(--font-head);
  font-size: 4.6cqi;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.msite__text {
  max-width: 21.429em; /* 34ch in the web font */
  font-size: 1.6cqi;
  color: #44514A;
}

.msite__btn {
  margin-top: .6cqi;
  padding: 1.3cqi 2.4cqi;
  border-radius: .9cqi;
  background: #2F6B4F;
  color: #FFFFFF;
  font-weight: 600;
}

.msite__hours {
  display: inline-flex;
  align-items: center;
  gap: .8cqi;
  margin-top: .6cqi;
  font-size: 1.25cqi;
  color: #55605A;
}

.msite__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15cqi;
  align-self: start;
  padding: 2.4cqi;
  border-radius: 1.6cqi;
  background: #FFFFFF;
  box-shadow: 0 .2cqi .4cqi rgb(19 32 26 / .06), 0 2cqi 4cqi -2cqi rgb(19 32 26 / .18);
}

.msite__card-title {
  margin-bottom: .4cqi;
  font-family: var(--font-head);
  font-size: 1.8cqi;
  font-weight: 750;
}

.msite__line,
.msite__total {
  display: flex;
  justify-content: space-between;
  gap: 1cqi;
  padding-bottom: 1cqi;
  border-bottom: 1px solid #ECE8E0;
  font-size: 1.35cqi;
  color: #44514A;
}

.msite__line b,
.msite__total b {
  color: #13201A;
  font-variant-numeric: tabular-nums;
}

.msite__days {
  display: flex;
  gap: .8cqi;
  margin-top: .4cqi;
}

.msite__day {
  flex: 1;
  padding: .9cqi 0;
  border: 1px solid #E2DDD3;
  border-radius: .7cqi;
  text-align: center;
  font-size: 1.25cqi;
  font-weight: 600;
  color: #55605A;
}

.msite__day.is-on {
  background: #13201A;
  border-color: #13201A;
  color: #F7F5F0;
}

.msite__time {
  display: inline-flex;
  align-items: center;
  gap: .8cqi;
  font-size: 1.3cqi;
  color: #2F6B4F;
  font-weight: 600;
}

.msite__total {
  border: 0;
  padding: .4cqi 0 0;
  font-size: 1.6cqi;
  font-weight: 600;
}

.msite__total b {
  font-family: var(--font-head);
  font-size: 2.2cqi;
}

.msite__send {
  padding: 1.25cqi;
  border-radius: .9cqi;
  background: #2F6B4F;
  color: #FFFFFF;
  text-align: center;
  font-weight: 600;
  transform-origin: center;
}

.msite__cursor {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 3.4cqi;
  height: 3.4cqi;
  color: #13201A;
  pointer-events: none;
  filter: drop-shadow(0 .2cqi .3cqi rgb(0 0 0 / .25));
}

.msite__cursor .icon {
  width: 100%;
  height: 100%;
  fill: #FFFFFF;
  stroke-width: 1.6;
}

/* owner panel inside the phone */
.mapp {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 4.6cqi;
  line-height: 1.3;
}

.mapp .icon {
  width: 1.2em;
  height: 1.2em;
}

.mapp__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13cqi;
  padding: 3cqi 9cqi 0;
  font-size: 4.2cqi;
  font-weight: 650;
}

.mapp__island {
  display: none;
}

.mapp__sig {
  display: inline-flex;
  align-items: flex-end;
  gap: .8cqi;
  height: 3.6cqi;
}

.mapp__sig i,
.device-status__sig i,
.phone__sig i {
  display: block;
  width: 1.2cqi;
  border-radius: .4cqi;
  background: currentColor;
}

.mapp__sig i:nth-child(1),
.device-status__sig i:nth-child(1),
.phone__sig i:nth-child(1) {
  height: 40%;
}

.mapp__sig i:nth-child(2),
.device-status__sig i:nth-child(2),
.phone__sig i:nth-child(2) {
  height: 70%;
}

.mapp__sig i:nth-child(3),
.device-status__sig i:nth-child(3),
.phone__sig i:nth-child(3) {
  height: 100%;
}

.mapp__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3cqi 6cqi 2cqi;
}

.mapp__title {
  font-family: var(--font-head);
  font-size: 8cqi;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mapp__bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 10cqi;
  height: 10cqi;
  border-radius: 3cqi;
  border: 1px solid var(--line);
}

.mapp__bell i {
  position: absolute;
  top: 2cqi;
  right: 2.2cqi;
  width: 2cqi;
  height: 2cqi;
  border-radius: 50%;
  background: var(--accent);
}

.mapp__tabs {
  display: flex;
  gap: 2cqi;
  padding: 0 6cqi 3cqi;
}

.mapp__tabs span {
  padding: 1.4cqi 3cqi;
  border-radius: 2cqi;
  border: 1px solid var(--line);
  font-size: 3.8cqi;
  font-weight: 600;
  color: var(--text-2);
}

.mapp__tabs .is-on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

ul.mapp__list {
  display: flex;
  flex-direction: column;
  gap: 2.2cqi;
  margin: 0;
  padding: 0 4cqi;
  list-style: none;
  flex: 1;
  overflow: hidden;
}

.mapp__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1cqi 2cqi;
  padding: 3.4cqi 4cqi;
  border-radius: 3.4cqi;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mapp__name {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapp__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mapp__meta {
  font-size: 3.6cqi;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapp__row .status {
  justify-self: end;
  min-height: 0;
  padding: .6cqi 2cqi;
  font-size: 3.2cqi;
  border-radius: 1.4cqi;
}

.mapp__row .status::before {
  width: 1.6cqi;
  height: 1.6cqi;
}

.mapp__row--fresh {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.mapp__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2.4cqi 3cqi 6cqi;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mapp__nav span {
  display: grid;
  justify-items: center;
  gap: 1cqi;
  font-size: 3cqi;
  font-weight: 600;
  color: var(--text-3);
}

.mapp__nav .icon {
  width: 6cqi;
  height: 6cqi;
}

.mapp__nav .is-on {
  color: var(--text);
}

/* push notification banner */
/* The banner drops in below the Dynamic Island (.phone__screen::after ends at 9.6cqi), as on a real phone. */
.ptoast {
  position: absolute;
  top: 11cqi;
  left: 3.5cqi;
  right: 3.5cqi;
  z-index: 5;
  display: flex;
  gap: 3cqi;
  padding: 3.4cqi;
  border-radius: 6cqi;
  background: rgb(250 247 242 / .97);
  color: #0E1A30;
  font-family: var(--ui-font);
  font-size: 3.9cqi;
  line-height: 1.3;
  box-shadow: 0 2cqi 6cqi rgb(7 15 30 / .35);
  transform: translateY(-140%);
  opacity: 0;
}

[data-theme="dark"] .ptoast {
  background: rgb(30 43 66 / .97);
  color: #F3EFE7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ptoast {
    background: rgb(30 43 66 / .97);
    color: #F3EFE7;
  }
}

.ptoast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 10cqi;
  height: 10cqi;
  border-radius: 2.6cqi;
  background: #2F6B4F;
  color: #FFFFFF;
}

.ptoast__icon .icon {
  width: 6cqi;
  height: 6cqi;
}

.ptoast__body {
  display: grid;
  gap: .4cqi;
  min-width: 0;
}

.ptoast__head {
  display: flex;
  justify-content: space-between;
  gap: 2cqi;
  font-size: 3.2cqi;
  opacity: .75;
}

.ptoast__title {
  font-weight: 700;
}

.ptoast__text {
  font-size: 3.6cqi;
  opacity: .9;
}

/* looping story: cursor clicks „Wyślij zamówienie” → push on the phone → the order row lights up */
@media (prefers-reduced-motion: no-preference) {
  .hero-mock .msite__cursor {
    animation: zw-cursor 9s var(--ease-in-out) infinite;
  }
  .hero-mock .msite__send {
    animation: zw-press 9s ease infinite;
  }
  .hero-mock .ptoast {
    animation: zw-toast 9s var(--ease-out) infinite;
  }
  .hero-mock .mapp__row--fresh {
    animation: zw-fresh 9s ease infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mock .ptoast {
    opacity: 1;
    transform: none;
  }
  .hero-mock .msite__cursor {
    left: 76%;
    top: 80%;
  }
}

@keyframes zw-cursor {
  0% { left: 34%; top: 82%; opacity: 0; }
  6% { opacity: 1; }
  20% { left: 76%; top: 81%; }
  26% { left: 76%; top: 81%; }
  44% { left: 76%; top: 81%; opacity: 1; }
  54% { left: 64%; top: 62%; opacity: 0; }
  100% { left: 64%; top: 62%; opacity: 0; }
}

@keyframes zw-press {
  0%, 21% { transform: none; filter: none; }
  23% { transform: scale(.96); filter: brightness(.85); }
  27%, 100% { transform: none; filter: none; }
}

@keyframes zw-toast {
  0%, 27% { transform: translateY(-140%); opacity: 0; }
  32% { transform: translateY(0); opacity: 1; }
  74% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(-140%); opacity: 0; }
}

@keyframes zw-fresh {
  0%, 30% { background-color: var(--surface); }
  36%, 86% { background-color: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
  96%, 100% { background-color: var(--surface); }
}

/* three pillars under the hero */
.hero__pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.hero__pillar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.hero__pillar-n {
  grid-row: span 2;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: .2em;
}

.hero__pillar-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero__pillar-text {
  font-size: .9375rem;
  color: var(--text-2);
}

@media (min-width: 840px) {
  .hero__pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .hero__pillar {
    padding: 24px 0 0;
  }
}

/* ============================================== STATEMENT & PROBLEM (#problem) */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(72px, 10vw, 144px);
  margin-bottom: clamp(72px, 10vw, 144px);
  border-bottom: 1px solid var(--line);
}

.statement__quote {
  max-width: 11.456em; /* 17ch in the web font */
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 1.2rem + 4.3vw, 5.25rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}

/* Hanging opening mark: the first line is pulled left by the mark's own width (comma-style „ “ ≈ .44em,
   guillemets « ≈ .56em in the head face), but never further than the free space left of the container (the
   gutter, or more once the container is centred), so the mark is not clipped at the viewport edge on phones;
   when that space is narrower the first line just starts a few px in. The 8px keeps the mark off the bezel of
   a phone (and clear of a classic scrollbar). */
.statement__quote {
  --q-hang: .44em;
  --q-room: calc(max(var(--gutter), (100vw - var(--container)) / 2) - 8px);
  text-indent: calc(-1 * min(var(--q-hang), var(--q-room)));
}

.statement__quote--wide {
  --q-hang: .565em;
}

.statement__q {
  color: var(--accent-ink);
}

.statement__quote > span:last-child {
  color: var(--accent-ink);
}

.statement__text {
  max-width: 29.019em; /* 46ch in the web font */
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
}

.statement__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(24px, 3vw, 36px);
}

.statement__pair > div {
  padding-top: 16px;
  border-top: 2px solid var(--text);
}

.statement__pair dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.statement__plus {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-ink);
}

.statement__pair dd {
  margin: 6px 0 0;
  font-size: .9375rem;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .statement {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .statement__eyebrow {
    grid-column: 1 / span 12;
  }
  .statement__quote {
    grid-column: 1 / span 11;
  }
  .statement__body {
    grid-column: 6 / span 7;
  }
}

.problem__head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.contrast {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.contrast__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.contrast__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.contrast__tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.contrast__tag--accent {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.contrast__divider {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.contrast__divider span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  transform: rotate(90deg);
}

.contrast__list {
  display: grid;
  gap: 10px;
  font-size: .9844rem;
}

.contrast__list--pains {
  color: var(--text-2);
}

@media (min-width: 900px) {
  .contrast {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
  }
  .contrast__divider span {
    transform: none;
  }
  .contrast__divider {
    align-self: center;
  }
}

/* chaos: scattered messages and a notebook page */
.chaos,
.tidy {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  isolation: isolate;
  container-type: inline-size;
}

.chaos {
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 0);
  background-size: 18px 18px;
}

.chaos__bubble {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 62%;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(14 26 48 / .06), 0 10px 24px -14px rgb(14 26 48 / .3);
  font-size: clamp(.75rem, 2.9cqi, .9375rem);
  line-height: 1.35;
}

.chaos__channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75em;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.chaos__channel .icon {
  width: 1.2em;
  height: 1.2em;
}

.chaos__time {
  margin-left: auto;
  padding-left: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.chaos__text {
  color: var(--text);
}

.chaos__bubble--1 { top: 6%; left: 5%; transform: rotate(-2.5deg); }
.chaos__bubble--2 { top: 21%; right: 4%; transform: rotate(2deg); }
.chaos__bubble--3 { top: 42%; left: 7%; transform: rotate(-1deg); }
.chaos__bubble--4 { bottom: 23%; right: 6%; transform: rotate(3deg); }
.chaos__bubble--5 { bottom: 5%; left: 4%; transform: rotate(-3deg); }

.chaos__bubble--1 .chaos__channel .icon { color: #1F7A4D; }
.chaos__bubble--2 .chaos__channel .icon { color: #2B5FD9; }
.chaos__bubble--3 .chaos__channel,
.chaos__bubble--3 .chaos__text { color: var(--danger); }
.chaos__bubble--5 .chaos__channel .icon { color: #1F7A4D; }

.chaos__note {
  position: absolute;
  z-index: 1;
  top: 30%;
  right: 8%;
  width: 46%;
  display: grid;
  gap: 0;
  padding: 18px 16px 16px 30px;
  background-color: #FFFDF6;
  background-image: repeating-linear-gradient(transparent 0 26px, rgb(68 120 190 / .22) 26px 27px);
  background-position: 0 14px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgb(14 26 48 / .08), 0 16px 30px -16px rgb(14 26 48 / .35);
  transform: rotate(5deg);
  font-size: clamp(.75rem, 2.7cqi, .9rem);
  font-style: italic;
  line-height: 27px;
  color: #33415C;
}

.chaos__note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: rgb(196 64 64 / .35);
}

.chaos__note-line.is-struck {
  text-decoration: line-through;
  text-decoration-color: rgb(196 64 64 / .7);
  color: #6B7489;
}

/* tidy: one order list with a push */
.tidy {
  display: grid;
  place-items: center;
  padding: 12% 7% 7%;
  background: var(--bg-2);
}

.tidy__card {
  display: grid;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: clamp(.8125rem, 2.8cqi, .9375rem);
}

.tidy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.05em;
}

.tidy__count {
  font-family: var(--font-body);
  font-size: .8em;
  font-weight: 600;
  color: var(--accent-ink);
}

.tidy__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.tidy__row:last-child {
  border-bottom: 0;
}

.tidy__row:first-of-type {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.tidy__name {
  font-weight: 650;
}

.tidy__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tidy__meta {
  font-size: .86em;
  color: var(--text-2);
}

.tidy__row .status {
  justify-self: end;
}

.tidy__push {
  position: absolute;
  z-index: 2;
  top: 4.5%;
  right: 5%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #F3EFE7;
  font-size: clamp(.75rem, 2.7cqi, .875rem);
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgb(7 15 30 / .55);
}

.tidy__push .icon {
  flex: none;
  color: var(--honey-400);
}

[data-theme="dark"] .tidy__push {
  background: var(--navy-700);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tidy__push {
    background: var(--navy-700);
  }
}

@media (max-width: 479.98px) {
  .chaos {
    aspect-ratio: 1 / 1.3;
  }
  .chaos__bubble {
    max-width: 78%;
  }
  .chaos__note {
    top: 36%;
    width: 58%;
  }
  .tidy {
    aspect-ratio: auto;
    padding: 64px 14px 14px;
  }
}

/* ======================================================= AUTOMATION (dark) */

.automation__head {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  --node: 22px;
}

.flow::before,
.flow::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - .5px);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.flow::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease-out) .2s;
}

.flow.is-drawn::after {
  transform: none;
}

html.no-js .flow::after {
  transform: none;
}

.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  column-gap: 20px;
  padding-bottom: 36px;
}

.flow__step:last-child {
  padding-bottom: 0;
}

.flow__node {
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  display: block;
  width: var(--node);
  height: var(--node);
  margin-top: 2px;
  border-radius: 6px;
  background: var(--band-bg);
  border: 1px solid var(--line-strong);
}

.flow__node::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.flow__n {
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.flow__ui {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 26px 0 14px;
}

.flow__title {
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.flow__text {
  margin-top: 6px;
  max-width: 27.757em; /* 44ch in the web font */
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-2);
}

.flow__sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (min-width: 1200px) {
  .flow {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 18px;
  }
  .flow::before,
  .flow::after {
    left: 0;
    right: 0;
    top: calc(var(--node) / 2 + 1.5px);
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .flow::after {
    transform: scaleX(0);
    transform-origin: left;
  }
  .flow.is-drawn::after,
  html.no-js .flow::after {
    transform: none;
  }
  /* one shared row per part (node, fragment, title, text) across the seven steps, so titles and texts
     start on the same line even when a title wraps; without subgrid the rows simply stack from the top */
  .flow {
    grid-template-rows: repeat(4, auto);
  }
  .flow__step {
    grid-template-columns: minmax(0, 1fr);
    grid-row: span 4;
    align-content: start;
    padding-bottom: 0;
  }
  @supports (grid-template-rows: subgrid) {
    .flow__step {
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
  .flow__node {
    grid-row: auto;
  }
  .flow__n {
    left: calc(var(--node) + 10px);
    padding: 0 6px;
    background: var(--band-bg);
  }
  .flow__ui {
    align-items: flex-start;
    height: 80px;
    min-height: 0;
    margin: 26px 0 16px;
  }
  .flow .fui {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    font-size: .75rem;
    white-space: normal;
  }
  .flow .fui > span {
    overflow: visible;
  }
  .flow .fui--form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .flow .fui--form .fui__field {
    padding: 0 2px;
  }
  .flow .fui__btn {
    text-align: center;
  }
  .flow .fui--mail,
  .flow .fui--push {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .flow .fui--mail .icon,
  .flow .fui--push .icon {
    margin-top: 1px;
  }
  .flow .fui__ok,
  .flow .fui__no {
    padding: 4px 8px;
  }
  .flow__title {
    font-size: 1.0625rem;
  }
  .flow__text {
    font-size: .875rem;
  }
}

/* tiny UI fragments in the chain */
.fui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .8125rem;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
}

.fui .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.fui > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fui__field {
  padding-right: 6px;
  color: var(--text-2);
}

.fui__btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}

.fui--price b {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fui--price span {
  color: var(--text-2);
}

.fui__cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

.fui__time {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.fui--push {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  font-weight: 600;
}

.fui--push .icon {
  color: var(--accent);
}

.fui--actions {
  padding: 6px;
  gap: 6px;
}

.fui__ok,
.fui__no {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 650;
}

.fui__ok {
  background: var(--ok);
  color: #0A1322;
}

.fui__no {
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}

.fui--done .icon {
  color: var(--ok);
}

.automation__more {
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.automation__more-title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.automation__more-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px var(--grid-gap);
  font-size: .9844rem;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .automation__more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .automation__more {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .automation__more-title {
    grid-column: 1 / span 3;
  }
  .automation__more-list {
    grid-column: 5 / span 8;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==================================================================== FEATURES */

.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
}

.features__cta {
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .features__aside {
    grid-column: 1 / span 4;
  }
  .features__sticky {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
  .features__main {
    grid-column: 6 / span 7;
  }
  .features__aside .sec-head__title {
    font-size: clamp(2rem, 1rem + 1.8vw, 2.625rem);
  }
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature__n {
  padding-top: .35em;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.feature__title {
  font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.4375rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.feature__text {
  margin-top: 8px;
  max-width: 32.803em; /* 52ch in the web font */
  font-size: .9844rem;
  color: var(--text-2);
}

.feature__ui {
  grid-column: 2;
  min-width: 0;
}

@media (min-width: 640px) {
  .feature {
    grid-template-columns: 44px minmax(0, 1fr) 232px;
    column-gap: 24px;
  }
  .feature__ui {
    grid-column: 3;
    align-self: center;
  }
}

.features__modules {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: .9844rem;
  color: var(--text-2);
}

.features__modules-title {
  font-size: 1.0625rem;
  font-weight: 750;
  color: var(--text);
}

/* feature fragments */
.fx {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-size: .75rem;
  line-height: 1.3;
}

.fx .icon {
  width: 14px;
  height: 14px;
}

.fx--brand {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.fx__aa {
  grid-row: span 2;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  padding-right: 6px;
}

.fx__swatches {
  display: flex;
  gap: 5px;
}

.fx__swatches i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--c);
  /* a hairline ring keeps a swatch that matches the card (navy on the dark surface) visible */
  box-shadow: inset 0 0 0 1px rgb(14 26 48 / .1), 0 0 0 1px var(--line);
}

.fx__lines {
  display: grid;
  gap: 2px;
}

.fx__lines b {
  font-family: var(--font-head);
  font-size: .875rem;
}

.fx__lines span {
  color: var(--text-2);
}

.fx__label {
  color: var(--text-2);
  font-weight: 600;
}

.fx__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.fx__seg span {
  padding: 5px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: 650;
  color: var(--text-2);
}

.fx__seg .is-on {
  background: var(--text);
  color: var(--bg);
}

.fx__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.fx__total b {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.fx--days {
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fx__day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.fx__day b {
  font-size: .8125rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.fx__day.is-off {
  background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--text) 8%, transparent) 4px 5px);
  color: var(--text-3);
}

.fx__day.is-off b {
  color: var(--text-3);
  text-decoration: line-through;
}

.fx__day.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.fx__day.is-on b {
  color: var(--on-accent);
}

.fx--tabbar {
  /* content-sized cells with the spare room between them: the longest label (Zamówienia, Dashboard,
     Calendario) gets the width it needs instead of a quarter of the bar */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
}

.fx--tabbar > span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-3);
}

/* a label never runs into its neighbour: it is cut with an ellipsis inside its own cell */
.fx__tablabel {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx--tabbar .icon {
  width: 18px;
  height: 18px;
}

.fx--tabbar .is-on {
  color: var(--text);
}

.fx__badge {
  position: absolute;
  top: -4px;
  left: calc(50% + 4px);
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .625rem;
  font-style: normal;
  font-weight: 700;
}

.fx--mail {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.fx__mailhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--navy-900);
  color: #F3EFE7;
  font-family: var(--font-head);
  font-weight: 700;
}

.fx__mailmark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--honey-400);
}

.fx__mailbody {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.fx__bar {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
}

.fx__bar--short {
  width: 64%;
}

.fx__mailbtn {
  width: 42%;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--accent);
}

.fx--status {
  gap: 12px;
}

.fx__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fx__pills .status {
  font-size: .6875rem;
  min-height: 20px;
  padding: .15rem .45rem;
}

.fx__export {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  font-weight: 650;
}

.fx--serp {
  gap: 4px;
  font-family: Arial, "Liberation Sans", sans-serif;
}

.fx__serp-url {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: .6875rem;
}

.fx__fav {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2F6B4F;
}

.fx__serp-title {
  font-size: .875rem;
  line-height: 1.25;
  color: #1A0DAB;
}

[data-theme="dark"] .fx__serp-title {
  color: #9DB7F5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx__serp-title {
    color: #9DB7F5;
  }
}

.fx__serp-desc {
  color: var(--text-2);
}

.fx--secure {
  gap: 12px;
}

.fx__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx__chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-weight: 650;
}

.fx__danger {
  justify-self: start;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent);
  color: var(--danger);
  font-weight: 650;
}

/* ============================================================== WORK / SPREADS */

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.work__all {
  margin-bottom: 6px;
}

.work__list {
  display: grid;
  gap: clamp(72px, 11vw, 160px);
  margin-top: clamp(56px, 8vw, 112px);
}

.work--index .work__list {
  margin-top: 0;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.spread__stage {
  position: relative;
  aspect-ratio: 16 / 12;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}

.spread__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.spread__stage--empty {
  background: transparent;
  border: 1px solid var(--line);
}

.spread__laptop {
  position: absolute;
  top: 7%;
  left: 4%;
  width: 76%;
}

.spread__phone {
  position: absolute;
  right: 20%;
  bottom: 5%;
  width: 20%;
}

.spread__panel {
  position: absolute;
  right: 3%;
  bottom: 15%;
  width: 17%;
}

.spread--flip .spread__laptop {
  left: auto;
  right: 4%;
}

.spread--flip .spread__phone {
  right: auto;
  left: 20%;
}

.spread--flip .spread__panel {
  right: auto;
  left: 3%;
}

/* laptop + site phone only (no panel capture yet): the phone takes the panel's corner, a little larger */
.spread__stage--duo .spread__phone {
  right: 6%;
  width: 23%;
}

.spread--flip .spread__stage--duo .spread__phone {
  right: auto;
  left: 6%;
}

.spread__copy {
  min-width: 0;
}

.spread__index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.spread__n {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.spread__n::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.spread__client {
  margin-top: 18px;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.spread__client a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: background-size .45s var(--ease-out);
}

.spread__client a:hover {
  background-size: 100% 3px;
}

.spread__where {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .875rem;
  color: var(--text-2);
}

.spread__headline {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.spread__problem,
.spread__features {
  margin-top: 24px;
}

.spread__label {
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.spread__problem p:last-child {
  font-size: .9844rem;
  color: var(--text-2);
}

.spread__features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.spread__features li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

.spread__features li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .55em;
  border-radius: 2px;
  background: var(--accent);
}

.spread__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  /* the copy column is taller than the devices: the stage starts level with the index line and stays in view
     while the copy scrolls past, instead of floating mid-column with empty cream above and below it */
  .spread {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: start;
  }
  .spread__stage {
    grid-column: 1 / span 7;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
  .spread__copy {
    grid-column: 9 / span 4;
    grid-row: 1;
  }
  .spread--flip .spread__stage {
    grid-column: 6 / span 7;
  }
  .spread--flip .spread__copy {
    grid-column: 1 / span 4;
  }
}

@media (max-width: 599.98px) {
  .spread__stage {
    aspect-ratio: 1 / 1;
  }
  .spread__laptop {
    top: 6%;
    left: -4%;
    width: 88%;
  }
  .spread__phone {
    right: 21%;
    bottom: 4%;
    width: 26%;
  }
  .spread__panel {
    right: 3%;
    bottom: 12%;
    width: 23%;
  }
  .spread--flip .spread__laptop {
    left: auto;
    right: -4%;
  }
  .spread--flip .spread__phone {
    left: 21%;
  }
  .spread--flip .spread__panel {
    left: 3%;
  }
  .spread__stage--duo .spread__phone {
    right: 4%;
    width: 30%;
  }
  .spread--flip .spread__stage--duo .spread__phone {
    left: 4%;
  }
}

/* =================================================================== PANEL DEMO */

.panel-demo__head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.demo__bar[hidden],
.demo__tabs[hidden],
.demo__views[hidden] {
  display: none;
}

.demo__tabs {
  display: flex;
  gap: clamp(4px, 2vw, 28px);
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-head);
  font-size: clamp(.9375rem, .9rem + .3vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.demo__tab .icon {
  width: 18px;
  height: 18px;
}

.demo__tab:hover {
  color: var(--text);
}

.demo__tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.demo__tab:focus-visible {
  outline-offset: -2px;
}

@media (max-width: 719.98px) {
  .demo__views {
    order: -1;
  }
  .demo__tabs {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 519.98px) {
  .demo__tab .icon {
    display: none;
  }
  .demo__tab {
    font-size: .9375rem;
  }
}

@media (max-width: 379.98px) {
  .demo__tabs {
    gap: 2px;
  }
  .demo__tab {
    padding-inline: 2px;
    font-size: .875rem;
  }
}

.demo__views {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.demo__view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
}

.demo__view .icon {
  width: 16px;
  height: 16px;
}

.demo__view[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.demo__panels {
  display: grid;
  gap: 64px;
}

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

.demo__panel[hidden] {
  display: none;
}

.demo.is-ready .demo__panels {
  gap: 0;
}

.demo__caption {
  max-width: 29.019em; /* 46ch in the web font */
}

.demo__caption-title {
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.022em;
}

.demo__caption > p {
  margin-top: 12px;
  color: var(--text-2);
}

.demo__hint {
  display: flex;
  gap: 10px;
  font-size: .9375rem;
}

.demo__hint .icon {
  flex: none;
  margin-top: .15em;
  color: var(--accent-ink);
}

html.no-js .demo__hint {
  display: none;
}

.demo__sample {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 20px !important;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3) !important;
}

@media (min-width: 1024px) {
  .demo__panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .demo__caption {
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
  .demo__device {
    grid-column: 4 / span 9;
  }
  .demo[data-view="phone"] .demo__device {
    grid-column: 5 / span 6;
  }
}

/* the device around the app: browser window (desktop) or phone */
.demo__device {
  container: papp / inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.device-chrome__dots {
  display: inline-flex;
  gap: 6px;
}

.device-chrome__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .75rem;
  color: var(--text-2);
}

.device-chrome__url .icon {
  width: 11px;
  height: 11px;
}

.device-status {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 8px 26px 0;
  font-size: .8125rem;
  font-weight: 650;
}

.device-status__island {
  width: 92px;
  height: 26px;
  border-radius: 14px;
  background: #05080F;
}

.device-status__sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.device-status__sig i {
  width: 3px;
}

.demo[data-view="phone"] .demo__device {
  width: min(100%, 360px);
  height: 720px;
  justify-self: center;
  padding: 10px;
  border: 0;
  border-radius: 48px;
  background: var(--device);
  box-shadow: inset 0 0 0 1px var(--device-edge), 0 40px 80px -40px rgb(7 15 30 / .55);
}

.demo[data-view="phone"] .device-chrome {
  display: none;
}

.demo[data-view="phone"] .device-status {
  display: flex;
  border-radius: 38px 38px 0 0;
  background: var(--bg);
  color: var(--text);
}

.demo[data-view="phone"] .papp {
  border-radius: 0 0 38px 38px;
}

@media (max-width: 719.98px) {
  html.no-js .demo .demo__device {
    width: min(100%, 360px);
    height: 680px;
    justify-self: center;
  }
}

/* the app (one markup for both views – container queries) */
.papp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--ui-font);
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--text);
}

.papp .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.papp__side {
  display: none;
}

.papp__main {
  container: pmain / inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.papp__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
}

.papp__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.papp__search {
  display: none;
}

.papp__bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.papp__bell i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.papp__avatar {
  display: none;
}

.papp__content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 14px 14px;
}

.papp__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.papp__bottom span {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-3);
}

.papp__bottom .icon {
  width: 20px;
  height: 20px;
}

.papp__bottom .is-on {
  color: var(--text);
}

@container papp (min-width: 640px) {
  .papp {
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .papp__side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    background: var(--surface);
  }
  .papp__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    font-family: var(--font-head);
    font-size: .9375rem;
    font-weight: 800;
  }
  .papp__logo {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #2F6B4F;
    color: #FFFFFF;
  }
  .papp__logo .icon {
    width: 14px;
    height: 14px;
  }
  .papp__nav {
    display: grid;
    gap: 2px;
  }
  .papp__nav span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 550;
    color: var(--text-2);
  }
  .papp__nav .is-on {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 650;
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .papp__bottom {
    display: none;
  }
  .papp__top {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .papp__title {
    font-size: 1.25rem;
  }
  .papp__search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-3);
  }
  .papp__avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-700);
    color: #FFFFFF;
    font-weight: 700;
  }
  .papp__content {
    padding: 18px 22px;
  }
}

/* orders */
.porders__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.porders__chips {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.porders__chips span {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.porders__chips .is-on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.porders__export {
  display: none;
}

.porders__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.porder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "who amount"
    "when status"
    "actions actions";
  gap: 6px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background-color .3s ease, border-color .3s ease;
}

.porder--new {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.porder__nr {
  display: none;
}

.porder__who {
  grid-area: who;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.porder__who b {
  font-weight: 650;
  font-size: .875rem;
}

.porder__who span,
.porder__when {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.porder__when {
  grid-area: when;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.porder__when .icon {
  width: 13px;
  height: 13px;
}

.porder__amount {
  grid-area: amount;
  font-weight: 750;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.porder__status {
  grid-area: status;
  justify-self: end;
}

.porder__actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.porder__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 650;
  color: var(--text);
  transition: background-color .2s ease, transform .15s ease;
}

.porder__btn:hover {
  background: var(--surface-2);
}

.porder__btn:active {
  transform: translateY(1px);
}

.porder__btn--ok {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.porder__btn--ok:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--bg));
}

.porder.is-done-demo .porder__actions {
  display: none;
}

.porder--new.is-done-demo {
  border-color: var(--line);
  background: var(--surface);
}

.ptoast-inline {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #F3EFE7;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}

.ptoast-inline:empty {
  display: none;
}

.ptoast-inline.is-shown {
  opacity: 1;
  transform: none;
}

.ptoast-inline::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--honey-400);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

[data-theme="dark"] .ptoast-inline {
  background: var(--navy-700);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ptoast-inline {
    background: var(--navy-700);
  }
}

@container pmain (min-width: 600px) {
  .porders__export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    font-weight: 650;
  }
  .porders__list {
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
  }
  /* Table rows. The when/amount/status columns are shared by all rows (subgrid) and sized by their widest
     cell, so "PLN 1,250", "1 250 zł" or "Potwierdzone" always fit on one line and the client column gets the
     rest. The accept/reject pair of a new order sits on a second line, right-aligned, so long button labels
     (de "Annehmen / Ablehnen") never squeeze the service text. Fixed widths are the fallback. */
  .porder {
    grid-template-columns: minmax(0, 1fr) 96px 80px 116px;
    grid-template-areas: "who when amount status";
    align-items: center;
    gap: 10px 16px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .porder--new:not(.is-done-demo) {
    grid-template-areas:
      "who when amount status"
      "actions actions actions actions";
  }
  @supports (grid-template-columns: subgrid) {
    .porders__list {
      display: grid;
      grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    }
    .porder {
      grid-column: 1 / -1;
      grid-template-columns: subgrid;
    }
  }
  .porder:last-child {
    border-bottom: 0;
  }
  .porder__status {
    justify-self: start;
  }
  .porder__actions {
    margin: 0;
    justify-content: flex-end;
  }
  .porder__btn {
    flex: none;
    min-height: 32px;
  }
  .ptoast-inline {
    left: auto;
    right: 22px;
    bottom: 22px;
    max-width: 360px;
  }
}

@container pmain (min-width: 900px) {
  /* wide panel: order number in front, the buttons back on the row */
  .porder,
  .porder--new:not(.is-done-demo) {
    grid-template-columns: 104px minmax(0, 1fr) 100px 80px 116px 216px;
    grid-template-areas: "nr who when amount status actions";
  }
  @supports (grid-template-columns: subgrid) {
    .porders__list {
      grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
    }
    .porder,
    .porder--new:not(.is-done-demo) {
      grid-template-columns: subgrid;
    }
  }
  .porder__nr {
    grid-area: nr;
    display: block;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
  }
}

/* calendar */
.pcal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: .875rem;
}

.pcal__head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

.pcal__week {
  display: none;
}

.pcal__agenda {
  display: grid;
  gap: 12px;
}

.pcal__strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.pcal__strip > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 0;
  border-radius: 9px;
  font-size: .6875rem;
  color: var(--text-2);
}

.pcal__strip b {
  font-size: .875rem;
  color: var(--text);
}

.pcal__strip .is-on {
  background: var(--text);
}

.pcal__strip .is-on,
.pcal__strip .is-on b {
  color: var(--bg);
}

.pcal__strip .is-blocked b {
  color: var(--text-3);
  text-decoration: line-through;
}

.pcal__agenda-title {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 1rem;
}

.pcal__slots {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcal__slot {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-600);
}

.pcal__slot > span {
  grid-row: span 2;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.pcal__slot em {
  font-style: normal;
  color: var(--text-2);
}

.pcal__slot--free {
  border-style: dashed;
  border-left: 1px dashed var(--line-strong);
  background: transparent;
}

.pcal__slot--free b {
  color: var(--ok);
}

@container papp (min-width: 640px) {
  .pcal__agenda {
    display: none;
  }
  .pcal__week {
    display: grid;
    grid-template-columns: 44px repeat(7, minmax(0, 1fr));
    grid-template-rows: 44px repeat(9, 42px);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background:
      repeating-linear-gradient(to bottom, transparent 0 41px, var(--line) 41px 42px) 0 44px / 100% calc(100% - 44px) no-repeat,
      var(--surface);
  }
  .pcal__corner {
    grid-column: 1;
    grid-row: 1;
    border-bottom: 1px solid var(--line);
  }
  .pcal__day {
    grid-column: var(--col);
    grid-row: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    color: var(--text-2);
  }
  .pcal__day b {
    font-size: .9375rem;
    color: var(--text);
  }
  .pcal__day.is-today b {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
  }
  .pcal__hour {
    grid-column: 1;
    grid-row: var(--row);
    padding: 4px 6px 0 0;
    text-align: right;
    font-size: .6875rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
  }
  .pcal__blocked {
    grid-column: var(--col);
    grid-row: 2 / span 9;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
    background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--text) 7%, transparent) 6px 7px);
    color: var(--text-3);
    font-weight: 600;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .pcal__event {
    grid-column: var(--col);
    grid-row: var(--row) / span var(--len);
    display: grid;
    align-content: start;
    gap: 2px;
    margin: 3px;
    padding: 6px 8px;
    border-radius: 7px;
    border-left: 3px solid var(--navy-600);
    background: color-mix(in srgb, var(--navy-600) 12%, var(--surface));
    font-size: .6875rem;
    line-height: 1.25;
    overflow: hidden;
  }
  .pcal__event b {
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pcal__event span {
    color: var(--text-2);
  }
  .pcal__event.is-today {
    border-left-color: var(--honey-500);
    background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  }
}

/* chat */
.pchat {
  display: grid;
  height: 100%;
  min-height: 0;
}

.pchat__threads {
  display: none;
}

.pchat__conv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.pchat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pchat__head > span:last-child {
  display: grid;
}

.pchat__head em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: .75rem;
  color: var(--text-2);
}

.pchat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.pchat__avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--text-2);
}

.pchat__msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 0;
}

.pchat__msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .8125rem;
  line-height: 1.4;
}

.pchat__msg small {
  display: block;
  margin-top: 3px;
  font-size: .6875rem;
  opacity: .7;
}

.pchat__msg--in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.pchat__msg--out {
  align-self: flex-end;
  background: var(--navy-700);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.pchat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 42px;
  padding: 0 6px 0 14px;
  border-radius: 21px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
}

.pchat__send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

@container papp (min-width: 640px) {
  .pchat {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
  ul.pchat__threads {
    display: grid;
    align-content: start;
    gap: 4px;
    margin: 0;
    padding: 0 18px 0 0;
    list-style: none;
    border-right: 1px solid var(--line);
  }
  .pchat__threads li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
  }
  .pchat__threads li.is-on {
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }
  .pchat__tmeta {
    display: grid;
    min-width: 0;
  }
  .pchat__tmeta span {
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pchat__ttime {
    display: grid;
    justify-items: end;
    gap: 4px;
    align-self: start;
    font-size: .6875rem;
    color: var(--text-3);
  }
  .pchat__ttime i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }
}

/* mail */
.pmail {
  display: grid;
  min-height: 0;
}

.pmail__folders,
.pmail__read {
  display: none;
}

.pmail__list {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.pmail__list li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.pmail__list li:last-child {
  border-bottom: 0;
}

.pmail__list li.is-unread {
  box-shadow: inset 3px 0 0 var(--accent);
}

.pmail__from {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pmail__from span {
  font-size: .6875rem;
  color: var(--text-3);
}

.pmail__list li:not(.is-unread) .pmail__from b {
  font-weight: 550;
}

.pmail__subject {
  font-weight: 600;
}

.pmail__preview {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmail__tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--navy-600) 12%, transparent);
  color: var(--info);
  font-size: .6875rem;
  font-weight: 650;
}

.pmail__tag .icon {
  width: 11px;
  height: 11px;
}

@container papp (min-width: 640px) {
  .pmail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 16px;
  }
  .pmail__read {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .pmail__read-subject {
    font-family: var(--font-head);
    font-size: 1.0625rem;
  }
  .pmail__read-from {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
  }
  .pmail__read-body {
    padding: 12px 0;
    border-block: 1px solid var(--line);
    font-size: .875rem;
    line-height: 1.55;
  }
  .pmail__reply {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    font-weight: 650;
  }
  .pmail__list li.is-on {
    background: var(--surface-2);
  }
}

@container papp (min-width: 900px) {
  .pmail {
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.05fr);
  }
  .pmail__folders {
    display: grid;
    align-content: start;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .pmail__folders li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-2);
  }
  .pmail__folders li.is-on {
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
  }
  .pmail__folders i {
    margin-left: auto;
    font-style: normal;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--accent-ink);
  }
}

/* ===================================================================== AUDIENCE */

.audience__head {
  max-width: 900px;
}

.audience__title {
  margin-top: 16px;
  max-width: 14.652em; /* 22ch in the web font */
}

.audience__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.audience__item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.audience__step {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.audience__bar {
  display: block;
  width: calc(var(--w) * 33.34%);
  height: 100%;
  background: var(--accent);
}

.audience__name {
  font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
  font-weight: 750;
  letter-spacing: -0.022em;
}

.audience__item p {
  margin-top: 10px;
  max-width: 26.496em; /* 42ch in the web font */
  color: var(--text-2);
}

@media (min-width: 900px) {
  .audience__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
  }
  /* bar, title and text share rows across the columns: a title that wraps does not push its text down alone */
  @supports (grid-template-rows: subgrid) {
    .audience__item {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }
  }
  .audience__item {
    padding: 28px clamp(20px, 3vw, 40px) 0 0;
  }
  .audience__item + .audience__item {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--line);
  }
}

.audience__foot {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-l);
  background: var(--bg-2);
}

.audience__handle-title {
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.audience__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-weight: 600;
}

.audience__note {
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

@media (min-width: 1024px) {
  .audience__foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
}

/* ====================================================================== PRICING */

.pricing__head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .35em;
  white-space: nowrap;
}

.price__from {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
}

.price__amount {
  font-weight: 700;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1023.98px) {
  ol.plans {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 400px);
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar {
    display: none;
  }
  .plan {
    scroll-snap-align: start;
  }
}

/* A narrow desktop window has no swipe: show a thin scrollbar there instead. */
@media (max-width: 1023.98px) and (hover: hover) and (pointer: fine) {
  ol.plans {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .plans::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  .plans::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--line-strong);
  }
}

.plans__hint {
  display: none;
}

@media (max-width: 1023.98px) {
  .plans__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -12px 0 14px;
    font-size: .8125rem;
    color: var(--text-2);
  }
  .plans__hint .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-ink);
  }
}

.plan {
  display: flex;
  min-width: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan--featured {
  border-color: transparent;
  background: var(--navy-900);
  box-shadow: 0 40px 70px -40px rgb(7 15 30 / .6);
}

[data-theme="dark"] .plan--featured {
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--honey-400) 55%, transparent), 0 40px 70px -40px rgb(0 0 0 / .7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan--featured {
    background: var(--navy-800);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--honey-400) 55%, transparent), 0 40px 70px -40px rgb(0 0 0 / .7);
  }
}

.plan__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(24px, 2.6vw, 36px);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan__name {
  font-size: clamp(1.625rem, 1.45rem + .7vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan__tagline {
  margin-top: 12px;
  min-height: 4.8em;
  font-size: .9375rem;
  color: var(--text-2);
}

.plan__price {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.plan__price .price__amount {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.7rem + 1.1vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--text-2);
}

.plan__cta {
  margin-top: 22px;
}

.plan__features {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  font-size: .9375rem;
}

.plan__features > li.plan__inherit {
  font-weight: 650;
}

.plan__features > li.plan__inherit::before {
  -webkit-mask-image: var(--i-plus);
  mask-image: var(--i-plus);
}

/* add-ons in the package price (from the admin: Oferta → pakiet → „W cenie pakietu”) */
.plan__inc {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plan__inc-title {
  margin-bottom: 10px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.plan__inc-list {
  display: grid;
  gap: 8px;
  font-size: .9375rem;
}

.plan__inc-list > li::before {
  -webkit-mask-image: var(--i-plus);
  mask-image: var(--i-plus);
}

.plan__inc-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.plan__inc-price {
  font-size: .875rem;
  color: var(--text-3);
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}

.plan__inc-value {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--text-2);
}

.plan__save {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-s, 10px);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.plan__save .icon {
  flex: none;
  margin-top: .2em;
  color: var(--ok);
}

@media (min-width: 1024px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
  }
  .plan--featured {
    margin-block: -16px;
  }
  .plan--featured .plan__inner {
    padding-block: calc(clamp(24px, 2.6vw, 36px) + 16px);
  }
}

/* care plans + add-ons */
.extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 72px);
  margin-top: clamp(64px, 9vw, 120px);
}

.extras__title {
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.extras__lead {
  margin-top: 10px;
  max-width: 30.281em; /* 48ch in the web font */
  color: var(--text-2);
}

.care-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.care {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.care__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.care__name {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.care__top .price__amount {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
}

.care__tagline {
  margin-top: 8px;
  font-size: .9375rem;
  color: var(--text-2);
}

.care__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.care__features li {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  font-size: .8125rem;
  color: var(--text);
}

.menu-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.menu-item {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.menu-item__name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu-item__dots {
  height: 1px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}

.menu-item .price__amount {
  font-weight: 700;
}

.menu-item__text {
  grid-column: 1 / -1;
  max-width: 37.851em; /* 60ch in the web font */
  font-size: .875rem;
  color: var(--text-2);
}

.menu-item__inc {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-ink);
}

@media (min-width: 1024px) {
  .extras {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .extras__care {
    grid-column: 1 / span 5;
  }
  .extras__addons {
    grid-column: 7 / span 6;
  }
}

/* comparison table */
.compare {
  margin-top: clamp(64px, 9vw, 120px);
}

.compare__title {
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 24px;
}

.compare__table {
  width: 100%;
  font-size: .9375rem;
}

.compare__table thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  padding: 16px 12px;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
  text-align: center;
  vertical-align: bottom;
  font-weight: 600;
}

.compare__table thead th.compare__feature-col {
  text-align: left;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.compare__pkg {
  display: block;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.compare__pkg-price {
  display: block;
  margin-top: 2px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* the honey marker of the featured package sits above its name, out of the flow, so all three names (and
   prices) share one baseline */
.compare__table thead th.is-featured .compare__pkg {
  position: relative;
}

.compare__table thead th.is-featured .compare__pkg::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.compare__group th {
  padding: 32px 12px 10px 0;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.compare__table tbody tr:not(.compare__group) {
  border-bottom: 1px solid var(--line);
}

.compare__label {
  padding: 14px 16px 14px 0;
  text-align: left;
  font-weight: 500;
}

.compare__hint {
  display: block;
  margin-top: 2px;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-2);
}

.compare__val {
  width: 16%;
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
}

.compare__val.is-featured {
  background: var(--featured-col, color-mix(in srgb, var(--accent) 7%, transparent));
}

[data-theme="dark"] .compare {
  --featured-col: rgb(255 255 255 / .035);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .compare {
    --featured-col: rgb(255 255 255 / .035);
  }
}

.compare__yes {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--text);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.compare__val.is-featured .compare__yes {
  background: var(--accent-ink);
}

.compare__dash {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  vertical-align: middle;
  background: var(--line-strong);
}

.compare__addon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.compare__addon::before {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: var(--i-plus) center / contain no-repeat;
  mask: var(--i-plus) center / contain no-repeat;
}

.compare__text {
  font-size: .875rem;
}

.compare__legend {
  margin: -8px 0 8px;
  font-size: .875rem;
  color: var(--text-2);
}

/* fold of the table – a toggle on phones only */
.compare__summary {
  display: none;
}

@media (max-width: 719.98px) {
  .compare__title {
    margin-bottom: 16px;
  }
  .compare__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: var(--surface);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
  }
  .compare__summary::-webkit-details-marker {
    display: none;
  }
  .compare__fold[open] > .compare__summary {
    margin-bottom: 20px;
  }
  .compare__fold[open] .compare__show,
  .compare__fold:not([open]) .compare__hide {
    display: none;
  }
  .compare__chev {
    flex: none;
    transition: transform .25s var(--ease-out);
  }
  .compare__fold[open] .compare__chev {
    transform: rotate(180deg);
  }
  .compare__fold[open] .compare__legend {
    margin-top: 0;
  }
}

/*
 * Mobile: one sticky row with the package names in equal columns across the full width, then every group as a
 * card. In each row the feature name spans the full width and the values sit right under the package names, so
 * long names ("Komplettsystem", "Sistema completo") get a third of the screen and wrap only between words.
 */
@media (max-width: 719.98px) {
  .compare__table,
  .compare__table thead,
  .compare__table tbody,
  .compare__table tr,
  .compare__table th,
  .compare__table td {
    display: block;
  }
  .compare__table {
    font-size: .875rem;
  }
  .compare__table thead {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    container-type: inline-size;
    background: var(--bg);
  }
  .compare__table thead tr,
  .compare__table tbody tr:not(.compare__group) {
    display: grid;
    grid-template-columns: repeat(var(--pkgs, 3), minmax(0, 1fr));
  }
  .compare__table thead tr {
    align-items: end;
    border-bottom: 1.5px solid var(--text);
  }
  .compare__table thead th {
    position: static;
    padding: 12px 4px 10px;
    border-bottom: 0;
  }
  /* the row labels have no column of their own here; the header cell stays for screen readers */
  .compare__table thead th.compare__feature-col {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* Names in their own case (as on desktop), sized to the column width: a 14-letter word such as
     "Komplettsystem" (about 7.9em wide) still fits a third of a 320px screen. Lines break between words only;
     break-word is a last resort for a single word that could never fit. */
  .compare__pkg {
    font-size: clamp(.625rem, calc((100cqi / var(--pkgs, 3) - 8px) / 8.1), .875rem);
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .compare__pkg-price {
    margin-top: 3px;
    font-size: .6875rem;
    line-height: 1.3;
  }
  .compare__table thead th.is-featured .compare__pkg::after {
    bottom: calc(100% + 4px);
  }
  .compare__table tbody {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }
  .compare__group th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
  }
  .compare__table tbody tr:not(.compare__group) {
    border-bottom: 0;
  }
  .compare__table tbody tr:not(.compare__group) + tr {
    border-top: 1px solid var(--line);
  }
  .compare__label {
    grid-column: 1 / -1;
    padding: 12px 16px 2px;
    font-size: .875rem;
    line-height: 1.4;
  }
  .compare__hint {
    font-size: .75rem;
    line-height: 1.45;
  }
  .compare__table .compare__val {
    display: grid;
    place-items: center;
    width: auto;
    min-height: 40px;
    padding: 6px 4px 10px;
  }
  .compare__val.is-featured {
    background: none;
  }
  .compare__yes {
    width: 18px;
    height: 18px;
  }
  .compare__text {
    font-size: .8125rem;
    line-height: 1.3;
    text-align: center;
  }
  /* add-on chip shrinks to its plus mark; the words stay for screen readers and in the legend */
  .compare__val .compare__addon {
    gap: 0;
    padding: 4px;
    font-size: 0;
    color: var(--accent-ink);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  }
  .compare__val .compare__addon::before {
    width: 12px;
    height: 12px;
  }
}

/* Narrowest phones */
@media (max-width: 359.98px) {
  .compare__label {
    padding-inline: 12px;
  }
  .plan__inner {
    padding: 22px 18px;
  }
}

/* Tablet: keep the real table, but give the feature column the room; add-on chips wrap onto two lines. */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .compare__val {
    width: 15%;
    padding-inline: 6px;
  }
  .compare__label {
    padding-right: 24px;
  }
  .compare__val .compare__addon {
    align-items: flex-start;
    padding: 4px 7px;
    font-size: .6875rem;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
  }
  .compare__val .compare__addon::before {
    flex: none;
    margin-top: 2px;
  }
}

/* what you get / what we need */
.scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(64px, 9vw, 120px);
}

.scope__col {
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
}

.scope__col--need {
  border-color: transparent;
  background: var(--bg-2);
}

.scope__title {
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.scope__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.scope__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: .9375rem;
  color: var(--text-2);
}

@media (min-width: 900px) {
  .scope {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--grid-gap);
  }
}

/* ====================================================================== PROCESS */

.process__head {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 40px;
}

.timeline__node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--bg);
  border: 2px solid var(--text);
}

.timeline__step:first-child .timeline__node {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__n {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.timeline__text {
  margin-top: 8px;
  font-size: .9375rem;
  color: var(--text-2);
}

.timeline__out {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 600;
}

.timeline__out-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .timeline::before {
    top: 5px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
  .timeline__step {
    padding: 40px 0 0;
  }
  .timeline__out {
    margin-top: auto;
    padding-top: 14px;
  }
  .timeline__text {
    margin-bottom: 22px;
  }
  /* numeral, title, text and „Efekt” share rows across the five steps: every „Efekt” rule sits on one line */
  @supports (grid-template-rows: subgrid) {
    .timeline {
      grid-template-rows: repeat(4, auto);
    }
    .timeline__step {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .timeline__out {
      margin-top: 0;
      align-self: start;
    }
  }
}

/* ====================================================================== REVIEWS */

.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.quote figure {
  margin: 0;
  padding: 28px 0;
  border-top: 2px solid var(--text);
}

.quote__text {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.quote--lead .quote__text {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.3;
}

.quote__by {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  font-size: .9375rem;
  color: var(--text-2);
}

.quote__by b {
  color: var(--text);
}

@media (min-width: 900px) {
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .quote--lead {
    grid-column: 1 / -1;
  }
}

/* ========================================================================== FAQ */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 56px);
}

.faq__contact {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .faq__aside {
    grid-column: 1 / span 4;
  }
  .faq__sticky {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
  .faq__main {
    grid-column: 6 / span 7;
  }
}

.faq__list {
  border-bottom: 1px solid var(--line);
}

.qa {
  border-top: 1px solid var(--line);
}

.qa__q {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 12px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color .2s ease;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q:hover .qa__text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--line-strong);
}

.qa__q:focus-visible {
  outline-offset: 4px;
  border-radius: 4px;
}

.qa__n {
  padding-top: .3em;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.qa__icon {
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: -1px;
  border-radius: 7px;
  border: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}

.qa__icon::after {
  transform: rotate(90deg);
}

.qa[open] .qa__icon {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.qa[open] .qa__icon::after {
  transform: rotate(0deg);
}

.qa__a {
  padding: 0 40px 26px 48px;
  font-size: .9844rem;
  color: var(--text-2);
  max-width: none;
}

.qa__a a {
  color: var(--link);
}

.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}

.qa[open]::details-content {
  block-size: auto;
}

/* ====================================================================== CONTACT */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
}

.contact__blocks {
  display: grid;
  gap: 0;
  margin-top: clamp(36px, 5vw, 56px);
}

.contact__block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.contact__block-title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.contact__block p {
  margin-top: 8px;
  max-width: 30.281em; /* 48ch in the web font */
  color: var(--text-2);
}

.contact__block .btn {
  margin-top: 20px;
}

.contact__direct {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
}

.contact__direct dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact__direct dd {
  margin: 4px 0 0;
}

.contact__big {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.2rem + .9vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__big:hover {
  color: var(--accent);
}

.contact__card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact__card-text {
  margin-top: 10px;
  color: var(--text-2);
}

.contact__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: start;
  }
  .contact__copy {
    grid-column: 1 / span 6;
  }
  .contact__form {
    grid-column: 8 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ======================================================================= FOOTER */

.site-footer {
  padding-block: clamp(56px, 8vw, 104px) 28px;
  font-size: .9375rem;
}

/* A footer right after a dark band (home #contact, the CTA band of sub-pages) is the same navy: no second top
   padding, and a hairline rule frames it. The footer is main's sibling, so the band is found with :has(). */
main:has(> .band-dark:last-child) + .site-footer {
  padding-top: 0;
}

/* room for the fixed cookie note under the last footer row while it is shown (height set by site.js) */
html.has-note .site-footer {
  padding-bottom: calc(28px + var(--note-h, 0px));
}

main:has(> .band-dark:last-child) + .site-footer .site-footer__top {
  padding-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px var(--grid-gap);
}

.site-footer__logo {
  display: inline-flex;
  color: var(--text);
}

.site-footer__tagline {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 9.436em; /* 14ch in the web font */
}

.site-footer__lead {
  margin-top: 14px;
  max-width: 25.234em; /* 40ch in the web font */
  color: var(--text-2);
}

.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

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

.site-footer__list a,
.site-footer__legal a,
.site-footer__langs a,
.site-footer__top-link {
  color: var(--text);
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__contact .icon {
  color: var(--text-2);
}

.site-footer__call {
  margin-top: 18px;
  color: var(--accent);
}

.site-footer__company {
  display: grid;
  gap: 4px;
  font-style: normal;
  color: var(--text-2);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--text-2);
}

.site-footer__copy {
  margin-right: auto;
}

.site-footer__made {
  display: block;
  color: var(--text-3);
}

.site-footer__legal,
.site-footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__langs a {
  font-weight: 600;
  letter-spacing: .06em;
}

.site-footer__langs a[aria-current="true"] {
  color: var(--accent);
}

.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* phones: every footer link is a full 44px tap row (the list gaps shrink so the rhythm barely changes) and the
   language codes are 44px squares, pulled left so "PL" still lines up with the text above it */
@media (max-width: 719.98px) {
  .site-footer__list {
    gap: 0;
  }
  .site-footer__list a,
  .site-footer__legal a,
  .site-footer__top-link,
  .site-footer__call,
  .site-footer__logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer__tagline {
    margin-top: 16px; /* the logo link grew by 12px */
  }
  .site-footer__call {
    margin-top: 6px;
  }
  .site-footer__bottom {
    row-gap: 4px;
  }
  .site-footer__copy {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
  .site-footer__legal {
    flex-direction: column;
    gap: 0;
  }
  .site-footer__langs {
    gap: 0;
    margin-left: -13px;
  }
  .site-footer__langs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / span 4;
  }
  .site-footer__top > :nth-child(2) {
    grid-column: 6 / span 2;
  }
  .site-footer__top > :nth-child(3) {
    grid-column: 8 / span 3;
  }
  .site-footer__top > :nth-child(4) {
    grid-column: 11 / span 2;
  }
}

/* the skip link waits just above the viewport; without this its shadow bleeds a grey smudge into the header's
   top-left corner. The shadow comes back with the link on focus. */
.skip-link {
  box-shadow: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  box-shadow: var(--shadow-2);
}

/* ================================================================ COOKIE NOTICE */

.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 12px;
  width: min(400px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text);
  animation: zw-note-in .5s var(--ease-out);
}

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

.cookie-note__text {
  color: var(--text-2);
}

.cookie-note__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-note__more {
  font-weight: 600;
  color: var(--text);
}

.cookie-note__short {
  display: none;
}

/* Phones: a one-line bar at the bottom edge (short text, „OK”, „Ustawienia”) instead of a card over the hero. */
@media (max-width: 599.98px) {
  .cookie-note {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 14px;
    width: auto;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-width: 1px 0 0;
    border-radius: 0;
    font-size: .8125rem;
    line-height: 1.35;
  }
  .cookie-note__long {
    display: none;
  }
  .cookie-note__short {
    display: inline;
  }
  .cookie-note__actions {
    gap: 14px;
  }
  .cookie-note__ok {
    min-width: 48px;
    min-height: 36px;
    padding-inline: 14px;
  }
  .cookie-note__more {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    white-space: nowrap;
  }
}

/* Two-column layouts (≥ 1024 px) keep their primary content – hero CTAs, the order steps, the legal table of
   contents – in the left columns, so the card sits bottom-right there and never covers them. */
@media (min-width: 1024px) {
  .cookie-note {
    left: auto;
    right: 16px;
    width: min(380px, calc(100vw - 32px));
  }
}

@keyframes zw-note-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.cookie-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
}

.cookie-dialog::backdrop {
  background: rgb(7 15 30 / .55);
}

.cookie-dialog[open] {
  animation: zw-note-in .35s var(--ease-out);
}

.cookie-dialog__form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
}

.cookie-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-dialog__lead {
  font-size: .9375rem;
  color: var(--text-2);
}

.cookie-dialog__cats {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.cookie-cat {
  padding: 16px 0;
}

.cookie-cat + .cookie-cat {
  border-top: 1px solid var(--line);
}

.cookie-cat__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-cat__name {
  font-weight: 700;
}

.cookie-cat__state {
  margin-left: auto;
  font-size: .8125rem;
  color: var(--text-2);
}

.cookie-cat__text {
  margin-top: 6px;
  font-size: .875rem;
  color: var(--text-2);
}

.cookie-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: var(--line-strong);
  cursor: not-allowed;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform .2s ease;
}

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

.switch:checked::after {
  transform: translateX(16px);
}

.switch:disabled {
  opacity: .85;
}

@media (forced-colors: active) {
  .switch {
    appearance: auto;
    -webkit-appearance: auto;
  }
  .switch::after {
    display: none;
  }
}

/* forced colours (Windows High Contrast) drop the fills, tints and shadows that mark state: the selected demo
   tab and the pressed phone/desktop toggle get a system-colour outline, current links a real underline */
@media (forced-colors: active) {
  [role="tab"][aria-selected="true"],
  [aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px; /* inset: the tab row scrolls horizontally and would clip an outer ring */
  }
  .site-nav__link[aria-current="page"],
  .mobile-nav__link[aria-current="page"],
  .lang-menu__item[aria-current="true"],
  .site-footer a[aria-current] {
    text-decoration: underline 2px;
    text-underline-offset: 6px;
  }
}

/* ================================================================ SUB-PAGE HEADS */

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--text-2);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs__item a {
  color: var(--text-2);
}

.crumbs__item a:hover {
  color: var(--text);
}

.crumbs__item [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.crumbs__sep {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.page-head {
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 112px);
}

.page-head__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 7vw, 96px);
}

.page-head__title {
  max-width: 12.131em; /* 18ch in the web font */
}

.page-head__lead {
  max-width: 37.851em; /* 60ch in the web font */
}

/* split head (cases index): title left, lead right, then the case covers – work in the first screen */
.page-head--split {
  padding-bottom: clamp(40px, 5vw, 72px);
}

.page-head--split .page-head__grid {
  margin-top: clamp(28px, 4vw, 56px);
}

.page-head__main .page-head__eyebrow {
  margin-bottom: 18px;
}

@media (min-width: 1024px) {
  .page-head--split .page-head__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .page-head--split .page-head__main {
    grid-column: 1 / span 7;
  }
  .page-head--split .page-head__lead {
    grid-column: 8 / span 5;
    font-size: 1.125rem;
  }
}

.covers {
  margin-top: clamp(32px, 4.5vw, 64px);
}

.covers__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cover__link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.cover__shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  container-type: inline-size;
}

.cover__shot > .shot,
.cover__shot > .shot-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
}

.cover__shot > .shot-placeholder .shot-placeholder__hint,
.cover__shot > .shot-placeholder .shot-placeholder__size {
  display: none;
}

.cover__shot--ghost {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.cover__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
}

.cover__n {
  grid-row: span 2;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.cover__client {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cover__industry {
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.cover--next .cover__client {
  color: var(--text-2);
}

.cover__link:hover .cover__client,
.cover__link:focus-visible .cover__client {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

@media (min-width: 720px) {
  .covers__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px var(--grid-gap);
    border-top: 0;
  }
  .cover__link {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 0;
    border-bottom: 0;
  }
  .cover__shot {
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  }
  .cover__shot--ghost {
    box-shadow: none;
  }
  .cover__link:hover .cover__shot:not(.cover__shot--ghost) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
  .cover__meta {
    padding-top: 2px;
  }
}

.page-head--legal {
  border-bottom: 1px solid var(--line);
}

.page-head--legal .page-head__title {
  max-width: 14.827em; /* 22ch in the web font */
}

/* ===================================================================== CASE PAGE */

.case-hero {
  padding-block: clamp(24px, 4vw, 40px) clamp(150px, 22vw, 320px);
}

.case-hero .crumbs__item a,
.case-hero .crumbs__list {
  color: var(--text-2);
}

.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: clamp(40px, 7vw, 88px);
}

.case-hero__eyebrow {
  margin-bottom: 22px;
}

.case-hero__title {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  font-size: inherit;
  letter-spacing: normal;
  line-height: 1;
}

.case-hero__client {
  font-family: var(--font-head);
  font-size: clamp(3rem, 1.9rem + 5.2vw, 6.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.045em;
  color: var(--text);
}

.case-hero__headline {
  max-width: 19.259em; /* 30ch in the web font */
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + .75vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--text-2);
  text-wrap: balance;
}

.case-hero__summary {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
}

.case-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 519.98px) {
  .case-hero__links .btn {
    flex: 1 1 100%;
  }
}

.case-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(40px, 6vw, 72px) 0 0;
}

.case-facts__item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.case-facts dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.case-facts dd {
  margin: 6px 0 0;
  font-size: .9375rem;
  color: var(--text);
}

.case-facts dd a {
  color: var(--accent);
}

@media (min-width: 720px) {
  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
}

@media (min-width: 1024px) {
  .case-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .case-hero__main {
    grid-column: 1 / span 7;
  }
  .case-hero__side {
    grid-column: 9 / span 4;
  }
  .case-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.case-cover {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * clamp(120px, 19vw, 280px));
}

.case-cover__stage {
  max-width: 1080px;
  margin-inline: auto;
}

.case-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.case-sec__label {
  display: flex;
  align-items: center;
  gap: .9em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.case-sec__label .section-num__n {
  color: var(--accent-ink);
}

@media (min-width: 1024px) {
  .case-sec__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .case-sec__aside {
    grid-column: 1 / span 3;
  }
  .case-sec__aside > * {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
  .case-sec__main {
    grid-column: 4 / span 9;
  }
}

.case-problem {
  max-width: 25.037em; /* 40ch in the web font */
  font-family: var(--font-head);
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: pretty;
}

.case-sec--solution {
  padding-top: 0;
}

.case-solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.case-solution__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
}

.case-solution__text p + p {
  margin-top: 1.2em;
}

.case-solution__figure,
.case-panel__figure {
  margin: 0;
}

.case-figure__phone {
  width: min(280px, 72vw);
  margin-inline: auto;
}

.case-figure__caption {
  margin-top: 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}

@media (min-width: 1024px) {
  .case-solution {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(40px, 5vw, 80px);
  }
  .case-solution__figure {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }
  .case-solution .case-figure__phone {
    width: 100%;
  }
}

.case-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-features li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.case-features__n {
  flex: none;
  width: 28px;
  padding-top: .2em;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .case-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.case-panel__lead {
  margin-top: 18px;
}

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

@media (min-width: 900px) {
  .case-panel__list {
    display: block;
    columns: 2;
    column-gap: var(--grid-gap);
  }
  .case-panel__list > li {
    break-inside: avoid;
    margin-bottom: 14px;
  }
}

@media (min-width: 1024px) {
  .case-panel__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .case-panel__figure {
    grid-column: 1 / span 4;
  }
  .case-panel__figure .case-figure__phone {
    width: min(100%, 300px);
  }
  .case-panel__copy {
    grid-column: 6 / span 7;
  }
  /* without a panel capture the copy runs across the band: lead on the left half, features in three columns */
  .case-panel__grid--text .case-panel__copy {
    grid-column: 1 / -1;
  }
  .case-panel__grid--text .case-panel__lead {
    max-width: 36em;
  }
  .case-panel__grid--text .case-panel__list {
    columns: 3;
  }
}

.case-style {
  display: grid;
  gap: 32px;
}

.case-style__text {
  max-width: 26.964em; /* 42ch in the web font */
  font-family: var(--font-head);
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.case-style__tech {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.case-style__label {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .case-style {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
}

.case-live {
  border-top: 1px solid var(--line);
}

.case-live__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.case-live__text {
  color: var(--text-2);
}

.case-live__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 10px;
}

.live-frame,
.case-full {
  margin: clamp(32px, 5vw, 56px) 0 0;
}

.case-full__caption {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--text-3);
}

.case-full__caption strong {
  font-weight: 600;
  color: var(--text-2);
}

.live-frame__note {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--text-3);
}

.case-next {
  border-top: 1px solid var(--line);
}

.case-next .container {
  display: grid;
  gap: 20px;
  padding-block: clamp(48px, 7vw, 96px);
}

.case-next__link {
  display: grid;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.case-next__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.case-next__client {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.case-next__client .icon {
  width: .7em;
  height: .7em;
  color: var(--accent-ink);
  transition: transform .4s var(--ease-out);
}

.case-next__link:hover .case-next__client .icon {
  transform: translateX(.15em);
}

.case-next__industry {
  color: var(--text-2);
}

.case-next__all {
  justify-self: start;
}

/* ======================================================================== LEGAL */

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.legal__body {
  padding-top: clamp(40px, 6vw, 72px);
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: .875rem;
  color: var(--text-2);
}

.legal__toc-title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.legal__toc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}

.legal__toc-list a {
  color: var(--text-2);
}

.legal__toc-list a:hover {
  color: var(--text);
}

.legal__doc {
  max-width: 45.421em; /* 72ch in the web font */
}

.legal__doc h2 {
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

.legal__doc h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal__doc ol {
  padding-left: 1.4em;
}

/* a bullet list right after a numbered item belongs to that item */
.legal__doc ol + ul {
  margin-left: 1.4em;
}

.legal__doc ol > li::marker {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* imprint (Impressum) at the top of the German terms page */
.legal__imprint {
  margin-bottom: 2.5em;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal__doc .legal__imprint h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal__imprint-lead {
  margin-top: .35em;
  color: var(--text-2);
}

.legal__imprint-list {
  display: grid;
  gap: 10px;
  margin: 1.1em 0 0;
}

.legal__imprint-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.legal__imprint-list dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.legal__imprint-list dd {
  margin: 0;
}

@media (min-width: 560px) {
  .legal__imprint-list > div {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }
}

.legal__contact {
  margin-top: 3em !important;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .legal__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .legal__toc {
    grid-column: 1 / span 3;
  }
  /* the padding keeps accents on capitals („Ś”, „Í”) and focus rings inside the scroll box; the negative
     margin keeps the text where it was */
  .legal__toc-inner {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    max-height: calc(100vh - var(--header-h) - 64px);
    margin: -8px -8px -8px -6px;
    padding: 8px 8px 8px 6px;
    overflow-y: auto;
  }
  .legal__doc {
    grid-column: 5 / span 8;
  }
}

/* ========================================================================== 404 */

.notfound {
  padding-block: clamp(48px, 8vw, 120px) var(--section-pad);
}

.notfound__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.notfound__code {
  font-family: var(--font-head);
  font-size: clamp(7rem, 4rem + 18vw, 18rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--text) 10%, transparent);
  font-variant-numeric: tabular-nums;
}

.notfound__title {
  margin-top: 18px;
}

.notfound__lead {
  margin-top: 18px;
}

.notfound__links {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.notfound__link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.notfound__link > .icon:first-child {
  grid-row: span 2;
  color: var(--accent-ink);
}

.notfound__link-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 750;
}

.notfound__link-text {
  grid-column: 2;
  font-size: .875rem;
  color: var(--text-2);
}

.notfound__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  transition: transform .3s var(--ease-out);
}

.notfound__link:hover .notfound__arrow {
  transform: translateX(4px);
}

.notfound__link:hover .notfound__link-title {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

@media (min-width: 1024px) {
  .notfound__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: start;
  }
  .notfound__code {
    grid-column: 1 / span 5;
  }
  .notfound__copy {
    grid-column: 7 / span 6;
  }
}

/* ===================================================================== CTA BAND */

.cta-band {
  padding-block: clamp(72px, 10vw, 140px);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.cta-band__title {
  max-width: 11.988em; /* 18ch in the web font */
}

.cta-band__text {
  color: var(--text-2);
  font-size: 1.0625rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (min-width: 1024px) {
  .cta-band__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .cta-band__title {
    grid-column: 1 / span 7;
  }
  .cta-band__side {
    grid-column: 8 / span 5;
  }
}

/* ======================================================================= MOTION */

@media (prefers-reduced-motion: reduce) {
  .flow::after {
    transform: none !important;
  }
}

/* ======================================================================== PRINT */

@media print {
  .site-header,
  .cookie-note,
  .cookie-dialog,
  .demo__bar,
  .hero__visual,
  .spread__stage,
  .case-cover,
  .site-footer__langs {
    display: none !important;
  }
  .band-dark {
    background: #fff !important;
    color: #000 !important;
  }
  .demo__panel[hidden] {
    display: grid !important;
  }
}
