/* appteczka.eu — warstwa strony (agent G): tokeny, typografia, nagłówek, sekcje, dokumenty, stopka, makieta telefonu.
   Wnętrze .story (canvasy, .chapter, .pin, .panel, .ph w scenach) i lądowanie w .foot-logo stylizuje story.css.

   Charakter (decyzje):
   - Krój: kontrast w skali, nie w liczbie krojów. Bricolage Grotesque 800 w nagłówkach (h1 do ~5× tekstu),
     Schibsted Grotesk w tekście; etykiety to Schibsted wersalikami z rozstrzeleniem — jak „RANO / WIECZÓR” w aplikacji.
     Godziny i ceny zawsze cyframi tabelarycznymi.
   - Kolor: chłodne, granatowe neutralne tła z aplikacji. Pomarańcz to podpis marki — tylko główne działanie
     i znak „kapsułki” (pół pomarańczowa, pół biała, jak ramię krzyża w sygnecie). Nigdzie indziej.
   - Rytm: powietrzne odstępy między sekcjami, ciasne w grupach (lista, karta, cennik).
   - Wykończenie: płaskie płaszczyzny koloru (karta = jaśniejsza płaszczyzna na tle), bez obramowań kart.
     Cień mają tylko przedmioty: telefon, zrzuty ekranu, widget. Linie włosowe wyłącznie jako separatory list. */

/* ------------------------------------------------------------------ fonty (self-hosted, SIL OFL — licencje obok) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ tokeny */
:root {
  --bg: #F4F6FA; --bg2: #EDF1F8; --surface: #FFFFFF; --line: #E3E9F2;
  --ink: #0B1B33; --ink2: #4A5B73; --brand: #16324F;
  --accent: #F85800;          /* plamy i kapsułka — nie dla tekstu */
  --accent-ink: #C24400;      /* tekst i przyciski na jasnym (5,1:1) */
  --on-accent: #FFFFFF;
  --alarm: #B42318;
  --pill-white: #FFFFFF;
  --plan-hi: #16324F; --plan-hi-ink: #EEF2F8; --plan-hi-ink2: #B9C7DA; --plan-hi-line: rgba(255, 255, 255, .16);
  --check-bg: #FFF4D6; --check-line: #B07800; --check-label: #855A00; --check-ink: #4A3600;
  --phone-a: #22436A; --phone-b: #0B1B33;
  --field-line: #7A8AA0;      /* obrys pól formularza: 3,5:1 na białym (WCAG 1.4.11) */
  --ok: #1D6B45;
  --shadow: 0 40px 80px -42px rgba(11, 27, 51, .55), 0 14px 28px -20px rgba(11, 27, 51, .35);
  --shadow-soft: 0 24px 48px -30px rgba(11, 27, 51, .45);
  --radius: 22px; --radius-s: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* skala płynna: tekst 16→17 px, nagłówki z dużym skokiem */
  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + .35vw, 1.3125rem);
  --step-2: clamp(1.25rem, 1.12rem + .6vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.9vw, 3.75rem);
  --step-5: clamp(2.5rem, 1.55rem + 4.4vw, 5.25rem);

  --gutter: clamp(16px, 4vw, 32px);
  --band: clamp(72px, 10vw, 136px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1B33; --bg2: #0F2340; --surface: #122A47; --line: #22406A;
    --ink: #EEF2F8; --ink2: #A9B6C8; --brand: #9DB8DA;
    --accent-ink: #FF8A3D; --on-accent: #0B1B33;
    --alarm: #FF8A80;
    --pill-white: #EEF2F8;
    --plan-hi: #1B3A5E; --plan-hi-line: rgba(255, 255, 255, .14);
    --check-bg: #33290F; --check-line: #E0A526; --check-label: #E0A526; --check-ink: #F6E7BE;
    --phone-a: #2A4C75; --phone-b: #06101F;
    --field-line: #6F86A6; --ok: #7FD1A5;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 14px 28px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(157, 184, 218, .16);
    --shadow-soft: 0 24px 48px -28px rgba(0, 0, 0, .75);
  }
}

