/* =========================================================================
   oinwestowaniu.pl/ksiazka - landing zapisowy „Wygraj, nie grając"
   Paleta i typografia z atlasetf.pl (Poppins + Open Sans, Falcon tokens).
   Nastrój i tło hero pochodzą z okładki wydania oryginalnego.
   ========================================================================= */

:root {
  --blue:        #2c7be5;
  --blue-dark:   #2362b7;
  --blue-light:  #87b8f8;
  --blue-pale:   #d4e5fb;

  --ink:         #0b1727;
  --ink-900:     #344050;
  --ink-700:     #5e6e82;
  --ink-500:     #9da9bb;
  --line:        #d8e2ef;
  --wash:        #edf2f9;
  --wash-soft:   #f9fafd;
  --paper:       #ffffff;

  /* Granaty zdjęte z okładki, od góry ku dołowi */
  --navy-500:    #24508c;
  --navy-600:    #1a3c6d;
  --navy-700:    #122a4f;
  --navy-800:    #0c1c36;
  --navy-900:    #060e1b;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 7px 14px 0 rgba(65, 69, 88, .1), 0 3px 6px 0 rgba(0, 0, 0, .07);
  --shadow-lg:   0 24px 56px -16px rgba(6, 14, 27, .45);
  --shadow-card: 0 2px 4px rgba(11, 23, 39, .04), 0 12px 28px -10px rgba(11, 23, 39, .14);

  --font-head:   'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body:   'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap:        1140px;
  --gutter:      24px;
  --section-y:   clamp(56px, 6vw, 84px);
  --bar-h:       0px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Polskie słowa bywają długie. Przy powiększonym tekście
     „najwybitniejszego" potrafi być szersze niż kolumna. */
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -.025em;
  text-wrap: balance;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

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

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

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--paper); color: var(--ink-900);
  padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ============================ Znak marki ============================ */

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.035em;
  color: var(--ink-900);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink-900); }
/* blue-dark, bo #2c7be5 na bieli daje 4,14:1, a próg AA to 4,5:1 */
.brand__tld,
.brand__sub { color: var(--blue-dark); }

.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__tld,
.brand--light .brand__sub { color: var(--blue-light); }

/* Wydawca jako znak drugiego planu */
.publisher {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-700);
}
.publisher::before {
  content: '';
  width: 1px; height: 30px;
  background: var(--line);
}
.publisher span { white-space: nowrap; }
.publisher img { width: 108px; flex: none; }

.publisher--light { color: rgba(255, 255, 255, .72); }
.publisher--light::before,
.publisher--light::after { background: rgba(255, 255, 255, .22); }
/* Druga kreska domyka znak wydawcy z prawej strony */
.publisher--light::after {
  content: '';
  width: 1px; height: 30px;
}
.publisher--light img { filter: brightness(0) invert(1); opacity: .92; }
.publisher a { display: inline-flex; }
.publisher a:hover { opacity: .78; }

/* ============================== Topbar ============================== */

.topbar {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px; flex-wrap: nowrap;
}
.topbar .brand { flex: none; }

/* ========================= Sticky pasek zapisu ======================= */

.stickybar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  background: rgba(9, 20, 38, .93);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(135, 184, 248, .22);
  transform: translateY(-101%);
  /* visibility, żeby schowany pasek nie łapał Taba */
  visibility: hidden;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .34s;
}
.stickybar.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility 0s;
}

