/* ============================================================
   EndoMed.online — landing v3 „Clinical Glass" — paleta stonowana (szałwia, ~½ nasycenia)
   Te same tokeny co panel (src/app/globals.css): Vital Green,
   Plus Jakarta Sans + Newsreader, szkło, miękkie cienie.
   ============================================================ */
:root {
  --ink-1: oklch(0.24 0.020 158); --ink-2: oklch(0.38 0.018 158); --ink-3: oklch(0.53 0.014 158);
  --ink-4: oklch(0.68 0.009 158); --ink-5: oklch(0.84 0.006 158);
  --g-deep: oklch(0.47 0.055 152); --g: oklch(0.63 0.072 152); --g-soft: oklch(0.8 0.06 153); --g-tint: oklch(0.955 0.018 150);
  --t: oklch(0.53 0.039 205); --t-deep: oklch(0.43 0.037 205); --t-tint: oklch(0.94 0.02 205);
  --amber: oklch(0.78 0.13 75); --rose: oklch(0.62 0.17 25);
  --bg: oklch(0.982 0.006 110); --bg-2: oklch(0.962 0.008 115); --surface: #fff;
  --dark: oklch(0.19 0.022 158); --dark-2: oklch(0.24 0.03 158);
  --line: oklch(0.24 0.020 158 / .08); --line-2: oklch(0.24 0.020 158 / .14);
  --grad-cta: linear-gradient(180deg, oklch(0.58 0.068 150) 0%, oklch(0.45 0.055 153) 100%);
  --grad-dark: linear-gradient(140deg, oklch(0.20 0.022 158) 0%, oklch(0.28 0.025 158) 55%, oklch(0.38 0.045 152) 100%);
  --sh-1: 0 1px 2px oklch(0.24 0.02 158 / .05);
  --sh-2: 0 1px 0 oklch(1 0 0 / .8) inset, 0 14px 34px -16px oklch(0.24 0.02 158 / .22), 0 2px 6px -2px oklch(0.24 0.02 158 / .06);
  --sh-3: 0 40px 80px -40px oklch(0.2 0.02 158 / .45);
  --sh-cta: 0 10px 26px -10px oklch(0.45 0.06 150 / .6), 0 1px 0 oklch(1 0 0 / .25) inset;
  --glass: oklch(1 0 0 / .68); --glass-line: oklch(1 0 0 / .75);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink-1); background: var(--bg); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Typografia ─────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-deep); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--g); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 0; }
.h2 em { font-style: italic; color: var(--g-deep); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-3); line-height: 1.65; max-width: 620px; margin-top: 18px; }
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.src { font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.src a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.src a:hover { color: var(--g-deep); }

/* ── Przyciski ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .2s; min-height: 52px; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-primary { color: #fff; background: var(--grad-cta); box-shadow: var(--sh-cta); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, oklch(1 0 0 / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px oklch(0.45 0.06 150 / .65), 0 1px 0 oklch(1 0 0 / .25) inset; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--ink-1); background: var(--glass); box-shadow: 0 0 0 1px var(--line-2) inset; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink-1); box-shadow: 0 12px 30px -12px oklch(0 0 0 / .45); }
.btn-light:hover { transform: translateY(-2px); }

/* ── Nawigacja ──────────────────────────────────────────── */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 var(--pad); pointer-events: none; }
.nav-in { pointer-events: auto; max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px;
  border-radius: 22px; background: oklch(1 0 0 / .62); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 0 0 1px oklch(1 0 0 / .7) inset, 0 10px 30px -18px oklch(0.24 0.02 158 / .35); transition: background .3s, box-shadow .3s; }
