/* ClinHub — strona projektu (clinhub.pl). Bez frameworka, bez builda.
   Paleta z app/lib/core/theme/tokens.dart; kontrasty tekstu ≥ 4.5:1 (WCAG AA). */

:root {
  color-scheme: light dark;

  --petrol-50: #e8f4f6;
  --petrol-100: #cde8ec;
  --petrol-200: #9dd0d9;
  --petrol-300: #6cc4d6;
  --petrol-400: #3596a8;
  --petrol-500: #167b8f;
  --petrol-600: #0b5f73;
  --petrol-700: #094c5c;
  --petrol-800: #083b48;
  --petrol-900: #032a33;
  --coral: #f0876a;
  --coral-light: #f59e82;
  --ink: #12232b;

  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-2: #f1f4f5;
  --tint: #eef6f7;
  --outline: #dde4e7;
  --outline-strong: #cbd3d7;
  --text: #151c20;
  --muted: #4f5d66;
  --primary: var(--petrol-600);
  --primary-strong: var(--petrol-700);
  --on-primary: #ffffff;
  --primary-soft: var(--petrol-50);
  --primary-soft-text: var(--petrol-700);
  --header-bg: rgb(247 249 250 / 0.82);
  --shadow-sm: 0 1px 2px rgb(18 35 43 / 0.06), 0 1px 1px rgb(18 35 43 / 0.04);
  --shadow-md: 0 12px 32px -12px rgb(11 95 115 / 0.22), 0 2px 6px rgb(18 35 43 / 0.06);
  --shadow-lg: 0 40px 80px -24px rgb(3 42 51 / 0.45), 0 12px 24px -8px rgb(3 42 51 / 0.2);
  --hero-grad-1: rgb(108 196 214 / 0.35);
  --hero-grad-2: rgb(240 135 106 / 0.16);
  --focus: #0b5f73;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1215;
    --surface: #131b1f;
    --surface-2: #1a2429;
    --tint: #10181c;
    --outline: #24313a;
    --outline-strong: #333f46;
    --text: #e6ecee;
    --muted: #a9b5bb;
    --primary: var(--petrol-300);
    --primary-strong: #8fd4e2;
    --on-primary: var(--petrol-900);
    --primary-soft: #0e2b33;
    --primary-soft-text: #9dd0d9;
    --header-bg: rgb(12 18 21 / 0.8);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 40px 80px -24px rgb(0 0 0 / 0.8), 0 12px 24px -8px rgb(0 0 0 / 0.5);
    --hero-grad-1: rgb(22 123 143 / 0.35);
    --hero-grad-2: rgb(240 135 106 / 0.1);
    --focus: #6cc4d6;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-primary); }

.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 54px; padding: 0.85rem 1.5rem; font-size: 1.0625rem; }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px rgb(11 95 115 / 0.7); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--outline-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #ffffff; color: var(--petrol-700); }
.btn-light:hover { background: var(--petrol-50); color: var(--petrol-800); }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.55); }
.btn-outline-light:hover { border-color: #ffffff; background: rgb(255 255 255 / 0.08); color: #ffffff; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--outline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: inline-flex; color: var(--ink); border-radius: 8px; }
.brand .wordmark { width: 128px; height: auto; display: block; }
@media (prefers-color-scheme: dark) { .brand { color: #f1f4f5; } }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 550;
  font-size: 0.9625rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface-2); color: var(--primary); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--outline-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 899px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; row-gap: 0.5rem; }
  .header-cta { order: 1; margin-left: auto; }
  .nav-toggle { display: inline-flex; order: 2; }
  .site-nav { display: none; order: 3; width: 100%; margin: 0; padding: 0 0 0.75rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; border-radius: 12px; padding-inline: 0.75rem; }
}
@media (max-width: 400px) {
  .brand .wordmark { width: 108px; }
  .header-cta { padding-inline: 0.85rem; font-size: 0.875rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 70% at 85% 30%, var(--hero-grad-1), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, var(--hero-grad-2), transparent 70%),
    linear-gradient(180deg, var(--tint), var(--bg));
}
.hero::before {
  /* delikatna siatka „milimetrowa” */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(11 95 115 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(11 95 115 / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    background-image:
      linear-gradient(to right, rgb(108 196 214 / 0.07) 1px, transparent 1px),
      linear-gradient(to bottom, rgb(108 196 214 / 0.07) 1px, transparent 1px);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-soft-text);
  font-size: 0.875rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgb(240 135 106 / 0.2);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.35rem, 5.6vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text);
}
.lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9625rem;
  font-weight: 550;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { width: 18px; height: 18px; color: var(--primary); stroke-width: 2.4; }