/* ------------------------------------------------------------------ podstawy */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-5); font-weight: 800; line-height: 1.02; letter-spacing: -.032em; }
h2 { font-size: var(--step-4); font-weight: 800; line-height: 1.06; letter-spacing: -.024em; }
h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p, li { text-wrap: pretty; }
time, .price-value, .code { font-variant-numeric: tabular-nums; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(52rem, 100%); }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -200px; z-index: 100; background: var(--brand); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.kicker { font: 700 var(--step--1)/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 1rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink2); max-width: 58ch; margin-top: 1.25rem; }

/* znak kapsułki: pół pomarańczowa, pół biała — jedyny ozdobnik strony */
.ticks { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .625rem; }
.ticks li { position: relative; padding-left: 2rem; max-width: 60ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .52em; width: 18px; height: 9px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); rotate: -30deg; }

/* ------------------------------------------------------------------ przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s, color .2s, translate .2s; }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 1px; }
.btn.small { min-height: 40px; padding: 0 1.05rem; font-size: .9375rem; }
.btn-accent { background: var(--accent-ink); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent-ink) 88%, var(--ink)); }
.btn-quiet { background: var(--surface); color: var(--brand);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.stores.center { justify-content: center; }
.stores.stack { flex-direction: column; align-items: stretch; }
.store { display: inline-flex; flex: 0 1 auto; align-items: center; gap: .75rem; min-width: 200px; min-height: 58px; padding: .5rem 1.25rem .5rem 1rem;
  border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; font: 700 1.1875rem/1.1 var(--display);
  transition: background-color .2s, translate .2s; }
.store:hover { background: var(--brand); translate: 0 -1px; }
.store small { display: block; font: 500 .75rem/1.3 var(--body); letter-spacing: .02em; opacity: .78; }
.store-text { display: block; }
.store-icon { width: 26px; height: 26px; flex: none; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.store.apple .store-icon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z'/%3E%3C/svg%3E"); }
.store.google .store-icon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3.4c0-.9 1-1.5 1.8-1l13.6 7.8c.8.5.8 1.6 0 2.1L6.8 20.1c-.8.5-1.8-.1-1.8-1z'/%3E%3C/svg%3E"); }

.meta-list { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem 1.125rem;
  color: var(--ink2); font-size: var(--step--1); }
/* kropka przed każdą pozycją (także pierwszą): po zawinięciu wiersz nie zaczyna się od osieroconego separatora */
.meta-list li { display: inline-flex; align-items: center; gap: .5rem; }
.meta-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--ink2) 55%, transparent); }
.meta-list.center { justify-content: center; }

.links-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-weight: 700; }
.links-row.center { justify-content: center; }
.links-row a::after { content: " →"; }
.fine { color: var(--ink2); font-size: var(--step--1); max-width: 72ch; margin-top: 1.5rem; }
.center .fine { margin-inline: auto; }

/* ------------------------------------------------------------------ nagłówek */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent); }
.top-in { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 1.375rem; margin-left: .5rem; }
.nav a, .menu-list a { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover, .menu-list a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .625rem; }
.menu { position: static; display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px;
  padding: 0 .95rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 16px; height: 10px; border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu[open] summary { background: var(--surface); }
.menu-list { position: absolute; right: var(--gutter); top: calc(100% - 4px); width: min(17rem, calc(100% - 2 * var(--gutter))); display: grid; padding: .5rem;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); }
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 .875rem; border-radius: 10px; font-size: 1rem; color: var(--ink); }
.menu-list a:hover { background: var(--bg2); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .top-in { gap: .75rem; }
  .top-actions { gap: .5rem; }
}
/* telefony: logo + „Menu” + „Pobierz” muszą się zmieścić w 360 px razem z marginesem 16 px po obu stronach */
@media (max-width: 480px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img { height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
  .menu summary { padding: 0 .8rem; gap: .4rem; }
  .top-actions .btn.small { padding: 0 .9rem; }
}
@media (max-width: 380px) {
  .brand img { height: 26px; }
}

/* menu języków — tylko gdy publikowany jest więcej niż jeden język (build.py: header.top.has-lang).
   Na komputerze osobne <details class="lang"> obok „Pobierz”; do 900 px języki są na dole menu (.menu-lang),
   bo logo, „Menu” i „Pobierz” w dłuższych językach ledwo mieszczą się w 360 px. */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px;
  padding: 0 .85rem; border-radius: 999px; font: 700 .875rem/1 var(--body); letter-spacing: .06em; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--surface); }
