/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 */
/* Hallmark · redesign: dark-editorial premium B2B (client brief 2026-09-28) ·
 * macrostructure: Video-First Split Hero (bespoke, brief-mandated — no catalog
 * macrostructure fits a webinar-embed hero) · nav: N1a-style mark-only bar,
 * fused into hero ink plane (0 destinations, brief-mandated) · footer: Ft2 Inline
 * theme: custom (client brand tokens: granat navy, accent red, kids yellow — see :root)
 * display/body: Hanken Grotesk (single family, brief-mandated identity font)
 * axes: dark-hero+light-content / grotesk-sans / cool-navy w/ single warm accent
 * studied: no · context: brief redesign-brief-2026-09-28.md */

:root {
  --color-ink: #052d46;
  --color-ink-deep: #03192a;
  --color-bg: #ffffff;
  --color-surface: #f4f6f9;
  --color-line: #e3e8ee;
  --color-muted: #5b6b7b;
  --color-on-ink: #ffffff;
  --color-on-ink-muted: rgba(255, 255, 255, .72);
  --color-accent: #d11317;
  --color-accent-deep: #a70f12;
  --color-kids: #ffcd00;
  --color-blue: #00629e;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(3, 25, 42, .28);
  --shadow-sm: 0 1px 2px rgba(5, 45, 70, .06), 0 8px 24px rgba(5, 45, 70, .06);
  --shadow-up: 0 -8px 24px rgba(5, 45, 70, .1);

  --container: 1180px;
  --gutter: 20px;
  --space-3xs: .125rem;
  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5.5rem;
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-display: clamp(1.9rem, 1.4vw + 1.55rem, 2.5rem);
  --hero-title: clamp(2.2rem, 3.2vw + 1rem, 3.6rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-style: normal; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; min-width: 0; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); padding-inline: var(--gutter); margin-inline: auto; }
.gtm-frame { display: none; visibility: hidden; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; }

.skip-link { position: absolute; left: var(--space-md); top: -60px; z-index: 100; background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); transition: top var(--dur) var(--ease-out); }
.skip-link:focus { top: var(--space-md); }
#video:focus { outline: none; }

a:focus-visible, button:focus-visible, summary:focus-visible, .linklike:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}
.hero :focus-visible, .final :focus-visible, .sticky :focus-visible, .topbar :focus-visible { outline-color: var(--color-on-ink); }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--color-muted); max-width: 100%; }
.eyebrow::before { content: ""; width: 24px; height: 2px; flex: 0 0 auto; background: var(--color-muted); }
.eyebrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero__eyebrow { color: var(--color-on-ink-muted); }
.hero__eyebrow::before { background: var(--color-accent); }
@media (max-width: 34.99rem) {
  .eyebrow { letter-spacing: .12em; }
  .eyebrow__brand { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font: inherit; font-size: var(--text-md); font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.btn .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.btn--primary { background: var(--color-accent); color: var(--color-on-ink); min-height: 56px; }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--primary:active { background: var(--color-accent-deep); }
.btn--lg { min-height: 60px; padding-inline: 30px; font-size: var(--text-lg); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-surface); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }
#consent-accept { background: var(--color-ink); }
#consent-accept:hover { background: var(--color-ink-deep); }

/* ---------- Top bar ---------- */
.topbar { background: var(--color-ink-deep); padding-block: var(--space-sm); position: relative; z-index: 10; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.topbar__logos { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.topbar__logos img { height: 28px; width: auto; }
.topbar__stats { display: none; color: var(--color-on-ink-muted); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
@media (min-width: 30rem) { .topbar__stats { display: block; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--color-ink-deep), var(--color-ink)); color: var(--color-on-ink); padding-block: var(--space-xl) var(--space-2xl); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); pointer-events: none; }
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-md);
  grid-template-areas: "eyebrow" "title" "video" "ctas" "lead" "bullets";
}
.hero__eyebrow { grid-area: eyebrow; }
.hero__title { grid-area: title; font-size: var(--hero-title); font-weight: 800; color: var(--color-on-ink); letter-spacing: -.03em; line-height: 1.05; }
.hero__lead { grid-area: lead; font-size: var(--text-lg); color: var(--color-on-ink-muted); max-width: 56ch; }
.hero__ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; }
.hero__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero__more:hover { color: var(--color-on-ink-muted); }
.hero__bullets { grid-area: bullets; }
.hero__list-title { font-size: var(--text-md); font-weight: 700; color: var(--color-on-ink); margin-bottom: var(--space-sm); }
.hero__bullets ul { display: grid; gap: var(--space-sm); }
.hero__bullets li { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--color-on-ink-muted); font-size: var(--text-md); }
.hero__bullets .icon { color: var(--color-on-ink); margin-top: 3px; }

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "video eyebrow" "video title" "video lead" "video ctas" "video bullets";
    align-items: start;
    row-gap: 18px;
    column-gap: var(--space-xl);
  }
  .video { align-self: center; }
}

