/* ============================================
   RelationshipScan — wspólne style (wszystkie strony)
   Paleta: głęboki błękit (zaufanie), akcent morski, tło jasne
   ============================================ */

:root {
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e40af;
  --color-primary-glow: rgba(29, 78, 216, 0.42);
  --color-accent: #0f766e;
  --color-accent-soft: rgba(15, 118, 110, 0.18);
  --color-bg: #f0f1f4;
  --color-bg-alt: #ffffff;
  --color-bg-white: #ffffff;
  --color-text: #12131a;
  --color-text-muted: #5a5d6b;
  --color-border: rgba(18, 19, 26, 0.1);
  --radius-lg: 1.25rem;
  --radius-xl: 20px;
  --radius-md: 0.75rem;
  --shadow-soft: 0 8px 32px rgba(18, 19, 26, 0.07);
  --shadow-card: 0 12px 48px rgba(18, 19, 26, 0.09);
  --shadow-btn: 0 8px 28px rgba(29, 78, 216, 0.35);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --space-section: clamp(4rem, 10vw, 7rem);
  --container: min(1080px, 92vw);
  --narrow: min(680px, 92vw);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body.page--landing {
  padding-bottom: 0;
}

@media (max-width: 767px) {
  body.page--landing {
    padding-bottom: 5.75rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 5.8vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  width: var(--narrow);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

.section--alt {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.section--soft {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.section--disclaimer {
  padding-block: calc(var(--space-section) * 0.9);
  background: var(--color-bg);
}

.section--cta-final {
  padding-block: calc(var(--space-section) * 1.05);
  background: linear-gradient(165deg, rgba(29, 78, 216, 0.09) 0%, rgba(15, 118, 110, 0.14) 55%, var(--color-bg-alt) 100%);
  border-top: 1px solid var(--color-border);
}

.cta-final__title {
  max-width: 18ch;
  margin-inline: auto;
}

.section--cta {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06) 0%, rgba(15, 118, 110, 0.12) 100%);
  border-block: 1px solid var(--color-border);
}

.text-center {
  text-align: center;
}

/* --- Nagłówek witryny --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header--minimal {
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary);
}

.logo--muted {
  color: var(--color-text-muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--color-primary);
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

/* Przycisk hamburgera i panel — najpierw style mobilne, potem @media desktop nadpisuje display
   (wcześniej .nav-toggle { display: flex } był PO media query i znów pokazywał hamburger na desktopie
   przy niewidocznym panelu — „menu nie działa”). */

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem var(--container) 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-white);
}

/* Mobile: panel poza flow nagłówka — leży nad treścią main (bez „niewidzialnych” linków pod hero). */
@media (max-width: 767.98px) {
  .site-header {
    z-index: 80;
  }

  .mobile-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(18, 19, 26, 0.12);
    -webkit-overflow-scrolling: touch;
  }
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
}

.mobile-nav .lang-switch--mobile {
  flex-direction: row;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

/* --- Przełącznik języka (landing) --- */
.lang-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

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

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.38rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.lang-switch__item:hover {
  color: var(--color-primary-dark);
  background: rgba(29, 78, 216, 0.08);
}

.lang-switch__item.is-current {
  color: var(--color-primary-dark);
  background: rgba(29, 78, 216, 0.14);
  border-color: rgba(29, 78, 216, 0.22);
  pointer-events: none;
}

a.lang-switch__item {
  cursor: pointer;
}

@media (min-width: 768px) {
  .site-header__end {
    gap: 1rem;
  }

  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none !important;
  }

  /* Panel mobilny tylko <768px — na desktopie zawsze ukryty (uniknięcia „wycieku” menu). */
  .mobile-nav {
    display: none !important;
  }
}

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--color-primary-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn--xl {
  padding: 1.15rem 2.1rem;
  font-size: 1.1rem;
  min-height: 58px;
  border-radius: 999px;
}

.btn--block {
  width: 100%;
}

@media (min-width: 480px) {
  .btn--block-sm {
    width: auto;
    min-width: 260px;
  }
}

/* --- Typografia pomocnicza --- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

.section-head__sub {
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-inline: auto;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* --- Pasek CTA między sekcjami --- */
.cta-strip {
  padding-block: 1.75rem;
  background: var(--color-bg);
  border-block: 1px solid var(--color-border);
}

.cta-strip--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, var(--color-bg) 100%);
}

.cta-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-strip__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-strip__text {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 42ch;
}

/* --- Mobile: przyklejony CTA --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.92) 35%, #fff 100%);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px rgba(18, 19, 26, 0.08);
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: block;
  }
}

/* --- HERO (landing) --- */
.hero {
  padding-top: 0;
  padding-bottom: 0;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6.5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 36ch;
  line-height: 1.55;
}

.hero__lead--accent {
  color: var(--color-text);
  font-weight: 500;
}

.hero__desc {
  margin: 1.15rem 0 0;
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 38ch;
  line-height: 1.58;
}

.hero__cta {
  margin-top: 2.25rem;
}

.hero-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.hero-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.hero-card__meter {
  height: 14px;
  border-radius: 999px;
  background: rgba(18, 19, 26, 0.08);
  margin: 1.5rem 0 1.35rem;
  overflow: hidden;
}

.hero-card__meter-fill {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary) 0%, #38bdf8 100%);
  animation: meterFill 1.1s ease-out both;
}

@keyframes meterFill {
  from {
    width: 0;
  }
  to {
    width: var(--fill);
  }
}

