/* Wariant B „Krok po kroku” (designs/b-krok-po-kroku.html). Fonty lokalnie, bez Google. */

/* Bricolage Grotesque (OFL), zmienna: opsz 12..96, wght 300..700 */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-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;
}
/* Inter (OFL), zmienna wght */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-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;
}

:root {
  --bg: #0c111c;
  --bg-2: #141b2a;
  --line: rgba(255,255,255,.12);
  --text: #f2f0ea;
  --muted: #9aa3b5;
  --dim: #5f6879;
  --accent: #d6f26b;
  --accent-ink: #11160a;
  --danger: #ff8a7a;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 55%; top: 5%; background: radial-gradient(circle, #2b6e78 0%, transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; left: 5%; top: 50%; background: radial-gradient(circle, #3b2f6e 0%, transparent 65%); animation-delay: -8s; }
.aurora i:nth-child(3) { width: 26vw; height: 26vw; left: 70%; top: 60%; background: radial-gradient(circle, #5b6b1f 0%, transparent 65%); animation-delay: -14s; opacity: .7; }
@keyframes drift { to { transform: translate(-6vw, 4vh) scale(1.12); } }

.shell { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }
header { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; gap: 20px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.logo span { color: var(--muted); font-weight: 400; }
.progress { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.progress.on { opacity: 1; }
.bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

main { flex: 1 0 auto; min-height: calc(100vh - 66px); min-height: calc(100dvh - 66px); display: flex; align-items: center; justify-content: center; padding: 8px 32px 24px; }
.stage { width: 100%; max-width: 760px; position: relative; }
.step { display: none; }
.step.active { display: block; animation: enter .55s cubic-bezier(.2,.8,.2,1) both; }
.step.leaving { display: block; animation: leave .25s ease both; }
.step.rev.active { animation-name: enter-back; }
@keyframes enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-18px); } }

.kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 18px; }
.kicker .arrow { font-size: 13px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(36px, min(7vw, 9.5vh), 80px); line-height: .98; }
h1 .hl { color: var(--accent); }
h1 .h1-sub { display: block; margin-top: .4em; font-size: .5em; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
h2 { font-size: clamp(28px, min(4.4vw, 6vh), 46px); line-height: 1.08; }
h2 .who { color: var(--accent); }
h2 label { cursor: inherit; }
.sub { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 580px; }

.big {
  width: 100%; margin-top: 38px; background: transparent; border: 0; outline: none; color: var(--text);
  font-family: var(--display); font-size: clamp(28px, 4.4vw, 46px); font-weight: 400; letter-spacing: -.02em;
  border-bottom: 2px solid var(--line); border-radius: 0; padding: 6px 0 14px; caret-color: var(--accent); transition: border-color .25s;
}
.big:focus { border-color: var(--accent); }
.big::placeholder { color: var(--dim); }
textarea.big { resize: none; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.4; min-height: 150px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: rgba(255,255,255,.03); }
textarea.big:focus { border-color: var(--accent); }
.meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--dim); min-height: 20px; }
.meta .err { color: var(--danger); }
.meta .good { color: var(--accent); }
.step:not([data-key]) .meta { margin-top: 18px; font-size: 14px; }
.step:not([data-key]) .meta:has(.msg:empty) { min-height: 0; margin-top: 0; }

.actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  font: inherit; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; border-radius: 12px; padding: 15px 26px;
  background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, box-shadow .2s, opacity .2s; box-shadow: 0 0 0 0 rgba(214,242,107,.0);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(214,242,107,.45); }
.btn:focus-visible, .chip:focus-visible, .back:focus-visible, .summary button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { color: var(--text); box-shadow: none; border-color: var(--muted); }
.kbd { font-size: 13px; color: var(--dim); }
.kbd b { font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 0 2px; }

.promises { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.promises li { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.03); }
.promises li::before { content: "●"; color: var(--accent); font-size: 8px; margin-right: 8px; vertical-align: 2px; }

.price { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding: 14px 20px; border: 1px solid rgba(214,242,107,.35); border-radius: 16px; background: rgba(214,242,107,.07); }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount b { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.price .amount span { color: var(--muted); font-size: 15px; }
.price .amount .old { font-family: var(--display); font-size: 20px; color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-note strong { color: var(--accent); font-weight: 600; }
.price-note { font-size: 14px; color: var(--muted); max-width: 280px; line-height: 1.4; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips + .group-l { margin-top: 30px; }
.group-l { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 32px 0 -18px; }
.chip {
  font: inherit; font-size: 15px; color: var(--text); cursor: pointer; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; transition: all .15s; display: inline-flex; align-items: center; gap: 9px;
}
.chip::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--dim); transition: all .15s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: rgba(214,242,107,.12); border-color: var(--accent); }
.chip[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--bg); }