.globe { position: relative; width: 15px; height: 15px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: -1.5px 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; translate: 0 -50%; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 11rem; margin: 0; padding: .5rem; list-style: none;
  display: grid; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 .875rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-list a:hover { background: var(--bg2); }
.lang-list a[aria-current], .menu-lang a[aria-current] { font-weight: 700; }
.lang-list a[aria-current]::after, .menu-lang a[aria-current]::after { content: ""; margin-left: auto; padding-left: 0; width: 16px; height: 8px;
  flex: none; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.menu-lang { display: grid; margin-top: .375rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.menu-lang-h { padding: .25rem .875rem .375rem; font: 700 var(--step--1)/1.3 var(--body); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink2); }
.menu-lang a { gap: 1rem; }
@media (max-width: 900px) {
  .lang { display: none; }
}
/* z menu języków: między 901 a ~1180 px długie nazwy sekcji (fr, it, es) nie mieszczą się w jednej linii nawigacji
   (zapas na pasek przewijania ok. 17 px w Windows) — ciaśniej, mniejszy krój, a do 1040 px bez globu i z mniejszym logo */
.has-lang .nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .has-lang .top-in { gap: 1rem; }
  .has-lang .nav { gap: .9rem; margin-left: 0; }
  .has-lang .nav a { font-size: .875rem; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .has-lang .top-in { gap: .75rem; }
  .has-lang .nav { gap: .65rem; }
  .has-lang .nav a { font-size: .8125rem; }
  .has-lang .brand img { height: 30px; }
  .has-lang .lang .globe { display: none; }
}
/* z pozycją „Kontakt” (7 pozycji): najdłuższe nazwy (fr, es) między 901 a 1000 px potrzebują jeszcze ciaśniejszego odstępu */
@media (min-width: 901px) and (max-width: 1000px) {
  .has-lang .top-in { gap: .5rem; }
  .has-lang .nav { gap: .5rem; }
  .has-lang .top-actions { gap: .4rem; }
}
@media (min-width: 901px) and (max-width: 930px) {
  .has-lang .nav a { font-size: .78rem; }
}
/* telefony z menu języków: „Menu” jako sama ikona (nazwa zostaje dla czytników), żeby logo dłuższych nazw
   (Appothèque) nie malało poniżej czytelnej wysokości obok „Télécharger” */
@media (max-width: 480px) {
  .has-lang .menu summary { width: 44px; padding: 0; gap: 0; justify-content: center; }
  .has-lang .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ------------------------------------------------------------------ makieta telefonu (zrzuty Androida 1080×2273 → 660×1389) */
.phone { position: relative; width: min(300px, 72vw); padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, var(--phone-a), var(--phone-b) 60%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.phone::after { content: ""; position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; margin: 9px 0 0 -5.5px;
  border-radius: 50%; background: #050B16; box-shadow: inset 0 0 0 2px #142640; pointer-events: none; }
.phone-screen { display: block; width: 100%; height: auto; border-radius: 35px; background: #F4F6FA; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(32px, 6vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-ph { position: relative; margin: 0; justify-self: center; }
.hero-ph::before { content: ""; position: absolute; inset: 8% -30% 4% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); }
.hero-ph .phone { width: min(320px, 74vw); }

/* linia dawek: dzień 6:00–22:00, kreska co godzinę, kapsułka o porze dawki (pierwsza „wzięta”) */
.dose-line { position: relative; display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px);
  padding-top: 0; height: 84px; }
.dose-line::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 22%, transparent); }
.dl-h { position: relative; display: flex; flex-direction: column; align-items: center; }
.dl-h::before { content: ""; width: 2px; height: 10px; margin-top: 6px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 30%, transparent); }
.dl-dose::before { display: none; }
.dl-pill { display: block; width: 36px; height: 16px; margin-top: 3px; border-radius: 99px; flex: none;
  box-shadow: inset 0 0 0 2px var(--accent); background: var(--bg); }
.dl-dose.is-taken .dl-pill { background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.dl-dose b { margin-top: .625rem; font: 700 .6875rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.dl-dose time { margin-top: .25rem; font: 800 1.125rem/1 var(--display); color: var(--ink); white-space: nowrap; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-ph .phone { width: min(280px, 70vw); }
}

/* ------------------------------------------------------------------ sekcje */
.band { padding-block: var(--band); }
.band.alt { background: var(--bg2); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 1rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-copy h3 { margin-top: 2.5rem; font-size: var(--step-2); }
.split-copy h3 + p { margin-top: .625rem; color: var(--ink2); max-width: 58ch; }

.widget-media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.history-shot { grid-column: 5 / 13; grid-row: 1 / 3; margin: 0; }
.history-shot img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); background: #F4F6FA; }
.widget-shot { grid-column: 1 / 9; grid-row: 2 / 3; margin: 0 0 -28px; z-index: 1; }
.widget-shot img { width: 100%; filter: drop-shadow(0 24px 30px rgba(11, 27, 51, .28)); }

/* cennik */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.plan h3 { font-size: var(--step-2); }
.plan-price { display: flex; align-items: baseline; gap: .75rem; margin-top: 1rem; }
.plan-price .price-value { font: 800 var(--step-4)/1 var(--display); letter-spacing: -.02em; }
.plan-price small { color: var(--ink2); font-size: var(--step--1); }
.plan-premium { background: var(--plan-hi); color: var(--plan-hi-ink); }
.plan-premium h3 { color: var(--plan-hi-ink); }
.plan-note { margin-top: .5rem; color: var(--plan-hi-ink2); }
.plan-premium .ticks li::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.prices { list-style: none; padding: 0; margin-top: 1.75rem; }
.prices li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 0;
  border-top: 1px solid var(--plan-hi-line); }
.price-name { font-weight: 700; }
.price-name small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--plan-hi-ink2); }
.prices .price-value { font: 800 var(--step-2)/1 var(--display); white-space: nowrap; }
.expire { margin-top: 1rem; background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem; align-items: start; }
.expire::before { content: ""; grid-row: 1 / 3; width: 40px; height: 18px; margin-top: .35rem; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }
.expire p { color: var(--ink2); max-width: 70ch; }