.stickybar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; min-height: 68px; padding-block: 10px;
}
/* Okładka i podpis obok siebie, dopiero po nich formularz. */
.stickybar__id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.stickybar__cover {
  width: 38px;
  height: auto;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, .6);
}
.stickybar__label {
  font-family: var(--font-head);
  font-weight: 600; font-size: 14.5px; line-height: 1.3;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap;
}
.stickybar__label b { display: block; color: #fff; font-weight: 700; font-size: 16.5px; }
/* W pasku miejsca jest dużo, więc wszystko mieści się w jednej linii.
   E-mail rośnie, imię i przycisk trzymają swoją szerokość. */
.stickybar .signup { flex: 1 1 auto; max-width: 800px; }
.stickybar .signup__row { flex-wrap: nowrap; gap: 10px; }
.stickybar .signup__input--name  { flex: 0 0 200px; min-width: 130px; }
.stickybar .signup__input--email { flex: 1 1 auto;  min-width: 200px; max-width: 380px; }
.stickybar .signup__row .signup__btn { flex: 0 0 auto; }
.stickybar .signup__input { padding: 13px 15px; font-size: 16px; }
.stickybar .signup__btn { padding: 13px 22px; font-size: 16px; }
.stickybar .signup__note { margin-top: 7px; font-size: 12px; line-height: 1.35; text-align: center; }
.stickybar__cta { display: none; }
.stickybar .signup__input {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(135, 184, 248, .38);
  color: #fff;
}
.stickybar .signup__input::placeholder { color: rgba(255, 255, 255, .55); }
.stickybar .signup__input:hover { border-color: rgba(135, 184, 248, .6); }
.stickybar .signup__input:focus {
  background: rgba(255, 255, 255, .12);
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(135, 184, 248, .22);
}
.stickybar .signup__status { color: #ffb3c0; margin-top: 6px; }
.stickybar .signup-done__head { color: #fff; font-size: 1rem; }
.stickybar .signup-done__text { color: rgba(255, 255, 255, .78); font-size: 14px; }

/* =============================== Hero =============================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(52px, 7vw, 92px) clamp(60px, 7vw, 96px);
  background:
    radial-gradient(120% 78% at 50% -8%, rgba(126, 178, 240, .40) 0%, rgba(36, 80, 140, 0) 62%),
    linear-gradient(178deg, var(--navy-500) 0%, var(--navy-600) 26%, var(--navy-700) 52%, var(--navy-800) 78%, var(--navy-900) 100%);
}

/* Rozświetlenie górnej krawędzi, tak jak na okładce. Oddycha bardzo powoli. */
.hero::before {
  content: '';
  position: absolute;
  inset: -18% -12% auto;
  height: 74%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(56% 100% at 50% 0%, rgba(158, 200, 250, .34), rgba(158, 200, 250, 0) 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2.5%, 0, 0) scale(1);    opacity: .8; }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.09); opacity: 1; }
}