/* ---------- Video ---------- */
.video { grid-area: video; position: relative; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-ink-deep); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
/* Telefony: formularz lead capture Mindstamp potrzebuje miejsca — ramka wyższa niż 16:9 (wideo centrowane, pasy w kolorze playera). */
@media (max-width: 767px) {
  .video__frame { aspect-ratio: auto; height: clamp(340px, 54dvh, 460px); max-height: 100dvh; }
}
@media (max-width: 639px) {
  .video { margin-inline: calc(-1 * var(--gutter)); }
  .video__frame { border-radius: 0; }
  .video__note, .video__nudge { padding-inline: var(--gutter); }
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__frame.is-nudged { box-shadow: 0 0 0 4px var(--color-accent); animation: xb-pulse 1.2s ease-in-out 3; }
@keyframes xb-pulse { 50% { box-shadow: 0 0 0 10px rgba(209, 19, 23, .35); } }
.video__placeholder { position: absolute; inset: 0; padding: var(--space-lg); text-align: center; color: var(--color-on-ink); }
.video__placeholder:not([hidden]) { display: grid; place-items: center; }
.video__placeholder code { background: rgba(255, 255, 255, .15); padding: .15em .4em; border-radius: 4px; }
.video__nudge { margin-top: var(--space-sm); font-weight: 700; color: var(--color-on-ink); }
.video__note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-on-ink-muted); }

/* ---------- Proof band ---------- */
.proof { background: var(--color-bg); padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-line); }
.proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
@media (min-width: 48rem) { .proof__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof__item { position: relative; padding-inline-start: var(--space-md); border-inline-start: 1px solid var(--color-line); }
.proof__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 47.99rem) {
  .proof__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
.proof__value { font-size: clamp(2.2rem, 3vw, 3rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.proof__label { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Agenda ---------- */
.agenda { padding-block: var(--space-3xl) var(--space-2xl); }
.agenda__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.agenda__head-title { display: block; }
.agenda__head h2 { font-size: var(--text-display); margin-top: var(--space-xs); }
.agenda__intro { color: var(--color-muted); font-size: var(--text-md); max-width: 46ch; }
@media (min-width: 60rem) {
  .agenda__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.agenda__list { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.agenda__item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-line); }
.agenda__time { position: relative; padding-left: 18px; display: block; font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; font-size: var(--text-sm); white-space: nowrap; }
.agenda__time::before { content: ""; position: absolute; left: 4px; top: -1px; bottom: -1px; width: 1px; background: var(--color-line); }
.agenda__time::after { content: ""; position: absolute; left: 0; top: .3em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-ink); }
.agenda__title { display: block; font-weight: 700; font-size: var(--text-md); }
.agenda__desc { display: block; margin-top: var(--space-3xs); color: var(--color-muted); }
.agenda__foot { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.agenda__cta { margin-top: var(--space-xl); }
.agenda__cta .btn { background: transparent; color: var(--color-ink); border-color: var(--color-ink); min-height: 48px; }
.agenda__cta .btn:hover { background: var(--color-surface); }
@media (min-width: 60rem) {
  .agenda__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
  .agenda__item { border-bottom: 0; }
  .agenda__item:nth-child(odd) { border-inline-end: 1px solid var(--color-line); padding-inline-end: var(--space-xl); }
  .agenda__item:nth-child(even) { padding-inline-start: var(--space-xl); }
}

/* ---------- Steps ("Jak to działa") ---------- */
.steps { padding-block: var(--space-2xl); background: var(--color-surface); }
.steps h2 { font-size: var(--text-display); margin-bottom: var(--space-xl); }
.steps__list { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); transition: box-shadow var(--dur) var(--ease-out); }
.step:hover { box-shadow: var(--shadow-sm); }
.step__num { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.step__title { display: block; font-weight: 700; font-size: var(--text-md); }
.step__desc { display: block; margin-top: var(--space-3xs); color: var(--color-muted); }

/* ---------- Models ---------- */
.models { padding-block: var(--space-2xl); background: var(--color-bg); }
.models h2 { font-size: var(--text-display); max-width: 26ch; margin-bottom: var(--space-xl); }
.models__grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body[data-brand="kids"] .card--kids { order: -1; }
.card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease-out); }
.card:hover { box-shadow: var(--shadow-lg); }
.card__logo-wrap { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) var(--space-md); background: var(--color-surface); border-radius: var(--radius-sm); align-self: flex-start; }
.card__logo { height: 36px; width: auto; }
.card__title { font-size: var(--text-xl); }
.card__chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--color-ink); color: var(--color-ink); }
.card__chip--kids { border-color: var(--color-line); color: var(--color-muted); }
.card__chip--kids::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-kids); }
.card__tagline { color: var(--color-muted); }
.card__facts { display: grid; gap: 0; }
.card__facts li { display: block; padding-block: var(--space-xs); border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-muted); }
.card__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.card__facts li:first-child { padding-top: 0; }
.card__facts strong { color: var(--color-ink); font-weight: 700; }
.card .btn { margin-top: auto; align-self: flex-start; background: transparent; color: var(--color-ink); border-color: var(--color-ink); min-height: 48px; }
.card .btn:hover { background: var(--color-surface); }
.models__note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); max-width: 60ch; }

