/* MaddLabs: design system.
   Shape rule: interactive controls (buttons, chips, pills) are full pill; panels and cards 14px; inputs 10px.
   Colour rule: monochrome. Semantic colours (--ok, --err) only for real state. Code panels are always dark. */

:root {
  --bg: #fafafa;
  --bg-2: #f3f3f4;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --line: rgba(10, 10, 12, 0.08);
  --line-2: rgba(10, 10, 12, 0.15);
  --text: #0c0c0e;
  --muted: #55555c;
  --faint: #6f6f78;
  --inv: #111113;
  --inv-text: #f7f7f8;
  --ok: #1f8a4c;
  /* Modalności: jeden kolor na rodzaj, wszędzie ten sam */
  --mod-text: #2563eb;
  --mod-image: #059669;
  --mod-video: #ea580c;
  --mod-audio: #7c3aed;
  --mod-file: #64748b;
  --err: #c9343a;
  --warn: #8a6a12;
  --shadow: 0 1px 0 rgba(10, 10, 12, 0.04), 0 12px 32px -12px rgba(10, 10, 12, 0.14);
  --shadow-lg: 0 1px 0 rgba(10, 10, 12, 0.04), 0 30px 80px -24px rgba(10, 10, 12, 0.28);
  --code-bg: #0e0e10;
  --code-bg-2: #161619;
  --code-line: rgba(255, 255, 255, 0.08);
  --code-text: #e7e7ea;
  --code-dim: #8b8b94;
  --code-str: #d8d8dc;
  --code-key: #ffffff;
  --r-card: 14px;
  --r-input: 10px;
  --r-pill: 999px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --bg: #09090b;
    --bg-2: #0e0e11;
    --surface: #111114;
    --surface-2: #17171b;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #f4f4f5;
    --muted: #a6a6ae;
    --faint: #8a8a93;
    --inv: #f4f4f5;
    --inv-text: #0c0c0e;
    --ok: #4cc27c;
    --err: #ff6b70;
    --warn: #e0b84c;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -24px rgba(0, 0, 0, 0.8);
    --code-bg: #0c0c0e;
    --code-bg-2: #131316;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, pre, kbd, .mono { font-family: var(--mono); font-feature-settings: normal; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── icons ─────────────────────────────────────────────── */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--inv); color: var(--inv-text); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text); }
.btn-quiet { color: var(--muted); padding: 0 12px; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { border-color: color-mix(in srgb, var(--err) 40%, transparent); color: var(--err); background: var(--surface); }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 8%, var(--surface)); }
.btn-danger-solid { background: var(--err); color: #fff; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .2s, color .2s; }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-wm { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1; }
.brand-m { display: inline-grid; place-items: center; height: 1.45em; padding: 0 .28em; margin: 0 .12em; border-radius: 6px; background: var(--inv); color: var(--inv-text); font-weight: 700; transition: transform .2s ease; }
.brand:hover .brand-m { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .brand-m { transition: none; } }
.brand-sub { color: var(--faint); font-weight: 500; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: var(--r-pill); color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active { background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; font-size: 12px; font-family: var(--mono); }
.lang button { padding: 3px 9px; border-radius: var(--r-pill); color: var(--faint); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--inv); color: var(--inv-text); }
.nav-burger { display: none; }
.nav-sheet { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-sheet.is-open {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 16px 20px; animation: drop .3s var(--ease);
  }
  .nav-sheet a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-sheet .btn { margin-top: 16px; width: 100%; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── type ──────────────────────────────────────────────── */
.h-display { font-size: clamp(38px, 4.9vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--muted); line-height: 1.55; max-width: 56ch; margin: 0; text-wrap: pretty; }
.body { color: var(--muted); max-width: 62ch; margin: 0; text-wrap: pretty; }
.small { font-size: 13px; color: var(--faint); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dim { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); letter-spacing: -0.02em; }

/* ── sections ──────────────────────────────────────────── */
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
@media (max-width: 768px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 72% 30%, color-mix(in srgb, var(--text) 7%, transparent), transparent 70%),
    radial-gradient(500px 260px at 15% 0%, color-mix(in srgb, var(--text) 4%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.dotgrid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 10%, transparent 70%);
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 72px; } }

/* ── code panel (always dark) ──────────────────────────── */
.code {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-lg); position: relative;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.code-top { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0 14px; border-bottom: 1px solid var(--code-line); }
.code-tab { padding: 8px 12px 10px; color: var(--code-dim); font-size: 12.5px; position: relative; transition: color .2s; }
.code-tab[aria-selected="true"] { color: var(--code-key); }
.code-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--code-key); }
.code-top .spacer { flex: 1; }
.code-copy { color: var(--code-dim); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; transition: color .2s, background .2s; margin-bottom: 6px; }
.code-copy:hover { color: #fff; background: rgba(255,255,255,.06); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre; tab-size: 2; }
.code .c-k { color: #ffffff; font-weight: 500; }
.code .c-s { color: #bdbdc4; }
.code .c-d { color: #74747d; }
.code .c-n { color: #e4e4e7; }
.code .c-hl { background: rgba(255,255,255,.09); border-radius: 4px; padding: 1px 3px; margin: -1px -3px; color: #fff; }
.code-out { border-top: 1px solid var(--code-line); background: var(--code-bg-2); padding: 14px 20px 16px; min-height: 148px; }
.code-out-head { display: flex; justify-content: space-between; align-items: center; color: var(--code-dim); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.stream { color: var(--code-text); white-space: pre-wrap; word-break: break-word; min-height: 66px; font-size: 13px; }
.caret { display: inline-block; width: 7px; height: 15px; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-meter { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--code-line); color: var(--code-dim); font-size: 12px; }
.demo-meter b { color: #fff; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #4cc27c; box-shadow: 0 0 0 3px rgba(76,194,124,.18); }

/* ── model row (landing) ──────────────────────────────── */
.model-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 24px;
  padding: 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.model-row + .model-row { margin-top: 12px; }
.model-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.model-row .k { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.model-row .v { font-family: var(--mono); font-size: 18px; letter-spacing: -0.02em; }
.model-name { display: grid; gap: 6px; }
.model-name .id { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.model-name .t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .model-row { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
  .model-row .model-name { grid-column: 1 / -1; }
  .model-row .go { grid-column: 1 / -1; }
}

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: var(--mono); color: var(--muted); padding: 3px 9px 3px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status.off i { background: var(--faint); }

/* ── bento ─────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px;
}
.tile .h-3 { font-size: 19px; }
.tile .body { font-size: 14.5px; }
.tile-a { grid-column: span 4; }
.tile-b { grid-column: span 2; }
.tile-c { grid-column: span 2; }
.tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; }
.tile-dark { background: var(--code-bg); color: #f4f4f5; border-color: rgba(255,255,255,.06); }
.tile-dark .body { color: #a6a6ae; }
.tile-lines {
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 5%, transparent) 0 1px, transparent 1px 10px);
}
.tile-ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); margin-bottom: 6px; }
.tile-dark .tile-ico { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.tile .push { margin-top: auto; }
.diff { font-family: var(--mono); font-size: 13px; border-radius: 10px; background: var(--code-bg); color: #d4d4d8; padding: 14px 16px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.diff .m { color: #8b8b94; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.diff .p { color: #fff; }
.diff .g { color: #6a6a72; }
.jsonbit { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre; overflow-x: auto; color: var(--muted); }
.jsonbit b { color: var(--text); font-weight: 500; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 4px; padding: 0 3px; }
.budget { display: grid; gap: 10px; }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.budget-row .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.budget-row .bar i { display: block; height: 100%; background: var(--text); border-radius: 4px; transform-origin: left; }
.vatlist { display: grid; gap: 8px; font-size: 13px; }
.vatlist div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.vatlist b { font-family: var(--mono); font-weight: 500; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-a { grid-column: 1 / -1; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: 1 / -1; }
  .tile { min-height: 0; padding: 22px; }
}

/* ── flow (how billing works) ─────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.flow-step { position: relative; padding-right: 32px; display: grid; gap: 12px; }
.flow-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; }
.flow-step:first-child .flow-dot { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
.flow-step .h-3 { font-size: 20px; margin-top: 10px; }
@media (max-width: 768px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-step { grid-template-columns: 46px 1fr; column-gap: 18px; padding: 0; }
  .flow-step .flow-dot { grid-row: span 2; }
  .flow-step .h-3 { margin-top: 10px; }
}

/* ── price teaser ─────────────────────────────────────── */
.price-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.price-big { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.price-big .p { font-family: var(--mono); font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -0.06em; font-weight: 500; }
.price-big .l { font-size: 13px; color: var(--faint); margin-top: 10px; }
.example { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 22px 24px; display: grid; gap: 12px; }
.example-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.example-row b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.example-total { border-top: 1px solid var(--line); padding-top: 12px; color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .price-split { grid-template-columns: 1fr; gap: 36px; } }

/* ── statement ────────────────────────────────────────── */
.statement { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; max-width: 18ch; margin: 0; text-wrap: balance; }
.statement .soft { color: var(--faint); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.fact { padding: 22px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .h-3 { font-size: 15px; }
.fact p { margin: 0; font-size: 14px; color: var(--muted); }
.link-u { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link-u:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact { padding-bottom: 22px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { margin: -8px 0 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── CTA band ─────────────────────────────────────────── */
.band { border-radius: 22px; background: var(--code-bg); color: #f4f4f5; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%); }
.band .lead { color: #a6a6ae; }
.band .btn-primary { background: #f4f4f5; color: #0c0c0e; position: relative; z-index: 1; }
@media (max-width: 768px) { .band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 18px; } }

/* ── footer ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--muted); transition: color .2s; }
.foot ul a:hover { color: var(--text); }
.foot-co { color: var(--faint); font-size: 13px; line-height: 1.7; margin-top: 14px; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── page header (subpages) ───────────────────────────── */
.page-head { padding: 64px 0 40px; display: grid; gap: 16px; }
.page-head .lead { max-width: 60ch; }

/* ── cards / panels ───────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head .h-3 { font-size: 15px; }
.panel-body { padding: 22px; }
@media (max-width: 640px) { .panel-pad, .panel-body { padding: 18px; } .panel-head { padding: 14px 18px; } }

/* ── models page ──────────────────────────────────────── */
.mcard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.mcard + .mcard { margin-top: 16px; }
.mcard-main { padding: 32px; display: grid; gap: 18px; align-content: start; }
.mcard-side { padding: 32px; border-left: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 20px; align-content: start; }
.mcard .title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.mcard .idline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 6px 5px 12px; width: fit-content; max-width: 100%; }
.mcard .idline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .idline button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.mcard .idline button:hover { background: var(--surface); color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mspec { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; }
.mspec .k { font-size: 12px; color: var(--faint); }
.mspec .v { font-family: var(--mono); font-size: 15px; letter-spacing: -0.01em; }
.prices { display: grid; gap: 14px; }
.prices .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prices .row .v { font-family: var(--mono); font-size: 26px; letter-spacing: -0.04em; }
.prices .row .k { color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mods { display: inline-flex; align-items: center; gap: 6px; width: fit-content; flex-wrap: wrap; }
.mods-g { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.mod { --c: var(--mod-text); height: 26px; min-width: 26px; padding: 0 5px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.mod .i { width: 15px; height: 15px; stroke-width: 1.8; }
.mod-l { font-size: 12.5px; font-weight: 500; padding-right: 3px; }
.mod-image { --c: var(--mod-image); }
.mod-video { --c: var(--mod-video); }
.mod-audio { --c: var(--mod-audio); }
.mod-file { --c: var(--mod-file); }
.mods-lg .mod { height: 30px; padding: 0 8px; border-radius: 8px; }
.mods-lg .mod .i { width: 16px; height: 16px; }
.mods-arrow { color: var(--faint); display: inline-grid; }
.mods-arrow .i { width: 14px; height: 14px; }
.modrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.modrow > .k { font-size: 12px; color: var(--faint); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-family: var(--mono); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) {
  .mcard { grid-template-columns: 1fr; }
  .mcard-side { border-left: 0; border-top: 1px solid var(--line); }
  .mcard-main, .mcard-side { padding: 22px; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ── tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t .mono { font-size: 13px; }
.t tbody tr { transition: background .15s; }
.t tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ── forms ────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .help { font-size: 12.5px; color: var(--faint); }
.field .error { font-size: 12.5px; color: var(--err); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-input); background: var(--surface);
  border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; outline: none; font-size: 14.5px;
}
.textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.input.is-invalid { border-color: var(--err); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.range { width: 100%; accent-color: var(--text); }

/* ── notices ──────────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.notice .i { margin-top: 2px; }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.notice.ok .i { color: var(--ok); }
.notice.err { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: color-mix(in srgb, var(--err) 6%, var(--surface)); }
.notice.err .i { color: var(--err); }
.notice .grow { flex: 1; }
.notice p { margin: 2px 0 0; color: var(--muted); }

/* ── toast ────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--inv); color: var(--inv-text); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .35s var(--ease); }
.toast.err { background: var(--err); color: #fff; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ── modal ────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, #000 45%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.modal { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-body { padding: 18px 24px 24px; display: grid; gap: 16px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.keybox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--code-bg); color: #fff; font-family: var(--mono); font-size: 13px; }
.keybox code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.keybox code::-webkit-scrollbar { display: none; }
.keybox .btn { background: #f4f4f5; color: #0c0c0e; }

/* ── skeleton ─────────────────────────────────────────── */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 5%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── empty ────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 48px; height: 48px; border-radius: 14px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--faint); margin-bottom: 4px; }
.empty .h-3 { color: var(--text); }
.empty p { margin: 0; max-width: 42ch; font-size: 14px; }

/* ── reveal ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
  .hero .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── docs ─────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 40px; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs-nav .grp { font-size: 12px; color: var(--faint); margin: 18px 0 6px; font-weight: 500; }
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.is-active { color: var(--text); background: var(--surface-2); }
.doc { max-width: 760px; min-width: 0; }
.doc section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 26px; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 600; }
.doc h3 { font-size: 16px; margin: 28px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 18px; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc :not(pre) > code { font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.doc .code { margin: 14px 0 18px; box-shadow: none; }
.doc table.t { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; margin: 10px 0 16px; background: var(--surface); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: none; }
  .docs-nav .grp { display: none; }
  .docs-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--r-pill); }
}

/* ── login ────────────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-inner { width: min(380px, 100%); margin: auto; display: grid; gap: 22px; padding: 40px 0; }
.auth-side { background: var(--code-bg); color: #f4f4f5; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent 75%); }
.auth-side > * { position: relative; }
.auth-side .quote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; max-width: 16ch; }
.auth-side .small { color: #8b8b94; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 56px; text-align: center; font-family: var(--mono); font-size: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); padding: 0; min-width: 0; }
.otp input:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.otp.is-invalid input { border-color: var(--err); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; height: 44px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding: 20px 16px; } }

/* ── dashboard shell ──────────────────────────────────── */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; }
.side .brand { padding: 4px 8px 18px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.side-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.side-nav a.is-active { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-bal { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.side-bal .v { font-family: var(--mono); font-size: 20px; letter-spacing: -0.03em; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.side-user .av { width: 28px; height: 28px; border-radius: 50%; background: var(--inv); color: var(--inv-text); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.side-user .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.main { min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .ttl { font-weight: 600; letter-spacing: -0.01em; }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.view { padding: 32px; max-width: 1180px; display: grid; gap: 20px; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.mob-tabs { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 0 16px; }
  .mob-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 60px; z-index: 29; background: var(--bg); }
  .mob-tabs::-webkit-scrollbar { display: none; }
  .mob-tabs a { white-space: nowrap; padding: 7px 13px; border-radius: var(--r-pill); color: var(--muted); font-size: 13.5px; border: 1px solid var(--line); }
  .mob-tabs a.is-active { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
  .view { padding: 20px 16px 40px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 20px 22px; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--faint); }
.stat .v { font-family: var(--mono); font-size: 24px; letter-spacing: -0.04em; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

.balance-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 28px; }
.balance-hero .v { font-family: var(--mono); font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -0.06em; }
.balance-hero .v .c { color: var(--faint); }
@media (max-width: 640px) { .balance-hero { grid-template-columns: 1fr; padding: 20px; } }

.chart { position: relative; height: 200px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: color-mix(in srgb, var(--text) 82%, transparent); transition: fill .15s; }
.chart .bar.zero { fill: var(--line-2); }
.chart .bar:hover, .chart .bar.is-hot { fill: var(--text); }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .ax { fill: var(--faint); font-size: 11px; font-family: var(--mono); }
.tip { position: absolute; pointer-events: none; background: var(--inv); color: var(--inv-text); font-size: 12px; padding: 8px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow); font-family: var(--mono); line-height: 1.5; z-index: 5; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; background: var(--surface); transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }
.quote-box { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.quote-box .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.quote-box .row b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.quote-box .total { border-top: 1px solid var(--line); padding-top: 10px; color: var(--text); font-weight: 500; }
.quote-box .total b { font-size: 18px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.badge.solid { background: var(--inv); color: var(--inv-text); border-color: var(--inv); }

.minibar { width: 90px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--text); }
.minibar.hot i { background: var(--err); }

/* playground */
/* Playground mieści się w oknie: wiadomości przewijają się w środku, pole wpisywania zawsze widoczne. */
.view:has(> .pg) { padding-top: 20px; padding-bottom: 20px; }
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: stretch; height: calc(100dvh - 60px - 40px); min-height: 460px; }
.pg-chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pg-side { overflow-y: auto; min-height: 0; }
.pg-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; display: grid; gap: 22px; align-content: start; }
.msg { display: grid; gap: 6px; max-width: 760px; }
.msg .who { font-size: 12px; color: var(--faint); font-family: var(--mono); display: flex; gap: 10px; align-items: center; }
.msg .txt { white-space: normal; word-break: break-word; line-height: 1.65; }
.msg .txt p { margin: 0 0 10px; }
.msg .txt p:last-child { margin-bottom: 0; }
.msg .txt pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; margin: 8px 0; }
.msg .txt :not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; font-size: 13px; }
.msg.user { justify-self: end; }
.msg.user .txt { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.msg.user .who { justify-content: flex-end; }
.msg .stats-line { font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap; }
.msg.err .txt { color: var(--err); }
.pg-input { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; }
.pg-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 200px; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; background: var(--surface); line-height: 1.45; }
.pg-input textarea:focus { border-color: var(--text); }
.pg-side { display: grid; gap: 18px; align-content: start; }
.pg-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
@media (max-width: 1060px) {
  .pg { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .pg-side { order: -1; overflow: visible; }
  .pg-chat { height: calc(100dvh - 60px - 32px); min-height: 420px; }
}

.inline-confirm { display: inline-flex; gap: 6px; align-items: center; animation: fade .2s; }
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.sep { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

.two.two-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .two.two-even { grid-template-columns: 1fr; } }
.modal-body { grid-template-columns: minmax(0, 1fr); }
.modal { width: min(560px, 100%); }
.code { min-width: 0; }
.seg { width: fit-content; max-width: 100%; }
.input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.hero-grid > *, .price-split > *, .faq-grid > *, .two > *, .pg > *, .docs > * { min-width: 0; }
.view { grid-template-columns: minmax(0, 1fr); }
.view > * { min-width: 0; }
.t td.mono, .t .nw { white-space: nowrap; }
@media (max-width: 640px) { .pg-input textarea::placeholder { font-size: 13px; } }

/* Wydajność: 5 kafelków, podpis p95 pod wartością */
.stats.s5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat .sub { font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 1100px) { .stats.s5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.s5 .stat:nth-child(4) { border-left: 0; } .stats.s5 .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .stats.s5 .stat:nth-child(n) { border-left: 1px solid var(--line); border-top: 0; } .stats.s5 { grid-template-columns: 1fr 1fr; } .stats.s5 .stat:nth-child(odd) { border-left: 0; } .stats.s5 .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; min-width: 80px; }
.meter > i { display: block; height: 100%; background: var(--text); }

/* limity użycia */
.gauge { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.gauge i { display: block; height: 100%; background: var(--text); border-radius: inherit; transition: width .6s var(--ease); }
.gauge.hot i { background: var(--err); }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.s3 .stat { gap: 8px; }
.stat .v .of { color: var(--faint); font-size: 15px; letter-spacing: -0.02em; }
@media (max-width: 860px) { .stats.s3 { grid-template-columns: 1fr; } .stats.s3 .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }
.tier-hero { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 28px; padding: 28px; align-items: end; }
.tier-main { display: grid; gap: 8px; }
.tier-name { font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-next { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tier-next .btn { justify-self: start; margin-top: 4px; }
.tier-next-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.tier-next-row b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .tier-hero { grid-template-columns: 1fr; padding: 20px; } }
table.t tr.is-cur td { background: var(--surface-2); }
table.t tr.is-cur td:first-child { box-shadow: inset 2px 0 0 var(--text); }
.cap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.input-prefix { position: relative; flex: 0 1 220px; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-family: var(--mono); pointer-events: none; }
.input-prefix .input { padding-left: 26px; width: 100%; }
.cap-help { display: grid; gap: 6px; max-width: 420px; margin-top: 4px; }
.ov-lim { display: flex; align-items: center; gap: 18px; padding: 16px 22px; flex-wrap: wrap; transition: border-color .2s, background .2s; }
.ov-lim:hover { border-color: var(--line-2); background: var(--surface-2); }
.ov-lim-v { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; color: var(--muted); font-size: 14px; }
.ov-lim-v b { color: var(--text); font-weight: 600; font-size: 15px; }
.ov-lim-v span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }
.ov-lim-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.field .lbl { font-size: 13.5px; font-weight: 500; }
.tiers-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.tiers-head > div { display: grid; gap: 10px; max-width: 62ch; }
.check.consent { align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.check.consent input { margin-top: 2px; flex: none; }
.check.consent.is-invalid { color: var(--err); }

/* flagi */
.flag { display: inline-flex; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2); vertical-align: -2px; }
.flag svg { width: 100%; height: 100%; display: block; }
.origin { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.origin-flags { display: inline-flex; gap: 6px; }
.foot-made { display: inline-flex; align-items: center; gap: 8px; }
.foot-made .flag { width: 18px; height: 12px; }

/* liczby pod hero */
.statsband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statsband-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb { padding: 30px 24px 30px 0; display: grid; gap: 8px; align-content: start; }
.sb + .sb { padding-left: 24px; border-left: 1px solid var(--line); }
.sb-v { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.05em; line-height: 1; }
.sb-k { font-size: 13.5px; color: var(--muted); max-width: 24ch; }
@media (max-width: 860px) { .statsband-grid { grid-template-columns: 1fr 1fr; } .sb:nth-child(3) { padding-left: 0; border-left: 0; } .sb:nth-child(n+3) { border-top: 1px solid var(--line); } }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head.center .lead { margin: 0 auto; }

/* makieta panelu */
.mock { border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-top span { margin-left: 10px; font: 12px var(--mono); color: var(--faint); }
.mock-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 420px; }
.mock-side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; gap: 2px; align-content: start; font-size: 13.5px; color: var(--muted); }
.mock-side span { padding: 8px 10px; border-radius: 8px; }
.mock-side span.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.mock-brand { font-weight: 700; letter-spacing: -0.02em; margin: 0 10px 14px; color: var(--text); }
.mock-brand b { display: inline-block; background: var(--text); color: var(--bg); border-radius: 4px; padding: 0 3px; margin: 0 1px; }
.mock-main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.mock-stats > div { padding: 14px 16px; display: grid; gap: 4px; }
.mock-stats > div + div { border-left: 1px solid var(--line); }
.mock-stats small, .mock-card small { font-size: 12px; color: var(--faint); }
.mock-stats b { font: 500 21px var(--mono); letter-spacing: -0.04em; }
.mock-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.mock-bars i { flex: 1; height: var(--h); background: color-mix(in srgb, var(--text) 80%, transparent); border-radius: 3px 3px 0 0; }
.mock-key { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; }
.mock-key .gauge { grid-column: 1 / -1; margin-top: 0; }
.mock-rows > div { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) 1fr 0.8fr auto; gap: 12px; align-items: center; font-size: 12.5px; padding-top: 8px; border-top: 1px solid var(--line); }
.mock-rows > div span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font: 11.5px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 860px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-grid { grid-template-columns: 1fr; } .mock-stats { grid-template-columns: 1fr 1fr; } .mock-stats > div:nth-child(3) { border-left: 0; } .mock-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } .mock-rows > div { grid-template-columns: minmax(0, 1fr) auto auto; } .mock-rows > div span:nth-child(1), .mock-rows > div span:nth-child(3) { display: none; } }

/* Europa */
.eu-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.eu-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 12px; }
.eu-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 24px; display: grid; gap: 12px; align-content: start; }
.eu-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.eu-card .h-3 { font-size: 18px; }
.eu-flagcard { background: var(--surface-2); }
.eu-bigflags { display: flex; gap: 10px; margin-bottom: 8px; }
.eu-bigflags .flag { width: 72px; height: 48px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.eu-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 0; font-size: 13px; }
.eu-dl dt { color: var(--faint); }
.eu-dl dd { margin: 0; }
.eu-tag { font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.eu-endpoint { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; background: var(--surface-2); margin-top: auto; }
.eu-toggles { display: grid; gap: 8px; margin-top: auto; }
.eu-toggles > div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.tg { width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tg.on { background: var(--text); }
.tg.on::after { left: 15px; background: var(--bg); }
.eu-docs { list-style: none; margin: 0; padding: 0; display: grid; }
.eu-docs a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; transition: color .2s; }
.eu-docs a:hover { color: var(--text); }
.eu-docs a svg { opacity: .5; transition: transform .25s var(--ease), opacity .2s; }
.eu-docs a:hover svg { transform: translateX(3px); opacity: 1; }
@media (max-width: 1100px) { .eu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .eu-grid { grid-template-columns: 1fr; } }

/* ── dopracowanie 06.11 ── */
.life { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 0; }
.life li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; color: var(--muted); position: relative; }
.life li i { width: 9px; height: 9px; border-radius: 50%; background: var(--text); justify-self: center; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.life li:not(:last-child)::before { content: ""; position: absolute; left: 6.5px; top: 50%; height: 100%; width: 1px; background: var(--line-2); }
.life li small { font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.life li.gone span { color: var(--text); }
.life li.gone i { background: transparent; border: 1px dashed var(--muted); width: 11px; height: 11px; }
.faq-side { display: grid; gap: 16px; align-content: start; position: sticky; top: 96px; align-self: start; }
.faq-contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 900px) { .faq-side { position: static; } }
.nf { min-height: calc(100dvh - 280px); display: grid; align-content: center; gap: 20px; padding: 96px 0 72px; }
.nf .eyebrow { color: var(--faint); font-size: 13px; letter-spacing: .08em; }
.nf-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.nf-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 40px; }
.nf-links a { display: grid; gap: 4px; padding: 20px 20px 4px 0; transition: color .2s; }
.nf-links a span { color: var(--muted); font-size: 13.5px; }
.nf-links a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nf-links { grid-template-columns: 1fr 1fr; } }
p, li, .sb-k, .small { text-wrap: pretty; }
html.gate-pending a[href="/signup"], html.gate-pending a[href="/login"] { visibility: hidden; }
.is-soon { cursor: default; pointer-events: none; opacity: .55; }
.is-soon .arrow { display: none; }

/* ── marka MaddLabs: M jak góry odbite w jeziorze, odbicie rozpływa się (zero retencji) ── */
.brand-wm { display: inline-flex; align-items: center; gap: 9px; line-height: 1; font-family: inherit; }
.brand-mark { width: 24px; height: 24px; flex: none; display: block; }
.brand-name { font-family: "Bricolage Grotesque", var(--font); font-variation-settings: "opsz" 28; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--text); transform: translateY(var(--bn-y, 2.75px)); }
.brand-ai { font: 500 10px var(--mono); letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px 2px; margin-left: -2px; }
.mock-brand { margin: 0 6px 14px; }
.mock-brand .brand-mark { width: 22px; height: 22px; }
.mock-brand .brand-name { font-size: 16px; --bn-y: 2.2px; }
.mock-side .mock-brand span { padding: 0; border-radius: 0; }
.mock-side .mock-brand .brand-ai { padding: 3px 5px 2px; border-radius: 5px; }
.mock-brand .brand-wm { gap: 7px; }

/* ── hero wyśrodkowany (07.11) ── */
.hero-c { padding: 88px 0 0; }
.hero-c .dotgrid { mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 5%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 5%, transparent 72%); }
.hero-c::before { background: radial-gradient(720px 340px at 50% 18%, color-mix(in srgb, var(--text) 8%, transparent), transparent 70%); }
.hero-rails { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; z-index: -1; }
.hero-rails::before, .hero-rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), var(--line) 70%, transparent); }
.hero-rails::before { left: 0; } .hero-rails::after { right: 0; }
.hero-center { display: grid; justify-items: center; text-align: center; gap: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, color .2s; }
.eyebrow-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 14%, transparent); }
.eyebrow-pill .arrow { opacity: .6; transition: transform .2s; }
.eyebrow-pill:hover { color: var(--text); border-color: var(--text); }
.eyebrow-pill:hover .arrow { transform: translateX(2px); }
.h-hero { margin: 28px 0 0; font-size: clamp(42px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.055em; font-weight: 600; text-wrap: balance; max-width: 15ch; }
.hero-lead { margin: 26px auto 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 19.5px); text-align: center; }
.hero-c .hero-ctas { justify-content: center; margin-top: 34px; }
.hero-mail { margin: 14px 0 0; font-size: 13.5px; color: var(--faint); }
.hero-mail a { color: var(--muted); }
.hero-trust { margin-top: 40px; display: grid; gap: 12px; justify-items: center; }
.hero-trust p { margin: 0; font-size: 14px; color: var(--muted); }
.trust-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.eu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.eu-chip [data-flag] svg, .eu-chip .flag { width: 22px; height: 15px; border-radius: 3px; display: block; }
.trust-txt { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-demo { margin-top: 72px; position: relative; }
.hero-demo::before { content: ""; position: absolute; left: 8%; right: 8%; top: -40px; height: 200px; background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 9%, transparent), transparent); filter: blur(20px); z-index: -1; }
.code-wide { box-shadow: var(--shadow-lg); border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
@media (min-width: 900px) {
  .code-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .code-wide > .code-top { grid-column: 1 / -1; }
  .code-wide > pre { padding: 22px 24px; }
  .code-wide > .code-out { border-top: 0; border-left: 1px solid var(--code-line); display: flex; flex-direction: column; padding: 22px 24px; }
  .code-wide > .code-out .stream { flex: 1; font-size: 13.5px; line-height: 1.7; }
}
@media (max-width: 760px) {
  .hero-c { padding-top: 48px; }
  .hero-rails { display: none; }
  .h-hero br { display: none; }
  .trust-txt { font-size: 11px; }
  .hero-demo { margin-top: 48px; }
}
.h-hero { max-width: none; }
.hero-rails::before { left: 24px; } .hero-rails::after { right: 24px; }
.hero-rails > i { position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }
@media (max-width: 760px) { .h-hero { max-width: 14ch; } }

/* ── hero „jezioro” (07.11) ── */
.hero-lake { padding: 80px 0 0; }
.hero-lake .dotgrid { mask-image: radial-gradient(ellipse 55% 60% at 22% 30%, #000 5%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 55% 60% at 22% 30%, #000 5%, transparent 70%); }
.hero-lake::before { background: radial-gradient(640px 320px at 25% 30%, color-mix(in srgb, var(--text) 7%, transparent), transparent 70%), radial-gradient(520px 300px at 85% 60%, color-mix(in srgb, var(--text) 5%, transparent), transparent 70%); }
.lake-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 64px; align-items: start; }
.lake-copy { display: grid; justify-items: start; }
.coords { display: flex; flex-wrap: wrap; gap: 0; margin: 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.coords span + span::before { content: "/"; margin: 0 10px; color: var(--line-2); }
.coords span:first-child { color: var(--text); }
.lake-h { margin: 30px 0 0; font-weight: 600; letter-spacing: -0.058em; line-height: .96; font-size: clamp(44px, 6.4vw, 98px); }
.lake-h .l1 { display: block; color: var(--faint); }
.lake-h .l2 { display: inline-block; position: relative; margin-bottom: .62em; white-space: nowrap; }
.lake-h .reflect { position: absolute; left: 0; top: 100%; width: 100%; transform: scaleY(-1); transform-origin: 50% 0; margin-top: .02em; color: var(--text); opacity: .42; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.95) 0%, transparent 62%), repeating-linear-gradient(to top, #000 0 2px, transparent 2px 5px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, rgba(0,0,0,.95) 0%, transparent 62%), repeating-linear-gradient(to top, #000 0 2px, transparent 2px 5px);
  mask-composite: intersect; filter: url(#ripple) blur(.4px); }
.lake-lead { margin: 0; max-width: 54ch; }
.hero-lake .hero-ctas { margin-top: 32px; }
.hero-lake .hero-mail { text-align: left; }
.spec { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 0; border-top: 1px solid var(--line); width: 100%; max-width: 620px; }
.spec > div { padding: 14px 20px 0 0; display: grid; gap: 5px; }
.spec > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.spec dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin: 0; font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.spec-flags { display: inline-flex; gap: 4px; }
.spec-flags .flag, .spec-flags [data-flag] svg { width: 18px; height: 12px; border-radius: 2px; display: block; }
.lake-demo { padding-top: 56px; position: relative; }
.live-card { position: relative; border-radius: 18px; border: 1px solid var(--code-line); background: var(--code-bg); color: var(--code-text); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13.5px; }
.lc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--code-line); font-size: 12px; color: var(--code-dim); }
.lc-verb { color: var(--code-bg); background: var(--code-text); border-radius: 5px; padding: 1px 6px; font-weight: 600; font-size: 11px; }
.lc-model { margin-left: auto; border: 1px solid var(--code-line); border-radius: 6px; padding: 2px 7px; font-size: 11px; }
.lc-body { padding: 18px; display: grid; gap: 18px; min-height: 236px; align-content: start; }
.lc-body small { display: block; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--code-dim); margin-bottom: 6px; }
.lc-q p { margin: 0; font-size: 15px; color: #fff; }
.lc-a .stream { min-height: 96px; font: 13px/1.7 var(--mono); }
.lc-q, .lc-a { transition: opacity .9s ease, filter .9s ease, transform .9s ease; }
.live-card.is-gone .lc-q, .live-card.is-gone .lc-a { opacity: 0; filter: blur(6px); transform: translateY(6px) scaleY(.96);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); }
.lc-meter { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px dashed var(--code-line); color: var(--code-dim); font-size: 12px; }
.lc-meter b { color: #fff; font-weight: 500; }
.lc-steps { list-style: none; margin: 0; padding: 12px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--code-line); font-size: 11px; letter-spacing: .04em; color: var(--code-dim); }
.lc-steps li { display: flex; align-items: center; gap: 7px; transition: color .3s; }
.lc-steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--code-dim); flex: none; transition: background .3s, border-color .3s; }
.lc-steps li.on { color: #fff; } .lc-steps li.on::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.lc-steps li.done::before { background: var(--code-dim); }
.lc-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--code-line); background: var(--code-bg-2); font-size: 12px; color: var(--code-dim); }
.lc-foot b { color: #fff; font-weight: 500; font-size: 13px; transition: transform .3s; }
.live-card.is-gone .lc-foot b { animation: pulse0 1.2s ease 1; }
@keyframes pulse0 { 40% { transform: scale(1.18); } }
.waterline { margin-top: 72px; display: grid; justify-items: center; gap: 9px; padding-bottom: 8px; }
.waterline i { display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.waterline i:nth-child(1) { width: min(1200px, 92%); } .waterline i:nth-child(2) { width: min(760px, 62%); opacity: .7; } .waterline i:nth-child(3) { width: min(380px, 32%); opacity: .45; }
@media (max-width: 960px) { .lake-grid { grid-template-columns: 1fr; gap: 24px; } .lake-demo { padding-top: 0; } }
@media (max-width: 560px) { .hero-lake { padding-top: 40px; } .lake-h { font-size: 9.2vw; } .spec { grid-template-columns: 1fr; } .spec > div + div { border-left: 0; padding-left: 0; } .spec > div { padding: 12px 0 0; } .waterline { margin-top: 48px; } }
@media (prefers-reduced-motion: reduce) { .lake-h .reflect { filter: blur(.4px); } }

/* bez wersalikowych „nadpisów” (07.11): etykiety zwykłym tekstem */
.eyebrow, .toc-title, .foot h4 { text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important; font-size: 13px !important; }

.spec dt { font: 400 13px var(--font, inherit); letter-spacing: 0; text-transform: none; color: var(--faint); }
.lc-body small { font: 400 12.5px inherit; font-family: inherit; letter-spacing: 0; text-transform: none; }
.lc-steps { font-family: inherit; font-size: 12px; letter-spacing: 0; }
.code-out-head { text-transform: none; letter-spacing: 0; font-size: 12px; }
/* odbicie pod linią, nie nad nią */
.lake-h .reflect { transform-origin: 50% 50%; margin-top: -.08em; }
.lake-h { font-size: clamp(42px, 4.8vw, 78px); margin-top: 0; }
.lake-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 56px; }
.lake-demo { padding-top: 8px; }
@media (max-width: 560px) { .lake-h { font-size: 9.2vw; } }

.lc-body { position: relative; }
.lc-gone { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px 40px; text-align: center; color: var(--code-dim); font-size: 13.5px; line-height: 1.6; opacity: 0; transform: translateY(6px); transition: opacity .8s ease .5s, transform .8s ease .5s; pointer-events: none; }
.live-card.is-gone .lc-gone { opacity: 1; transform: none; }
.lake-h .l2 { margin-bottom: .78em; }
.lake-h .reflect { opacity: .3; margin-top: .04em;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%), repeating-linear-gradient(to top, #000 0 1.5px, transparent 1.5px 4px);
  mask-image: linear-gradient(to top, #000 0%, transparent 70%), repeating-linear-gradient(to top, #000 0 1.5px, transparent 1.5px 4px); }
@media (max-width: 960px) { .lake-grid { grid-template-columns: 1fr; gap: 32px; } .lake-demo { padding-top: 0; } }

/* ── hero minimalny (07.11) ── */
.hero-min { padding: 112px 0 104px; }
.hero-min::before { display: none; }
.hm-h { margin: 0; max-width: 17ch; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.hm-row { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: end; }
.hm-copy { display: grid; gap: 32px; align-content: end; }
.hm-lead { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hm-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hm-link { font-weight: 500; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.hm-link:hover { text-decoration-color: var(--text); }
.hm-orig { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); }
.hm-orig .origin-flags { display: inline-flex; gap: 4px; }
.hm-orig .flag, .hm-orig [data-flag] svg { width: 20px; height: 14px; border-radius: 2px; display: block; }
.hm-code { margin: 0; border-radius: 14px; background: var(--code-bg); border: 1px solid var(--code-line); overflow: hidden; }
.hm-code pre { margin: 0; padding: 26px 0; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: var(--code-text); }
.hm-code .ln { display: block; padding: 0 28px; min-height: 1.75em; }
.hm-code .ln.add { background: color-mix(in srgb, #fff 6%, transparent); box-shadow: inset 2px 0 0 #fff; }
@media (max-width: 900px) { .hero-min { padding: 56px 0 64px; } .hm-row { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; } .hm-code pre { font-size: 12.5px; } .hm-code .ln { padding: 0 18px; } }

/* ── porządki 07.11: bez dekoracyjnych teł, bez wjazdów sekcji, bez strzałek w przyciskach ── */
.dotgrid, .hero::before, .band::after, .auth-side::before, .hero-demo::before { display: none !important; }
.tile-lines { background-image: none; }
.rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.btn .arrow, .eyebrow-pill .arrow { display: none; }
.mock { box-shadow: none; }
.hm-row { align-items: start; }
.hm-copy { align-content: start; padding-top: 6px; }
.hm-code pre { color: #8b8b94; }
.hm-code .c-k { color: #ffffff; font-weight: 500; }
.hm-code .c-s { color: #bdbdc4; }
.hm-code .c-d { color: #74747d; }
.hm-code .ln.add { color: #e4e4e7; }
.tile-ico { display: none; }

/* ── jasny motyw na stałe (07.11), jak dojrzałe strony B2B: biel, czerń, spokojna typografia ── */
:root { --bg: #ffffff; --bg-2: #f6f7f8; --surface: #ffffff; --surface-2: #f6f7f8; --text: #0a0a0b; --muted: #4b4b52; --faint: #75757d;
  --line: rgba(10, 10, 12, 0.09); --line-2: rgba(10, 10, 12, 0.16); --shadow-lg: 0 1px 2px rgba(10,10,12,.04), 0 24px 48px -28px rgba(10,10,12,.22); }
.h-display, .h-1, .h-2, .hm-h, .statement { font-weight: 500; letter-spacing: -0.042em; }
.h-3 { font-weight: 550; }
.hm-h { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.04; }
/* ciemne wyspy → jasne */
.tile-dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.tile-dark .body, .tile-dark .small { color: var(--muted) !important; }
.tile-dark .life li i { box-shadow: 0 0 0 4px var(--surface-2); }
.band { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.band .lead { color: var(--muted); }
.band .btn-primary { background: var(--text); color: #fff; }
.auth-side { background: var(--surface-2); color: var(--text); border-left: 1px solid var(--line); }
.nav { background: rgba(255,255,255,.86); }
/* duże liczby zwykłym krojem z cyframi równej szerokości */
.price-big .p, .stat .v, .balance-hero .v, .sb-v, .mock-stats b, .tier-hero .v, .big-num { font-family: var(--font) !important; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.035em; }
.price-big .p { letter-spacing: -0.05em; }

/* Hero jak pulpit: minimalny, jasny, okna do przesuwania */
.hero-min .hm-row { grid-template-columns: minmax(0, 44ch); }
.os { position: relative; margin-top: 64px; height: 470px; border-radius: 18px; background: #f4f4f5; border: 1px solid var(--line); overflow: hidden; }
.os-icons { position: absolute; left: 24px; top: 28px; display: grid; gap: 22px; }
.os-icon { display: grid; justify-items: center; gap: 6px; width: 76px; font-size: 12.5px; color: var(--muted); text-align: center; }
.os-icon .os-ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.os-icon:hover { color: var(--text); }
.os-icon:hover .os-ic { border-color: var(--line-2); }
.os-ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.os-win { position: absolute; left: var(--x); top: var(--y); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(24,24,27,.04), 0 12px 32px -12px rgba(24,24,27,.14); }
.os-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 12.5px; color: var(--faint); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; }
.os-bar:active { cursor: grabbing; }
.os-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.os-bar span { margin-left: 8px; }
.os-code { width: min(600px, 52%); background: var(--code-bg); border-color: var(--code-line); }
.os-code .os-bar { border-color: var(--code-line); color: #8b8b94; }
.os-code .os-bar i { background: #3f3f46; }
.os-code pre { margin: 0; padding: 18px 0 22px; overflow-x: auto; font: 13px/1.75 var(--mono); color: #8b8b94; }
.os-code .ln { display: block; padding: 0 22px; min-height: 1.75em; }
.os-code .ln.add { color: #e4e4e7; background: color-mix(in srgb, #fff 6%, transparent); box-shadow: inset 2px 0 0 #fff; }
.os-code .c-k { color: #fff; font-weight: 500; } .os-code .c-s { color: #bdbdc4; } .os-code .c-d { color: #74747d; }
.os-disk { width: 300px; }
.os-disk-body { display: grid; justify-items: start; gap: 6px; padding: 20px 20px 22px; }
.os-disk-body .os-ic { width: 28px; height: 28px; color: var(--faint); margin-bottom: 6px; }
.os-disk-body b { font-weight: 500; font-size: 15px; }
.os-disk-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  .os { height: auto; margin-top: 40px; padding: 14px; display: grid; gap: 14px; }
  .os-icons { display: none; }
  .os-win { position: static; width: auto; }
  .os-bar { cursor: default; }
  .os-code pre { font-size: 12px; }
  .os-code .ln { padding: 0 16px; }
}
.hero-min { padding: 72px 0 96px; }
.hero-min .hm-h { font-size: clamp(36px, 4.2vw, 60px); max-width: 20ch; }
.hero-min .hm-row { margin-top: 24px; grid-template-columns: minmax(0, 52ch); }
.hero-min .hm-copy { gap: 24px; }
.hero-min .os { margin-top: 48px; }
.hero-min .os { height: 420px; }
.hero-min .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
.hero-min .hm-row { margin: 0; grid-template-columns: auto; }
.hero-min .os { grid-column: 1 / -1; }
@media (max-width: 900px) { .hero-min .wrap { grid-template-columns: 1fr; } .hero-min .hm-row { margin-top: 28px; } }
@media (max-width: 900px) { .hero-min .os { height: auto; } }

/* ── Tożsamość MaddLabs: lawa (geotermia Islandii), krój z charakterem, mniej kart ── */
:root { --accent: #c93b1d; --accent-ink: #a52e14; --accent-soft: #fbece7; --display: "Bricolage Grotesque", var(--font); }
.hm-h, .h-display, .h-1, .h-2, .statement, .sb-v, .price-big .p, .band .h-1 { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 600; letter-spacing: -0.035em; }
.hm-h { font-weight: 650; letter-spacing: -0.04em; }
.h-3 { letter-spacing: -0.015em; }
/* przyciski */
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { opacity: 1; background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.is-soon { opacity: 1; }
.btn-primary.is-soon { background: var(--accent); color: #fff; }
.hm-link:hover, .link-u:hover { text-decoration-color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
/* pulpit w hero: tapeta w kolorze lawy */
.hero-min .os { background: var(--accent); border-color: transparent; }
.os-icon { color: #fff; font-weight: 500; }
.os-icon .os-ic { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.os-icon:hover { color: #fff; }
.os-icon:hover .os-ic { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.os-win { box-shadow: 0 2px 4px rgba(90,20,6,.10), 0 24px 48px -16px rgba(90,20,6,.45); border-color: rgba(0,0,0,.08); }
.os-code .ln.add { box-shadow: inset 2px 0 0 #ff7a5c; background: rgba(255,122,92,.10); }
.os-disk-body b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
/* liczby */
.statsband .sb-v { font-weight: 600; }
.statsband-grid > div:last-child .sb-v { color: var(--accent); }
/* bento: mniej identycznych kart */
.tile { box-shadow: none; }
.tile-a { background: var(--bg-2); border-color: transparent; }
.tile-d { background: var(--accent-soft); border-color: transparent; }
.tile-d .bar { background: rgba(201,59,29,.15); }
.tile-d .bar i { background: var(--accent); }
.tile-e { background: transparent; }
/* kroki */
.flow-step:first-child .flow-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
/* cennik */
.price-big .p { font-size: clamp(56px, 7vw, 104px); }
.price-big > div:first-child .p { color: var(--accent); }
/* pas na dole: zamyka stronę tym samym kolorem co pulpit */
.band { background: var(--accent); border-color: transparent; color: #fff; }
.band .lead { color: rgba(255,255,255,.82); }
.band .btn-primary, .band .btn-primary.is-soon { background: #fff; color: var(--accent-ink); }
.band .btn-primary:hover { background: #fff1ec; }
.hm-h { letter-spacing: -0.022em; }
.h-display, .h-1, .h-2, .statement, .band .h-1 { letter-spacing: -0.018em; }
.sb-v, .price-big .p { letter-spacing: -0.025em; }
#europe .eu-card, #europe article { box-shadow: none; }
.hm-h, .h-display, .h-1, .h-2, .statement, .sb-v, .price-big .p, .band .h-1 { font-variation-settings: "opsz" 40; letter-spacing: -0.01em; }
.hm-h { font-weight: 600; letter-spacing: -0.012em; }
.hero-min .hm-h { max-width: 24ch; }

/* Wariant 2: strona czarno-biała, lawa tylko na pulpicie w hero */
.btn-primary, .btn-primary.is-soon { background: var(--inv); color: var(--inv-text); }
.btn-primary:hover { background: #2a2a2e; }
.hm-link:hover, .link-u:hover { text-decoration-color: var(--text); }
:focus-visible { outline-color: var(--text); }
.statsband-grid > div:last-child .sb-v, .price-big > div:first-child .p { color: var(--text); }
.tile-d { background: var(--bg-2); }
.tile-d .bar { background: var(--line); }
.tile-d .bar i { background: var(--text); }
.flow-step:first-child .flow-dot { background: var(--inv); border-color: var(--inv); color: var(--inv-text); }
.band { background: var(--bg-2); color: var(--text); }
.band .lead { color: var(--muted); }
.band .btn-primary, .band .btn-primary.is-soon { background: var(--inv); color: var(--inv-text); }
.band .btn-primary:hover { background: #2a2a2e; }
.price-big .p { font-size: clamp(48px, 5.4vw, 80px); }
