/* Strona powitalna — pastele wokół żółci znaku promieniowania. */
:root {
  --l-ground: #F7F8FC;
  --l-surface: #FFFFFF;
  --l-ink: #1B2130;
  --l-muted: #5A6275;
  --l-line: rgba(27, 33, 48, 0.10);
  --l-butter: #FFF1A8;
  --l-butter-strong: #FFE45C;
  --l-mint: #D4F1E0;
  --l-sky: #DCEAFF;
  --l-lilac: #E9E2FB;
  --l-peach: #FFE1D3;
  --l-blue: #1D5FD1;
  --l-blue-soft: rgba(29, 95, 209, 0.10);
  --l-shadow: 0 24px 60px -24px rgba(27, 33, 48, 0.28);
  --l-ring-1: rgba(255, 59, 48, 0.10);
  --l-ring-2: rgba(255, 149, 0, 0.10);
  --l-ring-3: rgba(255, 196, 0, 0.12);
  --l-ring-4: rgba(52, 199, 89, 0.10);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --l-ground: #12151D;
    --l-surface: #1B1F2A;
    --l-ink: #EEF1F7;
    --l-muted: #A3AABB;
    --l-line: rgba(238, 241, 247, 0.10);
    --l-butter: #3A3521;
    --l-butter-strong: #FFE45C;
    --l-mint: #1E3529;
    --l-sky: #1D2B42;
    --l-lilac: #2A2540;
    --l-peach: #3A2A24;
    --l-blue: #7FB0FF;
    --l-blue-soft: rgba(127, 176, 255, 0.14);
    --l-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --l-ring-1: rgba(255, 99, 88, 0.12);
    --l-ring-2: rgba(255, 169, 60, 0.10);
    --l-ring-3: rgba(255, 214, 60, 0.08);
    --l-ring-4: rgba(72, 219, 109, 0.07);
  }
}
:root[data-theme="dark"] {
  --l-ground: #12151D;
  --l-surface: #1B1F2A;
  --l-ink: #EEF1F7;
  --l-muted: #A3AABB;
  --l-line: rgba(238, 241, 247, 0.10);
  --l-butter: #3A3521;
  --l-mint: #1E3529;
  --l-sky: #1D2B42;
  --l-lilac: #2A2540;
  --l-peach: #3A2A24;
  --l-blue: #7FB0FF;
  --l-blue-soft: rgba(127, 176, 255, 0.14);
  --l-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --l-ring-1: rgba(255, 99, 88, 0.12);
  --l-ring-2: rgba(255, 169, 60, 0.10);
  --l-ring-3: rgba(255, 214, 60, 0.08);
  --l-ring-4: rgba(72, 219, 109, 0.07);
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-btn { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font: inherit; color: inherit; }
.logo { display: block; width: 36px; height: 36px; flex: none; }
.logo-sm { width: 28px; height: 28px; }

.landing {
  background: var(--l-ground);
  color: var(--l-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
  overflow-x: hidden;
}
.landing a { color: inherit; }
.landing :focus-visible { outline: 3px solid var(--l-blue); outline-offset: 3px; border-radius: 8px; }
.l-wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.landing h1, .landing h2, .landing h3 { font-family: var(--f-display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.landing h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 700; }
.landing h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.l-sub { color: var(--l-muted); max-width: 62ch; margin: 12px 0 0; }

/* nawigacja */
.l-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--l-ground) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--l-line);
}
.l-nav-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.l-links { display: flex; gap: 22px; margin-left: 8px; }
.l-links a { text-decoration: none; color: var(--l-muted); font-weight: 500; font-size: 15px; }
.l-links a:hover { color: var(--l-ink); }
.l-nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.landing .gate-lang { display: flex; gap: 4px; margin: 0; }
.landing .gate-lang button {
  border: 0; border-radius: 999px; padding: 5px 9px; cursor: pointer; font: 600 12px var(--f-body);
  background: transparent; color: var(--l-muted);
}
.landing .gate-lang button[aria-pressed="true"] { background: var(--l-blue-soft); color: var(--l-blue); }

