/* Over the Curve · strona · tokeny 3.0 (granat i srebro) */
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/IBMPlexSans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B1A30;
  --surface: #12264A;
  --line: #29406A;
  --text: #F2F4F7;
  --silver: #B9C3D1;
  --muted: #8C9AB0;
  --ice: #9DB8FF;
  --doc-muted: #5A6679;
  --doc-info: #2F4BD8;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
  --ease: cubic-bezier(.6, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ice); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice); outline-offset: 3px;
}
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; font-stretch: 118%; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-stretch: 115%; max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.25; font-stretch: 112%; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 3px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); margin-bottom: 16px; }
.lead, .section-lead { color: var(--silver); max-width: 58ch; font-size: 18px; }
.section-lead { margin-top: 18px; }
.muted { color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 26, 48, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 247px; height: auto; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--text); border-radius: 3px; width: 42px; height: 38px; padding: 8px; cursor: pointer; }
.menu-icon { display: grid; gap: 4px; justify-items: end; }
.menu-icon span { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--silver); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; background: var(--text); color: var(--bg); font: 600 15px var(--font-body); padding: 13px 20px; border-radius: 3px; text-decoration: none; border: 0; cursor: pointer; transition: background .2s var(--ease); }
.btn:hover { background: #FFFFFF; }
.link { color: var(--ice); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 30px; }
.annotation { font-family: var(--font-mono); font-size: 13px; color: var(--ice); margin-top: 22px; }

/* Hero */
.hero { min-height: calc(100svh - 68px); display: grid; align-items: center; padding-block: clamp(64px, 8vw, 112px) var(--section); }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { max-width: none; font-size: clamp(48px, 4.2vw, 56px); line-height: .98; }
.hero .lead { margin-top: 24px; max-width: none; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.25; }
.hero .actions { margin-top: 34px; }
.module-art { width: min(100%, 330px); margin: 0; justify-self: end; }
.module-art svg { width: 100%; height: auto; overflow: visible; }
.hero-module { fill: none; stroke: var(--text); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.hero-module--accent { fill: var(--ice); stroke: var(--ice); }
html.js .hero-module { transition: transform .78s var(--ease); transform-box: fill-box; transform-origin: center; }
html.js .hero-module--accent { transition-delay: .06s; }
html.js .hero-module--wide { transition-delay: .1s; }
html.js .hero-module--tall { transition-delay: .16s; }
html.js .module-art.is-animating .hero-module { transition: none; }
html.js .module-art.is-animating .hero-module--primary { transform: translate(-14px, -12px); }
html.js .module-art.is-animating .hero-module--accent { transform: translate(14px, -10px); }
html.js .module-art.is-animating .hero-module--wide { transform: translate(-12px, 12px); }
html.js .module-art.is-animating .hero-module--tall { transform: translate(15px, 11px); }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-module { transition: none; transform: none !important; }
  .menu-icon span { transition: none; }
}

/* Sekcje — mobile-first */
.section { padding-block: var(--section); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.h2-line { display: block; }
.h2-wide { max-width: none; }
.body-copy { display: grid; gap: 18px; margin-top: 24px; color: var(--silver); font-size: 17px; max-width: 58ch; }
.link-arrow { display: inline-flex; gap: 8px; margin-top: 28px; color: var(--ice); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover { color: var(--text); }
.split { display: grid; gap: 48px; }

/* Panel: cztery warstwy */
.layers { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 14px; position: relative; }
.layers::before { content: ""; position: absolute; left: 18px; top: 34px; bottom: 34px; width: 1px; background: var(--line); }
.layer { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 0; min-height: 88px; border: 1px solid var(--silver); border-radius: 3px; background: var(--bg); }
.layer-dot { position: absolute; left: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--silver); border-radius: 50%; background: var(--bg); }
.layer-icon { display: grid; place-items: center; height: 100%; border-right: 1px solid var(--line); margin-left: 6px; }
.layer-icon svg, .flow-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.layer-text { padding: 16px 18px; display: grid; gap: 2px; }
.layer-text h3 { font-size: 18px; }
.layer-text p, .flow-text p { color: var(--silver); font-size: 15px; line-height: 1.45; }
.layer--key { border-color: var(--ice); }
.layer--key .layer-dot { background: var(--ice); border-color: var(--ice); }
.layer--key .layer-text p { color: var(--ice); }

/* Pilot: oś etapów (pion na telefonie) */
.pilot-text { margin-top: 24px; }
.flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 34px; position: relative; }
.flow::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 1px; background: var(--silver); opacity: .55; }
.flow-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.flow-icon { grid-row: 1; grid-column: 1; display: grid; place-items: center; height: 44px; background: var(--bg); position: relative; }
.flow-icon svg { width: 34px; height: 34px; }
.flow-dot { grid-row: 2; grid-column: 1; justify-self: center; width: 16px; height: 16px; margin-top: 8px; border: 1.5px solid var(--silver); border-radius: 50%; background: var(--bg); position: relative; }
.flow-no { display: none; }
.flow-text { grid-row: 1 / span 2; grid-column: 2; display: grid; gap: 2px; padding-top: 6px; }
.flow-text h3 { font-size: 18px; }
.flow-step--key .flow-icon svg { stroke: var(--ice); }
.flow-step--key .flow-dot { border-color: var(--ice); background: radial-gradient(circle, var(--ice) 0 4px, var(--bg) 4.5px); }
.flow-note { margin-top: 40px; color: var(--silver); font-size: 15px; }