.summary { margin: 30px 0 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); overflow: hidden; }
.summary div { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: baseline; }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--dim); font-size: 13px; }
.summary dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.summary dd.empty { color: var(--dim); font-style: italic; }
.summary button { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.summary button:hover { color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--muted); flex: none; cursor: pointer; display: grid; place-items: center; margin: 0; }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: "✓"; color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.consent a { color: var(--text); }
.fine { font-size: 13px; color: var(--dim); }

.btn.back-btn { color: var(--text); border-color: var(--muted); }
.btn.back-btn:hover { border-color: var(--accent); color: var(--accent); }

.chip-all { font-weight: 600; }
.more { margin-top: 22px; }
.more summary { cursor: pointer; font-size: 15px; color: var(--muted); width: fit-content; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--accent); }
.more[open] summary::before { content: "− "; }
.more summary:hover { color: var(--text); }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.more .hint { margin: 12px 0 0; font-size: 14px; color: var(--dim); max-width: 560px; }
.mini { width: 100%; margin-top: 12px; font: inherit; font-size: 18px; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; outline: none; caret-color: var(--accent); }
.mini:focus { border-color: var(--accent); }
.mini::placeholder { color: var(--dim); }

.done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 40px; margin-bottom: 30px; box-shadow: 0 0 60px rgba(214,242,107,.35); animation: pop .6s cubic-bezier(.2,1.6,.4,1) both .1s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.timeline { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; color: var(--muted); font-size: 16px; }
.timeline b { color: var(--text); font-weight: 500; }
.timeline span:first-child { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.site-footer p { margin: 0; }
.f-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.f-logo img { display: block; }
.f-logo:hover { color: var(--accent); }
.f-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) { .site-footer { padding: 18px; } }

.noscript { margin: 0 0 34px; padding: 16px 20px; border: 1px solid rgba(255,138,122,.45); border-radius: 16px; background: rgba(255,138,122,.08); color: var(--text); font-size: 15px; line-height: 1.5; }
.noscript b { display: block; margin-bottom: 4px; }
.noscript a { color: var(--accent); }

.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
  header { padding: 18px 18px; }
  .logo span { display: none; }
  main { padding: 10px 18px 40px; align-items: flex-start; }
  .stage { padding-top: 6vh; }
  .summary div { grid-template-columns: 1fr auto; }
  .summary dt { grid-column: 1 / -1; margin-bottom: -10px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .kbd { display: none; }
}

/* Niskie okna (typowy laptop): wszystko poza stopką ma mieścić się na jednym ekranie */
@media (max-height: 860px) and (min-width: 641px) {
  header { padding: 14px 32px; }
  main { min-height: calc(100vh - 52px); min-height: calc(100dvh - 52px); padding-bottom: 16px; }
  .kicker { margin-bottom: 10px; }
  .sub { font-size: 16px; margin-top: 10px; }
  .big { margin-top: 20px; padding-bottom: 10px; }
  textarea.big { min-height: 110px; padding: 14px 18px; }
  .actions { margin-top: 20px; }
  .btn { padding: 12px 24px; font-size: 16px; }
  .promises { margin-top: 18px; }
  .promises li { padding: 5px 12px; font-size: 13px; }
  .price { margin-top: 18px; padding: 10px 18px; }
  .price .amount b { font-size: 28px; }
  .chips { margin-top: 20px; gap: 8px; }
  .chip { padding: 7px 14px; font-size: 14px; }
  .group-l { margin: 18px 0 -10px; }
  .chips + .group-l { margin-top: 18px; }
  .more { margin-top: 14px; }
  .summary { margin-top: 16px; }
  .summary div { padding: 9px 20px; }
  .consent { margin-top: 16px; }
  .timeline { margin-top: 20px; gap: 10px; }
  .done-mark { width: 64px; height: 64px; font-size: 30px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .step.active, .done-mark, .shake { animation: none; }
  .step.leaving { display: none; }
  .bar i { transition: none; }
}
