/* ==========================================================================
   sonvia.pl — design system
   Direction (DESIGN.md): the site speaks the program's language.

   The page is built from the app's own materials (renderer/styles.css):
   white, the app's cool grey for full-width bands, the app's ink and blue,
   pill buttons like the app's record button. One grotesque at poster scale.
   The program itself, shown working, is the only picture.

   Rules this file is built on, so they survive the next edit:

   1. No cards, no icons in tinted circles, no decorative hairlines, no
      eyebrow labels, no numbered section labels. Numbers appear only where
      order is real (the three steps on /jak-to-dziala/).
   2. Depth belongs to two objects: the program window and the F9 key.
      Sections are separated by space and by full-width --mist bands.
   3. Radius is a stance: pills for every button, 16px panels, 11px inputs,
      8px for the depicted Windows 11 window.
   4. Numbers are proportional figures. `tabular-nums` widens the decimal
      comma to a digit cell, so "9,3" reads as "9 , 3". Tabular only where
      digits change in place (the recording timers).
   5. Body leading 1.66 and display 1.1, never lower: Polish ogonki hang
      below the baseline.
   6. Inside a depiction of the program, the app's own tokens and font are
      used, never the page's: a screenshot in the website's type would be a
      drawing of a screenshot.
   7. Nothing is hidden without JavaScript. Every rule that starts an element
      in a pre-animation state is scoped to html.js, set before first paint,
      and html.is-still (the renderer) paints the settled state.
   ========================================================================== */

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

:root {
  --paper: #FFFFFF;
  --mist: #F3F5F8;         /* bands, footer, panels */

  /* ink — verified by tools/palette.py on paper AND on mist */
  --ink: #16202B;          /* the app's --ink   16.46 / 15.07 */
  --body: #3A4553;         /*                    9.74 /  8.92 */
  --muted: #5A6573;        /*                    5.93 /  5.43 */

  --blue: #1A5FB4;         /* the app's --accent 6.29 / 5.76 */
  --blue-deep: #144A8E;    /* the app's --accent-dark 8.75 / 8.01 */
  --blue-wash: #E8F0FB;    /* the app's --accent-soft */
  --amber: #7A5312;
  --green: #26783F;
  --red: #A52F22;

  --line: rgba(22, 32, 43, .1);
  --line-2: rgba(22, 32, 43, .2);

  /* the program's own tokens, for depictions of it (rule 6) */
  --app-font: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, sans-serif;
  --app-bg: #EEF1F6;
  --app-surface-2: #F6F8FB;
  --app-ink: #16202B;
  --app-soft: #55626F;
  --app-faint: #6B7684;
  --app-line: #D8DFE8;
  --app-hl: #FFE886;

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.625rem, 4.4vw, 4rem);      /* 42 -> 64 */
  --fs-h1: clamp(2.25rem, 4.2vw, 3.5rem);       /* 36 -> 56 */
  --fs-h2: clamp(1.875rem, 3.3vw, 3rem);        /* 30 -> 48 */
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);       /* 20 -> 24 */
  --fs-lead: clamp(1.1875rem, 1.55vw, 1.4375rem); /* 19 -> 23 */
  --fs-body: 1.125rem;                          /* 18 */
  --fs-sm: 1rem;                                /* 16 */
  --fs-xs: .875rem;                             /* 14, the floor */

  --lh-display: 1.1;
  --lh-h2: 1.12;
  --lh-lead: 1.55;
  --lh-body: 1.66;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --measure: 36em;
  --section: clamp(72px, 8.5vw, 128px);

  --r-pill: 999px;
  --r-panel: 16px;
  --r-input: 11px;
  --r-win: 8px;

  /* motion: one arrival curve, one travel curve, and a spring for the key
     (sampled from a damped spring, damping .62, response .34 s) */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .0583, .1972, .372, .5506, .7122, .8456, .9467, 1.0164, 1.0587, 1.079, 1.0834, 1.0771, 1.0648, 1.0499, 1.0352, 1.022, 1.0113, 1.0033, .9979, .9947, .9933, .9931, .9937, .9948, .996, .9973, .9983, .9992, .9998, 1);
  --dur-ui: 160ms;
}

/* --- reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(26, 95, 180, .16); }

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

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  padding: 12px 20px; background: var(--blue); color: #fff;
  border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { left: 16px; }

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

/* --- page transitions -----------------------------------------------------
   Same-origin navigations cross-fade; the top bar carries its own name, so
   it stays put while the page under it changes. */

@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 360ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* --- layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--max) + 160px); }

.section { position: relative; padding-block: var(--section); }
.section--band { background: var(--mist); }
.section--flush-top { padding-top: 0; }

/* --- type ---------------------------------------------------------------- */

h1, h2, .h1, .h2 {
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  font-variant-numeric: normal;
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: -.035em; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -.03em; }

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--body);
  max-width: 34em;
  text-wrap: pretty;
  letter-spacing: -.006em;
}

.prose { max-width: var(--measure); text-wrap: pretty; }
.prose + .prose { margin-top: 1em; }
.prose strong, .lead strong { color: var(--ink); font-weight: 650; }

.prose a, .legal a, .inline-link {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--dur-ui) var(--ease);
}
.prose a:hover, .legal a:hover, .inline-link:hover { text-decoration-thickness: 2px; }

