/* Fonty (@font-face) są w fonts.css - generuje go dev/embed-fonts.py. */

/* ==== Tokeny ================================================================================================ */

:root {
  color-scheme: light;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);

  --bg: #f5f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --border: #e2e7f0;
  --border-strong: #cbd3e1;
  --text: #0f172a;
  --text-muted: #5a6478;
  --text-soft: #8590a6;

  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef0ff;
  --primary-ring: rgb(79 70 229 / 0.28);
  --accent: #06b6d4;
  --success: #059669;
  --success-soft: #e7f8f1;
  --warning: #c26a05;
  --warning-soft: #fff4e5;
  --danger: #dc2626;
  --danger-soft: #fdecec;

  /* Hero jest ciemny w obu motywach. */
  --hero-bg: #0b1020;
  --hero-text: #eef1fb;
  --hero-muted: #a8b2cc;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow: 0 10px 30px -12px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 30px 80px -20px rgb(2 6 23 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0f1e;
    --bg-alt: #0d1426;
    --surface: #111a31;
    --surface-2: #17223d;
    --border: #243152;
    --border-strong: #34446b;
    --text: #e8ecf6;
    --text-muted: #a0abc4;
    --text-soft: #7581a0;

    --primary: #8b93ff;
    --primary-strong: #a5abff;
    --primary-soft: rgb(139 147 255 / 0.13);
    --primary-ring: rgb(139 147 255 / 0.35);
    --success: #34d399;
    --success-soft: rgb(52 211 153 / 0.12);
    --warning: #fbbf24;
    --warning-soft: rgb(251 191 36 / 0.12);
    --danger: #f87171;
    --danger-soft: rgb(248 113 113 / 0.12);

    --hero-bg: #070b17;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.07);
  }
}

/* ==== Podstawy ============================================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: var(--primary); }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.icon {
  display: inline-flex;
  flex: none;
  width: 1.15em;
  height: 1.15em;
}
.icon svg { width: 100%; height: 100%; }
.icon--large { width: 40px; height: 40px; }

/* ==== Przyciski ============================================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:disabled { cursor: progress; opacity: 0.75; }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn--large { min-height: 54px; padding: 0 28px; font-size: 1.05rem; border-radius: 14px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #7c3aed 100%);
  box-shadow: 0 8px 20px -8px rgb(79 70 229 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.18);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgb(79 70 229 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.2);
}
.btn--primary:active:not(:disabled) { transform: translateY(0); }

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }

.btn--ghost-light {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
}
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.16); }

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
}
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn--danger {
  color: #fff;
  background: #dc2626; /* stały odcień: --danger w trybie ciemnym jest za jasny pod biały tekst */
  box-shadow: 0 8px 20px -10px rgb(220 38 38 / 0.6);
}
.btn--danger:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner--large {
  width: 48px;
  height: 48px;
  border-width: 4px;
  border-color: var(--primary-soft);
  border-top-color: var(--primary);
}