/* Wejście hero: elementy pojawiają się kolejno, nie naraz. */
.hero__inner > * { animation: heroIn .72s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero h1         { animation-delay: .06s; }
.hero__sub       { animation-delay: .16s; }
.hero__lead      { animation-delay: .26s; }
.hero__form      { animation-delay: .36s; }
.hero__trust     { animation-delay: .46s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Brokat z okładki. Dwie warstwy dryfują w innym tempie, stąd głębia. */
.hero__stars,
.hero__stars2 {
  position: absolute;
  inset: -120px 0;
  pointer-events: none;
  z-index: -1;
}
.hero__stars {
  background-image:
    radial-gradient(1.4px 1.4px at 26px 42px,   rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px     at 118px 24px,  rgba(200,226,255,.70), transparent),
    radial-gradient(1.6px 1.6px at 72px 148px,  rgba(255,255,255,.60), transparent),
    radial-gradient(1px 1px     at 186px 96px,  rgba(214,232,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 154px 190px, rgba(255,255,255,.50), transparent),
    radial-gradient(1px 1px     at 12px 206px,  rgba(180,214,255,.62), transparent),
    radial-gradient(1.3px 1.3px at 214px 138px, rgba(255,255,255,.45), transparent);
  background-size: 240px 240px;
  animation: drift 96s linear infinite;
}
.hero__stars2 {
  background-image:
    radial-gradient(1px 1px     at 58px 88px,    rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px     at 196px 152px,  rgba(235,245,255,.42), transparent),
    radial-gradient(1px 1px     at 132px 46px,   rgba(160,200,255,.52), transparent),
    radial-gradient(1.5px 1.5px at 24px 168px,   rgba(255,255,255,.38), transparent),
    radial-gradient(1px 1px     at 268px 220px,  rgba(214,232,255,.46), transparent);
  background-size: 360px 360px;
  animation: drift 148s linear infinite reverse;
}
/* Brokat gęstnieje ku górze, tak jak na okładce */
.hero__stars,
.hero__stars2 {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 96%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-240px, 120px, 0); }
}

.hero__inner { text-align: center; display: grid; justify-items: center; }

/* Tytuł trzyma się jednej linii na każdej szerokości, stąd rozmiar
   liczony z viewportu zamiast sztywnych progów. */
.hero h1 {
  font-size: min(9.6vw, 5.57rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0;
  padding-bottom: .06em;
  white-space: nowrap;
}

.hero__sub {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--blue-light);
  margin: clamp(16px, 2vw, 22px) 0 0;
  max-width: 36ch;
}

.hero__lead {
  margin: clamp(20px, 2.4vw, 26px) auto 0;
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.hero__lead strong {
  color: #fff;
  font-weight: 700;
}

.hero__form { width: 100%; max-width: 580px; margin-top: clamp(28px, 3.4vw, 40px); }

.hero__trust {
  margin: clamp(34px, 4vw, 46px) 0 0;
  padding: clamp(22px, 2.6vw, 28px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  width: 100%;
  max-width: 900px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
}
.hero__trust li {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .68);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.hero__trust li + li::before {
  content: '';
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 62px;
  background: rgba(255, 255, 255, .16);
}
.hero__trust b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: #fff;
  letter-spacing: -.01em;
}

.ikona {
  width: 26px; height: 26px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================ Formularz ============================= */

/* Pola w jednym rzędzie, przycisk pod spodem na całą szerokość.
   Wciskanie trzech rzeczy w jedną linię robi z pól szpary. */
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup__input--name  { flex: 1 1 34%; min-width: 140px; }
.signup__input--email { flex: 1 1 52%; min-width: 210px; }
.signup__row .signup__btn { flex: 1 1 100%; }

.signup__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-900);
  background: var(--paper);
  /* Ciemniejsza od zwykłej kreski (--line), bo na bieli ledwo ją widać
     i pole przestaje wyglądać na pole. */
  border: 1.5px solid #aeb9ca;
  border-radius: var(--radius);
  padding: 15px 18px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.signup__input::placeholder { color: var(--ink-500); }
.signup__input:hover { border-color: #8b98ac; }
.signup__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(44, 123, 229, .2);
  /* Pierścień robi box-shadow. Przezroczysty obrys zostaje po to,
     żeby w trybie wysokiego kontrastu było w ogóle co pokazać. */
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.signup__input[aria-invalid='true'] {
  border-color: #e63757;
  box-shadow: 0 0 0 4px rgba(230, 55, 87, .16);
}

.signup__btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(44, 123, 229, .7);
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .2s ease;
}
.signup__btn:hover {
  background: var(--blue-dark); border-color: var(--blue-dark);
  box-shadow: 0 10px 24px -8px rgba(44, 123, 229, .8);
}
.signup__btn:active { transform: translateY(1px); }
.signup__btn[disabled] { opacity: .7; cursor: progress; box-shadow: none; }

/* Przetarcie po przycisku, przelatuje co niecałe trzy sekundy */
.signup__btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: skewX(-18deg);
  animation: sheen 2.9s ease-in-out 1s infinite;
}
@keyframes sheen {
  0%, 58%   { left: -60%; }
  90%, 100% { left: 130%; }
}

.signup__note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}
.signup__note a { color: rgba(255, 255, 255, .82); text-decoration: underline; }
.signup__note a:hover { color: #fff; }

.signup--onlight .signup__note { color: var(--ink-700); }
.signup--onlight .signup__note a { color: var(--ink-700); }
.signup--onlight .signup__note a:hover { color: var(--blue); }

.signup__status {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #ffb3c0;
}
.signup--onlight .signup__status { color: #e63757; }
.signup__status:empty { display: none; }

.signup-done {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 20px 22px;
  background: rgba(0, 210, 122, .1);
  border: 1px solid rgba(0, 210, 122, .38);
  border-radius: var(--radius);
}
.signup-done__head {
  font-family: var(--font-head);
  font-size: 1.24rem; font-weight: 700; line-height: 1.3;
  color: #fff;
}
.signup-done__text { font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); }

.signup--onlight + .signup-done,
.card-form .signup-done { background: rgba(0, 210, 122, .09); }
.card-form .signup-done__head { color: var(--ink-900); }
.card-form .signup-done__text { color: var(--ink-700); }

/* ============================= Sekcje =============================== */

.section { position: relative; padding-block: var(--section-y); }

.section--wash {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .9) 0%, rgba(237, 242, 249, 0) 70%),
    var(--wash);
  border-block: 1px solid var(--line);
}