/* telefony w hero */
.hero-visual {
  position: relative;
  height: clamp(440px, 62vw, 620px);
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.glow {
  position: absolute;
  inset: 12% 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(108 196 214 / 0.55), transparent);
  filter: blur(20px);
}
@media (prefers-color-scheme: dark) {
  .glow { background: radial-gradient(closest-side, rgb(22 123 143 / 0.55), transparent); }
}

.phone {
  margin: 0;
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b363c, #0b1114 40%, #1d272c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 0.12);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #1d272c;
}
.phone::before { right: -3px; top: 22%; height: 11%; }
.phone::after { left: -3px; top: 18%; height: 7%; box-shadow: 0 46px 0 #1d272c; }
.phone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 38px;
  background: #fff;
}

.phone-front {
  position: absolute;
  width: clamp(210px, 30vw, 300px);
  right: 8%;
  top: 0;
  z-index: 2;
}
.phone-back {
  position: absolute;
  width: clamp(180px, 25vw, 256px);
  left: 6%;
  top: 9%;
  z-index: 1;
  transform: rotate(-6deg);
  opacity: 0.97;
}
@media (min-width: 960px) {
  .phone-front { width: 300px; }
  .phone-back { width: 256px; }
}

.float-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}
.float-card .icon { width: 18px; height: 18px; color: var(--primary); }
.float-live { left: 0; bottom: 16%; }
.float-safe { right: 0; bottom: 4%; }
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #d92d20;
  box-shadow: 0 0 0 0 rgb(217 45 32 / 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0.45); }
  70% { box-shadow: 0 0 0 10px rgb(217 45 32 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(217 45 32 / 0); }
}
@media (max-width: 479px) {
  .float-live { bottom: 10%; }
  .float-safe { display: none; }
}

/* ---------- Pasek faktów ---------- */
.facts {
  border-block: 1px solid var(--outline);
  background: var(--surface);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  padding-block: 1.5rem;
}
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: flex; align-items: center; gap: 0.75rem; }
.fact .icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.fact p { display: flex; flex-direction: column; line-height: 1.3; }
.fact strong { font-size: 0.975rem; }
.fact span { font-size: 0.875rem; color: var(--muted); }

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kicker {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 740;
  letter-spacing: -0.03em;
}
.section-lead {
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
}

/* ---------- Karty ---------- */
.cards { display: grid; gap: 1rem; }
@media (min-width: 600px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--outline-strong); }
.card h3 { font-size: 1.125rem; font-weight: 680; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.card p { font-size: 0.975rem; color: var(--muted); line-height: 1.6; }

.feature-icon,
.module-icon,
.persona-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-icon .icon,
.module-icon .icon,
.persona-icon .icon { width: 26px; height: 26px; }

.module-featured {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(108 196 214 / 0.18), transparent 60%),
    var(--surface);
  border-color: var(--petrol-200);
}
@media (prefers-color-scheme: dark) { .module-featured { border-color: var(--petrol-700); } }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tags span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}
.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

.persona-icon { border-radius: 50%; }