.nav.scrolled .nav-in { background: oklch(1 0 0 / .82); box-shadow: 0 0 0 1px var(--line) inset, 0 14px 34px -18px oklch(0.24 0.02 158 / .4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink-4); text-transform: uppercase; margin-top: 1px; }
.brand b { color: var(--g-deep); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a { padding: 9px 13px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: oklch(0.24 0.02 158 / .05); color: var(--ink-1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px !important; color: #fff !important; background: var(--grad-cta); box-shadow: var(--sh-cta); border-radius: 14px !important; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; background: oklch(0.24 0.02 158 / .05); }
.mnav { position: fixed; inset: 0; z-index: 49; background: oklch(0.985 0.008 150 / .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 96px var(--pad) 32px; display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav a { font-family: var(--serif); font-size: 34px; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.mnav.open a { transform: none; opacity: 1; }
.mnav.open a:nth-child(2) { transition-delay: .04s } .mnav.open a:nth-child(3) { transition-delay: .08s } .mnav.open a:nth-child(4) { transition-delay: .12s }
.mnav.open a:nth-child(5) { transition-delay: .16s } .mnav.open a:nth-child(6) { transition-delay: .2s }
.mnav .btn { margin-top: 20px; font-family: var(--sans); font-size: 16px; border: 0; }
@media (max-width: 960px) { .nav-links { display: none; } .nav-burger { display: inline-flex; } }

/* ── Tło: aurora ────────────────────────────────────────── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -12vw; top: -18vw; background: radial-gradient(circle, oklch(0.86 0.055 150 / .9), transparent 65%); }
.aurora .a2 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -14vw; top: -6vw; background: radial-gradient(circle, oklch(0.88 0.035 200 / .85), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.aurora .a3 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 30vw; bottom: -22vw; background: radial-gradient(circle, oklch(0.9 0.04 130 / .7), transparent 65%); animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vw, 3vw, 0) scale(1.08); } 100% { transform: translate3d(-3vw, 5vw, 0) scale(.95); } }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: radial-gradient(oklch(0.24 0.02 158 / .07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); }

/* ── HERO ───────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(120px, 15vw, 168px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chip-live { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line) inset, var(--sh-1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip-live b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--g-tint); color: var(--g-deep); font-size: 11.5px; letter-spacing: .02em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 oklch(0.63 0.072 152 / .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px oklch(0.63 0.072 152 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.63 0.072 152 / 0); } }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.1vw, 78px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--g-deep); display: inline-block; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.rotator { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.rot-word { position: relative; display: inline-grid; color: var(--g-deep); font-weight: 700; }
.rot-word span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(60%); filter: blur(4px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.rot-word span.on { opacity: 1; transform: none; filter: none; }
.rot-word span.out { opacity: 0; transform: translateY(-60%); filter: blur(4px); }
.rot-word::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g), transparent); opacity: .5; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 1.35vw, 18px); color: var(--ink-3); max-width: 540px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 13.5px; color: var(--ink-3); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic-sm { color: var(--g-deep); }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Scena produktu */
.stage { position: relative; height: clamp(520px, 52vw, 620px); perspective: 1400px; }
.stage-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.glow { position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, oklch(0.75 0.07 155 / .35), transparent 65%); filter: blur(30px); }
.card { position: absolute; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 0 0 1px var(--glass-line) inset, 0 30px 60px -30px oklch(0.2 0.02 158 / .45), 0 6px 14px -6px oklch(0.2 0.02 158 / .12);
  padding: 18px; opacity: 0; animation: cardIn 1.1s var(--ease) forwards; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.96); } to { opacity: 1; transform: translate3d(0, 0, var(--z, 0)); } }
.card.float { animation: cardIn 1.1s var(--ease) forwards, float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.card .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.c-weight { left: 6%; top: 8%; width: 62%; padding: 22px; color: #fff; background: var(--grad-dark); --z: 40px; animation-delay: .25s;
  box-shadow: 0 0 0 1px oklch(1 0 0 / .08) inset, 0 40px 70px -30px oklch(0.15 0.02 158 / .7); overflow: hidden; }
.c-weight::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 100% 0%, oklch(0.75 0.065 155 / .3), transparent 60%); }
.c-weight .lbl { color: oklch(1 0 0 / .55); }
.w-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.w-num { font-weight: 700; font-size: clamp(40px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.w-num small { font-size: .38em; font-weight: 600; color: oklch(1 0 0 / .5); letter-spacing: 0; margin-left: 4px; }
.w-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: oklch(0.8 0.065 155 / .18); color: var(--g-soft); }
.ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.ring .rv small { font-size: 9.5px; font-weight: 600; color: oklch(1 0 0 / .55); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.ring-fg { stroke-dasharray: 289; stroke-dashoffset: 289; animation: ringFill 2.2s var(--ease) 1s forwards; filter: drop-shadow(0 0 6px oklch(0.8 0.065 155 / .5)); }
@keyframes ringFill { to { stroke-dashoffset: 118; } }
.spark { position: relative; z-index: 1; margin-top: 16px; height: 86px; }
.spark path.l { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) .8s forwards; }
.spark path.a { opacity: 0; animation: fadeIn 1.2s ease 1.8s forwards; }
.spark circle { opacity: 0; animation: fadeIn .4s ease 3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.c-lab { right: 0; top: 30%; width: 50%; --z: 80px; animation-delay: .5s; }
.lab-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ic-tile { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--g-deep);
  background: linear-gradient(160deg, oklch(0.94 0.02 150), oklch(0.88 0.035 152)); box-shadow: 0 1px 0 oklch(1 0 0 / .9) inset, 0 6px 12px -6px oklch(0.45 0.055 152 / .45); }
.ic-tile .ic { width: 18px; height: 18px; }
.lab-title { font-weight: 700; font-size: 14px; line-height: 1.2; }
.lab-title small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-4); }
.lab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; opacity: 0; transform: translateX(8px); animation: rowIn .6s var(--ease) forwards; }
.lab-row:nth-of-type(1) { animation-delay: 1.4s } .lab-row:nth-of-type(2) { animation-delay: 1.7s } .lab-row:nth-of-type(3) { animation-delay: 2s } .lab-row:nth-of-type(4) { animation-delay: 2.3s }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.lab-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.p-ok { background: oklch(0.92 0.025 152); color: oklch(0.4 0.05 152); }
.p-warn { background: oklch(0.95 0.06 80); color: oklch(0.45 0.10 65); }
.p-info { background: var(--t-tint); color: var(--t-deep); }
.scan { position: absolute; left: 12px; right: 12px; height: 34px; top: 52px; border-radius: 8px; pointer-events: none;
  background: linear-gradient(180deg, transparent, oklch(0.63 0.072 152 / .14), transparent); animation: scan 2.6s ease-in-out 1.2s 2 both; opacity: 0; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(140px); } 100% { opacity: 0; transform: translateY(140px); } }