/* Delikatna siatka punktów pod jasnymi sekcjami */
.section--dots::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(44, 123, 229, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 58% at 50% 0%, #000, transparent 76%);
          mask-image: radial-gradient(72% 58% at 50% 0%, #000, transparent 76%);
  pointer-events: none;
}
.section--dots > .wrap { position: relative; }

.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(34px, 4vw, 48px); }
.section__head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
}
.section__head p {
  margin: 16px auto 0;
  max-width: 58ch;
  color: var(--ink-700);
  font-size: 1.06rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

/* ======================= Sekcja: pytania ============================ */

.questions { margin: 0 auto; padding: 0; list-style: none; max-width: 940px; }
.questions li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(24px, 2.8vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.questions li:last-child { border-bottom: 1px solid var(--line); }

.questions__mark {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 25px; font-weight: 700; line-height: 1;
  margin-top: .06em;
  box-shadow: 0 8px 18px -8px rgba(44, 123, 229, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.questions li:hover .questions__mark {
  transform: scale(1.07);
  box-shadow: 0 12px 24px -10px rgba(44, 123, 229, .95);
}

.questions p {
  font-family: var(--font-head);
  font-size: clamp(1.24rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.025em;
  color: var(--ink-900);
}

/* Zaznaczacz na całą wysokość wiersza, nie samo podkreślenie.
   Kolor idzie pod litery, więc tekst zostaje w jednym kolorze. */
.questions mark {
  background: rgba(44, 123, 229, .2);
  color: inherit;
  padding: .1em .2em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.questions__after {
  margin: clamp(30px, 3.5vw, 40px) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 1.06rem;
  color: var(--ink-700);
}

/* ======================== Sekcja: autor ============================= */

.author {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.author__figure { margin: 0; position: relative; }
.author__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.author__figure figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-700);
  text-align: center;
}

.author__body p + p { margin-top: 16px; }
.author__body p { color: var(--ink-900); }

.author__lede {
  font-family: var(--font-head);
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
}

/* Dowody jako dwie kolumny z nagłówkiem nad opisem.
   Bez punktorów i bez kresek, rytm robią cienkie linie. */
.fakty {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 34px;
}
.fakty li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  text-align: center;
}
.fakty .ikona { margin-bottom: 12px; }
.fakty b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.015em;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.fakty span {
  display: block;
  font-size: 15.5px;
  line-height: 1.52;
  color: var(--ink-700);
}

/* Ten sam zestaw ikon na jasnym tle */
.ikona--ciemna {
  width: 30px; height: 30px;
  stroke: var(--blue);
  stroke-width: 1.5;
}

/* ======================== Sekcja: opinie ============================ */

/* Opinie leżą jedna pod drugą, każda na pełną szerokość.
   Wąskie kolumny robiły z cytatów drobny druk. */
.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 980px;
  margin-inline: auto;
}

/* Płaska strzałka prowadząca wzrok do kolejnej opinii */
.quotes__arrow { display: grid; place-items: center; }
.quotes__arrow svg {
  width: 38px; height: 38px;
  fill: rgba(44, 123, 229, .38);
}

.quote {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 30px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(11, 23, 39, .05), 0 22px 40px -14px rgba(11, 23, 39, .24);
  border-color: rgba(44, 123, 229, .35);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-900);
}
.quote figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-700);
}
.quote mark {
  background: rgba(44, 123, 229, .2);
  color: inherit;
  /* Poziomy oddech robi cień, nie padding. Padding odsuwałby
     kropkę i pytajnik od zaznaczonego fragmentu. */
  padding: .12em 0;
  box-shadow: .18em 0 0 rgba(44, 123, 229, .2), -.18em 0 0 rgba(44, 123, 229, .2);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* Inicjały zamiast zaślepkowego awatara. Zdjęć tych osób nie mamy. */
.mono {
  flex: none;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(44, 123, 229, .12);
  border: 1px solid rgba(44, 123, 229, .26);
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
}
.quote figcaption b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink-900);
}
.quote figcaption b::after {
  content: '·';
  margin: 0 .45em;
  color: var(--ink-500);
  font-weight: 400;
}