/* prywatność */
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.facts li { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.75rem; }
.facts h3 { font-size: var(--step-1); }
.facts p { margin-top: .5rem; color: var(--ink2); font-size: .9688rem; }

/* pytania */
.faq { margin-top: 2rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 1.125rem 2.5rem 1.125rem 0;
  font: 700 var(--step-1)/1.35 var(--display); color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .375rem; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--ink2); border-bottom: 2.5px solid var(--ink2); translate: 0 -70%; rotate: 45deg; transition: rotate .25s, translate .25s; }
.qa[open] summary::after { rotate: 225deg; translate: 0 -25%; }
.qa summary:hover { color: var(--brand); }
.qa p { padding: 0 0 1.25rem; color: var(--ink2); max-width: 65ch; }
.disclaimer-box { margin-top: 2.5rem; padding: 1.125rem 1.375rem; background: var(--surface); border-radius: var(--radius-s);
  font-weight: 500; color: var(--ink); }

/* kontakt — pod pytaniami, na tym samym tle (ciąg dalszy „nie ma tu odpowiedzi?”). Bez JS: same adresy (mailto).
   Temat wybiera się kapsułkami: pusta = niewybrana, pół pomarańczowa = wybrana — jak dawka „wzięta” w linii dawek.
   Wysłana wiadomość kończy się tą samą kapsułką w stanie „wzięta”. */
.band.alt + .band.alt.kontakt { padding-top: 0; }
.kontakt .section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.k-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.kontakt.k-js .k-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.kontakt:not(.k-js) .k-card { display: none; }
.k-card { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3.2vw, 40px); }
.k-form { display: grid; gap: 1.5rem; }
.k-form[hidden], .k-done[hidden], .k-hint[hidden], .k-hint p[hidden], .k-error[hidden] { display: none; }
.k-topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.k-label { display: block; margin: 0 0 .5rem; padding: 0; font: 700 1rem/1.35 var(--body); color: var(--ink); }
.k-opt { font-weight: 400; color: var(--ink2); }
.k-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.k-chip { position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem .5rem .8rem;
  border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 500; line-height: 1.25; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--field-line); transition: box-shadow .15s, background-color .15s; }   /* obrys 3:1 (WCAG 1.4.11) */