.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 22px; cursor: pointer;
  background: var(--l-ink); color: var(--l-ground) !important; text-decoration: none;
  font: 600 16px var(--f-body); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.l-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(27, 33, 48, .5); }
.l-btn-small { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.l-btn-ghost { background: transparent; color: var(--l-ink) !important; box-shadow: inset 0 0 0 1.5px var(--l-line); }
.l-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--l-ink); }

/* hero */
.l-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.l-rings { position: absolute; right: -180px; top: -140px; width: 820px; height: 820px; pointer-events: none; }
.l-rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.l-rings i:nth-child(1) { width: 100%; height: 100%; background: var(--l-ring-4); border: 1.5px dashed rgba(28, 122, 52, .22); }
.l-rings i:nth-child(2) { width: 74%; height: 74%; background: var(--l-ring-3); }
.l-rings i:nth-child(3) { width: 50%; height: 50%; background: var(--l-ring-2); }
.l-rings i:nth-child(4) { width: 28%; height: 28%; background: var(--l-ring-1); }
.l-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.l-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--l-butter); font-size: 13.5px; font-weight: 600;
}
.l-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; font-weight: 800; }
.l-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--l-muted); max-width: 56ch; margin: 22px 0 0; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.l-audience { margin: 22px 0 0; font-size: 14px; color: var(--l-muted); max-width: 52ch; }

.l-hero-visual { position: relative; height: 560px; }
.l-phone {
  position: absolute; margin: 0; width: 250px; aspect-ratio: 585 / 1266; max-width: 100%;
  border-radius: 38px; padding: 9px; background: #1B2130;
  box-shadow: var(--l-shadow);
}
.l-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.l-phone-front { left: 50%; top: 10px; transform: translateX(-28%) rotate(3deg); z-index: 2; }
.l-phone-back { left: 50%; top: 40px; transform: translateX(-102%) rotate(-6deg); z-index: 1; opacity: .96; }
.l-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: var(--l-surface);
  box-shadow: 0 12px 30px -14px rgba(27, 33, 48, .45); border: 1px solid var(--l-line);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.l-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.l-chip-1 { right: 0; top: 90px; }
.l-chip-2 { left: 0; top: 300px; }
.l-chip-3 { right: 12px; bottom: 36px; }

.l-stats {
  position: relative; margin: 44px 0 0; padding: 22px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  background: var(--l-surface); border: 1px solid var(--l-line); border-radius: 22px;
}
.l-stats div { display: flex; gap: 12px; align-items: baseline; }
.l-stats dt { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--l-blue); font-variant-numeric: tabular-nums; }
.l-stats dd { margin: 0; font-size: 14px; color: var(--l-muted); line-height: 1.35; }

/* sekcje */
.l-section { padding: 72px 0; }
.l-norms { background: var(--l-surface); border-block: 1px solid var(--l-line); }
.l-norm-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.l-norm-list li { display: grid; gap: 8px; padding: 20px 22px; border-radius: 18px; }
.l-norm-list code { font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.l-norm-list span { color: var(--l-ink); opacity: .82; font-size: 15px; }
.n-butter { background: var(--l-butter); }
.n-mint { background: var(--l-mint); }
.n-sky { background: var(--l-sky); }
.n-lilac { background: var(--l-lilac); }

.l-bento { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-bento article { border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.l-bento article > svg { width: 30px; height: 30px; color: var(--l-ink); margin-bottom: 6px; }
.l-bento p { margin: 0; color: var(--l-ink); opacity: .78; font-size: 15px; }
.b-wide { grid-column: span 2; }
.b-full { grid-column: 1 / -1; }
.b-butter { background: var(--l-butter); }
.b-sky { background: var(--l-sky); }
.b-peach { background: var(--l-peach); }
.b-mint { background: var(--l-mint); }
.b-lilac { background: var(--l-lilac); }
.b-figure { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 12px; }
.b-figure span, .b-figure b {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--l-surface) 70%, transparent);
  font-family: var(--f-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums;
}
.b-figure small { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--l-muted); }
.b-figure b { background: var(--l-ink); color: var(--l-ground); }

.l-steps-sec { background: linear-gradient(180deg, var(--l-ground), var(--l-sky)); }
.l-steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-steps li { counter-increment: step; background: var(--l-surface); border-radius: 20px; padding: 24px; border: 1px solid var(--l-line); }
.l-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 50%; background: var(--l-butter-strong); color: #1B2130;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
}
.l-steps p { margin: 8px 0 0; color: var(--l-muted); font-size: 15px; }

