/* ProstaSzkoła – landing. Tokeny zgodne z ai_brain/brand/styl-wizualny.md. */
:root {
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-secondary: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --primary-soft-strong: #e0e7ff;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --navy: #0f172a;
  --container: 1160px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(30, 41, 95, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--primary); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Przyciski */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { color: var(--text-primary); background: var(--surface); border-color: var(--border-strong); }
.button-secondary:hover { background: var(--background); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid transparent; backdrop-filter: saturate(160%) blur(10px); transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
/* Logo: napis stoi na podstawie ikony, więc podnosimy całość o połowę różnicy wysokości ikony
   i napisu (34 px vs 62% = 21 px) – napis wypada w linii z menu. */
.brand img { height: 34px; width: auto; transform: translateY(-6px); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.button) { color: var(--text-secondary); font-size: 15px; font-weight: 500; text-decoration: none; }
.main-nav a:not(.button):hover { color: var(--text-primary); }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; background: none; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: var(--text-primary); border-radius: 2px; }

/* Sekcje */
.section { padding: 104px 0; }
.section-alt { background: var(--background); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.kicker { display: block; margin-bottom: 12px; color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(30px, 4vw, 40px); }
.section-heading p { margin-top: 16px; color: var(--text-secondary); font-size: 18px; }

/* Hero */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%); }
.hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -0.035em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-lead { max-width: 700px; margin: 22px auto 0; color: var(--text-secondary); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--text-muted); font-size: 15px; }
.hero-shot { margin-top: 56px; }

/* Ramka zrzutu ekranu */
.shot { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--surface-secondary); border-bottom: 1px solid var(--border); }
.shot-bar span { width: 10px; height: 10px; background: var(--border-strong); border-radius: 50%; }
.shot-bar b { margin-left: 10px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.shot-plain { box-shadow: var(--shadow-sm); }
figure { margin: 0; }
figcaption { margin-top: 12px; color: var(--text-muted); font-size: 14px; text-align: center; }

/* Liczby */
.facts { padding: 0 0 88px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.facts-grid > div { padding: 24px; }
.facts-grid > div + div { border-left: 1px solid var(--border); }
.facts-grid strong { display: block; color: var(--primary); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.facts-grid span { display: block; margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.facts-note { margin-top: 12px; color: var(--text-muted); font-size: 14px; text-align: center; }

/* Czym jest */
.intro { max-width: 960px; }
.intro h2 { max-width: 760px; font-size: clamp(30px, 4vw, 40px); }
.intro > div > p { max-width: 780px; margin-top: 18px; color: var(--text-secondary); font-size: 18px; }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list.two-cols { grid-template-columns: 1fr 1fr; gap: 22px 40px; margin-top: 36px; }
.wide-shot { margin-top: 56px; }
.check-list li { position: relative; padding-left: 34px; font-size: 17px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5'/%3E%3C/svg%3E") center / 15px no-repeat; border-radius: 50%; }
.check-list li strong { display: block; }
.check-list li span { color: var(--text-secondary); font-size: 16px; }

/* Kroki */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-weight: 700; }
.callout { display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin: -16px auto 40px; padding: 20px 24px; background: var(--primary-soft); border: 1px solid var(--primary-soft-strong); border-radius: var(--radius); }
.callout-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: var(--primary); background: var(--surface); border-radius: 10px; }
.callout-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { display: block; font-size: 17px; }
.callout p { margin-top: 4px; color: var(--text-secondary); font-size: 16px; }
.soon { margin-top: 22px; padding: 14px 16px; color: var(--text-secondary); background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; font-size: 15px; }
.soon strong { color: var(--primary); }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* Przegląd funkcji */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(24px, 3vw, 30px); }
.feature-copy > p { margin-top: 14px; color: var(--text-secondary); font-size: 17px; }
.feature-copy .check-list { margin-top: 22px; }
.feature-copy .check-list li { font-size: 16px; }
.feature-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 13px; font-weight: 700; }
.feature-media.narrow { max-width: 520px; justify-self: center; }
/* Szerokie ekrany: tekst nad zrzutem, zrzut na całą szerokość – inaczej byłby nieczytelny. */
.feature.stacked { grid-template-columns: 1fr; gap: 32px; }
.feature.stacked .feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 56px; align-items: start; max-width: none; }
.feature.stacked .feature-copy .feature-tag, .feature.stacked .feature-copy h3, .feature.stacked .feature-copy > p { grid-column: 1; }
.feature.stacked .feature-copy .check-list { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
.feature.stacked .feature-copy .feature-tag { justify-self: start; }

/* Co działa / pracujemy */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.status-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.status-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.status-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--success)); }
.status-card.work { --dot: var(--primary); }
.status-card.limit { --dot: var(--warning); }
.status-card > p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.status-card ul { display: grid; gap: 10px; margin-top: 18px; }
.status-card li { position: relative; padding-left: 18px; color: var(--text-secondary); font-size: 16px; }
.status-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--border-strong); border-radius: 50%; }