/* ==================== Sekcja domykająca + CTA ======================= */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-block: var(--section-y);
  background:
    radial-gradient(100% 70% at 50% 108%, rgba(126, 178, 240, .3) 0%, rgba(18, 42, 79, 0) 66%),
    linear-gradient(176deg, var(--navy-800) 0%, var(--navy-700) 42%, var(--navy-800) 74%, var(--navy-900) 100%);
}
.closing__stars {
  position: absolute; inset: -120px 0;
  z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 44px 62px,   rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px     at 168px 34px,  rgba(200,226,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 96px 178px,  rgba(255,255,255,.42), transparent),
    radial-gradient(1px 1px     at 236px 126px, rgba(214,232,255,.5), transparent);
  background-size: 300px 300px;
  animation: drift 130s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
          mask-image: linear-gradient(to top, #000 0%, transparent 90%);
}

.closing__quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.closing__quote h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
}
.closing__body {
  margin: clamp(22px, 2.6vw, 30px) auto 0;
  max-width: 62ch;
  text-align: center;
}
.closing__body p { color: rgba(255, 255, 255, .86); line-height: 1.62; }
.closing__body p + p { margin-top: 14px; }
.closing__body em {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

.closing__sign {
  margin: clamp(26px, 3vw, 34px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 30ch;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}
.closing__sign b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.quotes__more {
  margin: clamp(28px, 3vw, 36px) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 15.5px;
  color: var(--ink-700);
}

/* Biała karta na granacie. Ciemny panel na ciemnym tle był zimny
   i gubił się w sekcji, biel zaprasza i wyciąga formularz na wierzch. */
.closing__cta {
  margin: clamp(38px, 4.5vw, 54px) auto 0;
  max-width: 680px;
  text-align: center;
  padding: clamp(30px, 3.6vw, 42px) clamp(24px, 3.2vw, 44px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.closing__cta h3 {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--ink-900);
  margin: 0 0 10px;
}
.closing__cta > p {
  color: var(--ink-700);
  font-size: 1.04rem;
  margin: 0 auto 24px;
  max-width: 46ch;
}

/* ============================= Stopka =============================== */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding-block: 42px 36px;
  font-size: 15px;
}

/* Kontakt i dystrybucja nad linią z odnośnikami */
.footer__kontakt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px clamp(36px, 7vw, 96px);
  padding-bottom: 32px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer__pytanie b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}
.footer__pomoc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, .72);
}
.footer .footer__mail {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  background: var(--blue-dark);
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s ease;
}
.footer .footer__mail:hover { background: var(--blue); color: #fff; text-decoration: none; }

.dystrybucja {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .58);
}
/* Kreska oddziela kontakt od dystrybucji */
.dystrybucja::before {
  content: '';
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, .16);
  margin-right: clamp(4px, 2vw, 24px);
}
.dystrybucja span { white-space: nowrap; }
.dystrybucja a { display: inline-flex; flex: none; }
.dystrybucja a:hover { opacity: .78; }
/* Logo Imkera jest grafitowo-malinowe, na granacie musi być białe. */
.dystrybucja img {
  width: 97px;
  flex: none;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer a { color: rgba(255, 255, 255, .88); text-decoration: underline; }
.footer a:hover { color: var(--blue-light); }
.footer .brand,
.footer .publisher a,
.footer .dystrybucja a { text-decoration: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ============================ Animacje ============================== */

/* Ukrywamy TYLKO wtedy, gdy JavaScript ma jak to odsłonić.
   Bez klasy .js na <html> treść jest po prostu widoczna. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal[data-delay='1'] { transition-delay: .08s; }
.js .reveal[data-delay='2'] { transition-delay: .16s; }
.js .reveal[data-delay='3'] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__stars, .hero__stars2, .closing__stars, .hero::before { animation: none; }
  .hero__inner > * { animation: none; }
  .signup__btn::after { animation: none; display: none; }
  .stickybar { transition: none; }
  .quote:hover { transform: none; }
  .signup__btn:active { transform: none; }
}

/* ============================== Mobile ============================== */

@media (max-width: 980px) {
  .author { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 36px; }
  .fakty { grid-template-columns: minmax(0, 1fr); }
  .stickybar .signup { flex: 1 1 auto; max-width: none; }
  .stickybar__label { display: none; }
}

@media (max-width: 760px) {
  .hero__trust { grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: center; }
  .hero__trust li + li::before { display: none; }
  .hero__trust li + li { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }

  .author { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .author__figure { max-width: 230px; }
  .author__body { text-align: left; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section-y: clamp(48px, 9vw, 60px); }
  body { font-size: 17px; }

  .topbar__inner { min-height: 64px; gap: 10px; }
  .brand { font-size: 17px; }
  .publisher { gap: 9px; font-size: 12.5px; }
  .publisher::before,
  .publisher--light::after { height: 24px; }
  .publisher img { width: 76px; }
  .publisher span { display: none; }

  /* Przy powiększonym tekście stopka nie może rozpychać strony */
  .dystrybucja { flex-direction: column; gap: 10px; text-align: center; }
  .dystrybucja span { white-space: normal; }
  .dystrybucja::before { display: none; }
  .footer__kontakt { text-align: center; }
  .footer__pomoc { justify-content: center; }

  .hero { padding-block: 36px 52px; }
  /* Bez nadpisania rozmiaru tytułu: min(9.6vw, ...) sam trzyma go
     w jednej linii, a sztywny clamp wypychał go poza ekran. */

  .signup__row { flex-direction: column; }
  .signup__btn { width: 100%; }

  .questions li { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .questions__mark { width: 40px; height: 40px; font-size: 19px; }

  .quotes { grid-template-columns: minmax(0, 1fr); }

  /* Na telefonie wpisywanie maila w wąskim pasku jest udręką.
     Pasek prowadzi do pełnego formularza na dole strony. */
  .stickybar__form,
  .stickybar__id { display: none; }
  /* Bez flexa, żeby etykieta przycisku mogła się zawinąć
     zamiast rozpychać stronę przy powiększonym tekście. */
  .stickybar__inner { display: block; min-height: 0; padding-block: 11px; }
  .stickybar__cta {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-head);
    font-size: 16px; font-weight: 600;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: 0 6px 18px -6px rgba(44, 123, 229, .7);
  }
  .stickybar__cta:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__links { gap: 18px; }
}

/* Najwęższe telefony: marka „ksiazka.oinwestowaniu.pl" jest długa,
   więc musi zejść z rozmiaru razem ze znakiem wydawcy. */
@media (max-width: 420px) {
  .brand { font-size: 14.5px; }
  .publisher img { width: 62px; }
  .publisher { gap: 7px; }
}

/* ====================== v2 - poprawki mobilne ======================= */

/* Etykieta przycisku łamie się, gdy nie mieści się w jednej linii.
   Bez tego „Powiadom mnie o premierze" znikało za krawędzią przycisku
   w karcie domykającej (przycisk ma overflow: hidden pod animację
   błysku, więc nadmiar był po prostu ucinany, nie zawijany).
   Zmierzone: 320px daje 230px miejsca na 299px tekstu. */
@media (max-width: 640px) {
  .signup__btn { white-space: normal; }
}
@media (max-width: 420px) {
  .signup__btn { padding-inline: 16px; }
}

/* -------------------------- Sticky pasek ---------------------------
   Formularz w pasku wymaga około 700px. Poniżej przycisk wysyłki
   wychodził poza ekran i nie dało się go kliknąć - najboleśniej przy
   667px, czyli iPhone SE trzymany poziomo. Zamiast ściskać trzy pola
   pokazujemy okładkę i jeden przycisk prowadzący do pełnego formularza.
   Warunek wysokości łapie wszystkie telefony w poziomie niezależnie
   od szerokości; tam pasek z formularzem zjadałby ćwierć ekranu.
------------------------------------------------------------------- */
@media (max-width: 760px), (max-height: 480px) {
  /* Na dole, nie na górze: kciuk ma tam bliżej, a czytany tekst
     zostaje odsłonięty. Pasek chowa się przez dolną krawędź. */
  .stickybar {
    top: auto;
    bottom: 0;
    transform: translateY(101%);
    border-bottom: 0;
    border-top: 1px solid rgba(135, 184, 248, .22);
  }
  .stickybar.is-open { transform: translateY(0); }

  .stickybar__form { display: none; }

  .stickybar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 0;
    padding-block: 10px;
  }
  .stickybar__id { display: flex; flex: none; }
  .stickybar__cover { width: 30px; }
  .stickybar__label { display: none; }

  .stickybar__cta {
    display: block;
    flex: 1 1 auto;
    max-width: 420px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 16px; font-weight: 600;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: 0 6px 18px -6px rgba(44, 123, 229, .7);
  }
  .stickybar__cta:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

  /* Pasek nie może zasłonić ostatniej linijki stopki. */
  .footer { padding-bottom: 96px; }
}

/* Na najwęższych ekranach etykieta przycisku łamie się na dwie linie
   i pasek robi się wysoki. Ciaśniejszy padding oddaje ekran treści. */
@media (max-width: 360px) {
  .stickybar__cta { padding-block: 10px; line-height: 1.25; }
}

/* Cel dotykowy: WCAG 2.5.8 chce 24x24 px. Marka miała 15px wysokości,
   a znak atlasETF 14px. Padding pionowy nie rusza układu (topbar ma
   swoje min-height), a powiększa obszar kliknięcia.
   Drugi warunek łapie tablety, gdzie palec jest, a wąskiego ekranu nie ma. */
@media (max-width: 760px), (hover: none) {
  .brand { padding-block: 6px; }
  .publisher a { padding-block: 6px; }
}

/* Stopka: nad kreską wszystko wyśrodkowane, więc pod kreską też. */
@media (max-width: 640px) {
  .footer__inner { align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
}
