/* PNP – Postaw na Przyszłość: strona informacyjna (Etap 4C).
   Kolory = lib/core/constants/app_colors.dart; font Poppins z /fonts (OFL).
   Bez zewnętrznych zasobów – CSP w _headers pozwala tylko na 'self'. */

/* ---------- Poppins (latin + latin-ext: polskie znaki) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
  --brand: #6C5CE7;
  --brand-dark: #4834D4;
  --accent: #00D9C0;
  --brand-text: #5345D6;          /* tekst w kolorze marki: kontrast ≥ 4,5:1 na jasnym tle */
  --bg: #F7F7FC;
  --bg-tint: #EFEDFC;
  --surface: #FFFFFF;
  --text: #1B1B2F;
  --muted: #55556A;
  --line: rgba(27, 27, 47, .10);
  --shadow: 0 1px 2px rgba(27, 27, 47, .05), 0 12px 32px -12px rgba(72, 52, 212, .22);
  --shadow-lg: 0 30px 60px -20px rgba(72, 52, 212, .35);
  --radius: 20px;
  --radius-sm: 12px;
  --focus: #4834D4;
  --container: 1160px;
  --header-h: 68px;

  /* gradienty modułów z aplikacji */
  --g-careers: linear-gradient(135deg, #6C5CE7, #4834D4);
  --g-test: linear-gradient(135deg, #8E2DE2, #E94057);
  --g-path: linear-gradient(135deg, #11998E, #38EF7D);
  --g-learn: linear-gradient(135deg, #00B4D8, #0077B6);
  --g-calc: linear-gradient(135deg, #FF9F43, #EE5A24);
  --g-self: linear-gradient(135deg, #D976A3, #6C5CE7);
  --g-hero: linear-gradient(135deg, #6C5CE7 0%, #4834D4 55%, #2D2A8A 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-text: #B3ABFF;
    --bg: #15131F;
    --bg-tint: #1B1829;
    --surface: #1E1B2E;
    --text: #F2F2F7;
    --muted: #B9B9CC;
    --line: rgba(242, 242, 247, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --focus: #B3ABFF;
  }
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Atrybut hidden zawsze ukrywa – także elementy, którym nadajemy display: grid/flex. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--surface); color: var(--text); border-radius: 10px; box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-large { font-size: 1.05rem; padding: .95em 1.6em; }
.btn-small { font-size: .92rem; padding: .55em 1.1em; }
.btn-primary { background: var(--g-careers); color: #fff; box-shadow: 0 10px 24px -10px rgba(72, 52, 212, .7); }
.btn-primary svg { fill: currentColor; stroke: none; }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(72, 52, 212, .8); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: #3A2DB8; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: .78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; position: relative; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .2s ease;
}
.site-nav ul a:hover::after, .site-nav ul a:focus-visible::after { transform: scaleX(1); }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: none; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--text); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 78% 30%, rgba(108, 92, 231, .30), transparent 70%),
    radial-gradient(28% 32% at 90% 62%, rgba(0, 217, 192, .22), transparent 70%),
    radial-gradient(35% 30% at 10% 10%, rgba(217, 118, 163, .16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; color: var(--brand-text);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 217, 192, .2); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 5vw, 4.4rem); font-weight: 800; margin: 18px 0 18px; letter-spacing: -.03em; }
.grad-text {
  background: linear-gradient(100deg, #6C5CE7 10%, #00B4A6 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad-text { background-image: linear-gradient(100deg, #A29BFE 10%, #00D9C0 90%); }
}
.lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); max-width: 36em; }
.hero-audience { color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: #11998E; width: 1.15em; height: 1.15em; stroke-width: 2.6; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  margin: 0; width: min(310px, 78vw); aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #2B2840, #14121E); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-2deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #F7F7FC; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 700; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.fc-icon svg { width: 22px; height: 22px; }
.fc-1 { top: 3%; left: -4%; }
.fc-2 { top: 48%; right: -6%; animation-delay: -2s; }
.fc-3 { bottom: 8%; left: 2%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Liczby ---------- */
.stats { margin-top: -40px; position: relative; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden;
  background: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats-grid li { background: var(--surface); padding: 24px 20px; text-align: center; }
.stats-grid strong {
  display: block; font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 800; line-height: 1.1;
  background: var(--g-careers); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .stats-grid strong { background-image: linear-gradient(135deg, #B3ABFF, #00D9C0); }
}
.stats-grid span { color: var(--muted); font-size: .92rem; }

/* ---------- Sekcje ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .7em; }

/* Gradienty ikon */
.g-careers { background: var(--g-careers); }
.g-test { background: var(--g-test); }
.g-path { background: var(--g-path); }
.g-learn { background: var(--g-learn); }
.g-calc { background: var(--g-calc); }
.g-self { background: var(--g-self); }

/* ---------- Funkcje ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.feature-icon, .audience-icon, .p-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 20px -10px rgba(27, 27, 47, .5);
}
.feature-icon svg, .audience-icon svg, .p-icon svg { width: 26px; height: 26px; }
.feature-card p { color: var(--muted); }
.ticks { display: grid; gap: 8px; margin-bottom: 22px; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .48em; width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.48em + 5px); width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.feature-link { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-self: flex-start; }
.feature-link span { transition: transform .2s ease; }
.feature-link:hover span { transform: translateX(4px); }
/* Cała karta klikalna dla myszy; link pozostaje jedynym elementem fokusu */
.feature-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.more { margin-top: 40px; text-align: center; }
.more h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin;
}
.shot { margin: 0; scroll-snap-align: start; text-align: center; }
.shot img {
  width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 26px; background: var(--surface);
  border: 6px solid #1E1B2E; box-shadow: var(--shadow-lg);
}
.shot figcaption { margin-top: 14px; font-weight: 600; }

/* ---------- Telefon / przeglądarka ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform-card {
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start;
}
.platform-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.platform-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-text); }
.platform-icon svg { width: 24px; height: 24px; }
.platform-card .btn { margin-top: auto; }
.note {
  display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--text); font-size: .95rem;
}
.note svg { width: 22px; height: 22px; color: var(--brand-text); margin-top: 2px; }

/* ---------- Dla kogo ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.audience-card {
  grid-column: span 2; padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease;
}
.audience-card:nth-child(4) { grid-column: 2 / span 2; }
.audience-card:hover { transform: translateY(-4px); }
.audience-card p { color: var(--muted); margin: 0; }

/* ---------- O projekcie ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 1.05rem; }
.principles { display: grid; gap: 16px; }
.principles li {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.principles .p-icon { flex: none; margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.principles h3 { margin: 0 0 2px; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Współtwórcy ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 32px; }
.person {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.person h3 { margin: 0 0 2px; font-size: 1.05rem; }
.person p { margin: 0; color: var(--muted); font-size: .92rem; }
.person-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--g-careers); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.person-empty { background: transparent; border: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.person-empty .person-avatar { background: transparent; color: var(--brand-text); border: 2px dashed currentColor; font-size: 1.5rem; }
.collab { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.collab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 18px 0 24px; }
.collab-grid li { padding-left: 16px; border-left: 3px solid var(--brand); }
.collab-grid strong { display: block; margin-bottom: 4px; }
.collab-grid span { color: var(--muted); font-size: .93rem; }
.collab-contact { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--brand-text); border-bottom: 2.5px solid var(--brand-text); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  text-align: center; color: #fff; padding: 64px 32px; border-radius: 32px; background: var(--g-hero);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 90% 10%, rgba(0, 217, 192, .35), transparent 70%), radial-gradient(35% 50% at 5% 100%, rgba(217, 118, 163, .35), transparent 70%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.cta-inner .cta-row { justify-content: center; margin-bottom: 0; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 26em; font-size: .95rem; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.collab-contact a, .doc a, .footer-bottom a { overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Strona 404 ---------- */
.error-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.error-page .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; line-height: 1; background: var(--g-careers); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.error-page .cta-row { justify-content: center; }

/* ---------- Dokumenty (polityka prywatności) ---------- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; }
.doc h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { max-width: 72ch; }
.doc-meta { color: var(--muted); }
.doc .summary {
  margin: 28px 0; padding: 24px 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.doc .summary h2 { margin-top: 0; }
.doc .summary .ticks { margin-bottom: 0; }
.toc { margin: 28px 0 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 16em; column-gap: 32px; }
.toc li { margin-bottom: 4px; }
mark.todo { background: #FFE08A; color: #1B1B2F; padding: 0 .25em; border-radius: 4px; }
.draft-bar {
  position: relative; z-index: 60; padding: 8px 16px; text-align: center; font-size: .9rem; font-weight: 700;
  background: #FFE08A; color: #1B1B2F;
}

/* ---------- Kontakt (/kontakt/) ---------- */
.contact-hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.contact-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; }
.contact-hero .lead { color: var(--text); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 96px; }
.contact-card {
  padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 28px; }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.field legend, .field-label { font-weight: 700; font-size: 1.02rem; padding: 0; margin-bottom: 10px; }
.field legend { margin-bottom: 12px; }
.req { color: #D63031; font-weight: 700; }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
.field-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.counter { margin: 0; color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.counter.is-near { color: #C0392B; font-weight: 600; }

.contact-form textarea, .contact-form input[type="email"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.contact-form textarea:hover, .contact-form input[type="email"]:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.contact-form textarea:focus, .contact-form input[type="email"]:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field.has-error textarea, .field.has-error input[type="email"] { border-color: #D63031; }
.field.has-error textarea:focus, .field.has-error input[type="email"]:focus { box-shadow: 0 0 0 4px rgba(214, 48, 49, .2); }
.field-error {
  margin: 0; display: flex; gap: 8px; align-items: flex-start; color: #C0392B; font-size: .92rem; font-weight: 600;
}
.field-error::before { content: "!"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: #D63031; color: #fff; font-size: .8rem; line-height: 1; }
.field-error[hidden] { display: none; }

/* Kafelki wyboru (radio): input jest ukryty wizualnie, ale dostępny dla klawiatury i czytników */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-body {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--line); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.choice:hover .choice-body { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:checked + .choice-body {
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  box-shadow: 0 0 0 1px var(--brand), 0 10px 24px -14px rgba(72, 52, 212, .6);
}
.choice-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.choice-icon svg { width: 22px; height: 22px; }
.choice-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.choice-text strong { font-weight: 600; }
.choice-text small { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.choice-grid .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.choice-compact .choice-body { font-weight: 500; line-height: 1.35; }
.choice-dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text) 35%, transparent);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.choice input:checked + .choice-body .choice-dot { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--brand); }
.field.has-error .choice-body { border-color: color-mix(in srgb, #D63031 55%, transparent); }

/* Pułapka na boty: poza ekranem (nie display:none – część botów pomija ukryte pola) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; }
.form-status.is-visible {
  display: block; margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  color: #8E1F1F; background: #FDECEC; border: 1px solid rgba(214, 48, 49, .35);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn:disabled { cursor: progress; opacity: .75; transform: none; }
.spinner { display: none; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-privacy { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.form-privacy a { overflow-wrap: anywhere; }

.contact-success { text-align: center; padding: 24px 8px; }
.contact-success h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); outline: none; }
.contact-success p { color: var(--muted); max-width: 34em; margin-left: auto; margin-right: auto; }
.contact-success .cta-row { justify-content: center; margin-bottom: 0; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--g-path); box-shadow: 0 16px 32px -14px rgba(17, 153, 142, .8);
}
.success-icon svg { width: 36px; height: 36px; stroke-width: 2.6; }

.nojs-note { display: none; }
.no-js .contact-form { display: none; }
.no-js .nojs-note { display: block; }
.nojs-note p:last-child { margin-bottom: 0; }

.contact-aside { display: grid; gap: 20px; }
.aside-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.1rem; font-weight: 700; margin: 14px 0 8px; }
.aside-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.aside-card a { overflow-wrap: anywhere; font-weight: 600; }
.aside-card .ticks { margin-bottom: 14px; }
.aside-card .ticks li { color: var(--muted); }
.aside-help { background: color-mix(in srgb, #11998E 7%, var(--surface)); border-color: color-mix(in srgb, #11998E 25%, transparent); }
.collab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

@media (prefers-color-scheme: dark) {
  .req, .counter.is-near, .field-error { color: #FF8A8A; }
  .form-status.is-visible { color: #FFD6D6; background: rgba(214, 48, 49, .16); border-color: rgba(255, 138, 138, .4); }
}

/* ---------- Wersja testowa (dodawana tylko przez tool/prepare_staging_site.dart) ---------- */
.staging-bar {
  position: relative; z-index: 60; padding: 8px 16px; text-align: center; font-size: .85rem; font-weight: 600;
  background: #E17055; color: #1B1B2F;
}

/* ---------- Animacje wejścia (tylko z JS i bez ograniczenia ruchu) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone { transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-card, .audience-card:nth-child(4) { grid-column: auto; }
  .audience-card:last-child { grid-column: 1 / -1; }
  .site-nav ul { gap: 18px; }
}

@media (max-width: 880px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav ul a::after { display: none; }
  .no-js .site-header { height: auto; position: static; }
  .no-js .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 12px; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 4px 16px; }

  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead, .hero-audience { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .about { grid-template-columns: 1fr; }
  .about { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-hero { padding: 48px 0 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .feature-grid, .audience-grid, .collab-grid { grid-template-columns: 1fr; }
  .audience-card:last-child { grid-column: auto; }
  .cta-row .btn { width: 100%; }
  .float-card { font-size: .8rem; padding: 8px 12px 8px 8px; }
  .fc-icon { width: 32px; height: 32px; border-radius: 10px; }
  .fc-icon svg { width: 18px; height: 18px; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .fc-3 { left: 4%; }
  .gallery { grid-auto-columns: 72%; }
  .feature-card, .audience-card, .platform-card, .collab { padding: 22px; }
  .cta-inner { padding: 48px 20px; border-radius: 24px; }
  .brand-text span { display: none; }
  .contact-card { padding: 22px 18px; }
  .choice-grid, .choice-row { grid-template-columns: 1fr; }
  .choice-grid .choice:last-child:nth-child(odd) { grid-column: auto; }
  .field-meta { flex-direction: column; gap: 4px; }
  .form-actions .btn { width: 100%; }
  .contact-layout { padding-bottom: 72px; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}