/* Program partnerski */
.partner { color: #e2e8f0; background: var(--navy); }
.partner .kicker { color: #a5b4fc; }
.partner .section-heading h2 { color: #fff; }
.partner .section-heading p { color: #cbd5e1; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 28px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); }
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: #c7d2fe; background: rgba(129, 140, 248, 0.16); border-radius: 10px; }
.benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { color: #fff; font-size: 19px; }
.benefit p { margin-top: 10px; color: #cbd5e1; font-size: 16px; }
.partner-deal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.deal-card { padding: 28px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); }
.deal-card h3 { color: #fff; font-size: 19px; }
.deal-card ol, .deal-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; color: #cbd5e1; }
.deal-card ul { list-style: disc; }

/* Dane */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.privacy-item { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.privacy-item h3 { font-size: 17px; }
.privacy-item p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* Formularz */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.form-copy h2 { font-size: clamp(30px, 4vw, 40px); }
.form-copy > p { margin-top: 16px; color: var(--text-secondary); font-size: 18px; }
.form-copy .check-list { margin-top: 28px; }
.contact-box { margin-top: 32px; padding: 20px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; }
.pilot-form { display: grid; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pilot-form label { display: grid; gap: 6px; color: var(--text-primary); font-size: 15px; font-weight: 600; }
.pilot-form input:not([type="checkbox"]), .pilot-form select, .pilot-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  color: var(--text-primary); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 400;
}
.pilot-form textarea { min-height: 96px; resize: vertical; }
.pilot-form .invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.pilot-form fieldset { margin: 0; padding: 0; border: 0; }
.pilot-form legend { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.check { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.check + .check { margin-top: 8px; }
.form-status { display: none; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.form-status.visible { display: block; }
.form-status.success { color: #166534; background: var(--success-soft); }
.form-status.error { color: #991b1b; background: #fef2f2; }
.form-hint { color: var(--text-muted); font-size: 14px; text-align: center; }
/* Pole-pułapka na boty – niewidoczne dla ludzi. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--text-muted); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 22px 20px; color: var(--text-secondary); font-size: 16px; }

/* Wezwanie do działania */
.final-cta { padding: 104px 0; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; background: var(--primary-soft); border: 1px solid var(--primary-soft-strong); border-radius: 16px; }
.final-cta h2 { font-size: clamp(26px, 3vw, 34px); }
.final-cta p { margin-top: 10px; color: var(--text-secondary); font-size: 17px; }

/* Stopka */
.site-footer { padding: 56px 0 32px; color: #cbd5e1; background: var(--navy); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-main img { height: 32px; width: auto; }
.footer-main p { max-width: 360px; margin-top: 14px; color: #94a3b8; }
.footer-main h3 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }

/* Strony prawne */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(32px, 4vw, 42px); }
.legal .legal-meta { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.legal h2 { margin-top: 44px; font-size: 23px; }
.legal h3 { margin-top: 24px; font-size: 18px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 16px; }
.legal p { margin-top: 12px; }
.legal ol, .legal ul { margin: 12px 0 0; padding-left: 24px; }
.legal ul { list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.legal th { background: var(--background); color: var(--text-primary); }
.legal td { color: var(--text-secondary); }
.legal .placeholder { padding: 1px 6px; color: var(--warning); background: var(--warning-soft); border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Responsywność */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature-copy { max-width: 720px; }
  .feature.stacked .feature-copy { grid-template-columns: 1fr; }
  .feature.stacked .feature-copy .check-list { grid-column: 1; grid-row: auto; margin-top: 14px; }
}
@media (max-width: 860px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 80px 0; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 72px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.button) { padding: 14px 12px; }
  .main-nav .button { margin-top: 6px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3) { border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .form-grid, .faq-grid, .partner-deal, .check-list.two-cols { grid-template-columns: 1fr; gap: 40px; }
  .check-list.two-cols { gap: 16px; }
  .status-grid, .benefits { grid-template-columns: 1fr; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .hero { padding-top: 48px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .steps, .privacy-grid, .form-row { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .pilot-form { padding: 22px 18px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .shot-bar { display: none; }
}
/* Baner zgody na statystyki (analytics.js) */
.consent { position: fixed; inset: auto 16px 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-card { width: min(100%, 560px); padding: 20px 22px; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); pointer-events: auto; }
.consent-card h2 { margin: 0; font-size: 17px; }
.consent-card p { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.consent-card code { font-size: 13px; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (max-width: 480px) { .consent-actions .button { flex: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