.k-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink2); }
.k-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.k-pill { width: 26px; height: 12px; flex: none; border-radius: 99px; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--accent); transition: background .15s; }
.k-chip:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
.k-chip input:checked + .k-pill { background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.k-chip:has(input:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.k-topics.k-invalid .k-chip { box-shadow: inset 0 0 0 1.5px var(--alarm); }
.k-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 1rem; }
.k-field { min-width: 0; }
.k-form input[type="text"], .k-form input[type="email"], .k-form textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: .7rem .95rem; border-radius: 14px;
  border: 1.5px solid var(--field-line); background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--body);
  transition: border-color .15s, box-shadow .15s; }
.k-form textarea { min-height: 11rem; resize: vertical; }
.k-form input:hover, .k-form textarea:hover { border-color: var(--ink2); }
.k-form input:focus, .k-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.k-form input:focus-visible, .k-form textarea:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 14px; }
.k-form [aria-invalid="true"] { border-color: var(--alarm); box-shadow: 0 0 0 1px var(--alarm); }
.k-hint { margin-top: .45rem; color: var(--ink2); font-size: var(--step--1); line-height: 1.45; }
.k-warn { display: grid; gap: .35rem; margin: 0 0 .6rem; padding: .7rem .9rem; border-radius: 12px; background: var(--bg2);
  color: var(--ink); }
.k-warn p:last-child { font-weight: 500; }
.k-error { margin-top: .45rem; color: var(--alarm); font-size: .9375rem; font-weight: 500; line-height: 1.4; text-wrap: wrap; }
.k-under .k-error { flex: 1 1 12rem; }
.k-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: .4em;
  border-radius: 50%; background: var(--alarm); color: var(--surface); font-size: .8em; font-weight: 800; vertical-align: .05em; }