/* ---------- For whom ---------- */
.fit { padding-block: var(--space-2xl); background: var(--color-surface); }
.fit h2 { font-size: var(--text-display); margin-bottom: var(--space-xl); }
.fit__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .fit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit__col h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-md); }
.fit__col ul { display: grid; gap: var(--space-md); }
.fit__col li { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--color-ink); }
.fit__col .icon { color: var(--color-ink); margin-top: 2px; }
.fit__callout { margin-top: var(--space-xl); padding-left: var(--space-lg); border-left: 2px solid var(--color-accent); font-weight: 600; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-2xl); }
.faq h2 { font-size: var(--text-display); margin-bottom: var(--space-lg); }
.faq__list { display: grid; max-width: 72ch; border-top: 1px solid var(--color-line); }
.faq__item { border-bottom: 1px solid var(--color-line); padding-block: var(--space-sm); }
.faq__item summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); font-weight: 600; font-size: var(--text-lg); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--color-ink); transition: transform var(--dur) var(--ease-out); }
.faq__toggle::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__toggle::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__body { padding-block: var(--space-sm) var(--space-md); color: var(--color-muted); max-width: 65ch; }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(180deg, var(--color-ink-deep), var(--color-ink)); color: var(--color-on-ink); padding-block: var(--space-2xl); text-align: center; }
.final h2 { font-size: var(--text-display); max-width: 24ch; margin-inline: auto; color: var(--color-on-ink); }
.final__cta { margin-top: var(--space-xl); }
.final__contact { margin-top: var(--space-lg); color: var(--color-on-ink-muted); font-size: var(--text-md); }
.final__contact a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-line); padding-block: var(--space-lg); }
.footer .container { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; justify-content: space-between; font-size: var(--text-xs); color: var(--color-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Sticky CTA ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--color-bg); border-top: 1px solid var(--color-line); padding: var(--space-sm) var(--space-md) calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-up); }
.sticky .btn { width: 100%; }
@media (max-width: 1023px) { body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { .sticky { display: none; } }

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-bg); border-top: 1px solid var(--color-line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-sm); padding: 10px var(--space-md); }
.consent__inner { max-width: 480px; margin-inline: auto; }
.consent p { margin: 0; color: var(--color-ink); font-size: var(--text-xs); line-height: 1.4; }
.consent__actions { margin-top: var(--space-xs); display: flex; gap: var(--space-xs); }
.consent__actions .btn { flex: 1 1 140px; min-height: 44px; padding-inline: 14px; font-size: var(--text-sm); }
.consent__link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (min-width: 40rem) {
  .consent { left: var(--space-lg); right: auto; bottom: var(--space-lg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); max-width: 340px; padding: var(--space-lg); box-shadow: var(--shadow-lg); }
  .consent p { font-size: var(--text-sm); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .video__frame.is-nudged { animation: none; }
}