.small { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.xs { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }
.num { font-variant-numeric: normal; }

/* Heading, then its supporting line, stacked. Never side by side. */
.head { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.head + * { margin-top: clamp(40px, 5vw, 72px); }

/* A short page head: the page's name, one line under it. */
.page-head { padding-top: clamp(56px, 8vw, 128px); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: clamp(16px, 2vw, 26px); }
.page-head + .section { padding-top: 0; }

/* --- buttons and links --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease), transform 220ms var(--ease);
}
.btn:hover { background: var(--blue-deep); }
/* Feedback on the press itself, not on release. */
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .9375rem; }

.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--quiet:hover { background: rgba(22, 32, 43, .04); }

/* Apple's link-with-chevron, for the one secondary action beside a button. */
.more {
  display: inline-flex; align-items: center; gap: .3em;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--blue-deep);
  padding-block: 8px;
}
.more::after {
  content: '';
  width: .5em; height: .5em;
  border: solid currentColor; border-width: 2px 2px 0 0;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform 260ms var(--ease);
}
.more:hover::after { transform: rotate(45deg) translate(1px, -1px); }
.more:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* --- top bar --------------------------------------------------------------
   A translucent layer, as in the app: content scrolls under it. The hairline
   appears only once something is under it. */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow var(--dur-ui) var(--ease);
}
.bar.is-stuck { box-shadow: 0 1px 0 var(--line); }
@media (prefers-reduced-transparency: reduce) {
  .bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.bar__in { display: flex; align-items: center; gap: 12px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark { width: 22px; height: 22px; flex: none; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: 10px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  color: var(--body);
  transition: color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(22, 32, 43, .05); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.nav__cta { display: none; }
/* The header's button is quiet, so the first screen has one filled button:
   the one in the page. */
.bar__in > .btn { background: transparent; color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px rgba(26, 95, 180, .45); }
.bar__in > .btn:hover { background: var(--blue-wash); }

.burger {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; border-radius: var(--r-pill);
}
.burger span, .burger span::before {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 300ms var(--ease);
}
.burger span { position: relative; transform: translateY(-4px); }
.burger span::before { content: ''; position: absolute; left: 0; top: 8px; }
.burger[aria-expanded='true'] span { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded='true'] span::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .bar__in > .btn { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: #fff;
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -30px rgba(22, 32, 43, .3);
    opacity: 0; transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms var(--ease), transform 360ms var(--ease), visibility 0s; }
  .nav a { padding: 14px 0; border-radius: 0; font-size: 1.375rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
  .nav a:hover { background: none; }
  .nav a[aria-current='page'] { color: var(--blue-deep); }
  .nav .nav__cta { display: inline-flex; margin-top: 16px; align-self: flex-start; font-size: 1.0625rem; color: #fff; padding: 14px 28px; border-radius: var(--r-pill); }
}

/* --- home: hero -----------------------------------------------------------
   The headline beside the program. Stacked, the window started below the
   fold of a clinic laptop (1366x768, or 1920x1080 at 125%) and the demo
   never began; side by side it is on screen from the first frame. */

.hero { padding-top: clamp(32px, 4.5vw, 64px); padding-bottom: var(--section); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
/* Three lines, the middle one the longest: "Opis gotowy, / zanim sięgniesz /
   po klawiaturę". Narrower and "zanim" is left alone on a line. */
.hero__title { font-size: var(--fs-hero); max-width: 15ch; letter-spacing: -.038em; }
.hero__copy .lead { margin-top: clamp(18px, 2vw, 24px); max-width: 26em; }
.hero__copy .actions { margin-top: clamp(24px, 2.6vw, 32px); }

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .hero__copy { padding-top: clamp(12px, 2.6vw, 44px); }
}

/* --- the program window ---------------------------------------------------
   Windows 11 chrome: Sonvia is Windows only. Everything inside is set in the
   app's font and tokens (rule 6). */

.win {
  position: relative;
  border-radius: var(--r-win);
  background: #fff;
  overflow: hidden;
  font-family: var(--app-font);
  color: var(--app-ink);
  /* Close to a Windows 11 window's own shadow, not a floating showpiece. */
  box-shadow:
    0 0 0 1px rgba(16, 24, 36, .11),
    0 2px 4px rgba(16, 24, 36, .05),
    0 12px 28px -10px rgba(16, 24, 36, .18);
  container: win / inline-size;
}

.win__bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding-inline: 14px;
  background: #fff; border-bottom: 1px solid var(--app-line);
}
.win__icon { width: 16px; height: 16px; flex: none; color: var(--blue); }
/* #657183 is solved to 4.53:1 on this bar. */
.win__title { font-size: 12.5px; color: #657183; margin-right: auto; }
.win__controls { display: flex; align-items: center; margin-right: -8px; }
.win__controls svg {
  width: 40px; height: 30px; padding: 9px 13px;
  fill: none; stroke: #5C6675; stroke-width: 1.1; stroke-linecap: round;
}

.win__body { background: var(--app-bg); padding: 16px; }

/* One column by default, the check list after the description it checks.
   Two columns only when the window itself is wide, whatever the viewport. */
.app { display: grid; gap: 12px; }
.app__col { display: contents; }
.app .app-flags { order: 3; }
@container win (min-width: 820px) {
  .app { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 14px; }
  .app__col { display: grid; gap: 14px; }
  .app .app-flags { order: 0; }
}

.app-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 11px;
  padding: 16px 18px;
}
.app-card__h {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--app-faint);
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #E4EAF1;
}

.app-row { display: flex; align-items: center; gap: 10px; }

.app-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--app-soft); }
.app-state i {
  position: relative;
  width: 9px; height: 9px; border-radius: 50%; background: #C3CCD8;
  transition: background-color var(--dur-ui) var(--ease);
}
.app-state i::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: 0;
}
.app-state[data-state='rec'] i { background: #C33A2B; color: rgba(195, 58, 43, .35); }
.app-state[data-state='work'] i { background: #1A5FB4; color: rgba(26, 95, 180, .35); }
.app-state[data-state='done'] i { background: #2F8F4E; box-shadow: 0 0 0 4px rgba(47, 143, 78, .15); }
.js .app-state[data-state='rec'] i::after,
.js .app-state[data-state='work'] i::after { animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }

/* The timer's digits change in place once a second; without tabular figures
   the whole row twitches. It holds no decimal comma, so tnum costs nothing. */
.app-timer { margin-left: auto; font-size: 13px; color: var(--app-faint); font-variant-numeric: tabular-nums; }

.wave { width: 100%; height: 64px; margin-top: 10px; }

.app-doc { display: flex; flex-direction: column; }
.app-report { font-size: 15px; line-height: 1.62; color: var(--app-ink); min-height: 11.5em; }
.app-report p + p { margin-top: .7em; }
.app-report .waiting { color: var(--app-faint); }
/* The app marks every number and every [niejasne: ...] for checking. */
.app-report mark, .app-pane__o mark, .said__to mark {
  background: var(--app-hl); color: inherit; border-radius: 3px; padding: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.app-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E4EAF1; }
.app-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: 7px; border: 1px solid var(--app-line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--app-ink);
}
.app-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app-btn--primary { background: #1A5FB4; border-color: #1A5FB4; color: #fff; }

.app-flags { border: 1px solid #E9CF9A; background: #FDF3E0; border-radius: 11px; padding: 14px 16px; }
.app-flags__h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #7A5312; }
.app-flags__n {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #F3DDB0; font-size: 12px; font-weight: 700;
}
.app-flags__s { font-size: 12.5px; color: #7A5312; margin: 6px 0 6px; }
.app-flags li { font-size: 13px; line-height: 1.5; color: #7A5312; padding-left: 13px; position: relative; }
.app-flags li + li { margin-top: 5px; }
.app-flags li::before {
  content: ''; position: absolute; left: 2px; top: .62em;
  width: 4px; height: 4px; border-radius: 50%; background: #B8892B;
}

/* The app's processing steps (view-processing), shown in the description
   card while the demo works: a ring on the active step, a green tick on a
   finished one. */
.app-steps { display: grid; gap: 16px; padding: 4px 0; }
.app-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--app-faint); }
.app-steps__m { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--app-line); background: #fff; }
.app-steps__m svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.app-steps .is-active { color: var(--app-ink); font-weight: 600; }
.app-steps .is-active .app-steps__m { border-color: #1A5FB4; }
.app-steps .is-active .app-steps__m::after { content: ''; position: absolute; inset: -5px; border: 2px solid #1A5FB4; border-radius: 50%; animation: ring 1.5s ease-out infinite; }
@keyframes ring { from { opacity: .7; transform: scale(.8); } to { opacity: 0; transform: scale(1.3); } }
.app-steps .is-done { color: var(--app-soft); }
.app-steps .is-done .app-steps__m { border-color: #2F8F4E; background: #2F8F4E; }
.app-steps .is-done .app-steps__m svg { opacity: 1; }

/* Demo states. Space stays reserved so nothing under the window jumps. */
.js .win.is-waiting .app-flags,
.js .win.is-waiting .app-actions { opacity: 0; visibility: hidden; }
.js .win .app-flags, .js .win .app-actions { transition: opacity 500ms var(--ease), visibility 0s; }

/* The result screen: raw transcript and description side by side. */
.app-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .app-panes { grid-template-columns: 1fr; } }
.app-pane__t { font-size: 14.5px; line-height: 1.66; color: var(--app-soft); }
.app-pane__o { font-size: 14.5px; line-height: 1.66; color: var(--app-ink); }
.app-pane__o p + p { margin-top: .7em; }
.result .app-flags { margin-top: 14px; }
/* On the result screen the buttons sit on the window's grey, not in a card. */
.app-actions--bare { margin-top: 14px; padding-top: 0; border-top: 0; flex-wrap: wrap; }

/* Marks the PAGE lays over the transcript, keyed to the list under it. */
.mk-drop { color: #6B7684; text-decoration: line-through; text-decoration-color: rgba(22, 32, 43, .45); text-decoration-thickness: 1.5px; }
.mk-patient { background: rgba(233, 207, 154, .55); color: #5C3F0E; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mk-term { color: var(--app-ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* --- home: spoken -> written ----------------------------------------------
   Three things the doctor says, and what the description made of them. The
   right-hand cell corrects itself in place once, when the table arrives. */

.said { margin-top: clamp(40px, 5vw, 72px); }
.said__cols, .said__row {
  display: grid;
  grid-template-columns: minmax(120px, .5fr) minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
}
.said__cols { font-size: var(--fs-sm); color: var(--muted); padding-bottom: 14px; }
.said__row { padding-block: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line); }
.said__k { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.said__from, .said__to {
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}
.said__from { color: #7C8693; font-weight: 500; }
.said__to { color: var(--ink); transition: color 500ms var(--ease); }
.said__to.is-spoken { color: #7C8693; }
.said__none { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -.01em; color: var(--muted); }

/* The letters of a correction. Each is its own box only while it moves. */
.said__to .ch { display: inline-block; white-space: pre; position: relative; }
.said__to .ch.is-new { color: var(--blue); transition: color 900ms var(--ease) 500ms; }
.said__to .ch.is-new.is-settled { color: inherit; }
.said__to .strike { position: relative; display: inline; }

/* The same table on the specialty pages, static, for whole sentences: the
   home page's poster size is for three short phrases. */
.said--prose .said__from, .said--prose .said__to { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.35; letter-spacing: -.012em; }
.said--prose .said__none { font-size: inherit; }
.said + .small { margin-top: 18px; max-width: var(--measure); }

@media (max-width: 760px) {
  .said__cols { display: none; }
  .said__row { grid-template-columns: 1fr; row-gap: 6px; }
  .said__from::before { content: 'Z nagrania: '; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; color: var(--muted); display: block; margin-bottom: 2px; }
  .said__to::before { content: 'W opisie: '; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; color: var(--muted); display: block; margin: 8px 0 2px; }
}

/* --- home: the timing chart -----------------------------------------------
   Two bars on one scale. The recording is drawn as voice, the wait as a
   solid bar a tenth of its length: the ratio is the claim, so it is drawn to
   scale rather than described. No track behind the bars. */

.chart { margin-top: clamp(36px, 4.4vw, 56px); display: grid; gap: clamp(24px, 3vw, 36px); }
.chart__row { display: grid; gap: 12px; }
.chart__l { font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
/* Both bars share one scale: the track minus room for the value, which sits
   directly at the end of its own bar. */
.chart__track { --room: clamp(6.5rem, 10vw, 8.5rem); display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.chart__bar { flex: none; width: calc((100% - var(--room)) * var(--v, 1)); min-width: 10px; height: clamp(44px, 5vw, 64px); transform-origin: left; }
.chart__bar svg { width: 100%; height: 100%; fill: var(--blue); }
/* 200 bars smear below ~600px; the phone gets a 72-bar drawing of the same
   generated wave, so each bar stays about 3px wide, as in the app. */
.chart__bar .wave-s { display: none; }
@media (max-width: 600px) { .chart__bar .wave-l { display: none; } .chart__bar .wave-s { display: block; } }
.chart__bar--solid { height: 12px; background: var(--blue); border-radius: 6px; }
.chart__v { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; white-space: nowrap; }
.chart figcaption { max-width: 46em; margin-top: 4px; }

.js .chart .chart__bar { transform: scaleX(0); transition: transform 1500ms var(--ease-io); }
.js .chart .chart__bar--solid { transition-duration: 360ms; transition-timing-function: var(--ease); transition-delay: 1400ms; }
.js .chart.is-in .chart__bar { transform: none; }
.js .chart .chart__v { opacity: 0; transition: opacity 400ms var(--ease) 1100ms; }
.js .chart .chart__row + .chart__row .chart__v { transition-delay: 1700ms; }
.js .chart.is-in .chart__v { opacity: 1; }

/* --- home: the F9 key -----------------------------------------------------
   A key you can press. The cap moves; its body and the shadow on the desk
   do not, so the press is a transform and nothing repaints. Pressed on
   pointer-down, released on a spring with a little overshoot, because a real
   key does bounce back. */

.keys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .keys { grid-template-columns: 1fr; } .keys__art { order: 2; } }

.keys__art { display: grid; justify-items: center; gap: 32px; }

.key {
  --k: clamp(150px, 15vw, 200px);
  position: relative;
  width: var(--k); height: var(--k);
  padding: 0; border: 0; background: none;
  border-radius: 24%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.key:focus-visible { outline-offset: 10px; border-radius: 26%; }
/* The key's body: wider at the bottom than the top, lit from above, so the
   sides read as sides. It never moves. */
.key__base {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(22, 32, 43, .06), transparent 18%, transparent 82%, rgba(22, 32, 43, .06)),
    linear-gradient(#EEF1F5, #D5DCE5 88%, #C8D0DA);
  box-shadow:
    0 0 0 1px rgba(22, 32, 43, .1),
    0 30px 44px -18px rgba(22, 32, 43, .38),
    0 8px 14px -6px rgba(22, 32, 43, .2);
}
/* The top face: inset from the body like a real keycap, slightly dished. */
.key__cap {
  position: absolute; inset: 5% 8% 15% 8%;
  border-radius: 20%;
  display: grid; place-items: center;
  background: radial-gradient(130% 100% at 50% 0%, #FFFFFF 0%, #FCFDFE 45%, #F0F3F7 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px rgba(22, 32, 43, .06), 0 1px 2px rgba(22, 32, 43, .12);
  transition: transform 620ms var(--spring);
}
.key__label {
  font-size: calc(var(--k) * .2);
  font-weight: 650;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.key.is-down .key__cap { transform: translateY(6%) scale(.985); transition: transform 70ms ease-out; }

/* What the program shows while the key is down, drawn as the app draws it. */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px var(--app-line), 0 8px 20px -10px rgba(16, 24, 36, .25);
  font-family: var(--app-font); font-size: 14px; font-weight: 600; color: var(--app-soft);
}
.chip__mark { width: 16px; height: 16px; color: var(--blue); }
.chip .app-state { font-size: 14px; }
.chip__timer { font-variant-numeric: tabular-nums; color: var(--app-faint); font-weight: 400; min-width: 3.2em; }
.chip__timer:empty { display: none; }

.keys__text .lead { margin-top: clamp(16px, 2vw, 24px); }
.keys__text .prose { margin-top: 16px; color: var(--muted); }

/* --- home: what leaves the computer ---------------------------------------- */

.statement h2 { max-width: 24ch; }
.statement .lead { margin-top: clamp(14px, 1.6vw, 20px); max-width: 38em; }

/* --- the 30-second films (home, /bezpieczenstwo/) -------------------------
   Panel radius and a 1px ring to find the edge on white. No shadow: depth
   belongs to the program window and the F9 key. */

.film h2 + .film__video { margin-top: clamp(32px, 3.6vw, 48px); }
.film__video {
  display: block; width: 100%; height: auto;
  /* Whole film on screen under the sticky bar, also at 1366x640. */
  max-width: calc((100vh - 140px) * 16 / 9);
  max-width: calc((100svh - 140px) * 16 / 9);
  border-radius: var(--r-panel);
  background: var(--mist);
  box-shadow: 0 0 0 1px var(--line);
}

/* --- closing call ---------------------------------------------------------
   The one saturated moment on each page: a full-width band in the program's
   blue. On white it was one more quiet section and easy to scroll past.
   Left-aligned; white on #1A5FB4 is 6.29:1, the lead at 88% white 5.3:1. */

.close { background: var(--blue); color: #fff; }
.close h2 { color: #fff; font-size: clamp(2.25rem, 4.6vw, 3.75rem); max-width: 16ch; letter-spacing: -.035em; }
.close .lead { margin-top: clamp(14px, 1.6vw, 20px); color: rgba(255, 255, 255, .88); max-width: 30em; }
.close .actions { margin-top: clamp(28px, 3vw, 40px); gap: 16px 32px; }
.close .btn { background: #fff; color: var(--blue-deep); }
.close .btn:hover { background: var(--blue-wash); }
.close :focus-visible { outline-color: #fff; }
.close .wrap { position: relative; }
.close__wave { display: none; }
@media (min-width: 1000px) {
  .close__wave { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
    width: 36%; height: 140px; fill: #fff; opacity: .28; pointer-events: none; }
}
.close__mail { color: #fff; font-weight: 600; font-size: 1.0625rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.close__mail:hover { text-decoration-thickness: 2px; }
/* The footer starts straight under the band; its hairline would sit on blue. */
.close + * , main:has(> .close:last-child) + .foot { box-shadow: none; }

/* --- /jak-to-dziala/ ------------------------------------------------------- */

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps h2 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.018em; line-height: 1.3; display: flex; gap: .5em; }
.steps h2::before { content: counter(step); color: var(--blue); font-weight: 700; }
.steps p { margin-top: 10px; font-size: var(--fs-sm); color: var(--body); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.keyed { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 860px) { .keyed { grid-template-columns: 1fr; gap: 22px; } }
.keyed h3 { font-size: 1.125rem; display: flex; align-items: center; gap: 12px; }
.keyed p { margin-top: 8px; font-size: var(--fs-sm); color: var(--body); }
/* The key to the marks in the transcript, drawn with the same marks. */
.swatch { flex: none; width: 30px; height: 16px; border-radius: 4px; }
.swatch--drop { background: linear-gradient(rgba(22, 32, 43, .5), rgba(22, 32, 43, .5)) center / 100% 1.5px no-repeat, #E3E8EF; }
.swatch--patient { background: rgba(233, 207, 154, .75); }
.swatch--term { border-radius: 0; background: linear-gradient(var(--blue), var(--blue)) bottom / 100% 2px no-repeat; }

.tip { margin-top: clamp(28px, 3vw, 40px); }

/* --- /dziedziny/ ------------------------------------------------------------ */

.doms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px);
}
@media (max-width: 960px) { .doms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .doms { grid-template-columns: 1fr; gap: 44px; } }
.dom h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -.028em; line-height: 1.15; }
.dom p { margin-top: 10px; font-size: var(--fs-sm); color: var(--body); max-width: 26em; }
/* Real terms from the domain's dictionary (prompts.js). They are what makes
   nine blocks of one shape read as nine different specialties. */
.dom ul { margin-top: 16px; display: grid; gap: 4px; }
/* Ink, not blue: on this site blue means "you can click this", and these
   are not links. */
.dom li { font-size: var(--fs-sm); color: var(--ink); font-weight: 550; }
/* The specialty's own page. Blue because it is a link. */
.dom h2 a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(20, 74, 142, .35); transition: text-decoration-color var(--dur-ui) var(--ease); }
.dom h2 a:hover { text-decoration-color: currentColor; }

/* --- specialty pages -------------------------------------------------------- */

/* The terms the specialty's dictionary holds (prompts.js), set as a plain
   index in columns. */
.terms { columns: 3 14em; column-gap: clamp(28px, 4vw, 56px); }
.terms li { break-inside: avoid; padding-block: 3px; font-size: var(--fs-sm); color: var(--ink); font-weight: 550; }
.others { margin-top: clamp(48px, 6vw, 80px); }
.others a { margin-right: .9em; white-space: nowrap; }

/* --- questions ------------------------------------------------------------- */

/* Closed by default, so a page that must stay short stays short. Space
   separates the questions, as in .defs. */
.faq { display: grid; gap: clamp(14px, 1.8vw, 22px); max-width: 52em; }
.faq__item summary {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
  cursor: pointer; list-style: none;
  font-weight: 650; color: var(--ink); font-size: var(--fs-body); letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex: none; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--blue);
  transition: transform var(--dur-ui) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue-deep); }
.faq__item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.faq__item p { margin-top: 10px; color: var(--body); font-size: var(--fs-sm); line-height: 1.66; max-width: 46em; }

/* --- /cennik/ --------------------------------------------------------------- */

.offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-panel);
  background: var(--mist);
}
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }
.offer h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); max-width: 16ch; }
.offer .prose { margin-top: 14px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(28px, 5vw, 80px); }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.grid2 p { margin-top: 8px; font-size: var(--fs-sm); color: var(--body); }

/* Definition lists: a term and its answer. Space separates the items; a
   rule under every row is the default this site gave up. */
.defs { display: grid; gap: clamp(22px, 2.6vw, 32px); }
.defs > div { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 6px clamp(20px, 4vw, 56px); }
.defs dt { font-weight: 650; color: var(--ink); font-size: var(--fs-body); letter-spacing: -.01em; }
.defs dd { color: var(--body); font-size: var(--fs-sm); line-height: 1.66; max-width: 46em; }
.defs dd + dd { margin-top: .5em; }
.defs strong { color: var(--ink); font-weight: 650; }
/* A second dd (the comparison pages: one per side) stacks under the first in
   the text column; without this it auto-places under the dt in the label column. */
@media (min-width: 761px) { .defs dd { grid-column: 2; } }
@media (max-width: 760px) { .defs > div { grid-template-columns: 1fr; } }

.block + .block, .offer + .block { margin-top: clamp(72px, 9vw, 128px); }
/* A smaller h2 for pages whose sections are reference, not argument. */
.h3-lg { font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -.028em; }
.block > .h3-lg + * { margin-top: clamp(28px, 3.4vw, 44px); }
.block .head + .defs { margin-top: clamp(32px, 3.6vw, 48px); }

/* --- /kontakt/ -------------------------------------------------------------- */

.section.page-top { padding-top: clamp(56px, 8vw, 128px); }
.contact { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact h1 { font-size: var(--fs-h1); }
.contact .lead { margin-top: 20px; }
.facts { margin-top: 36px; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--body); }
.facts a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.panel { background: var(--mist); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 48px); }

/* --- forms ----------------------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }

.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid rgba(22, 32, 43, .16);
  border-radius: var(--r-input);
  color: var(--ink);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(22, 32, 43, .32); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, .14);
  outline: none;
}
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--red); }
.textarea { resize: vertical; min-height: 148px; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A4553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 15px center / 16px no-repeat;
}

.form-grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); color: var(--body); }
.consent input { margin-top: 3px; accent-color: var(--blue); width: 20px; height: 20px; flex: none; }
.consent a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Trial, question or a call back, above the fields: a three-part switch
   with one word per part, the chosen part filled in the program's blue, and
   one line under it saying what happens next. The radios stay real inputs
   (keyboard arrows, no-JS form post); only their dots are hidden. */
.intent { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.intent__seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 4px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-input);
}
.intent__opt {
  position: relative; display: grid; place-items: center; min-height: 44px; padding: 6px 8px;
  border-radius: 8px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; text-align: center;
  color: var(--body); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.intent__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.intent__opt:hover { background: var(--blue-wash); color: var(--ink); }
.intent__opt:has(input:checked) { background: var(--blue); color: #fff; }
.intent__opt:has(input:focus-visible) { outline: 3px solid rgba(26, 95, 180, .35); outline-offset: 2px; }
.intent__hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
/* On a phone three equal parts split "Wersja próbna" over two lines while
   "Pytanie" has room to spare; parts sized to their words fit one line. */
@media (max-width: 480px) { .intent__seg { grid-template-columns: repeat(3, auto); } }

/* Fields per intent: contact.js sets data-intent on the form, and a callback
   shows only the name, the number and the message. Without JavaScript every
   field shows. */
.js #contact-form:not([data-intent='callback']) [data-only='callback'],
.js #contact-form[data-intent='callback'] [data-not='callback'] { display: none; }

.form-msg { font-size: var(--fs-sm); padding: 14px 18px; border-radius: var(--r-input); }
.form-msg:empty { display: none; }
.form-msg--ok { background: rgba(38, 120, 63, .09); color: var(--green); }
.form-msg--bad { background: rgba(165, 47, 34, .08); color: var(--red); }
.form-msg a { color: inherit; text-decoration: underline; }

/* Honeypot field on the contact form. Off-screen rather than display:none —
   some bots skip hidden inputs, and the point is that they fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- /bezpieczenstwo/: the data-flow diagram --------------------------------
   What leaves the computer, drawn instead of described. HTML, so it becomes a
   column on a phone instead of an SVG shrunk to 6px text. The dots travel
   only while the diagram is on screen. */

.flowmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .62fr) minmax(0, 1fr);
  padding: clamp(20px, 4vw, 48px);
  background: var(--mist);
  border-radius: var(--r-panel);
}
.node { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); }
.node__h { font-weight: 700; color: var(--ink); font-size: 1.0625rem; letter-spacing: -.01em; }
.node__s { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.node ul { margin-top: 14px; display: grid; gap: 6px; }
.node li { font-size: var(--fs-sm); color: var(--body); padding-left: 16px; position: relative; }
.node li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.node--local { box-shadow: 0 0 0 2px var(--blue); }
.node--local li::before { background: var(--blue); }
.node-stack { display: grid; gap: 14px; align-content: center; }

.wires { display: grid; align-content: center; gap: 10px; padding-inline: clamp(10px, 1.6vw, 22px); }
.wire { position: relative; display: grid; gap: 4px; }
.wire__l { font-size: var(--fs-xs); color: var(--body); text-align: center; line-height: 1.3; }
.wire__line { position: relative; height: 12px; }
.wire__line::before { content: ''; position: absolute; left: 0; right: 7px; top: 5.5px; height: 1.5px; background: var(--blue); }
/* Arrowheads are clipped squares, not border triangles. */
.wire__line::after {
  content: ''; position: absolute; right: 0; top: 1.5px; width: 8px; height: 9px;
  background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.wire--back .wire__line { transform: scaleX(-1); }
.wire__dot { position: absolute; top: 2px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: 0; }
.js .flowmap.is-live .wire__dot { animation: wire-run 2.4s var(--ease-io) infinite; animation-delay: calc(var(--i, 0) * .6s); }
@keyframes wire-run {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0; }
}
.wire--sep { height: 1px; background: var(--line); margin-block: 8px; }

.flowmap + .admin { margin-top: clamp(28px, 3vw, 40px); }
.flowmap__note { grid-column: 1 / -1; margin-top: 28px; font-size: var(--fs-sm); color: var(--body); max-width: 60em; }
.flowmap__note strong { color: var(--ink); }

@media (max-width: 820px) {
  .flowmap { grid-template-columns: 1fr; }
  .wires { padding: 14px 0 14px 24px; gap: 2px; }
  .wire { grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 12px; }
  .wire__l { text-align: left; }
  .wire__line { order: -1; width: 14px; height: 26px; }
  .wire__line::before { left: 6.25px; right: auto; top: 0; bottom: 7px; width: 1.5px; height: auto; }
  .wire__line::after { left: 2.5px; right: auto; top: auto; bottom: 0; width: 9px; height: 8px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .wire--back .wire__line { transform: scaleY(-1); }
  .wire__dot, .wire--sep { display: none; }
}

/* --- legal ------------------------------------------------------------------ */

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 100px; font-size: var(--fs-sm); }
.toc__h { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; }
.toc a {
  display: block; padding: 7px 12px; margin-left: -12px;
  border-radius: 8px;
  color: var(--body); line-height: 1.4;
  transition: color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
.toc a:hover { color: var(--ink); background: var(--mist); }
.toc a.is-current { color: var(--blue-deep); background: var(--blue-wash); font-weight: 600; }
@media (max-width: 900px) { .toc { position: static; } .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }

.legal { max-width: 42em; }
.legal h2 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  letter-spacing: -.022em;
  margin-top: 2.4em; margin-bottom: .6em; scroll-margin-top: 96px;
}
.legal > h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: var(--fs-body); color: var(--body); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: .9em; }
.legal ul { margin-top: .7em; display: grid; gap: .5em; }
.legal ul li { padding-left: 20px; position: relative; }
.legal ul li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.legal strong { color: var(--ink); font-weight: 650; }
.legal__meta { margin-top: 16px; }

/* A legal page as one reading column (/polityka-prywatnosci/): a way back,
   the title, one line, a hairline, then the text at reading size. Smaller
   than the marketing pages on purpose: this is read, not scanned. */
.doc { padding-block: clamp(28px, 4vw, 48px) clamp(72px, 9vw, 128px); }
.doc__in { max-width: calc(48rem + 2 * var(--gutter)); }
.doc__back { font-size: var(--fs-xs); font-weight: 600; color: var(--blue-deep); }
.doc__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc h1 { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(2rem, 3.4vw, 2.5rem); }
.doc__lead { margin-top: 16px; font-size: var(--fs-sm); color: var(--body); line-height: 1.75; }
.doc__body { max-width: none; margin-top: clamp(28px, 3.5vw, 40px); padding-top: clamp(28px, 3.5vw, 40px); box-shadow: inset 0 1px 0 var(--line); }
.doc__body h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.012em; margin-top: 2em; margin-bottom: .55em; }
.doc__body p, .doc__body li { font-size: var(--fs-sm); line-height: 1.75; }

/* A clause the owner still has to supply. Deliberately loud. */
.todo {
  background: rgba(165, 47, 34, .1);
  border-bottom: 1px solid rgba(165, 47, 34, .5);
  color: var(--red);
  padding: 0 4px;
  font-weight: 500;
}

/* --- 404 and form-result pages --------------------------------------------- */

.plain { min-height: 56vh; display: grid; align-content: center; }
.plain .lead { margin-top: 18px; }
.plain .actions { margin-top: 32px; }

/* --- /pobierz/ ------------------------------------------------------------- */

.dl-actions { margin-top: 28px; }
/* Four steps, so .steps' three columns would leave the last one alone on a
   row. Declared after .steps, hence its own breakpoints. */
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps--four { grid-template-columns: 1fr; } }
/* A button or link name as it appears on screen: the thing to look for. */
.ui { font-weight: 650; color: var(--ink); background: var(--mist); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
/* Windows' "unknown publisher" screen is where installs stop, so that step
   sits on the program's blue (Igor, 2026-10-13): the one block on the page
   nobody skims past. With the four steps in one row, negative block margins
   keep its heading level with the others; stacked, they would crowd the
   neighbours. The sides stay inside the column so a phone never scrolls. */
.step-alert { background: var(--blue); border-radius: var(--r-panel); padding: clamp(18px, 2.2vw, 26px); }
@media (min-width: 1081px) { .step-alert { margin-block: calc(-1 * clamp(18px, 2.2vw, 26px)); } }
.step-alert h2, .step-alert h2::before, .step-alert p { color: #fff; }
.step-alert .ui { background: #fff; color: var(--blue-deep); }
.dl-help { margin-top: clamp(40px, 5vw, 64px); }

/* --- footer ---------------------------------------------------------------- */

.foot { background: var(--mist); box-shadow: inset 0 1px 0 var(--line); padding-block: clamp(56px, 7vw, 96px) 32px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
.foot__brand .small { margin-top: 14px; max-width: 30ch; }
.foot__mail { display: inline-block; margin-top: 12px; font-weight: 600; font-size: var(--fs-sm); color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot__h { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.foot li + li { margin-top: 10px; }
.foot nav a { color: var(--body); font-size: var(--fs-sm); transition: color var(--dur-ui) var(--ease); }
.foot nav a:hover { color: var(--blue-deep); }
/* "Ustawienia prywatności" is a button (it opens the consent bar), dressed as its neighbours. */
.foot__button { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--body); cursor: pointer; text-align: left; transition: color var(--dur-ui) var(--ease); }
.foot__button:hover { color: var(--blue-deep); }
.foot__bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 22px;
  box-shadow: inset 0 1px 0 var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between;
  color: var(--muted); font-size: var(--fs-xs);
}

/* --- cookie panel (assets/js/consent.js) ------------------------------------
   A corner panel on wide screens: a full-width bar covered the hero's button
   at 1366x640, while the program window there already runs past the fold.
   On phones, a bar along the bottom edge. Footer's band and hairline either
   way; no shadow (depth belongs to the program window and the F9 key). Below
   the top bar (z-index 50), so the open mobile menu covers it. */
.cookies {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: min(400px, calc(100vw - 48px));
  padding: 20px;
  border-radius: var(--r-panel);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cookies__text { font-size: var(--fs-sm); color: var(--body); line-height: 1.6; }
.cookies__text a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cookies__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookies__actions .btn { flex: 1; padding-inline: 12px; }
@media (max-width: 760px) {
  .cookies {
    left: 0; right: 0; bottom: 0; width: auto;
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: inset 0 1px 0 var(--line-2);
  }
  .cookies__actions { margin-top: 12px; }
}

/* --- still, reduced motion -------------------------------------------------- */

.is-still *, .is-still *::before, .is-still *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .js .chart .chart__bar { transform: none; }
  .js .chart .chart__v { opacity: 1; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* --- /chatgpt-do-opisow-badan/: one table, a tick or a cross per side --------
   The Sonvia column is the only tinted area; no rules between rows. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.versus { width: 100%; max-width: 820px; border-collapse: separate; border-spacing: 0; }
.versus th, .versus td { padding: 16px 8px; text-align: center; vertical-align: middle; }
.versus th[scope="row"] { text-align: left; padding-left: 0; padding-right: clamp(12px, 3vw, 40px); font-weight: 600; color: var(--ink); font-size: var(--fs-body); line-height: 1.35; }
.versus thead th { padding-top: 20px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.versus thead th.us { color: var(--blue-deep); }
.versus tbody td, .versus thead th { width: clamp(76px, 14vw, 140px); }
.versus .us { background: var(--blue-wash); color: var(--blue); }
.versus thead .us { border-radius: var(--r-panel) var(--r-panel) 0 0; }
.versus tbody tr:last-child .us { border-radius: 0 0 var(--r-panel) var(--r-panel); }
.versus td svg { width: 26px; height: 26px; display: inline-block; vertical-align: middle; }
.versus tbody td:not(.us) { color: var(--muted); opacity: .55; }