.c-meal { left: 0; bottom: 6%; width: 46%; display: flex; align-items: center; gap: 12px; --z: 60px; animation-delay: .75s; }
.meal-ic { width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: oklch(0.42 0.06 150);
  background: linear-gradient(150deg, oklch(0.955 0.018 150), oklch(0.88 0.037 150)); box-shadow: 0 1px 0 oklch(1 0 0 / .9) inset, 0 8px 16px -8px oklch(0.45 0.05 150 / .5); }
.meal-ic .ic { width: 24px; height: 24px; }
.meal b { display: block; font-size: 13.5px; line-height: 1.3; }
.meal small { font-size: 12px; color: var(--ink-4); }

.c-chat { right: 6%; bottom: 0; width: 46%; --z: 100px; animation-delay: 1s; }
.chat-who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.av { width: 26px; height: 26px; border-radius: 9px; background: var(--grad-cta); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bubble { position: relative; background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; min-height: 42px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.toast { position: absolute; left: 30%; top: -1%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; font-size: 13px; font-weight: 600;
  background: oklch(1 0 0 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--glass-line) inset, 0 18px 40px -20px oklch(0.2 0.02 158 / .5);
  opacity: 0; transform: translateY(-14px) scale(.96); animation: toast 7s var(--ease) 3.2s infinite; z-index: 3; }
.toast .ok { width: 30px; height: 30px; border-radius: 10px; background: var(--grad-cta); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.toast small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-4); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 8%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
.sample { position: absolute; right: 2%; top: 2%; font-size: 10.5px; color: var(--ink-4); letter-spacing: .04em; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 560px; max-width: 620px; margin: 8px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .stage { height: 500px; }
  .c-weight { left: 0; width: 88%; top: 9%; padding: 18px; }
  .c-lab { width: 72%; top: 44%; right: 0; }
  .c-meal { display: none; }
  .c-lab { top: 46%; width: 80%; }
  .c-chat { display: none; }
  .toast { left: auto; right: 0; top: 0; }
  .ring { width: 84px; height: 84px; } .ring svg { width: 84px; height: 84px; }
  .spark { height: 64px; }
  .sample { top: auto; bottom: -4px; right: 0; }
}

/* ── Marquee ────────────────────────────────────────────── */
.marquee { position: relative; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: oklch(1 0 0 / .4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; gap: 44px; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; color: var(--ink-3); white-space: nowrap; }
.mq-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--g-soft); margin-left: 30px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Reveal ─────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ── Dowody (liczby z badań) ────────────────────────────── */
.evid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.evid { position: relative; border-radius: 26px; padding: 30px 28px 26px; background: var(--glass); box-shadow: var(--sh-2), 0 0 0 1px var(--glass-line) inset; overflow: hidden;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.evid::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, oklch(0.86 0.05 150 / .6), transparent 70%); }
.evid .big { position: relative; font-weight: 700; font-size: clamp(54px, 6vw, 76px); letter-spacing: -.05em; line-height: 1; background: linear-gradient(160deg, var(--ink-1), var(--g-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.evid .big small { font-size: .45em; letter-spacing: -.02em; }
.evid p { position: relative; margin-top: 14px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.evid .src { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .evid-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Jak to działa (sticky story) ───────────────────────── */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); margin-top: 64px; align-items: start; }
.story-steps { position: relative; }
.story-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line-2); border-radius: 2px; }
.story-line i { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(180deg, var(--g-soft), var(--g)); border-radius: 2px; transition: height .2s linear; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px 0; min-height: 46vh; align-content: center; opacity: .38; transition: opacity .5s; }
.step.on { opacity: 1; }
.step-n { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: #fff; color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2) inset; transition: all .5s var(--ease); position: relative; z-index: 1; }
.step.on .step-n { background: var(--grad-cta); color: #fff; box-shadow: var(--sh-cta); transform: scale(1.06); }
.step h3 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--ink-3); font-size: 16px; line-height: 1.65; max-width: 460px; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: oklch(0.24 0.02 158 / .05); color: var(--ink-2); }
.story-vis { position: sticky; top: 110px; height: min(560px, 70vh); }
.screen { position: absolute; inset: 0; border-radius: 30px; background: var(--grad-dark); box-shadow: var(--sh-3); overflow: hidden; color: #fff; padding: 28px;
  opacity: 0; transform: scale(.96) translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); display: flex; flex-direction: column; }
.screen.on { opacity: 1; transform: none; }
.screen::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 100% 0%, oklch(0.75 0.065 155 / .25), transparent 60%); pointer-events: none; }
.screen > * { position: relative; z-index: 1; }
.sc-lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: oklch(1 0 0 / .5); }
.sc-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.02em; margin-top: 8px; }
.glass-d { background: oklch(1 0 0 / .07); box-shadow: 0 0 0 1px oklch(1 0 0 / .1) inset; border-radius: 18px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.q-prog { height: 6px; border-radius: 6px; background: oklch(1 0 0 / .1); overflow: hidden; margin: 22px 0 18px; }
.q-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--g-soft), var(--g)); transition: width 1.4s var(--ease); }
.screen.on .q-prog i { width: 58%; }
.q-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-top: 8px; font-size: 14.5px; }
.q-opt .r { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px oklch(1 0 0 / .4) inset; flex-shrink: 0; }
.q-opt.sel { background: oklch(0.8 0.065 155 / .16); box-shadow: 0 0 0 1.5px var(--g-soft) inset; }
.q-opt.sel .r { background: var(--g-soft); box-shadow: 0 0 0 4px oklch(0.24 0.03 158) inset; }
.vc { flex: 1; margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; min-height: 0; }
.vc-tile { border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vc-tile.doc { background: radial-gradient(circle at 50% 40%, oklch(0.42 0.03 158), oklch(0.26 0.03 158)); }
.vc-tile.me { background: radial-gradient(circle at 50% 40%, oklch(0.38 0.025 200), oklch(0.25 0.03 200)); }
.vc-av { width: 74px; height: 74px; border-radius: 50%; background: oklch(1 0 0 / .14); display: flex; align-items: center; justify-content: center; position: relative; }
.vc-av::before, .vc-av::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid oklch(0.8 0.065 155 / .5); animation: speak 1.8s ease-out infinite; }
.vc-av::after { animation-delay: .6s; }
@keyframes speak { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vc-name { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: oklch(0 0 0 / .3); }
.vc-bar { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.vc-bar span { width: 44px; height: 44px; border-radius: 50%; background: oklch(1 0 0 / .1); display: inline-flex; align-items: center; justify-content: center; }
.vc-bar span.end { background: var(--rose); }
.vc-time { position: absolute; right: 10px; top: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: oklch(0 0 0 / .3); font-variant-numeric: tabular-nums; }
.plan-rows { margin-top: 20px; display: grid; gap: 10px; }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.plan-row b { font-size: 14px; } .plan-row small { display: block; font-size: 12px; color: oklch(1 0 0 / .55); }
.plan-row .k { margin-left: auto; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.plan-ic { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: oklch(1 0 0 / .1); color: var(--g-soft); flex-shrink: 0; }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-vis { display: none; }
  .step { min-height: 0; opacity: 1; padding: 22px 0; }
  .step .m-vis { display: block; }
}
.m-vis { display: none; margin-top: 18px; height: 340px; position: relative; }
.m-vis .screen { padding: 20px; }
.m-vis .sc-title { font-size: 22px; }
.m-vis .vc-av { width: 56px; height: 56px; }
.m-vis .vc-name { font-size: 10.5px; }
.m-vis .plan-row { padding: 9px 12px; }
.m-vis .plan-rows { gap: 7px; margin-top: 14px; }
.m-vis .screen { opacity: 1; transform: none; }

/* ── Kalkulator ─────────────────────────────────────────── */
.calc { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-3); }
.calc-in { padding: clamp(24px, 4vw, 44px); background: #fff; }
.calc-out { padding: clamp(24px, 4vw, 44px); background: var(--grad-dark); color: #fff; position: relative; overflow: hidden; }
.calc-out::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 100% 0%, oklch(0.75 0.065 155 / .25), transparent 60%); pointer-events: none; }
.calc-out > * { position: relative; z-index: 1; }
.field { margin-top: 26px; }
.field:first-of-type { margin-top: 8px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field label { font-weight: 700; font-size: 15px; }
.field output { font-weight: 700; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.field output small { font-size: 14px; color: var(--ink-4); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin-top: 6px; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--g) var(--fill, 50%), var(--bg-2) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--bg-2); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--g); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; margin-top: -10px; background: #fff;
  box-shadow: 0 0 0 6px oklch(0.63 0.072 152 / .18), 0 4px 12px oklch(0.2 0.02 158 / .3); border: 0; transition: transform .2s var(--spring); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px oklch(0.63 0.072 152 / .18), 0 4px 12px oklch(0.2 0.02 158 / .3); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.seg2 { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 2px; margin-top: 10px; }
.seg2 button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: all .25s var(--ease); min-height: 40px; }
.seg2 button[aria-pressed=true] { background: #fff; color: var(--ink-1); box-shadow: 0 2px 10px -4px oklch(0.2 0.02 158 / .3); }
.bmi-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bmi-big b { font-size: clamp(56px, 6vw, 78px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bmi-cat { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: oklch(1 0 0 / .1); }
.scale { position: relative; margin-top: 22px; }
.scale-bar { display: flex; gap: 3px; height: 10px; }
.scale-bar span { border-radius: 5px; opacity: .5; transition: opacity .3s; }
.scale-bar span.cur { opacity: 1; }
.scale-mark { position: absolute; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px oklch(0.24 0.02 158), 0 6px 14px oklch(0 0 0 / .4); transition: left .6s var(--ease); }
.scale-lbl { position: relative; height: 16px; margin-top: 10px; font-size: 11px; color: oklch(1 0 0 / .5); font-variant-numeric: tabular-nums; }
.scale-lbl span { position: absolute; transform: translateX(-50%); }
.targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.tgt { padding: 16px; }
.tgt .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: oklch(1 0 0 / .5); }
.tgt .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tgt .v small { font-size: 13px; color: oklch(1 0 0 / .5); font-weight: 600; letter-spacing: 0; margin-left: 3px; }
.tgt p { font-size: 12.5px; color: oklch(1 0 0 / .7); margin-top: 6px; line-height: 1.5; }
.path { margin-top: 22px; }
.path svg { width: 100%; height: 110px; overflow: visible; }
.path .pl { transition: d .6s var(--ease); }
.calc-note { margin-top: 18px; font-size: 12px; color: oklch(1 0 0 / .55); line-height: 1.55; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .targets { grid-template-columns: minmax(0, 1fr); } }

/* ── AI (ciemna sekcja) ─────────────────────────────────── */
.dark-sec { background: var(--dark); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dark-sec .eyebrow { color: var(--g-soft); } .dark-sec .eyebrow::before { background: var(--g-soft); }
.dark-sec .h2 em { color: var(--g-soft); }
.dark-sec .lead { color: oklch(1 0 0 / .62); }
.dark-sec .aurora span { opacity: .28; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.doc { position: relative; border-radius: 26px; padding: 24px; background: oklch(1 0 0 / .06); box-shadow: 0 0 0 1px oklch(1 0 0 / .1) inset, 0 50px 90px -40px oklch(0 0 0 / .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; }
.doc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid oklch(1 0 0 / .1); }
.doc-head .ic-tile { background: oklch(1 0 0 / .1); color: var(--g-soft); box-shadow: none; }
.doc-head b { font-size: 15px; } .doc-head small { display: block; font-size: 12px; color: oklch(1 0 0 / .5); }
.doc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid oklch(1 0 0 / .07); font-size: 14px; }
.doc-row span:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.doc-row .pill { opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--spring); }
.doc.run .doc-row .pill { opacity: 1; transform: none; }
.doc.run .doc-row:nth-child(2) .pill { transition-delay: .5s } .doc.run .doc-row:nth-child(3) .pill { transition-delay: 1s }
.doc.run .doc-row:nth-child(4) .pill { transition-delay: 1.5s } .doc.run .doc-row:nth-child(5) .pill { transition-delay: 2s } .doc.run .doc-row:nth-child(6) .pill { transition-delay: 2.5s }
.doc .p-ok { background: oklch(0.75 0.07 155 / .18); color: var(--g-soft); }
.doc .p-warn { background: oklch(0.8 0.12 80 / .18); color: oklch(0.88 0.1 80); }
.doc-scan { position: absolute; left: 0; right: 0; height: 60px; top: 70px; background: linear-gradient(180deg, transparent, oklch(0.8 0.065 155 / .18), transparent);
  border-bottom: 1px solid oklch(0.8 0.065 155 / .5); opacity: 0; pointer-events: none; }
.doc.run .doc-scan { animation: docScan 2.8s ease-in-out forwards; }
@keyframes docScan { 0% { opacity: 1; transform: translateY(0); } 95% { opacity: 1; transform: translateY(300px); } 100% { opacity: 0; transform: translateY(300px); } }
.verdict { margin-top: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .7s var(--ease); transition-delay: 3s; }
.doc.run .verdict { opacity: 1; transform: none; }
.verdict p { font-size: 13.5px; color: oklch(1 0 0 / .78); line-height: 1.55; }
.ai-points { margin-top: 30px; display: grid; gap: 14px; }
.ai-point { display: flex; gap: 14px; align-items: flex-start; }
.ai-point .ic-tile { background: oklch(1 0 0 / .08); color: var(--g-soft); box-shadow: 0 0 0 1px oklch(1 0 0 / .08) inset; width: 40px; height: 40px; }
.ai-point b { display: block; font-size: 16px; } .ai-point span { font-size: 14.5px; color: oklch(1 0 0 / .6); line-height: 1.55; }
.disclaimer { margin-top: 24px; font-size: 12.5px; color: oklch(1 0 0 / .45); line-height: 1.55; display: flex; gap: 8px; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Bento ──────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; margin-top: 56px; }
.bx { position: relative; border-radius: 26px; padding: 26px; background: var(--glass); box-shadow: var(--sh-2), 0 0 0 1px var(--glass-line) inset; overflow: hidden;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: flex; flex-direction: column; }
.bx:hover { transform: translateY(-4px); box-shadow: 0 1px 0 oklch(1 0 0 / .8) inset, 0 30px 60px -28px oklch(0.24 0.02 158 / .35), 0 0 0 1px var(--glass-line) inset; }
.bx h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin-top: 16px; }
.bx p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; margin-top: 6px; }
.bx-dark { background: var(--grad-dark); color: #fff; box-shadow: var(--sh-3); }
.bx-dark p { color: oklch(1 0 0 / .62); }
.bx-dark .ic-tile { background: oklch(1 0 0 / .1); color: var(--g-soft); box-shadow: none; }
.b1 { grid-column: span 4; grid-row: span 2; } .b2 { grid-column: span 2; grid-row: span 2; } .b3 { grid-column: span 2; } .b4 { grid-column: span 2; }
.b5 { grid-column: span 2; } .b6 { grid-column: span 3; } .b7 { grid-column: span 3; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b1, .b2, .b6, .b7 { grid-column: span 2; } .b3, .b4, .b5 { grid-column: span 1; } .b1, .b2 { grid-row: auto; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } .b1, .b2, .b3, .b4, .b5, .b6, .b7 { grid-column: auto; } }
.b1-chart { margin-top: auto; padding-top: 24px; }
.b1-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.b1-stats b { display: block; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .b1-stats span { font-size: 12.5px; color: oklch(1 0 0 / .55); }
.b1-chart svg { width: 100%; height: 190px; overflow: visible; }
.b1-chart .ln { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.b1.in .ln { animation: draw 2.6s var(--ease) .2s forwards; }
.b1-chart .pd { stroke-dasharray: 5 6; }
.vid { margin: 16px -26px -26px; flex: 1; min-height: 240px; background: oklch(0.19 0.018 158); position: relative; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vid-tag { position: absolute; left: 14px; bottom: 14px; z-index: 1; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: oklch(1 0 0 / .12); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.meals-mini { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.meals-mini span { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; animation: bob 4s ease-in-out infinite; }
.meals-mini span:nth-child(2) { animation-delay: .3s } .meals-mini span:nth-child(3) { animation-delay: .6s } .meals-mini span:nth-child(4) { animation-delay: .9s }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
.chat-mini { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.chat-mini .ai { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--g-deep); padding: 0; background: none; box-shadow: none; }
.b6 .chat-mini { max-width: 520px; }
.chat-mini div { max-width: 86%; padding: 9px 12px; font-size: 13px; line-height: 1.4; border-radius: 14px; }
.chat-mini .them { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; border-top-left-radius: 4px; }
.chat-mini .me { margin-left: auto; background: var(--grad-cta); color: #fff; border-top-right-radius: 4px; }
.lib-mini { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.rx-code { margin-top: auto; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 18px; letter-spacing: .12em; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.rx-code small { font-family: var(--sans); font-size: 11px; letter-spacing: 0; color: var(--ink-4); font-weight: 600; }

/* ── Zespół (role) ──────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.role { position: relative; border-radius: 26px; padding: 26px; background: var(--glass); box-shadow: var(--sh-2), 0 0 0 1px var(--glass-line) inset; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.role .av-big { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-cta); box-shadow: var(--sh-cta); }
.role .av-big .ic { width: 26px; height: 26px; }
.role h3 { font-size: 18px; font-weight: 700; margin-top: 18px; letter-spacing: -.01em; }
.role p { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.verify { margin-top: 20px; padding: 18px 22px; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; background: oklch(1 0 0 / .55); box-shadow: 0 0 0 1px var(--line) inset; font-size: 14px; color: var(--ink-2); }
.verify span { display: inline-flex; align-items: center; gap: 8px; } .verify .ic-sm { color: var(--g-deep); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* ── Cennik ─────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; border-radius: 28px; padding: 28px 24px; background: var(--glass); box-shadow: var(--sh-2), 0 0 0 1px var(--glass-line) inset; display: flex; flex-direction: column;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .5s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan.feat { background: var(--grad-dark); color: #fff; box-shadow: var(--sh-3); }
.plan.feat::before { content: ''; position: absolute; inset: -1.5px; border-radius: 29.5px; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), var(--g-soft), transparent 30%, var(--t), transparent 70%, var(--g-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.plan .pbadge { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--g-tint); color: var(--g-deep); }
.plan.feat .pbadge { background: oklch(0.8 0.065 155 / .2); color: var(--g-soft); }
.plan h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.plan.feat h3 { color: oklch(1 0 0 / .6); }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.price b { font-size: 48px; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; color: var(--ink-4); font-weight: 600; }
.plan.feat .price span { color: oklch(1 0 0 / .5); }
.plan .pd { margin-top: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.55; min-height: 44px; }
.plan.feat .pd { color: oklch(1 0 0 / .65); }
.plan ul { list-style: none; margin: 20px 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.plan li .ic-sm { color: var(--g); margin-top: 2px; } .plan.feat li .ic-sm { color: var(--g-soft); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.feat .btn-ghost { background: #fff; color: var(--ink-1); }
.pdet { margin-top: 10px; }
.pdet summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); border-radius: 12px; }
.pdet summary::-webkit-details-marker { display: none; }
.pdet summary .ic-sm { transition: transform .3s var(--ease); } .pdet[open] summary .ic-sm { transform: rotate(180deg); }
.plan.feat .pdet summary { color: oklch(1 0 0 / .6); }
.pdet-in { padding: 4px 4px 0; font-size: 13.5px; color: var(--ink-3); }
.plan.feat .pdet-in { color: oklch(1 0 0 / .7); }
.drow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan.feat .drow { border-color: oklch(1 0 0 / .1); }
.drow b { white-space: nowrap; }
.trial-note { margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink-3); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .plans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
    padding: 8px var(--pad) 18px; scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 84%; scroll-snap-align: center; }
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line) inset, var(--sh-1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .3s; }
.faq details[open] { background: #fff; box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { margin-left: auto; width: 34px; height: 34px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--g-tint); color: var(--g-deep); transition: transform .4s var(--spring); }
.faq details[open] .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-3); font-size: 15.5px; line-height: 1.7; }
.faq .ans a { color: var(--g-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Quiz ───────────────────────────────────────────────── */
.quiz-wrap { max-width: 760px; margin: 48px auto 0; }
.quiz-shell { border-radius: 30px; padding: clamp(22px, 4vw, 40px); background: #fff; box-shadow: var(--sh-3), 0 0 0 1px var(--line) inset; }
#quiz-shell > * { animation: fadeUp .45s var(--ease) both; }
#quiz-shell .q-intro { text-align: center; padding: 8px 0; }
#quiz-shell .q-intro h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.02em; margin-top: 16px; }
#quiz-shell .q-intro h3 em { color: var(--g-deep); }
#quiz-shell .q-intro p { color: var(--ink-3); max-width: 480px; margin: 14px auto 0; font-size: 15.5px; }
#quiz-shell .q-intro .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 26px; }
#quiz-shell .q-intro .chips span { padding: 7px 13px; border-radius: 999px; background: var(--g-tint); color: var(--g-deep); font-size: 13px; font-weight: 600; }
#quiz-shell .q-intro .fine { font-size: 12.5px; color: var(--ink-4); margin-top: 14px; }
#quiz-shell .q-progress-wrap { margin-bottom: 26px; }
#quiz-shell .q-progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-4); margin-bottom: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#quiz-shell .q-progress-bar { height: 6px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
#quiz-shell .q-progress-fill { height: 100%; background: linear-gradient(90deg, var(--g-soft), var(--g)); border-radius: 6px; transition: width .6s var(--ease); }
#quiz-shell .q-number { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g-deep); margin-bottom: 8px; }
#quiz-shell .q-text { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.015em; margin-bottom: 6px; }
#quiz-shell .q-sub { font-size: 14.5px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.55; }
#quiz-shell .q-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
#quiz-shell .q-opt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; cursor: pointer; font-size: 15.5px; background: var(--bg);
  box-shadow: 0 0 0 1.5px var(--line) inset; transition: box-shadow .2s, background .2s, transform .15s; min-height: 54px; }
#quiz-shell .q-opt:hover { box-shadow: 0 0 0 1.5px var(--g) inset; background: #fff; }
#quiz-shell .q-opt:active { transform: scale(.99); }
#quiz-shell .q-opt.selected { box-shadow: 0 0 0 2px var(--g) inset; background: var(--g-tint); color: var(--g-deep); font-weight: 600; }
#quiz-shell .q-radio, #quiz-shell .q-check { width: 20px; height: 20px; flex-shrink: 0; box-shadow: 0 0 0 1.5px var(--ink-5) inset; transition: all .2s; display: flex; align-items: center; justify-content: center; }
#quiz-shell .q-radio { border-radius: 50%; } #quiz-shell .q-check { border-radius: 6px; }
#quiz-shell .q-opt.selected .q-radio { background: var(--g); box-shadow: 0 0 0 5px #fff inset, 0 0 0 1.5px var(--g); }
#quiz-shell .q-opt.selected .q-check { background: var(--g); box-shadow: none; }
#quiz-shell .q-opt.selected .q-check::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
#quiz-shell .q-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
#quiz-shell .badge-low { background: var(--g-tint); color: var(--g-deep); } #quiz-shell .badge-mid { background: oklch(0.95 0.06 80); color: oklch(0.45 0.1 65); }
#quiz-shell .badge-high { background: oklch(0.95 0.04 25); color: oklch(0.48 0.15 25); }
#quiz-shell .q-info-box { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--t-tint); color: var(--t-deep); font-size: 13.5px; line-height: 1.5; }
#quiz-shell .q-slider-wrap { margin-top: 20px; }
#quiz-shell .q-slider-val { font-size: 44px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
#quiz-shell .q-slider-val span { font-size: 16px; color: var(--ink-4); font-weight: 600; letter-spacing: 0; }
#quiz-shell .q-slider-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-4); margin-top: 4px; }
#quiz-shell .q-nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
#quiz-shell .q-btn-next, #quiz-shell .q-btn-start, #quiz-shell .r-btn-main { flex: 1; min-height: 54px; padding: 15px 24px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15.5px;
  background: var(--grad-cta); box-shadow: var(--sh-cta); transition: transform .2s, opacity .2s; }
#quiz-shell .q-btn-next { opacity: .4; pointer-events: none; }
#quiz-shell .q-btn-next.active { opacity: 1; pointer-events: auto; }
#quiz-shell .q-btn-next.active:hover, #quiz-shell .q-btn-start:hover, #quiz-shell .r-btn-main:hover { transform: translateY(-2px); }
#quiz-shell .q-btn-start { flex: none; padding: 16px 34px; }
#quiz-shell .q-btn-back, #quiz-shell .r-btn-ghost { min-height: 54px; padding: 14px 20px; border-radius: 999px; color: var(--ink-3); box-shadow: 0 0 0 1.5px var(--line-2) inset; font-weight: 600; font-size: 15px; }
#quiz-shell .q-btn-back:hover, #quiz-shell .r-btn-ghost:hover { color: var(--ink-1); }
#quiz-shell .r-btn-main { width: 100%; margin-bottom: 10px; } #quiz-shell .r-btn-ghost { width: 100%; }
#quiz-shell .r-hero { border-radius: 22px; padding: 28px; margin-bottom: 14px; text-align: center; background: var(--grad-dark); color: #fff; }
#quiz-shell .r-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: oklch(1 0 0 / .1); color: var(--g-soft); }
#quiz-shell .r-plan-name { font-family: var(--serif); font-size: clamp(40px, 5vw, 54px); line-height: 1.05; margin-top: 12px; letter-spacing: -.02em; }
#quiz-shell .r-price { font-size: 20px; color: oklch(1 0 0 / .6); margin-top: 6px; }
#quiz-shell .r-reason { font-size: 14.5px; line-height: 1.7; text-align: left; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: oklch(1 0 0 / .08); color: oklch(1 0 0 / .85); }
#quiz-shell .r-signals { border-radius: 20px; padding: 22px; margin-bottom: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line) inset; }
#quiz-shell .r-signals-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
#quiz-shell .r-signal-row { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
#quiz-shell .r-signal-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
#quiz-shell .dot-red { background: var(--rose); } #quiz-shell .dot-orange { background: var(--amber); } #quiz-shell .dot-green { background: var(--g); }
#quiz-shell .r-cta { border-radius: 20px; padding: 22px; background: var(--bg); box-shadow: 0 0 0 1px var(--line) inset; }
#quiz-shell .r-cta-title { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; margin-bottom: 6px; }
#quiz-shell .r-cta-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; line-height: 1.55; }
#quiz-shell .r-score-note { margin-top: 14px; font-size: 12px; color: var(--ink-4); text-align: center; }
.skip { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; padding: 20px 24px; border-radius: 22px;
  background: oklch(1 0 0 / .6); box-shadow: 0 0 0 1px var(--line) inset; }
.skip p { flex: 1; min-width: 240px; font-size: 14px; color: var(--ink-3); line-height: 1.55; } .skip b { color: var(--ink-1); }

/* ── CTA końcowe ────────────────────────────────────────── */
.final { position: relative; border-radius: 36px; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px); overflow: hidden; color: #fff; text-align: center; background: var(--grad-dark); isolation: isolate; box-shadow: var(--sh-3); }
.final .aurora span { opacity: .45; }
.final h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -.03em; position: relative; }
.final h2 em { color: var(--g-soft); }
.final p { position: relative; margin: 18px auto 0; max-width: 560px; color: oklch(1 0 0 / .7); font-size: 17px; }
.final .hero-cta { justify-content: center; position: relative; }
.final small { position: relative; display: block; margin-top: 18px; font-size: 13px; color: oklch(1 0 0 / .5); }

/* ── Stopka ─────────────────────────────────────────────── */
footer { padding: 72px 0 36px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot p { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 320px; line-height: 1.6; }
.foot h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { font-size: 14.5px; color: var(--ink-2); } .foot a:hover { color: var(--g-deep); }
.foot-bot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-4); }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > div:first-child { grid-column: 1 / -1; } }

/* ── Wideo ćwiczenia: przełącznik sylwetki ──────────────── */
.vid video { object-fit: cover; }
.vid-switch { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; padding: 3px; border-radius: 999px; background: oklch(0.2 0.015 160 / .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px oklch(1 0 0 / .12) inset; }
.vid-switch button { font-size: 12px; font-weight: 700; color: oklch(1 0 0 / .7); padding: 6px 13px; border-radius: 999px; min-height: 30px; transition: background .2s, color .2s; }
.vid-switch button[aria-pressed=true] { background: #fff; color: var(--ink-1); }

/* ── Mobile ≤760 px: wersja minimalna ───────────────────── */
/* Zostają: hero (bez makiety), kroki (sam tekst), dowody, cennik, FAQ, kwalifikator. */
@media (max-width: 760px) {
  .dsk, .stage, .m-vis { display: none !important; }
  .sec { padding: 64px 0; }
  .sec[style*="padding-top:0"] { padding-top: 0 !important; }
  .hero { padding: 104px 0 48px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn-ghost { display: none; }
  .evid-grid, .story { margin-top: 28px; }
  .step { padding: 16px 0; }
  .step .tags { display: none; }
  .plans { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 28px 0 0; padding: 0; gap: 12px; }
  .plan { flex: none; }
  .plan .pd { min-height: 0; }
  .faq, .quiz-wrap { margin-top: 28px; }
}

/* ── Ograniczenie ruchu ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .mq-track { animation: none; }
}