.l-gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 32px max(20px, calc((100vw - 1080px) / 2)) 12px; scrollbar-width: thin;
}
.l-gallery figure { flex: 0 0 min(240px, 70vw); margin: 0; scroll-snap-align: center; }
.l-gallery img {
  display: block; width: 100%; height: auto; box-sizing: border-box; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top;
  border-radius: 30px; border: 8px solid #1B2130; box-shadow: var(--l-shadow);
}
.l-gallery figcaption { margin-top: 14px; font-size: 14px; color: var(--l-muted); text-align: center; }
.l-gallery figure:nth-child(4n+1) img { background: var(--l-butter); }

.l-platforms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.l-platforms ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.l-platforms li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: var(--l-surface); border: 1px solid var(--l-line); font-weight: 600;
}
.l-platforms li svg { width: 26px; height: 26px; flex: none; color: var(--l-blue); }

.l-key { padding-top: 24px; }
.l-key-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 36px; border-radius: 28px;
  background: linear-gradient(135deg, var(--l-butter), var(--l-mint) 60%, var(--l-sky));
}
.l-key-card > .logo { width: 72px; height: 72px; }
.l-key-card .l-sub { color: var(--l-ink); opacity: .75; }
.l-key-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.landing .gate-input {
  flex: 1 1 260px; min-width: 0; padding: 14px 16px; border-radius: 14px; text-align: center;
  font: 600 20px var(--f-mono); letter-spacing: .06em; color: #1B2130;
  background: rgba(255, 255, 255, .85); border: 1.5px solid rgba(27, 33, 48, .15); outline: none;
}
.landing .gate-input:focus { border-color: var(--l-blue); }
.landing .gate-input.bad { border-color: #FF3B30; }
.landing .error { margin: 10px 0 0; color: #C4271E; font-weight: 600; font-size: 14px; }
.l-small { margin: 18px 0 0; font-size: 14px; }
.l-small a { font-weight: 600; }
#openBox .l-btn { margin-top: 20px; }

.l-footer { padding: 36px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--l-line); color: var(--l-muted); font-size: 13.5px; }
.l-footer p { margin: 0 0 8px; max-width: 80ch; }

@media (max-width: 900px) {
  .l-links { display: none; }
  .l-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .l-hero-visual { height: 470px; }
  .l-phone { width: 205px; }
  .l-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-norm-list, .l-steps { grid-template-columns: minmax(0, 1fr); }
  .l-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-platforms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .l-nav-end .l-btn-small { display: none; }
  .l-hero { padding-top: 32px; }
  .l-rings { width: 560px; height: 560px; right: -260px; top: -120px; }
  .l-hero-visual { height: 420px; }
  .l-phone { width: 170px; border-radius: 30px; padding: 7px; }
  .l-phone img { border-radius: 24px; }
  .l-chip { font-size: 12.5px; padding: 7px 11px; }
  .l-chip-2 { top: 250px; }
  .l-chip-3 { bottom: 20px; right: 0; }
  .l-stats { padding: 18px; }
  .l-stats div { flex-direction: column; gap: 4px; }
  .l-stats dt { font-size: 32px; }
  .l-bento { grid-template-columns: minmax(0, 1fr); }
  .b-wide, .b-full { grid-column: auto; }
  .l-platforms ul { grid-template-columns: minmax(0, 1fr); }
  .l-key-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .l-key-card > .logo { width: 56px; height: 56px; }
  .l-section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .l-btn { transition: none; }
  .landing { scroll-behavior: auto; }
}
html:has(.landing:not([hidden])) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.landing:not([hidden])) { scroll-behavior: auto; } }