/* ---------- Galeria ekranów ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
  max-width: 1080px;
  margin-inline: auto;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.gallery li { display: flex; flex-direction: column; align-items: center; }
.phone-sm { width: 100%; max-width: 236px; padding: 7px; border-radius: 36px; }
.phone-sm img { border-radius: 30px; }
@media (min-width: 900px) {
  .gallery li:nth-child(even) { transform: translateY(2.5rem); }
}
.gallery-caption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.gallery-caption strong { display: block; color: var(--text); font-size: 1rem; }

.device-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: clamp(4rem, 9vw, 7rem);
}
@media (min-width: 960px) { .device-split { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.device-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 720; letter-spacing: -0.025em; }
.device-copy > p { margin-top: 1rem; color: var(--muted); }
.checks { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checks .icon {
  width: 24px; height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  stroke-width: 2.6;
}

.browser {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--outline);
}
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--outline-strong); }
.browser-bar span:first-child { background: #f0876a; }
.browser-bar em {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-style: normal;
  font-size: 0.8125rem;
}
.browser img { width: 100%; }

/* ---------- Kroki ---------- */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.step {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline);
}
.step-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--outline);
}
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.4rem;
    right: -1.5rem;
    width: 1.5rem;
    border-top: 2px dashed var(--outline-strong);
  }
}
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 24px -12px rgb(11 95 115 / 0.8);
}
.step-icon .icon { width: 28px; height: 28px; }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* ---------- Bezpieczeństwo (zawsze ciemne) ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  color: #e6f2f4;
  background:
    radial-gradient(50% 60% at 90% 0%, rgb(53 150 168 / 0.35), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(22 123 143 / 0.22), transparent 70%),
    linear-gradient(160deg, #083b48, #032a33 60%, #021d24);
}
.section-dark .kicker { color: #9dd0d9; }
.section-dark h2 { color: #ffffff; }
.section-dark .section-lead { color: #c2dde2; }
.security-grid {
  display: grid;
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(157 208 217 / 0.18);
  border: 1px solid rgb(157 208 217 / 0.18);
}
@media (min-width: 640px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.security-grid li {
  padding: 1.75rem 1.5rem;
  background: rgb(3 42 51 / 0.92);
}
.security-grid .icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgb(108 196 214 / 0.14);
  color: #9de0ee;
  margin-bottom: 1rem;
}
.security-grid h3 { font-size: 1.125rem; font-weight: 680; color: #ffffff; margin-bottom: 0.5rem; }
.security-grid p { font-size: 0.975rem; color: #c2dde2; }

/* ---------- Pobierz ---------- */
.download {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .download { grid-template-columns: 1.4fr 0.6fr; } }
.download-copy h2 { margin-bottom: 1rem; }
.download-copy > p { color: var(--muted); max-width: 38rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.55rem 1.25rem 0.55rem 1rem;
  border-radius: 14px;
  background: #0c1215;
  color: #ffffff;
  border: 1px solid #0c1215;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { color: #ffffff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.store-badge .icon { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.125rem; font-weight: 650; }
.store-badge small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.store-badge-web { background: var(--surface); color: var(--text); border-color: var(--outline-strong); }
.store-badge-web:hover { color: var(--primary); }
@media (prefers-color-scheme: dark) {
  .store-badge { background: #000; border-color: #3a474e; }
  .store-badge-web { background: var(--surface); }
}
.store-note { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.store-note.is-highlight { color: var(--text); font-weight: 600; }
.download-visual { display: none; }
@media (min-width: 900px) {
  .download-visual { display: grid; place-items: center; }
  .download-logo {
    width: 220px; height: 220px;
    filter: drop-shadow(0 30px 40px rgb(11 95 115 / 0.35));
    transform: rotate(-8deg);
  }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--outline);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--outline-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  display: block;
  list-style: none;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.section-contact { padding-top: 0; }
.contact-box {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(108 196 214 / 0.2), transparent 60%),
    radial-gradient(40% 80% at 0% 100%, rgb(3 42 51 / 0.45), transparent 60%),
    linear-gradient(135deg, #0b5f73, #083b48);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .contact-box { grid-template-columns: 1.2fr 1fr; } }
.contact-box h2 { color: #ffffff; }
.contact-box p { margin-top: 0.75rem; color: #d8eef2; font-size: 1.0625rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .contact-actions { justify-content: flex-end; } }
@media (max-width: 479px) { .contact-actions .btn { width: 100%; } }

/* ---------- Stopka ---------- */
.site-footer {
  border-top: 1px solid var(--outline);
  background: var(--surface);
  padding-top: 3rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { .footer-brand { color: #f1f4f5; } }
.footer-brand .wordmark { width: 140px; height: auto; display: block; }
.footer-brand p { margin-top: 0.75rem; color: var(--muted); max-width: 30rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-block: 1.25rem 1.75rem;
  color: var(--muted);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--outline);
}
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.to-top:hover { color: var(--primary); }

/* ---------- Strony prawne (privacy/terms) ---------- */
.legal-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(60% 90% at 90% 0%, var(--hero-grad-1), transparent 70%),
    linear-gradient(180deg, var(--tint), var(--bg));
  border-bottom: 1px solid var(--outline);
}
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 750; letter-spacing: -0.03em; }
.legal-hero p { margin-top: 0.75rem; color: var(--muted); }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem);
}
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; } }
.toc {
  align-self: start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--outline);
  font-size: 0.9375rem;
}
@media (min-width: 1000px) { .toc { position: sticky; top: 92px; } }
.toc h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.toc ol { padding-left: 1.25rem; display: grid; gap: 0.15rem; }
.toc a { display: inline-block; padding-block: 0.3rem; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.prose { max-width: 46rem; }
.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.0625rem; font-weight: 680; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--primary); }
.prose code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.9em;
}
.prose .note {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  color: var(--text);
}
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--outline); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--surface); }
.prose th, .prose td { padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--outline); }
.prose th { background: var(--surface-2); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.legal-meta { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--outline); color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 599px) {
  .table-wrap { border: 0; overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { margin-bottom: 0.75rem; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--surface); }
  .prose td { border-bottom: 1px solid var(--outline); }
  .prose td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
  .prose td:first-child { font-weight: 650; }
  .prose tr td:last-child { border-bottom: 0; }
}