/* Kontakt */
.contact-lead { margin-top: 22px; color: var(--silver); font-size: 18px; line-height: 1.55; max-width: 46ch; }
.contact-note { margin-top: 16px; color: var(--silver); font-size: 17px; }
.contact-art { display: none; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.full { grid-column: 1 / -1; }
label { font-size: 15px; font-weight: 500; }
input[type=text], input[type=email], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--silver); border-radius: 3px;
  font: 16px var(--font-body); padding: 14px 16px;
}
textarea { min-height: 136px; resize: vertical; }
select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select:invalid, select option[value=""] { color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible { border-color: var(--ice); }
[aria-invalid="true"] { border-color: #FF9C92 !important; }
.opt { color: var(--silver); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-info { color: var(--silver); font-size: 14px; }
.form-info a { color: var(--text); }
.form-actions { display: grid; gap: 14px; }
.btn--block { width: 100%; padding: 18px 20px; font-size: 16px; text-align: center; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; color: var(--silver); }
.form-status.error { color: #FF9C92; }
.form-status.ok { color: var(--ice); }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.foot { display: grid; gap: 18px; color: var(--silver); font-size: 15px; }
.foot-brand img { width: 200px; height: auto; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { color: var(--silver); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* Ruch: wejście przy przewijaniu, raz. Bez JS i przy reduced-motion — od razu stan końcowy. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal .layer, html.js .reveal .flow-step { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  html.js .reveal.is-visible .layer, html.js .reveal.is-visible .flow-step { opacity: 1; transform: none; }
  html.js .reveal > :nth-child(2) { transition-delay: .08s; }
  html.js .reveal > :nth-child(3) { transition-delay: .16s; }
  html.js .reveal > :nth-child(4) { transition-delay: .24s; }
  html.js .reveal .layer--key, html.js .reveal .layer--key .layer-dot, html.js .reveal .layer--key .layer-text p { transition: opacity .5s var(--ease) .16s, transform .5s var(--ease) .16s, border-color .4s var(--ease) .7s, background-color .4s var(--ease) .7s, color .4s var(--ease) .7s; }
  html.js .reveal:not(.is-visible) .layer--key { border-color: var(--silver); }
  html.js .reveal:not(.is-visible) .layer--key .layer-dot { background-color: var(--bg); border-color: var(--silver); }
  html.js .reveal:not(.is-visible) .layer--key .layer-text p { color: var(--silver); }
  html.js .flow::after { transition: transform .7s var(--ease) .3s; }
  html.js .flow:not(.is-visible)::after { transform: scaleY(0); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .split--contact { align-items: start; }
  .h2-wide { font-size: clamp(40px, 4.6vw, 64px); }

  .layers { gap: 18px; }
  .layer { grid-template-columns: 92px minmax(0, 1fr); min-height: 108px; }
  .layer-icon { margin-left: 10px; }
  .layer-icon svg { width: 34px; height: 34px; }
  .layer-text { padding: 20px 26px; }
  .layer-text h3 { font-size: 20px; }
  .layer-text p { font-size: 16px; }
  .pilot-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); max-width: none; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
  .flow::before { left: 12.5%; right: 12.5%; top: 92px; bottom: auto; width: auto; height: 1px; }
  .flow::after { content: ""; position: absolute; left: 37.5%; width: 25%; top: 87px; height: 11px; background: linear-gradient(var(--ice), var(--ice)) center / 100% 1px no-repeat, linear-gradient(var(--ice), var(--ice)) center / 10px 10px no-repeat; transform-origin: left; }
  .flow-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 0; }
  .flow-icon { grid-row: 1; grid-column: 1; height: 58px; background: transparent; }
  .flow-icon svg { width: 44px; height: 44px; }
  .flow-icon::after { content: ""; position: absolute; left: 50%; top: 62px; width: 1px; height: 14px; background: var(--silver); }
  .flow-dot { grid-row: 2; width: 22px; height: 22px; margin-top: 23px; }
  .flow-step--key .flow-dot { background: radial-gradient(circle, var(--ice) 0 6px, var(--bg) 6.5px); }
  .flow-no { display: block; grid-row: 3; margin-top: 12px; font: 13px var(--font-mono); color: var(--silver); }
  .flow-step--key .flow-no { color: var(--ice); }
  .flow-text { grid-row: 4; grid-column: 1; padding-top: 18px; }
  .flow-text h3 { font-size: 19px; }

  .contact-art { display: block; width: min(100%, 300px); margin-top: 48px; fill: none; stroke: var(--text); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
  .contact-art__accent { fill: var(--ice); stroke: var(--ice); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .foot-claim { justify-self: center; }
  .foot-links { display: flex; gap: 32px; align-items: center; }
  .foot-copy { border-left: 1px solid var(--line); padding-left: 32px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .flow:not(.is-visible)::after { transform: scaleX(0); }
}


@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  html.js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  html.js #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  html.js #main-nav.is-open { display: block; }
  html:not(.js) #main-nav { display: block; position: static; border-bottom: 0; }
  .nav { display: grid; gap: 0; align-items: stretch; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 14px var(--gutter); font-size: 16px; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  html:not(.js) .nav li { border-top: 0; }
  html:not(.js) .nav a { padding: 4px 0; }
  .hero { min-height: calc(100svh - 68px); }
  .hero-copy { max-width: 680px; }
  .module-art { justify-self: center; width: min(100%, 240px); margin-top: 12px; }
}
@media (max-width: 640px) {
  .brand img { width: 195px; }
  .hero { padding-block: 58px 82px; }
  .hero h1 { font-size: clamp(32px, 8.3vw, 42px); }
  .hero .lead { margin-top: 20px; font-size: 22px; }
  .hero .actions { margin-top: 28px; }
  .hero .btn { width: 100%; text-align: center; }
  .module-art { width: min(100%, 200px); margin-top: 28px; }
}

/* Polityka prywatności — dokument tekstowy */
.legal { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.legal-grid { display: grid; gap: 32px; }
.legal-head h1 { font-size: clamp(34px, 4.4vw, 52px); }
.legal-date { margin-top: 16px; font-size: 14px; color: var(--muted); }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); display: grid; gap: 10px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--ice); white-space: pre; }
.legal-toc a { color: var(--silver); text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--text); text-decoration: underline; }
.legal-body { max-width: 68ch; }
.legal-body section { padding-top: 40px; scroll-margin-top: 96px; }
.legal-body section:first-child { padding-top: 0; }
.legal-body h2 { font-size: clamp(20px, 2vw, 24px); max-width: none; margin-bottom: 16px; }
.legal-body p, .legal-body li { color: var(--silver); line-height: 1.7; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 14px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--text); text-underline-offset: 3px; }
.legal-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; background: var(--ice); }
.foot-links a[aria-current="page"] { color: var(--text); }
@media (min-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 72px; row-gap: 56px; align-items: start; }
  .legal-head { grid-column: 1 / -1; }
  .legal-body { grid-column: 1; grid-row: 2; }
  .legal-toc { grid-column: 2; grid-row: 2; position: sticky; top: 104px; }
}