.k-under { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.k-count { margin: .45rem 0 0 auto; color: var(--ink2); font-size: var(--step--1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-count-near { color: var(--ink); font-weight: 700; }
.k-sr, .k-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k-trap { left: -9999px; }
.k-status:empty { display: none; }
.k-status { padding: .9rem 1.1rem; border-radius: 14px; background: var(--bg2); border-left: 4px solid var(--brand); }
.k-status-error { border-left-color: var(--alarm); }
.k-status-ok { border-left-color: var(--ok); }
.k-status-h { font-weight: 700; margin-bottom: .2rem; }
.k-status a, .k-done a { font-weight: 700; overflow-wrap: anywhere; }
.k-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.k-send { min-width: 13.5rem; }
.k-send[aria-disabled="true"] { cursor: progress; translate: none; }
.k-spin { display: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: k-obrot .8s linear infinite; }
.k-sending .k-spin { display: inline-block; }
@keyframes k-obrot { to { rotate: 360deg; } }
.k-privacy { flex: 1 1 14rem; color: var(--ink2); font-size: var(--step--1); line-height: 1.45; }
.k-done { display: grid; justify-items: start; gap: .75rem; padding: .5rem 0; }
.k-done h3 { font-size: var(--step-3); }
.k-done h3:focus { outline: none; }
.k-done h3:focus-visible { outline: none; } /* nagłówek dostaje fokus programowo (czytnik ekranu ogłasza wynik), nie jest w kolejności Tab — ramka zbędna */
.k-done p { max-width: 52ch; color: var(--ink2); }
.k-done b { color: var(--ink); overflow-wrap: anywhere; }
.k-done-pill { width: 56px; height: 24px; border-radius: 99px; rotate: -30deg; margin: .25rem 0 .5rem;
  background: linear-gradient(90deg, var(--accent) 50%, var(--pill-white) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent), 0 10px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.k-addresses h3 { font-size: var(--step-1); margin-bottom: .75rem; }
.k-addr-list { list-style: none; padding: 0; }
.k-addr-list li { display: grid; align-content: start; gap: .1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.k-addr-list li:last-child { border-bottom: 1px solid var(--line); }
.k-addr-label { font: 700 var(--step--1)/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.k-addr-mail { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font: 700 1.125rem/1.25 var(--display);
  overflow-wrap: anywhere; }
.k-addr-desc { color: var(--ink2); font-size: .9375rem; line-height: 1.45; }
.k-note { margin-top: 1rem; color: var(--ink2); font-size: var(--step--1); }
.kontakt:not(.k-js) .k-addr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); column-gap: 2rem; }
.kontakt:not(.k-js) .k-addr-list li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .kontakt.k-js .k-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .k-send { width: 100%; }
  .k-chip { flex: 1 1 auto; }
}

/* pobierz (sekcja) */
.cta h2 { font-size: var(--step-4); }

@media (max-width: 900px) {
  .split, .plans { grid-template-columns: 1fr; }
  .widget-media { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ------------------------------------------------------------------ stopka */
.foot { padding: clamp(48px, 7vw, 80px) 0 clamp(48px, 7vw, 72px); background: var(--bg2); color: var(--ink2); font-size: .9375rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .875rem 3rem; }
.foot-brand { grid-row: 1 / span 6; }
.foot-logo { position: relative; display: inline-block; width: 76px; }
.foot-logo svg { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {   /* granatowa walizka na granatowym tle: obrys jak w logo-ciemny.svg */
  .foot-logo svg path[fill="url(#sg-body)"], .foot-logo svg path[fill="url(#sg-hand)"] {
    stroke: #22406A; stroke-width: 3; vector-effect: non-scaling-stroke; }
}
.disclaimer { color: var(--ink); font-weight: 500; max-width: 62ch; }
.foot-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-contact a { font-weight: 700; }
.foot-small { font-size: var(--step--1); max-width: 80ch; }
@media (max-width: 700px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-brand { grid-row: auto; }
  .foot-contact .sep { display: block; height: 0; overflow: hidden; }
}

/* ------------------------------------------------------------------ dokumenty: pomoc, prywatność, regulamin, usunięcie konta */
.doc { padding: clamp(28px, 5vw, 56px) 0 var(--band); }
.doc-in { width: min(50rem, 100%); }
.crumbs { margin-bottom: 1.5rem; font-weight: 700; font-size: .9375rem; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.prose { color: var(--ink); }
.prose h1 { font-size: var(--step-4); margin-bottom: .75rem; }
.prose h2 { font-size: var(--step-2); margin: 2.75rem 0 .75rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.125rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; margin: 1.75rem 0 .375rem; color: var(--brand); }
.prose p, .prose ul, .prose ol { margin: 0 0 .875rem; max-width: 68ch; }
.prose li { margin: .375rem 0; }
.prose ul, .prose ol { padding-left: 1.375rem; }
.prose ul ul { margin: .375rem 0 .25rem; }
.prose .lead { margin: 0 0 1.75rem; }
.prose .meta, .meta { color: var(--ink2); font-size: .9375rem; }
.prose code { font: .9em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg2); border-radius: 6px; padding: .1em .35em; }
.prose a { font-weight: 500; }
.ramka { background: var(--surface); border-radius: 18px; padding: 1.125rem 1.375rem; margin: 1.25rem 0; }
.ramka > :last-child { margin-bottom: 0; }
.ramka h3:first-child { margin-top: 0; }
.prose .ramka-tytul { font: 700 var(--step--1)/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .375rem; }
.kontakt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.kontakt .ramka { margin: 0; }
.kontakt .ramka p:nth-of-type(1) { font: 700 1.125rem/1.3 var(--display); }
.spis { margin: 1.5rem 0 1rem; }
.spis ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.spis li { margin: 0; }
.spis a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border-radius: 999px; background: var(--surface);
  text-decoration: none; font-weight: 700; font-size: .9375rem; }
.updated { margin-top: 2.5rem; }

/* sprawy otwarte w projektach dokumentów — muszą zostać widoczne, dopóki właściciel ich nie rozstrzygnie */
.do-weryfikacji, .draft-note { background: var(--check-bg); color: var(--check-ink); border-left: 4px solid var(--check-line);
  border-radius: 12px; padding: .875rem 1.125rem; margin: 1rem 0; font-size: .9375rem; max-width: 68ch; }
.do-weryfikacji::before { content: "Do weryfikacji przed publikacją"; display: block; margin-bottom: .375rem;
  font: 700 .6875rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--check-label); }  /* 5,5:1 na jasnym tle ramki (sam --check-line ma 3,5:1) */
.do-weryfikacji p, .do-weryfikacji ul { margin-bottom: .5rem; }
.do-weryfikacji > :last-child { margin-bottom: 0; }
.do-weryfikacji a, .do-weryfikacji b, .do-weryfikacji code { color: inherit; }
.draft-note { font-weight: 500; }

/* ------------------------------------------------------------------ /pobierz */
.hero-get .hero-in { align-items: start; }
.hero-get h1 { max-width: 14ch; }
.qr-card { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.qr-card h2 { font-size: var(--step-2); }
.qr-card > p { margin-top: .375rem; color: var(--ink2); }
.qr-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; }
.qr { margin: 0; display: grid; gap: .625rem; justify-items: start; }
.qr img { width: 148px; height: 148px; padding: 10px; background: #FFFFFF; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.qr figcaption b { display: block; }
.qr figcaption small { color: var(--ink2); font-size: var(--step--1); }
.steps { list-style: none; padding: 0; margin-top: 2rem; counter-reset: krok; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.steps li { counter-increment: krok; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(krok); display: block; font: 800 var(--step-3)/1 var(--display); color: var(--accent-ink); margin-bottom: .75rem; }
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: .5rem; color: var(--ink2); }
@media (max-width: 900px) {
  .qr-card { display: none; }       /* kod QR pomaga tylko przy komputerze */
}

/* ------------------------------------------------------------------ /dolacz */
.invite { padding: clamp(28px, 6vw, 72px) 0 var(--band); }
.invite-card { width: min(34rem, 100%); margin-inline: auto; background: var(--surface); border-radius: 28px;
  padding: clamp(24px, 5vw, 44px); text-align: center; }
.invite-card h1 { font-size: var(--step-3); }
.invite-card > p, #z-kodem > p, #bez-kodu p { color: var(--ink2); margin-top: 1rem; }
.code { margin: 1rem 0 .75rem; padding: 1rem .5rem 1rem calc(.5rem + .16em); border-radius: 14px; background: var(--bg2);
  font: 800 clamp(1.5rem, 7vw, 2.25rem)/1.1 var(--display); letter-spacing: .16em; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.copy-info:empty { display: none; }
.copy-info { font-size: .9375rem; }
.invite-steps { text-align: left; margin: 1.5rem 0 0; padding-left: 1.375rem; color: var(--ink2); display: grid; gap: .375rem; }
.invite .stores { margin-top: 1.75rem; }
.invite .store { justify-content: center; }
.invite .fine { margin-inline: auto; }

/* ------------------------------------------------------------------ 404 */
.nf { padding: clamp(48px, 9vw, 120px) 0 var(--band); }
.nf h1 { font-size: var(--step-4); max-width: 18ch; }
.nf-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ------------------------------------------------------------------ ruch */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .btn, .store, .qa summary::after, .k-chip, .k-pill, .k-form input, .k-form textarea { transition: none; }
  .k-spin { animation-duration: 2.4s; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ------------------------------------------------------------------ druk (głównie dokumenty) */
@media print {
  :root { --bg: #FFFFFF; --bg2: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --ink2: #222222; --brand: #000000; --line: #999999; }
  body { font-size: 11pt; background: #FFFFFF; color: #000000; }
  .top, .skip, .crumbs, .foot-nav, .foot-brand, .menu, .lang, .story-bg, .story-pill, .stores, .draft-note { display: none !important; }
  .doc { padding: 0; }
  .doc-in, .wrap { width: auto; padding: 0; }
  .prose h2 { break-after: avoid; }
  .prose p, .prose li { max-width: none; }
  .ramka { border: 1px solid #999999; }
  .do-weryfikacji { border: 1px solid #000000; background: #FFFFFF; color: #000000; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .foot { background: #FFFFFF; padding: 12pt 0 0; }
}