/* ==== Nagłówek strony ======================================================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 16 32 / 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  /* Bez zwężania: przy braku miejsca nazwa nachodziłaby na przełącznik języka. */
  flex-shrink: 0;
}
.brand__mark { display: inline-flex; flex-shrink: 0; }
.brand__mark svg { width: 32px; height: 32px; }
.brand__name { font-weight: 500; }
.brand__name strong {
  font-weight: 800;
  /* jak w logo: "Stron" w gradiencie marki */
  background: linear-gradient(90deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__tld { font-weight: 500; opacity: 0.6; }

.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__nav a:not(.btn) {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.topbar__nav a:not(.btn):hover { color: #fff; }
.topbar__nav a { white-space: nowrap; }
/* Przełącznik wersji językowej: zawsze widoczny, na telefonie bez ikony. */
.topbar__nav a.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s, background-color 0.2s;
}
.topbar__nav a.lang-switch:hover { background: rgb(255 255 255 / 0.08); }
.lang-switch__icon { display: inline-flex; width: 16px; height: 16px; }
/* Konto: ikona + „Zaloguj się” albo imię zalogowanego; na telefonie tylko w stopce. */
.topbar__nav a.nav-account { display: inline-flex; align-items: center; gap: 7px; }
.nav-account__icon { display: inline-flex; width: 17px; height: 17px; }
.nav-account__label { max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
.topbar__nav a.nav-account.is-logged-in { color: #fff; }

/* ==== Hero ================================================================================================== */

.hero {
  position: relative;
  /* clip, nie hidden: hidden tworzy kontener przewijania i psuje przyklejony pasek przycisków kreatora. */
  overflow: clip;
  background: var(--hero-bg);
  color: var(--hero-text);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 10% 10%, rgb(99 102 241 / 0.35), transparent 70%),
    radial-gradient(500px 380px at 85% 20%, rgb(6 182 212 / 0.22), transparent 70%),
    radial-gradient(700px 500px at 60% 110%, rgb(124 58 237 / 0.3), transparent 70%);
}
.hero__glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 40% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 20%, transparent 75%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
  padding-block: 80px 104px;
}
.hero__copy { padding-top: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: #c7cdf7;
  font-size: 0.85rem;
  font-weight: 600;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgb(52 211 153 / 0.2);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.gradient-text {
  background: linear-gradient(90deg, #a5b4fc 0%, #67e8f9 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--hero-muted);
  font-size: 1.125rem;
}
.hero__points {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero__points li {
  position: relative;
  padding-left: 32px;
  color: #d9def0;
  font-weight: 500;
}
.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(52 211 153 / 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==== Kreator =============================================================================================== */

.wizard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.wizard:focus { outline: none; }
.wizard--status { justify-content: center; }

.stepper {
  padding: 22px 28px 0;
}
.stepper__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stepper__item,
.stepper__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
}
.stepper__link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
}
.stepper__link:hover .stepper__label { color: var(--primary); }
.stepper__dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}
.stepper__dot .icon { width: 15px; height: 15px; }
.stepper__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.stepper__item--current { color: var(--text); }
.stepper__item--current .stepper__dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px var(--primary-soft);
}
.stepper__item--done { color: var(--text-muted); }
.stepper__item--done .stepper__dot {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.stepper__bar {
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.stepper__fill {
  display: block;
  height: 100%;
  width: calc(12.5% + var(--progress, 0) * 87.5%);
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.45s var(--ease);
}

.wizard__form {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.wizard__body {
  flex: 1;
  padding: 28px 28px 8px;
}
.wizard__body--enter { animation: step-in 0.35s var(--ease); }
.wizard__kicker {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wizard__title {
  margin-top: 6px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 750;
}
.wizard__title:focus { outline: none; }
.wizard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface);
}
.wizard__footer .btn--primary { min-width: 150px; }

.step { display: grid; gap: 24px; margin-top: 18px; }
.step__lead { color: var(--text-muted); }
.step__note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.step__note .icon { margin-top: 0.2em; color: var(--primary); }
.step__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.875rem;
}
.step__examples li { display: inline-flex; align-items: center; gap: 6px; }
.step__examples .icon { color: var(--success); width: 14px; height: 14px; }

/* Pole adresu */
.field__label { display: block; margin-bottom: -14px; font-weight: 600; font-size: 0.95rem; }
.field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}
.field--invalid,
.field--invalid:focus-within { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field__icon { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--text-soft); pointer-events: none; }
.field__input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px 0 50px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 500;
}
.field__input:focus { outline: none; }
.field__input::placeholder { color: var(--text-soft); font-weight: 400; }
.field__hint { margin-top: -14px; color: var(--text-soft); font-size: 0.875rem; }

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-error .icon { margin-top: 0.15em; }
/* Informacja bez błędu (np. powrót z anulowanej płatności). */
.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-notice .icon { margin-top: 0.15em; }
.form-notice--info { background: var(--accent-soft, rgb(37 99 235 / 0.1)); color: var(--text); }
.form-notice--info .icon { color: var(--accent, #2563eb); }
.field + .form-error { margin-top: -12px; }
/* Podpowiedź literówki w adresie e-mail (krok 3 kreatora) - tylko, gdy jest co podpowiedzieć. */
.email-suggestion[hidden] { display: none; }
.email-suggestion .link-button { display: inline; padding: 0; overflow-wrap: anywhere; }

/* Grupy opcji */
.group { position: relative; display: grid; gap: 12px; }
.group__action { position: absolute; top: -3px; right: 0; }
/* float zamienia legend w zwykły element siatki - inaczej ignoruje odstępy grupy. */
.group__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: left;
  font-weight: 700;
  font-size: 0.95rem;
}
.group__legend .icon { color: var(--primary); }

.option {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--border-strong); }
.option:has(.option__input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.option:has(.option__input:focus-visible) { box-shadow: 0 0 0 4px var(--primary-ring); }
.option:active:not(.option--disabled) { transform: scale(0.99); }
.option--disabled { cursor: not-allowed; opacity: 0.55; }
.option--disabled:hover { border-color: var(--border); }
.option__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.option__title { font-weight: 650; line-height: 1.3; }
.option__desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }

/* Aspekty */
.aspect-grid { display: grid; gap: 10px; }
.option--aspect {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
/* Cena obszaru przy wybranym progu podstron - przed polem wyboru. */
.option__amount { color: var(--text); font-size: 0.95rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.option:has(.option__input:checked) .option__amount { color: var(--primary); }
.option__amount:empty { display: none; }
.option__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tone-soft, var(--primary-soft));
  color: var(--tone, var(--primary));
}
.option__icon .icon { width: 22px; height: 22px; }
.option__text { display: grid; gap: 2px; }
.option__check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border-strong);
  border-radius: 7px;
  color: transparent;
  transition: all 0.2s var(--ease);
}
.option__check .icon { width: 15px; height: 15px; }
.option:has(.option__input:checked) .option__check {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.option__icon--seo, .feature__icon--seo { --tone: #2563eb; --tone-soft: rgb(37 99 235 / 0.12); }
.option__icon--security, .feature__icon--security { --tone: #059669; --tone-soft: rgb(5 150 105 / 0.12); }
.option__icon--performance, .feature__icon--performance { --tone: #d97706; --tone-soft: rgb(217 119 6 / 0.13); }
.option__icon--accessibility, .feature__icon--accessibility { --tone: #7c3aed; --tone-soft: rgb(124 58 237 / 0.12); }
.option__icon--spelling, .feature__icon--spelling { --tone: #db2777; --tone-soft: rgb(219 39 119 / 0.11); }
.option__icon--privacy, .feature__icon--privacy { --tone: #0d9488; --tone-soft: rgb(13 148 136 / 0.12); }
.option__icon--conversion, .feature__icon--conversion { --tone: #e11d48; --tone-soft: rgb(225 29 72 / 0.11); }
.option__icon--content, .feature__icon--content { --tone: #4f46e5; --tone-soft: rgb(79 70 229 / 0.12); }
.option__icon--ai_readiness, .feature__icon--ai_readiness { --tone: #c026d3; --tone-soft: rgb(192 38 211 / 0.11); }
.option__icon--domain, .feature__icon--domain { --tone: #0284c7; --tone-soft: rgb(2 132 199 / 0.12); }
.option__icon--social_media, .feature__icon--social_media { --tone: #db2777; --tone-soft: rgb(219 39 119 / 0.11); }
.option__icon--ecommerce, .feature__icon--ecommerce { --tone: #ea580c; --tone-soft: rgb(234 88 12 / 0.12); }
@media (prefers-color-scheme: dark) {
  .option__icon--seo, .feature__icon--seo { --tone: #60a5fa; --tone-soft: rgb(96 165 250 / 0.14); }
  .option__icon--security, .feature__icon--security { --tone: #34d399; --tone-soft: rgb(52 211 153 / 0.13); }
  .option__icon--performance, .feature__icon--performance { --tone: #fbbf24; --tone-soft: rgb(251 191 36 / 0.13); }
  .option__icon--accessibility, .feature__icon--accessibility { --tone: #a78bfa; --tone-soft: rgb(167 139 250 / 0.14); }
  .option__icon--spelling, .feature__icon--spelling { --tone: #f472b6; --tone-soft: rgb(244 114 182 / 0.13); }
  .option__icon--privacy, .feature__icon--privacy { --tone: #2dd4bf; --tone-soft: rgb(45 212 191 / 0.13); }
  .option__icon--conversion, .feature__icon--conversion { --tone: #fb7185; --tone-soft: rgb(251 113 133 / 0.13); }
  .option__icon--content, .feature__icon--content { --tone: #818cf8; --tone-soft: rgb(129 140 248 / 0.14); }
  .option__icon--ai_readiness, .feature__icon--ai_readiness { --tone: #e879f9; --tone-soft: rgb(232 121 249 / 0.13); }
  .option__icon--domain, .feature__icon--domain { --tone: #38bdf8; --tone-soft: rgb(56 189 248 / 0.13); }
  .option__icon--social_media, .feature__icon--social_media { --tone: #f472b6; --tone-soft: rgb(244 114 182 / 0.13); }
  .option__icon--ecommerce, .feature__icon--ecommerce { --tone: #fb923c; --tone-soft: rgb(251 146 60 / 0.13); }
}

/* Liczba podstron */
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.segmented.segmented--two { grid-template-columns: repeat(2, 1fr); }
.option--segment {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  text-align: center;
}
.option--segment .option__title { font-size: 0.9rem; }
/* Próg zalecany po policzeniu podstron w kroku 1 - etykieta na górnej krawędzi. */
.segmented--hinted { margin-top: 8px; row-gap: 14px; }
.option__recommended {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.option--segment .option__desc { font-size: 0.8rem; }
.option__price { margin-top: 2px; color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.option__price:empty { display: none; }
/* Cena na żywo w kroku "Zakres". */
.scope-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-soft);
}
.scope-price[hidden] { display: none; }
.scope-price__label { font-weight: 700; }
.scope-price__value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; white-space: nowrap; }
.scope-price__value small { color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }
.scope-price__note { flex-basis: 100%; color: var(--text-muted); font-size: 0.85rem; }
/* Pod ceną w kroku "Zakres": promocja "ponów audyt" - konkretna cena ponowienia i termin. */
.repeat-promo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--success);
  border-radius: var(--radius);
  background: var(--success-soft);
  font-size: 0.9rem;
}
.repeat-promo[hidden] { display: none; }
.repeat-promo__icon { flex: none; color: var(--success); }
.repeat-promo__body { display: flex; flex-direction: column; gap: 2px; }
.repeat-promo__title strong { color: var(--success); font-size: 1rem; }
.repeat-promo__title s { color: var(--text-muted); }
.repeat-promo__login { color: var(--text-muted); }
/* Łączna kwota na dole podsumowania (płatny audyt). */
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-soft);
}
.summary-total__label { font-weight: 700; }
.summary-total__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; white-space: nowrap; }
.summary-total__value small { color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }

/* Języki */
.language-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.option--language {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-width: 0;
}
.option--language .option__title { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option__code {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.option:has(.option__input:checked) .option__code { background: var(--primary); color: #fff; }

/* Formaty */
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.option--format { display: grid; gap: 4px; align-content: start; padding: 14px; }
.option__badge-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.option__ext { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Podsumowanie */
.summary {
  display: grid;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.summary__row + .summary__row { border-top: 1px solid var(--border); }
.summary dt { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.summary dd { margin: 0; min-width: 0; font-weight: 600; }
.summary__url { display: block; overflow-wrap: anywhere; }
/* Brak adresu e-mail w podsumowaniu - raport nie pójdzie mailem. */
.summary__missing { color: var(--warning); }
.summary__edit .icon { width: 14px; height: 14px; }
.summary--readonly .summary__row { grid-template-columns: 110px 1fr; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==== Stan audytu =========================================================================================== */

.status {
  --tone: var(--primary);
  --tone-soft: var(--primary-soft);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 28px 32px;
  text-align: center;
  animation: step-in 0.4s var(--ease);
}
.status--queued, .status--awaiting_payment { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.status--done { --tone: var(--success); --tone-soft: var(--success-soft); }
.status--failed, .status--rejected, .status--payment_expired { --tone: var(--danger); --tone-soft: var(--danger-soft); }

.status__head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.status__elapsed { color: var(--text-soft); font-variant-numeric: tabular-nums; font-size: 0.9rem; font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 0.8rem;
  font-weight: 700;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--running .pill__dot, .pill--queued .pill__dot, .pill--awaiting_payment .pill__dot { animation: blink 1.4s ease-in-out infinite; }

.status__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 8px 0 4px;
}
.status__orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 35%, transparent);
}
.status__ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px solid var(--tone);
  opacity: 0;
}
.status--running .status__ring,
.status--queued .status__ring,
.status--awaiting_payment .status__ring { animation: ripple 2.6s var(--ease) infinite; }
.status--running .status__ring--2,
.status--queued .status__ring--2,
.status--awaiting_payment .status__ring--2 { animation-delay: 1.3s; }
.status--running .status__orb .icon { animation: scan 2.4s ease-in-out infinite; }
.status--done .status__orb { animation: pop 0.5s var(--ease); }

.status__host {
  max-width: 100%;
  color: var(--text-muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.status__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; }
.status__title:focus { outline: none; }
.status__text { max-width: 30em; color: var(--text-muted); }
.status__payment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 32em;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}
.status__payment .icon { flex: none; margin-top: 0.15em; }
/* Gotowy raport bez maila - pobierz teraz. */
.status__notice { max-width: 32em; text-align: left; }
.status__notice .icon { flex: none; }
.status__warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 600;
}

.progress {
  position: relative;
  width: min(320px, 100%);
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  animation: indeterminate 1.6s var(--ease) infinite;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.timeline__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 0.85rem;
}
.timeline__item::before {
  content: '';
  position: absolute;
  top: 7px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.timeline__item:first-child::before { display: none; }
.timeline__item--done::before { background: var(--tone); }
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}
.timeline__item--done .timeline__dot { border-color: var(--tone); background: var(--tone); box-shadow: 0 0 0 4px var(--tone-soft); }
.timeline__label { font-weight: 600; }
.timeline__time { color: var(--text-soft); font-variant-numeric: tabular-nums; }

.status__params { width: 100%; text-align: left; }

.status__details {
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
.status__details summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
.status__details code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.share {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  text-align: left;
}
.share__label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.875rem; }
.share__label--warning { align-items: flex-start; color: var(--warning); font-weight: 500; }
.share__label--warning .icon { flex: none; margin-top: 0.15em; }
.share__row { display: flex; gap: 8px; }
.share__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==== Sekcje ================================================================================================ */

.section { padding-block: 96px; }
.section--alt { background: var(--bg-alt); }
.section__header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__kicker {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section__header h2 { margin-top: 10px; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; }
.section__header p:last-child:not(.section__kicker) { margin-top: 14px; color: var(--text-muted); font-size: 1.075rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 12 obszarów + karta raportu na całą szerokość: pełne rzędy przy 3 i 2 kolumnach. */
.feature-grid .feature--accent { grid-column: 1 / -1; }
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 750; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tone-soft, var(--primary-soft));
  color: var(--tone, var(--primary));
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature--accent {
  border-color: transparent;
  background: linear-gradient(145deg, #312e81, #4f46e5 55%, #0e7490);
  color: #fff;
}
.feature--accent p { color: rgb(255 255 255 / 0.8); }
.feature--accent .feature__icon { background: rgb(255 255 255 / 0.14); color: #fff; }

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps-list li {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.steps-list__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps-list h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 750; }
.steps-list p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }

/* Cennik */
.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan--accent { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.plan__name { font-size: 1.15rem; font-weight: 750; }
.plan__scope { margin-top: 4px; color: var(--text-muted); font-size: 0.95rem; }
.plan__price { margin: 20px 0 24px; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.plan__gross { color: var(--text-soft); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }
.plan__choose { margin-top: auto; justify-content: center; }
.plan__multiplier { color: var(--primary); font-weight: 700; white-space: nowrap; }
.plan__for { margin: -18px 0 20px; color: var(--text-soft); font-size: 0.85rem; }
.plans__title { margin: 40px 0 18px; font-size: 1.15rem; font-weight: 750; text-align: center; }
/* Prośba o kontakt przy audycie ponad najwyższy próg (cennik i krok 2 kreatora). */
.plans__custom { max-width: 46em; margin: 24px auto 0; color: var(--text); font-weight: 500; text-align: center; }
.depth-custom { margin-top: 4px; }
.plans__formula { max-width: 46em; margin: 24px auto 0; color: var(--text-muted); text-align: center; }
.plans__formula strong { color: var(--text); }

/* Cennik: cena za obszar */
.pricing-aspects {
  max-width: 820px;
  margin-inline: auto;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pricing-aspects__title { font-weight: 700; }
.pricing-aspects__title span { margin-left: 6px; color: var(--text-soft); font-size: 0.85rem; font-weight: 500; }
.pricing-aspects__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pricing-aspects__item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
}
.pricing-aspects__item span { color: var(--text-muted); font-size: 0.875rem; }
.pricing-aspects__item strong { font-family: var(--font-display); font-size: 1.15rem; }
.pricing-aspects__item .pricing-aspects__fixed { color: var(--text-soft); font-size: 0.75rem; }
.plan-includes {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.plan-includes__title { font-weight: 700; }
.plan-includes__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.plan-includes__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); }
.plan-includes__icon { display: inline-flex; flex: none; width: 18px; height: 18px; margin-top: 0.2em; color: var(--success); }
.plans__note { margin-top: 20px; color: var(--text-soft); font-size: 0.875rem; text-align: center; }

.footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.875rem;
}
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__note { max-width: 46em; }
.footer a { color: inherit; text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }

/* ==== Dokumenty (regulamin, polityka prywatności) ============================================================= */

.hero--compact .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 56px 64px; }
.hero--compact .hero__copy { padding-top: 0; }
.hero--compact h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.section--legal { padding-block: 56px 96px; }

.legal { max-width: 780px; margin-inline: auto; color: var(--text); }
.legal:focus { outline: none; }
.legal h2 {
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem;
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal h2:first-child { margin-top: 0; }
.legal__note {
  margin: 0 0 36px;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.legal p { margin: 0 0 12px; }
.legal ol, .legal ul { margin: 0; padding-left: 1.5em; }
.legal li { margin: 8px 0; padding-left: 4px; }
.legal li::marker { color: var(--text-soft); font-weight: 600; }
.legal a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal__box {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.legal__table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; }
.legal tr + tr td, .legal tr + tr th { border-top: 1px solid var(--border); }
.legal td + td, .legal th + th { border-left: 1px solid var(--border); }
.legal th { background: var(--surface-2); font-weight: 700; }

/* ==== Moje audyty (konto/, en/account/) ==================================================================== */

.account { max-width: 880px; margin-inline: auto; }
.account-session { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.account-session__user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; color: var(--hero-muted, rgb(255 255 255 / 0.75)); }
.account-session__user strong { color: var(--hero-text, #fff); font-weight: 600; }
.account-session__user .icon { flex: none; width: 18px; height: 18px; }
.account-session__error { flex-basis: 100%; color: #fca5a5; font-size: 0.9rem; }
.account-session__error:empty { display: none; }
.footer__logout { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer__logout:hover { color: var(--text); }
.footer__logout:disabled { opacity: 0.6; cursor: progress; }
.account:focus { outline: none; }
.account-loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); }
/* Promocja "ponów audyt" w karcie zamówienia - wyróżniona, w kolorach przycisku darmowego skanu. */
.account-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgb(6 182 212 / 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(6 182 212 / 0.10), rgb(5 150 105 / 0.08));
}
.account-promo__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #059669 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -12px rgb(6 182 212 / 0.8);
}
.account-promo__body { display: grid; gap: 4px; }
.account-promo__title { font-weight: 700; color: var(--text); }
.account-promo__text { color: var(--text-muted); font-size: 0.9rem; }
.account-promo__text s { color: var(--text-soft); }
.account-promo__text strong { color: var(--text); }
.account-promo__timer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; }
.account-promo__timer .icon { width: 16px; height: 16px; color: #0891b2; }
.account-promo__timer strong { color: var(--text); font-variant-numeric: tabular-nums; }
.account-promo__invoice { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; }
.account-promo__invoice input { width: 16px; height: 16px; accent-color: #0891b2; }
.account-promo__error { color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.account-promo__error:empty { display: none; }
.account-promo__order { white-space: nowrap; }
.account-item__promotional {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(6 182 212 / 0.12);
  color: #0e7490;
  font-size: 0.8rem;
  font-weight: 700;
}
.account-item__promotional .icon { width: 14px; height: 14px; }

/* Komunikaty listy (brak audytów, niezalogowany, błąd) jako karta - jak karty audytów, nie gołe tło strony. */
.account-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  text-align: center;
}
.account-empty p { max-width: 36em; }
.account-empty--first { position: relative; overflow: hidden; gap: 18px; padding: 52px 32px 36px; }
.account-empty--first::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
}
.account-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgb(99 102 241 / 0.8);
}
.account-empty__icon .icon { width: 30px; height: 30px; }
.account-empty__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); }
.account-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.account-empty__actions .icon { width: 20px; height: 20px; }
.account-empty .account-note { margin-top: 6px; }
.account-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.account-item {
  --tone: var(--primary);
  --tone-soft: var(--primary-soft);
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--tone);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.account-item--done { --tone: var(--success); --tone-soft: var(--success-soft); }
.account-item--unpaid, .account-item--running { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.account-item--failed, .account-item--expired, .account-item--released, .account-item--refunded {
  --tone: var(--danger); --tone-soft: var(--danger-soft);
}
.account-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-item__host { font-family: var(--font-display); font-size: 1.15rem; font-weight: 750; overflow-wrap: anywhere; }
.account-item__date { color: var(--text-soft); font-size: 0.85rem; }
.account-item__params { display: grid; gap: 8px; margin: 0; }
.account-item__meta { color: var(--text-muted); font-size: 0.9rem; }
.account-item__payment { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.account-item__invoice { display: inline-flex; align-items: center; gap: 6px; }
.account-item__invoice .icon { width: 15px; height: 15px; }
.account-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-item__delete { margin-left: auto; color: var(--text-soft); }
.account-item__delete:hover { color: var(--danger); }
.account-item__delete .icon { width: 16px; height: 16px; }
.account-item__delete[hidden] { display: none; }
.account-removed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}
.account-removed .icon { width: 18px; height: 18px; }
.account-confirm {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.account-confirm__title { margin: 0; font-weight: 700; }
.account-confirm__text { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.account-confirm__error { margin: 0; color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.account-confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Zapłać i uruchom" / "Wznów audyt" - to nie ostrzeżenie jak usuwanie, więc w kolorach marki. */
.account-confirm.account-resume { border-color: rgb(99 102 241 / 0.3); background: var(--primary-soft); }
.account-confirm__error:empty { display: none; }
/* Przycisk, który otworzył panel, chowa się na czas potwierdzenia (.btn nadpisuje [hidden]). */
.account-item__actions [hidden] { display: none; }
.account-item--removing { opacity: 0; transform: translateX(16px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.account-item__history { font-size: 0.875rem; }
.account-item__history summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
.account-item__history ol { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.account-item__history li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; }
.account-item__history time { color: var(--text-soft); font-variant-numeric: tabular-nums; }
/* Kod afiliacyjny w "Moich audytach" (account.js) - nad listą audytów. */
.affiliate-slot { margin-bottom: 24px; }
.affiliate {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgb(79 70 229 / 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-soft), rgb(6 182 212 / 0.08));
}
.affiliate__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; }
.affiliate__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #06b6d4 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -12px rgb(79 70 229 / 0.8);
}
.affiliate__title { margin: 0; font-size: 1.15rem; }
.affiliate__text { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.affiliate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.affiliate__label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.affiliate__value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.affiliate__link {
  min-width: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.affiliate__stats { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.affiliate__stats strong { color: var(--text); }
.affiliate__form { display: grid; gap: 10px; }
.affiliate__field .field__input { min-height: 52px; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.affiliate__field .field__input::placeholder { text-transform: none; letter-spacing: 0; }
.affiliate__hint { margin: 0; color: var(--text-soft); font-size: 0.85rem; }
.affiliate__error { margin: 0; color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.affiliate__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.affiliate__blocked { margin: 0; }
/* Kod afiliacyjny w podsumowaniu kreatora (app.js). */
.affiliate-field .field__input { padding-right: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.affiliate-field .field__input::placeholder { text-transform: none; letter-spacing: 0; }
.affiliate-field__apply { flex: none; margin-right: 8px; }
.affiliate-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--success); }
.affiliate-applied strong { color: var(--text); }
.summary-total__regular { margin-right: 4px; color: var(--text-soft); font-size: 1.05rem; font-weight: 600; }
@media (max-width: 560px) {
  .affiliate { padding: 16px; }
  .affiliate__badge { width: 52px; height: 52px; border-radius: 14px; font-size: 0.95rem; }
}

.account-note { margin-top: 20px; color: var(--text-soft); font-size: 0.85rem; text-align: center; }
.pill--done { --tone: var(--success); --tone-soft: var(--success-soft); }
.pill--unpaid, .pill--running { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.pill--failed, .pill--expired, .pill--released, .pill--refunded { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.pill--unpaid .pill__dot, .account-item .pill--running .pill__dot { animation: blink 1.4s ease-in-out infinite; }

/* ==== Kontakt ================================================================================================ */

.contact-card,
.login-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.contact-card:focus { outline: none; }
/* Odstępy jak w kreatorze: etykieta i komunikat błędu przyklejone ujemnym marginesem do pola. */
.contact-form { position: relative; display: grid; gap: 24px; }
.contact-form[hidden] { display: none; }
.contact-card__title { font-size: 1.5rem; font-weight: 800; }
.field__icon .icon { width: 100%; height: 100%; }
.field--area { align-items: stretch; }
.field__input--area {
  min-height: 180px;
  padding: 14px 18px;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: inherit;
}
/* Pułapka na boty - poza ekranem, nie display:none (część botów pomija niewidoczne pola). */
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__submit { justify-self: start; }
.contact-details { display: grid; gap: 12px; margin-top: 24px; color: var(--hero-muted); line-height: 1.6; }
.contact-details strong { color: var(--hero-text); }
.contact-details a { color: var(--hero-text); text-underline-offset: 3px; }
.contact-details a:hover { color: #fff; }
.contact-form__privacy { margin-top: -8px; color: var(--text-soft); font-size: 0.8rem; line-height: 1.5; }
.form-error a { color: inherit; font-weight: 700; }
.contact-done { display: grid; justify-items: center; gap: 14px; padding-block: 24px; text-align: center; }
.contact-done .icon--large { color: var(--success); }
.contact-done__title { font-size: 1.5rem; font-weight: 800; }
.contact-done__title:focus { outline: none; }
.contact-done p { max-width: 32em; color: var(--text-muted); }

/* ==== Logowanie ============================================================================================== */

.login-card__state { display: grid; gap: 20px; }
.login-card__state[hidden] { display: none; }
.login-card__providers { display: grid; gap: 12px; }
.btn--provider { justify-content: flex-start; gap: 14px; width: 100%; font-weight: 600; }
.btn__logo { width: 22px; height: 22px; flex: none; }
.btn--google { border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn--google:hover { background: var(--surface-2); }
.btn--facebook { border: 1.5px solid #1877f2; background: #1877f2; color: #fff; }
.btn--facebook:hover { background: #166fe5; }
.btn--provider[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn__note { font-weight: 400; }
[data-login-status]:empty { display: none; }
[data-login-status] { margin-top: 20px; }
[data-login-status] > * { margin-top: 0; }
.login-card__account { justify-items: center; text-align: center; }
.login-card__avatar {
  display: inline-flex;
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.login-card__avatar .icon { width: 100%; height: 100%; }
.login-card__email { color: var(--text-muted); }
.login-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.login-card__account .contact-card__title:focus { outline: none; }
.login-card__account p { max-width: 30em; }
.login-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.875rem;
}
.login-card__divider::before,
.login-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-card__divider[hidden] { display: none; }
.login-email { gap: 20px; }
.btn--email { border: 1.5px solid var(--primary); background: var(--primary-soft); color: var(--primary); }
.btn--email:hover { background: var(--primary); color: #fff; }
.btn--email[disabled] { opacity: 0.7; cursor: progress; }
.topbar__nav a[aria-current="page"]:not(.btn) { color: #fff; }

/* ==== Darmowy skan ========================================================================================== */

.scan-card { min-height: 100%; }
.scan-progress, .scan-failure { display: grid; justify-items: center; gap: 12px; padding-block: 16px; text-align: center; }
.scan-progress p { max-width: 42ch; color: var(--text-muted); }
.scan-progress__host { font-family: var(--font-display); font-size: 1.1rem; font-weight: 750; color: var(--text) !important; }
.scan-progress__status { font-weight: 600; color: var(--primary) !important; }
.scan-progress__bar { width: min(320px, 100%); height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.scan-progress__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  animation: scan-progress 1.6s ease-in-out infinite;
}
@keyframes scan-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.scan-failure .icon--large { color: var(--danger); }
.scan-failure p { max-width: 42ch; }

.scan-result { scroll-margin-top: var(--header-h); }
.scan-result:focus { outline: none; }
.scan-result__inner { display: grid; gap: 32px; max-width: 1040px; }
.scan-result__header { display: grid; gap: 6px; text-align: center; }
.scan-result__header h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; overflow-wrap: anywhere; }
.scan-result__date { color: var(--text-muted); }
.scan-result__cached {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  max-width: 640px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: left;
}
.scan-result__cached .icon { flex: none; width: 18px; height: 18px; color: var(--primary); }

.scan-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.scan-summary__score { display: grid; justify-items: center; gap: 6px; text-align: center; }
.scan-summary__overall { font-weight: 700; }
.scan-summary__verdict { color: var(--text-muted); font-size: 0.9rem; }

.scan-ring { --tone: var(--warning); position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.scan-ring--good { --tone: var(--success); }
.scan-ring--poor { --tone: var(--danger); }
.scan-ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-ring__track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.scan-ring__value { fill: none; stroke: var(--tone); stroke-width: 10; stroke-linecap: round; }
.scan-ring__score { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--tone); }
.scan-ring__label { position: absolute; bottom: 38px; color: var(--text-soft); font-size: 0.8rem; }

.scan-categories { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.scan-category {
  --tone: var(--warning);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}
.scan-category--good { --tone: var(--success); }
.scan-category--poor { --tone: var(--danger); }
.scan-category__name { font-weight: 600; }
.scan-category__score { font-family: var(--font-display); font-weight: 800; color: var(--tone); font-variant-numeric: tabular-nums; }
.scan-category__bar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.scan-category__bar span { display: block; height: 100%; border-radius: inherit; background: var(--tone); }

.scan-phone { display: grid; justify-items: center; gap: 8px; margin: 0; }
.scan-phone img {
  width: 150px;
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  border: 6px solid #0b1020;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.scan-phone figcaption { color: var(--text-soft); font-size: 0.8rem; }

.scan-block { display: grid; gap: 14px; }
.scan-block h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.scan-block__note { margin-top: -8px; color: var(--text-muted); }

.scan-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.scan-metric {
  --tone: var(--warning);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
}
.scan-metric--good { --tone: var(--success); }
.scan-metric--poor { --tone: var(--danger); }
.scan-metric__value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--tone); }
.scan-metric__name { color: var(--text-muted); font-size: 0.85rem; }

.scan-issues { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.scan-issue {
  --tone: var(--warning);
  --tone-soft: var(--warning-soft);
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
}
.scan-issue--high { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.scan-issue--low { --tone: var(--primary); --tone-soft: var(--primary-soft); }
.scan-issue__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.scan-issue__category { color: var(--text-soft); font-size: 0.85rem; font-weight: 600; }
.scan-issue h4 { font-size: 1.05rem; font-weight: 700; }
.scan-issue__value {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.scan-issue p { color: var(--text-muted); font-size: 0.95rem; }

.scan-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 0% 0%, #312e81 0%, #1e1b4b 45%, #0b1020 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.scan-cta h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 800; }
.scan-cta p { margin-top: 10px; color: #c7cdf7; }
.scan-cta__actions { display: grid; justify-items: center; gap: 10px; }
.scan-cta__price { color: #c7cdf7; font-size: 0.9rem; font-weight: 600; }
.scan-cta .link-button { color: #c7cdf7; }
.scan-result__disclaimer { color: var(--text-soft); font-size: 0.85rem; text-align: center; }

/* Przyciski darmowego skanu i przykładowego audytu na całą szerokość kolumny tekstu. */
.hero__free,
.hero__example { display: grid; justify-items: stretch; gap: 10px; margin-top: 26px; }
.hero__example { margin-top: 30px; }
.hero__example .icon { width: 20px; height: 20px; }
.hero__free + .hero__points { margin-top: 30px; }
.hero__free-lead { color: #e0e4ff; font-weight: 600; }
.hero__free-note { color: #c7cdf7; font-size: 0.875rem; }
/* Turkusowo-zielony, żeby nie mylił się z fioletowym przyciskiem kreatora obok. */
.btn--free {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #059669 100%);
  box-shadow: 0 10px 26px -10px rgb(6 182 212 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.2);
}
.btn--free:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgb(6 182 212 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.22); }
.btn--free .icon { width: 20px; height: 20px; }
/* Przykładowy audyt: pełny ciemny indygo z jasną obwódką - wyraźny na tle hero (nie przezroczysty), ale spokojniejszy
   od turkusowego skanu nad nim. */
.btn--example {
  color: #fff;
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  border-color: rgb(129 140 248 / 0.55);
  box-shadow: 0 10px 26px -12px rgb(79 70 229 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.btn--example:hover {
  background: linear-gradient(135deg, #3730a3 0%, #26236b 100%);
  border-color: rgb(165 180 252 / 0.8);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgb(79 70 229 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.btn--example .icon { color: #a5b4fc; }

@media (max-width: 900px) {
  .scan-summary { grid-template-columns: minmax(0, 1fr); justify-items: stretch; padding: 22px; }
  .scan-summary__score { justify-self: center; }
  .scan-phone { display: none; }
  .scan-cta { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .scan-cta__actions { justify-items: start; }
}

@media (max-width: 560px) {
  .scan-cta .btn--large { width: 100%; white-space: normal; }
  .scan-issue { padding: 16px; }
  .scan-issue__value { margin: 6px 0 0; display: table; }
}

/* ==== Animacje ============================================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ripple {
  0% { opacity: 0.55; transform: scale(0.75); }
  100% { opacity: 0; transform: scale(1.35); }
}
@keyframes scan {
  0%, 100% { transform: translate(-4px, -3px) rotate(-6deg); }
  50% { transform: translate(5px, 3px) rotate(6deg); }
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==== Responsywność ========================================================================================= */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px 72px; }
  .hero__copy { padding-top: 0; max-width: 720px; }
  .hero__wizard { max-width: 680px; width: 100%; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

/* Menu (dłuższa wersja polska) mieści się w całości od 1060 px. Węższe: konto jako sama ikona (napis zostaje dla
   czytników ekranu), od 960 px ciaśniej i bez globusa, od 880 px tylko przełącznik języka i przycisk.
   Progi zmierzone - nowa pozycja menu wymaga ich ponownego sprawdzenia na szerokościach 800-1300 px. */
@media (max-width: 1060px) {
  .nav-account__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 960px) {
  .topbar__nav { gap: 18px; }
  .lang-switch__icon { display: none; }
}
@media (max-width: 880px) {
  .topbar__nav a:not(.btn):not(.lang-switch) { display: none; }
  .topbar__nav { gap: 8px; }
  .lang-switch__icon { display: none; }
}

@media (max-width: 760px) {
  .steps-list { grid-template-columns: 1fr; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .account-item { padding: 16px; }
  .account-item__head { flex-direction: column-reverse; }
  .account-item__history li { grid-template-columns: 1fr auto; }
  .account-item__history time { grid-column: 1 / -1; }
  .pricing-aspects { padding: 18px; }
  .pricing-aspects__list { grid-template-columns: repeat(2, 1fr); }
  .plan-includes { padding: 20px; }
  .plan-includes__list { grid-template-columns: 1fr; }
  .steps-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 22px; }
  .steps-list__num { grid-row: span 2; }
  .steps-list h3 { margin-top: 0; }
  .section { padding-block: 64px; }
  .section__header { margin-bottom: 32px; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .container { padding-inline: 16px; }
  .hero__inner { padding-block: 32px 40px; gap: 28px; }
  .hero h1 { margin-top: 16px; }
  .hero__lead { margin-top: 14px; font-size: 1.025rem; }
  .hero__points { display: none; }
  .contact-card { padding: 24px 18px; }
  .contact-form__submit { justify-self: stretch; }

  .wizard { min-height: 0; border-radius: 20px; }
  .stepper { padding: 18px 18px 0; }
  .stepper__item, .stepper__link { flex-direction: column; gap: 6px; font-size: 0.75rem; }
  .stepper__bar { margin-top: 14px; }
  .wizard__body { padding: 22px 18px 8px; }
  /* Przyciski kroku zawsze pod kciukiem, dopóki kreator jest na ekranie. */
  .wizard__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 24px -18px rgb(15 23 42 / 0.4);
  }
  .wizard__footer .btn { flex: 1; }
  .wizard__footer > span:empty { display: none; }

  .option--aspect { gap: 2px 12px; padding: 12px 14px; }
  /* Cena w wierszu tytułu, opis na całą szerokość - inaczej cena zwęża opis. */
  .option--aspect .option__text { display: contents; }
  .option--aspect .option__icon { grid-row: 1 / span 2; align-self: start; }
  .option--aspect .option__title { grid-column: 2; grid-row: 1; align-self: center; }
  .option--aspect .option__amount { grid-column: 3; grid-row: 1; }
  .option--aspect .option__check { grid-column: 4; grid-row: 1; }
  .option--aspect .option__desc { grid-column: 2 / -1; grid-row: 2; }
  .option__icon { width: 38px; height: 38px; }
  .segmented, .language-grid { grid-template-columns: repeat(2, 1fr); }
  /* Nieparzysta liczba progów - ostatni na całą szerokość. */
  .segmented > .option:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .option--format:first-child { grid-column: auto; }

  .summary__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .summary dt { grid-column: 1; }
  .summary dd { grid-column: 1 / -1; grid-row: 2; }
  .summary__edit { grid-column: 2; grid-row: 1; }
  .summary--readonly .summary__row { grid-template-columns: 1fr; }

  .status { padding: 28px 18px 24px; }
  .status__visual { width: 124px; height: 124px; }
  .status__orb { width: 80px; height: 80px; }
  .status__actions { width: 100%; flex-direction: column; }
  .status__actions .btn { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-grid .feature--accent { grid-column: auto; }
  .hero--compact .hero__inner { padding-block: 32px 40px; }
  .section--legal { padding-block: 36px 64px; }
  .account-empty--first { padding: 44px 18px 28px; }
  .account-empty__actions .btn { width: 100%; }
  .account-promo { grid-template-columns: minmax(0, 1fr); }
  .account-promo__badge { justify-self: start; width: auto; height: auto; padding: 3px 12px; border-radius: 999px; font-size: 0.95rem; }
  .account-promo__order { width: 100%; }
  .legal h2 { margin-top: 36px; font-size: 1.15rem; }
  .feature { padding: 22px; }
  .footer__inner { flex-direction: column; }
}

/* Logo, przełącznik języka i przycisk muszą się zmieścić w jednym wierszu aż do 320 px szerokości
   (najdłuższy jest polski „Rozpocznij audyt”). */
@media (max-width: 440px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand__mark svg { width: 28px; height: 28px; }
  .topbar__nav .btn { padding-inline: 12px; font-size: 0.85rem; }
}
@media (max-width: 400px) {
  .brand__tld { display: none; }
}
@media (max-width: 360px) {
  .btn__more { display: none; }
}

@media (max-width: 360px) {
  .stepper__label { font-size: 0.7rem; }
  .field__input { font-size: 1rem; }
}
