/* Landing page -- zaklada wczesniejsze zaladowanie style.css (zmienne, fonty, .btn) */

/* Ta sama struktura co .app-header/.app-header-inner w style.css (podloga-padding +
   wysrodkowany wewnetrzny element o --max-width) -- celowo, zeby logo bylo w tej
   samej pozycji i tego samego rozmiaru co w formularzu (badanie.html), niezaleznie
   od tego, ze reszta tresci strony glownej uzywa szerszych kontenerow (.section-inner). */
.site-header {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
}
.site-header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header a { text-decoration: none; }
.site-header img { height: 26px; display: block; }

section { padding: 64px 24px; }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

/* --- animacje przy scrollu (patrz assets/js/landing.js) --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero: dawniej blekitny gradient jako dekoracja tla -- wycofane (Brand & Design
   System 2.1, "Gradienty"). Pelny ciemny Ink 900 na calej sekcji hero (pierwsze, co
   widzi uzytkownik) wygladal ciezko/zalobnie -- brand book tez w wiekszosci wlasnych
   stron trzyma biel/jasne powierzchnie jako baze, ciemne bloki zostawia na mniejsze,
   pojedyncze akcenty (patrz Surface/Brand Subtle = "delikatne tla brandowe"). Hero
   dostaje wiec jasny bladoniebieski akcent zamiast czerni, a przycisk wraca do
   zwyklego .btn-primary (Ink 900/bialy tekst dziala dobrze na jasnym tle -- nie
   potrzeba juz "jasnego stylu drugorzednego" jak dla final-cta ponizej, ktory
   swiadomie zostaje ciemny). */
.hero {
  background: var(--surface-brand-subtle);
  color: var(--text-primary);
  text-align: center;
  padding: 80px 24px;
}
.hero h1 { font-size: 2.6rem; max-width: 760px; margin: 0 auto 20px; }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 16px; color: var(--text-secondary); }
.hero .cta-row { margin-top: 28px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* padding zamiast samego podkreslonego tekstu -- 26px wysokosci to za malo jako
   cel dotyku obok duzego przycisku "Rozpocznij ocene" w tym samym rzedzie */
.hero .btn-link { color: var(--link-default); text-decoration: underline; background: none; border: none; font-size: 1rem; align-self: center; padding: 10px 4px; }
.hero .btn-link:hover { color: var(--link-hover); }

h2.section-title { font-size: 1.8rem; text-align: center; margin-bottom: 12px; }
p.section-lede { text-align: center; color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; }

.problem-list { list-style: none; padding: 0; margin: 24px 0; }
.problem-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.problem-list li::before {
  content: "!";
  position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px;
  background: var(--warning-700);
  color: var(--text-inverse);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.area-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
}
.area-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--navy-900);
  color: var(--text-inverse);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.area-card h3 { font-size: 1rem; margin-bottom: 6px; }
.area-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .score-grid { grid-template-columns: 1fr; } }
.score-card {
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-subtle);
}
.score-card .pts { font-size: 1.6rem; font-weight: 700; color: var(--link-default); }
.score-card p { font-size: 0.88rem; color: var(--text-secondary); margin: 6px 0 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--link-default);
  margin-bottom: 8px;
}
.step-card h3 { font-size: 1rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); }

.report-list { list-style: none; padding: 0; margin-top: 24px; }
.report-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.report-list strong { display: block; margin-bottom: 4px; }
.report-list span { color: var(--text-secondary); font-size: 0.92rem; }

.callout {
  background: var(--warning-50);
  border-left: 4px solid var(--warning-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
}
.callout h2 { margin-top: 0; }

.audience-list { columns: 2; column-gap: 32px; padding-left: 20px; }
.audience-list li { margin-bottom: 8px; }

.faq-item {
  border-bottom: 1px solid var(--border-default);
}
.faq-item h3 { margin: 0; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-question:hover { color: var(--link-hover); }
.faq-question:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--icon-functional);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-answer-wrap.is-open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { margin: 0 0 18px; color: var(--text-secondary); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .faq-answer-wrap, .faq-icon::before, .faq-icon::after { transition: none; }
}

/* Navy 900 wraca tu swiadomie (jak przed rebrandem) -- brand book zastrzega Navy
   tylko dla glownego CTA-przycisku ("Kolor pomocniczy nie dla glownych CTA"), nie
   zakazuje go jako tla sekcji. Przycisk ponizej i tak zostaje jasny (Action/Secondary),
   nie navy, wiec to zgodne z v2.0 -- gradientowy przycisk sprzed rebrandu NIE wraca,
   bo dekoracyjne gradienty sa wprost wycofane. */
.final-cta {
  background: var(--navy-900);
  color: var(--text-inverse);
  text-align: center;
}
.final-cta h2 { font-size: 1.8rem; }
.final-cta p { color: var(--neutral-300); max-width: 560px; margin: 0 auto 24px; }
.final-cta .btn-primary { background: var(--action-secondary-bg); color: var(--action-secondary-text); }

.site-footer {
  background: var(--ink-900);
  color: var(--neutral-300);
  padding: 32px 24px;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: var(--link-on-dark); }
.site-footer a:hover { color: var(--text-inverse); }

@media (max-width: 640px) {
  /* .hero ma wlasna regule padding (klasa bije zwykly selektor "section" ponizej),
     wiec bez jawnego override zostawaloby 80px pionowego paddingu tez na mobile --
     CTA byloby zepchniete niepotrzebnie daleko w dol. */
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 2rem; }
  .audience-list { columns: 1; }
  section { padding: 48px 20px; }
}

/* Ten sam breakpoint co .app-header w style.css, zeby naglowek zostawal spojny
   z formularzem tez na waskich ekranach (patrz komentarz przy .site-header wyzej). */
@media (max-width: 480px) {
  .site-header { padding: 16px 16px; }
}