.hero-card__caption {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Kroki --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.step-card h3 {
  margin: 0 0 0.65rem;
}

.step-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.58;
}

.step-card__num {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* --- Split --- */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 1rem;
  line-height: 1.58;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.checklist--compact li {
  margin-bottom: 0.5rem;
}

.panel-accent {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.09), rgba(15, 118, 110, 0.16));
  border-radius: var(--radius-xl);
  padding: 2.15rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.panel-accent__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.panel-accent p:last-child {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.58;
}

/* --- Pills --- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  padding: 0.65rem 1.1rem;
  background: var(--color-bg-white);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
}

/* --- Podgląd pytań --- */
.preview-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  font-size: 0.98rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
}

/* --- Disclaimer box --- */
.disclaimer-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.disclaimer-box__title {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.disclaimer-box--compact {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- Cena --- */
.price-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.price-card h2 {
  margin: 0 0 0.5rem;
}

.price-tag {
  margin: 1.25rem 0 2rem;
}

.price-tag__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.price-tag__note {
  display: block;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* --- FAQ --- */
.faq__item {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item[open] summary {
  padding-bottom: 0.35rem;
}

.faq__item p {
  padding-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* --- Stopka --- */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.site-footer--minimal {
  border-top: none;
  background: transparent;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- Checkout --- */
.checkout-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding-block: 3rem;
}

.checkout-wrap {
  max-width: 440px;
  margin-inline: auto;
}

.checkout-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.checkout-card__title {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.75rem;
}

.checkout-card__desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.checkout-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 1rem;
}

.checkout-card__price {
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.checkout-card__fake {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.checkout-card__back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Test --- */
.test-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-text);
}

.test-main {
  padding-block: 1.5rem 3rem;
}

.test-layout {
  max-width: 640px;
}

.test-progress {
  height: 6px;
  background: rgba(26, 26, 31, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.test-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.test-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.question-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.65rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.question-card__section {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.question-card__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.scale-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .scale-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.scale-option {
  flex: 1;
  min-width: 0;
}

.scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.scale-option input:focus-visible + label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.scale-option input:checked + label {
  border-color: var(--color-primary);
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary-dark);
}

.scale-option label:hover {
  border-color: rgba(29, 78, 216, 0.45);
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.test-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.test-actions .btn--ghost {
  margin-right: auto;
}

.disclaimer-inline {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Wynik --- */
.result-main {
  padding-block: 2.5rem 4rem;
}

.result-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.result-headline {
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1rem;
  color: var(--color-text);
  max-width: 28ch;
  margin-inline: auto;
}

.result-score {
  font-size: clamp(2.75rem, 9vw, 4rem);
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-signal {
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
}

.result-band {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.15rem;
}

.result-lead {
  color: var(--color-text);
  max-width: 46ch;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.55;
}

.result-block {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.result-block h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.prose p {
  margin-bottom: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.62;
}

.tips-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.tips-list li {
  margin-bottom: 0.5rem;
}

.result-footer-links {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Upsell inline na stronie wyniku */
.upsell-inline {
  margin-top: 2.5rem;
}

.upsell-inline__inner {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(15, 118, 110, 0.2) 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.upsell-inline__hook {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 auto 1.25rem;
}

.upsell-inline__inner h2 {
  margin: 0 0 0.75rem;
}

.upsell-inline__product {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* --- Upsell page --- */
.upsell-hero {
  padding-block: var(--space-section);
}

.upsell-hero .hero__lead--center {
  max-width: 42ch;
  margin-inline: auto;
  text-align: center;
}

.benefits-grid {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.price-block {
  text-align: center;
  margin-top: 2rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* --- Raport --- */
.report-main {
  padding-block: 2.5rem 4rem;
}

.report-main--premium {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 35%);
}

.report-layout {
  max-width: 720px;
}

.report-header {
  margin-bottom: 2.75rem;
}

.report-header h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
}

.report-header__sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.report-ref {
  margin-top: 1.35rem;
  font-size: 1rem;
  font-weight: 500;
}

.report-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.85rem;
  margin-bottom: 1.5rem;
}

.report-card--lead {
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: var(--shadow-card);
}

.report-card--accent {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.06), rgba(15, 118, 110, 0.1));
}

.report-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.report-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.65rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.prose--report p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.report-profile-pillars {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.report-profile-pillars li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--color-text-muted);
}

.report-profile-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.report-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.report-list li {
  margin-bottom: 0.65rem;
}

.report-next-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .report-next-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}

.report-next-item .report-subhead {
  margin-top: 0;
}

.report-scenarios {
  display: grid;
  gap: 1.35rem;
  margin-top: 1rem;
}

.report-scenario {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.report-scenario:first-child {
  padding-top: 0;
  border-top: none;
}

.report-section {
  max-width: 720px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.report-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.report-section--accent {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Stany pomocnicze / empty --- */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

/* --- Nakładka ładowania (test → wynik) --- */
.test-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.test-loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.test-loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(29, 78, 216, 0.2);
  border-top-color: var(--color-primary);
  animation: spinLoad 0.75s linear infinite;
}

.test-loading-overlay__text {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

@keyframes spinLoad {
  to {
    transform: rotate(360deg);
  }
}

/* --- Animacje wejścia (Intersection Observer w script.js) --- */
/* Domyślnie treść widoczna; animacja tylko gdy script.js doda klasę .js na <html> */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.12s;
}

/* Fallback: jeśli JS wyłączony, treść nadal widoczna */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
