/* ==========================================================================
   LooCraft Labs — design system
   Dark, technical, restrained. No neon, no glassmorphism everywhere.
   ========================================================================== */

:root {
  --bg: #070a0f;
  --bg-2: #0a0f16;
  --surface: #0e141d;
  --surface-2: #121a24;
  --surface-3: #161f2b;
  --line: #1e2a38;
  --line-soft: #16202c;
  --line-strong: #2a3a4c;

  --text: #e7eef6;
  --text-dim: #b6c3d2;
  --muted: #8a9aad;
  --faint: #64768b;

  --accent: #33d3e6;
  --accent-dim: #1fa6b8;
  --accent-ink: #04222a;
  --blue: #4c8dff;

  --amber: #e8a63d;
  --red: #e5544b;
  --green: #46ad80;

  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1240px;
  --font-sans: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #6be4f2; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: #f2f7fc;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.3vw, 3.35rem); line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; color: var(--text-dim); }
li { margin: 0.35em 0; }
li::marker { color: var(--faint); }

strong { color: #f0f5fb; font-weight: 600; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.88em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection { background: rgba(51, 211, 230, 0.24); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-weight: 650;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- background grid ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(120, 170, 210, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 170, 210, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 25%, transparent 78%);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 68px 0; }
.section--line { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--wide { max-width: 860px; }
.section-head p { font-size: 1.02rem; line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--text-dim); max-width: 62ch; }
.small { font-size: 0.86rem; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 72px; align-items: start; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(42, 58, 76, 0.55);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f8fc;
  font-weight: 680;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
  flex: none;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
  flex: none;
  filter: drop-shadow(0 2px 10px rgba(70, 173, 128, 0.25));
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--line-strong);
  margin-left: 2px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(14, 20, 29, 0.78);
  border: 1px solid rgba(42, 58, 76, 0.6);
}
.nav a {
  color: var(--text-dim);
  font-size: 0.845rem;
  font-weight: 520;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] {
  color: #f4fbf8;
  background: rgba(70, 173, 128, 0.18);
  box-shadow: inset 0 0 0 1px rgba(70, 173, 128, 0.34);
}
.nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-panel-link {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(14, 20, 29, 0.6);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.header-panel-link:hover,
.header-panel-link[aria-current="page"] {
  color: #fff;
  border-color: var(--accent-dim);
  background: rgba(51, 211, 230, 0.08);
}

.nav-toggle {
  display: none;
  order: 3;
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  text-align: center;
}
.btn:hover { color: #fff; border-color: #3d5670; background: rgba(255, 255, 255, 0.045); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #5ce0ef; border-color: #5ce0ef; color: var(--accent-ink); }

.btn--incident {
  border-color: rgba(232, 166, 61, 0.45);
  color: #f0bd72;
}
.btn--incident:hover { border-color: var(--amber); background: rgba(232, 166, 61, 0.1); color: #f7cb8b; }

.btn--sm { padding: 8px 14px; min-height: 36px; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.link-arrow svg { transition: transform 0.16s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- cards / panels ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, #0c1219 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.card--flush { padding: 0; overflow: hidden; }
.card--quiet { background: var(--surface); }
.card--accent { border-color: rgba(51, 211, 230, 0.32); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.93rem; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .card { border-color: var(--line-strong); }
.card-list { list-style: none; padding: 0; margin: 16px 0 0; }
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0.5em 0;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent-dim);
  border-radius: 1px;
}
.card-list--check li::before {
  content: "";
  border: 0;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
  top: 0.55em;
  border-radius: 0;
}
.card-list--cross li::before {
  content: "";
  border: 0;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%);
  top: 0.55em;
  border-radius: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #0b1118;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- status / badges ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  flex: none;
}
.status--ok { color: var(--green); }
.status--review { color: var(--blue); }
.status--warn { color: var(--amber); }
.status--crit { color: var(--red); }
.status--idle { color: var(--faint); }
.status--live::before { animation: pulse 2.4s ease-in-out infinite; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.badge--demo { border-color: rgba(232, 166, 61, 0.38); color: #eab86a; background: rgba(232, 166, 61, 0.07); }
.badge--soon { border-color: rgba(76, 141, 255, 0.35); color: #8fb5ff; background: rgba(76, 141, 255, 0.07); }
.badge--accent { border-color: rgba(51, 211, 230, 0.35); color: var(--accent); background: rgba(51, 211, 230, 0.07); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(70, 173, 128, 0.12); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(70, 173, 128, 0.05); }
}

/* ---------- readout rows (Project Readiness) ---------- */
.readout { display: grid; gap: 0; }
.readout__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.readout__row:last-child { border-bottom: 0; }
.readout__label { font-size: 0.9rem; color: var(--text-dim); }
.readout__meta { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.08em; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-family: var(--font-mono); font-size: 11.5px; }
.kv dt { color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--text); }

/* ---------- process / steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 46px;
  margin: 0;
  border-left: 1px solid var(--line);
  margin-left: 13px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -13px;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.steps strong { display: block; color: #f0f5fb; font-size: 0.98rem; margin-bottom: 2px; }
.steps p { font-size: 0.9rem; margin: 0; }

.phase { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.phase__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.phase h3 { margin: 8px 0 10px; }

/* ---------- notices ---------- */
.notice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  background: rgba(76, 141, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.notice strong { color: #eaf2fa; display: block; margin-bottom: 2px; font-size: 0.9rem; }
.notice p { font-size: 0.9rem; margin: 0; color: var(--text-dim); }
.notice--warn { border-left-color: var(--amber); background: rgba(232, 166, 61, 0.06); }
.notice--crit { border-left-color: var(--red); background: rgba(229, 84, 75, 0.06); }
.notice--ok { border-left-color: var(--green); background: rgba(70, 173, 128, 0.06); }
.notice__icon { width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tbl caption {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #0b1118;
}
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.015);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
.tbl td.num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }

/* ---------- terminal block ---------- */
.term {
  background: #060a0e;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #0a0f15;
}
.term__body { padding: 14px 16px; color: var(--text-dim); overflow-x: auto; }
.term__body > div { white-space: pre; }
.term .t-dim { color: var(--faint); }
.term .t-key { color: var(--accent); }
.term .t-ok { color: var(--green); }
.term .t-warn { color: var(--amber); }
.term .t-crit { color: var(--red); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #33465a; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: 56px 0 68px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 16px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 48px; align-items: end; }

/* ---------- home hero ---------- */
.hero { padding: 76px 0 96px; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: start; }
.hero h1 { margin-top: 4px; max-width: 19ch; }
.hero .lead { margin-top: 22px; max-width: 54ch; }
.hero .btn-row { margin-top: 30px; }
.hero-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 52ch;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.hero-note svg { flex: none; margin-top: 3px; color: var(--green); }

.hero-panel { position: sticky; top: 112px; }
.hero-panel .status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #0b1118;
}
.hero-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.hero-panel .btn { border-radius: 4px; }

/* meter */
.meter { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.meter--warn > span { background: var(--amber); }
.meter--crit > span { background: var(--red); }
.meter--ok > span { background: var(--green); }

/* ---------- situation cards ---------- */
.sit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
  height: 100%;
}
.sit:hover { border-color: var(--line-strong); background: var(--surface-2); }
.sit__idx { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); }
.sit h3 { font-size: 1.08rem; margin: 0; }
.sit p { font-size: 0.9rem; margin: 0; flex: 1; }
.sit .link-arrow { margin-top: 4px; }

/* ---------- check grid ---------- */
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.check-item { background: var(--surface); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.check-item svg { flex: none; margin-top: 3px; color: var(--accent-dim); }
.check-item span { font-size: 0.89rem; color: var(--text-dim); }

/* ---------- pricing ---------- */
.price { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); height: 100%; }
.price--featured { border-color: rgba(51, 211, 230, 0.34); background: linear-gradient(180deg, #0f1b23 0%, #0c1219 100%); }
.price__name { font-size: 1.05rem; font-weight: 650; color: #f2f7fc; }
.price__amount { font-family: var(--font-mono); font-size: 1.35rem; color: var(--accent); letter-spacing: -0.01em; }
.price__amount small { font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); letter-spacing: 0; display: block; margin-top: 2px; }
.price ul { margin: 0; flex: 1; }
.price .btn { margin-top: auto; }

/* ---------- articles / knowledge ---------- */
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); height: 100%; }
.article-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.article-card p { font-size: 0.88rem; margin: 0; flex: 1; }

.prose { max-width: 64ch; }
.prose h2 { margin-top: 40px; font-size: 1.42rem; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { font-size: 0.98rem; }
.prose li { margin: 0.5em 0; }
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent-dim);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.96rem;
}
.prose blockquote p:last-child { margin: 0; }

.toc { position: sticky; top: 112px; }
.toc h2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.toc a { display: block; padding: 9px 0; font-size: 0.85rem; color: var(--muted); }
.toc a:hover { color: var(--accent); }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .field-label { font-size: 0.82rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.field .hint { font-size: 0.78rem; color: var(--faint); }
.field .hint--warn { color: #c9954a; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: #080d13;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #4f6076; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-dim); outline: 2px solid rgba(51, 211, 230, 0.22); outline-offset: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 120px; resize: vertical; }

.radio-set { display: grid; gap: 8px; }
.radio-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.radio-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.radio-opt:has(input:checked) { border-color: var(--accent-dim); background: rgba(51, 211, 230, 0.06); color: #eaf5f8; }
.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; }
.radio-set--budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.radio-set--budget .radio-opt { font-size: 0.88rem; align-items: center; }
@media (max-width: 600px) { .radio-set--budget { grid-template-columns: 1fr; } }
.check-opt { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: var(--text-dim); cursor: pointer; margin-bottom: 10px; }
.check-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* wizard */
.wizard-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}
.wizard-step.is-current { color: var(--accent); border-color: rgba(51, 211, 230, 0.35); }
.wizard-step.is-done { color: var(--green); border-color: rgba(70, 173, 128, 0.3); }
.wizard-pane[hidden] { display: none; }
.summary-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt, .summary-list .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.summary-list .v { color: var(--text); }

/* ---------- app shell (panel) ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-height: 720px; }
.app__side { border-right: 1px solid var(--line); background: #0a0f15; padding: 16px 12px; }
.app__brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 16px; font-size: 0.85rem; font-weight: 650; color: #eef5fb; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.app__group { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #4d5f74; padding: 14px 10px 6px; }
.app-nav { display: flex; flex-direction: column; gap: 1px; }
.app-nav button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-nav button:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.app-nav button[aria-current="true"] { background: rgba(51, 211, 230, 0.1); color: var(--accent); }
.app-nav .count { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.app__main { padding: 0; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); background: #0b1118; flex-wrap: wrap; }
.app-topbar__title { font-size: 0.92rem; font-weight: 600; color: #f0f5fb; }
.app-body { padding: 24px; }
.app-view[hidden] { display: none; }
.app-view > header { margin-bottom: 20px; }

/* ---------- panel demo: zamówienie, płatność, czat ---------- */
.demo-reset {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 11px;
  cursor: pointer;
}
.demo-reset:hover { color: var(--text); border-color: var(--accent-dim); }

.order-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, #0c1219 100%);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.order-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-card__status { font-size: 1.35rem; font-weight: 650; color: #eef5fb; margin-top: 6px; letter-spacing: -0.01em; }
.order-card__status[data-tone="review"] { color: #8fb5ff; }
.order-card__status[data-tone="warn"] { color: #eab86a; }
.order-card__status[data-tone="ok"] { color: #6ec99d; }
.order-card__status[data-tone="crit"] { color: #ec7b73; }
.order-card__status[data-tone="idle"] { color: var(--text-dim); }
.order-card__note { font-size: 0.93rem; color: var(--text-dim); margin: 8px 0 0; max-width: 62ch; }
.order-card__next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.order-card__next p { margin: 5px 0 0; font-size: 0.9rem; color: var(--text); }

.tracker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0b1118;
  overflow: hidden;
}
.tracker li {
  position: relative;
  padding: 14px 12px 15px;
  border-right: 1px solid var(--line-soft);
  display: grid;
  gap: 3px;
  font-size: 0.78rem;
  color: #56687d;
}
.tracker li:last-child { border-right: 0; }
.tracker li span { display: flex; align-items: center; gap: 7px; }
.tracker li span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #3a4c60;
  background: transparent;
  flex: none;
}
.tracker li small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; color: #47586c; }
.tracker li.is-done { color: var(--text-dim); }
.tracker li.is-done span::before { border-color: var(--green); background: var(--green); }
.tracker li.is-current { color: #f0f5fb; background: rgba(255, 255, 255, 0.025); }
.tracker li.is-current span::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(51, 211, 230, 0.12); }
.tracker li.is-current small { color: var(--accent-dim); }
.tracker li.is-rejected span::before { border-color: var(--red); background: var(--red); }
.tracker--compact li { padding: 12px 10px; font-size: 0.74rem; }

.quote-box {
  border-left: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
}
.quote-box p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.quote-box p + p { margin-top: 8px; }

.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: #fff; line-height: 1.1; margin-top: 4px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.method {
  text-align: left;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.method strong { font-size: 0.9rem; }
.method span { font-size: 0.78rem; color: var(--faint); line-height: 1.45; }
.method:hover { border-color: #3d5670; }
.method[aria-pressed="true"] { border-color: var(--accent); background: rgba(51, 211, 230, 0.07); }
.method[aria-pressed="true"] strong { color: var(--accent); }
.pay-actions { margin-top: 16px; display: grid; gap: 8px; }
.pay-actions .btn { width: 100%; }
.pay-actions .small { margin: 0; }
.pay-demo { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--faint); }

.check-stack { display: grid; margin: 14px 0 4px; }
.check-stack label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.89rem;
  color: var(--text-dim);
  cursor: pointer;
}
.check-stack label:last-child { border-bottom: 0; }
.check-stack input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.amount-field { margin-top: 18px; }
.inline-field { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.inline-field input {
  width: 108px;
  padding: 8px 10px;
  background: #0a0f15;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.inline-field input:disabled { opacity: 0.45; }
.inline-field span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--faint); }

.chat { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #0b1118; }
.chat__log { padding: 20px; display: grid; gap: 16px; max-height: 440px; overflow-y: auto; }
.chat__msg { border-left: 2px solid var(--line-strong); padding-left: 14px; }
.chat__msg--staff { border-left-color: var(--accent-dim); }
.chat__meta { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; color: var(--faint); text-transform: uppercase; }
.chat__msg p { margin: 5px 0 0; font-size: 0.9rem; color: var(--text-dim); }
.chat__form { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 10px; }
.chat__send { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat__send .small { margin: 0; }

@media (max-width: 900px) {
  .tracker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracker li:nth-child(3) { border-right: 0; }
  .tracker li:nth-child(-n + 3) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 620px) {
  .methods { grid-template-columns: 1fr; }
  .tracker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker li:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .tracker li:nth-child(2n) { border-right: 0; }
  .pay-amount { font-size: 1.7rem; }
}
.app-view > header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.app-view > header p { font-size: 0.87rem; margin: 0; }

.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; background: #0b1118; }
.kpi .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.kpi .v { font-size: 1.45rem; font-weight: 600; color: #f2f7fc; margin-top: 6px; line-height: 1.1; }
.kpi .n { font-size: 0.76rem; color: var(--muted); }

.rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rank--verified { border-color: rgba(70, 173, 128, 0.4); color: #77c9a3; }
.rank--partner { border-color: rgba(76, 141, 255, 0.4); color: #93b8ff; }
.rank--client { border-color: rgba(51, 211, 230, 0.4); color: var(--accent); }

.rank-list { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; align-items: start; }
.rank-row:last-child { border-bottom: 0; }
.rank-row > .rank { justify-self: start; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 20px; border-left: 1px solid var(--line); margin-left: 3px; font-size: 0.86rem; }
.timeline li::before { content: ""; position: absolute; left: -3.5px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .when { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-size: 0.98rem;
  font-weight: 550;
  color: #eef4fa;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 20px; max-width: 76ch; }
.faq details > div p { font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #060a0e; padding: 56px 0 28px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { font-size: 0.86rem; color: var(--muted); max-width: 34ch; margin-top: 14px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { font-size: 0.85rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 0.78rem; color: var(--faint); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--muted); font-size: 0.78rem; }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.rule-grid > div { border-top: 1px solid var(--line); padding-top: 14px; }
.rule-grid strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.rule-grid p { font-size: 0.86rem; margin: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 34px; padding: 20px 0; }
.stat-row > div .v { font-family: var(--font-mono); font-size: 1.5rem; color: #f2f7fc; }
.stat-row > div .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.avatar-lg { width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--accent); background: #0b1118; }

.scroll-x { overflow-x: auto; }

@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 0.84rem; }
  .hero__grid { gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

@media (max-width: 1040px) {
  .header-actions .btn--incident,
  .header-actions .header-panel-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile-only { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    border-radius: 0;
    border: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 22px 20px;
    background: #080d13;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; border-radius: var(--radius); border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: 12px; width: 100%; }
}

@media (max-width: 960px) {
  .hero__grid, .split, .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-panel { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-nav { flex-direction: row; flex-wrap: wrap; }
  .app-nav button { border: 1px solid var(--line-soft); }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .header-top { height: 56px; }
  .nav { padding: 10px 18px 18px; }
  .hero { padding: 40px 0 52px; }
  .grid--2, .grid--3, .grid--4, .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .btn-row .btn + .btn { margin-top: 0; }
  .header-actions .btn--primary { padding: 9px 13px; font-size: 0.82rem; }
  .brand-sub { display: none; }
  .summary-list div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .rank-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stat-row { gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .app-body { padding: 16px; }
  .kpi { grid-template-columns: minmax(0, 1fr); }
  .tbl th, .tbl td { padding: 10px 12px; }
  .wizard-steps { gap: 6px; }
  .wizard-step { font-size: 9.5px; padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* ---------- ścieżka zakupu ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; }
.flow-step {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.flow-step span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); }
.flow-step strong { font-size: 0.97rem; font-weight: 600; color: #f0f5fb; }
.flow-step small { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.flow-step--pay { border-color: rgba(51, 211, 230, 0.3); background: rgba(51, 211, 230, 0.045); }
.pay-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.pay-line strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .flow-steps { grid-template-columns: 1fr; }
}

/* ---------- conversion blocks ---------- */
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-facts li { margin: 0; display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }

.trust-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(10, 15, 22, 0.6); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-bar__grid > div { padding: 22px 26px; border-left: 1px solid var(--line-soft); display: grid; gap: 2px; }
.trust-bar__grid > div:first-child { border-left: 0; padding-left: 0; }
.trust-bar strong { font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--accent); }
.trust-bar span { font-size: 0.82rem; color: var(--muted); }

.deliverables { display: grid; gap: 18px; }
.deliverable { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.deliverable svg { color: var(--green); margin-top: 3px; }
.deliverable strong { display: block; font-size: 0.98rem; }
.deliverable p { margin: 3px 0 0; font-size: 0.88rem; }

.sample-card__body { padding: 22px; }

.cta-band { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: 40px; }
.cta-band > div:first-child { max-width: 62ch; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band .lead { margin: 0; }
.cta-band__note { margin: 10px 0 0; color: var(--muted); }

/* ---------- sticky quick purchase bar ---------- */
body.has-quickbar { padding-bottom: 72px; }
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.quickbar__inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.quickbar__info { margin: 0; font-size: 0.8rem; color: var(--text-dim); }
.quickbar__info span { color: var(--muted); }
.quickbar__link { margin-left: auto; font-size: 0.84rem; color: var(--text-dim); }
.quickbar__link:hover { color: var(--accent); }
.quickbar__cta { flex: none; }

@media (max-width: 620px) {
  body.has-quickbar { padding-bottom: 96px; }
  .quickbar__inner { flex-wrap: wrap; gap: 8px 14px; }
  .quickbar__info { display: none; }
  .quickbar__link { margin-left: 0; font-size: 0.8rem; }
}

/* ---------- incident fast lane ---------- */
.fast-lane {
  border: 1px solid rgba(51, 211, 230, 0.3);
  border-left: 3px solid var(--accent);
  background: rgba(51, 211, 230, 0.05);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 18px;
}
.fast-lane strong { display: block; margin-bottom: 4px; font-size: 0.9rem; color: var(--accent); }
.fast-lane p { margin: 0; font-size: 0.85rem; }

.incident-help {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 0 16px;
  margin: 0 0 18px;
}
.incident-help summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 13px 30px 13px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.incident-help summary::-webkit-details-marker { display: none; }
.incident-help summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-mono);
}
.incident-help[open] summary::after { content: "–"; }
.incident-help > div { padding: 0 0 14px; }
.incident-help ol { margin: 0 0 10px; font-size: 0.88rem; }
.incident-help p.small { margin: 0; }

.urgent {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  margin: 0 0 18px;
  border: 1px solid rgba(232, 166, 61, 0.32);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(232, 166, 61, 0.05);
}
.urgent strong { font-size: 0.88rem; color: #eab86a; }
.urgent p { margin: 0; font-size: 0.84rem; }
.urgent code { color: var(--text); }

/* ---------- route row + metrics ---------- */
.route-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.route-row__label { font-size: 0.82rem; color: var(--muted); margin-right: 4px; }

.metric {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--faint);
}
.metric span { color: var(--muted); }
.metric strong { color: var(--green); font-size: 1.4rem; }

/* ---------- sample report ---------- */
.report { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.report__top { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 26px; border-bottom: 1px solid var(--line); background: #0b1118; }
.report__title { font-size: 1.3rem; margin: 10px 0 6px; }
.report__verdict { display: grid; gap: 6px; justify-items: start; }
.report__count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.report__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.report__summary > div { padding: 18px 22px; border-left: 1px solid var(--line-soft); display: grid; gap: 2px; }
.report__summary > div:first-child { border-left: 0; }
.report__num { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent); line-height: 1.1; }
.report__lbl { font-size: 0.78rem; color: var(--muted); }
.report__body { padding: 26px; }
.report__body h3 { font-size: 1.05rem; margin-top: 0; }
.report__next { margin: 0; font-size: 0.92rem; }
.report__limit { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); background: var(--surface-2); }
.report__limit strong { display: block; margin-bottom: 4px; font-size: 0.92rem; }
.report__limit p { margin: 0; font-size: 0.88rem; }

.finding { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.finding:first-of-type { border-top: 0; }
.finding__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.finding__head h4 { margin: 0; font-size: 1rem; flex: 1 1 260px; }
.finding__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px 7px; }
.finding__kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 0.88rem; }
.finding__kv dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.finding__kv dd { margin: 0; color: var(--text-dim); }

/* ---------- checklist ---------- */
.checklist { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.checklist__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #0b1118; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.checklist__bar strong { color: var(--text); }
.checklist .meter { border-radius: 0; height: 4px; }
.checklist__list { list-style: none; margin: 0; padding: 0; }
.checklist__item { margin: 0; border-bottom: 1px solid var(--line-soft); }
.checklist__item label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 20px; cursor: pointer; align-items: start; }
.checklist__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist__box { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg-2); margin-top: 3px; position: relative; flex: none; }
.checklist__item input:checked + .checklist__box { border-color: var(--green); background: rgba(70, 173, 128, 0.16); }
.checklist__item input:checked + .checklist__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border-right: 1.8px solid var(--green); border-bottom: 1.8px solid var(--green); transform: rotate(38deg); }
.checklist__item input:focus-visible + .checklist__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.checklist__text { font-size: 0.92rem; color: var(--text-dim); }
.checklist__area { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.checklist__item input:checked ~ .checklist__text { color: var(--muted); }
.checklist__foot { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.checklist__foot p { margin: 0; }

.tbl__sub { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.tbl--compare td { vertical-align: top; }
.tbl--compare td:first-child { min-width: 170px; }

.freebie { display: grid; gap: 10px; align-content: start; }
.freebie h3 { margin: 0; }

/* ---------- staff gate & multi-order switcher ---------- */
.staff-gate {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.staff-gate h2 { margin: 8px 0 8px; font-size: 1.3rem; }
.staff-gate__err { margin: 10px 0 0; font-size: 0.84rem; color: var(--red); }
.staff-gate__hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius);
  background: #f4f7fb;
  color: #111827;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.12s ease;
}
.btn-google:hover { background: #ffffff; color: #090d14; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.app-topbar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-row-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.14s ease;
}
.order-row-btn:last-child { border-bottom: 0; }
.order-row-btn:hover { background: rgba(255, 255, 255, 0.03); }
.order-row-btn.is-active { background: rgba(51, 211, 230, 0.08); box-shadow: inset 2px 0 0 var(--accent); }

.chat__order-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1118;
  font-size: 0.85rem;
}
.needs-info-banner {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(234, 184, 106, 0.42);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(234, 184, 106, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.needs-info-banner p { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-dim); }

/* ---------- staff tools: filters, templates, urgent, unread, files ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 550;
  cursor: pointer;
}
.filter-chip:hover { color: #fff; border-color: var(--accent-dim); }
.filter-chip.is-active { background: rgba(51, 211, 230, 0.14); border-color: var(--accent); color: var(--accent); }

.tpl-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tpl-btn {
  appearance: none;
  border: 1px dashed var(--line-strong);
  background: #0b1118;
  color: var(--text-dim);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.76rem;
  cursor: pointer;
}
.tpl-btn:hover { border-color: var(--accent); color: var(--accent); }

.badge--urgent {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(236, 123, 115, 0.16);
  border: 1px solid rgba(236, 123, 115, 0.45);
  color: #f39a94;
}
.unread-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #06131a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.unread-dot[hidden] { display: none; }

.staff-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
@media (max-width: 760px) { .staff-meta-grid { grid-template-columns: 1fr; } }

.notes-card {
  border-left: 2px solid var(--amber);
  background: linear-gradient(180deg, rgba(234, 184, 106, 0.04) 0%, var(--surface) 100%);
}
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1118;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .trust-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar__grid > div { border-left: 0; padding-left: 0; }
  .report__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report__summary > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
  .cta-band { padding: 26px; }
  .finding__kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .finding__kv dd { margin-bottom: 8px; }
  .trust-bar__grid > div { padding: 14px 0; }
}

.active-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.active-pick {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1118;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.active-pick:hover { border-color: #3d5670; background: #0e1620; }
.active-pick.is-selected { border-color: var(--accent); background: rgba(51, 211, 230, 0.08); }
.active-pick__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.active-pick__meta { font-size: 0.78rem; color: var(--muted); }

/* ---------- interactive dot-stepper (order stages) ---------- */
.dot-stepper {
  display: grid;
  gap: 14px;
}
.dot-phase {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0b1118;
  padding: 16px 18px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.dot-phase--post.is-locked {
  opacity: 0.48;
  border-style: dashed;
}
.dot-phase--post.is-locked .dot-step {
  pointer-events: none;
}
.dot-phase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dot-staff-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dot-reject-btn {
  border-color: rgba(232, 92, 92, 0.45) !important;
  color: #f38b8b !important;
}
.dot-reject-btn:hover {
  border-color: var(--red) !important;
  background: rgba(232, 92, 92, 0.12) !important;
}
.dot-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr minmax(0, 1fr) 1fr minmax(0, 1fr);
  align-items: start;
  gap: 0;
}
.dot-step {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 6px;
  color: var(--muted);
  font-family: inherit;
}
button.dot-step {
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.16s ease;
}
button.dot-step:hover {
  background: rgba(255, 255, 255, 0.04);
}
button.dot-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.dot-step:disabled:hover {
  background: none;
}
.dot-step__circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #3a4c60;
  background: #0b1118;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dot-step__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #8c9fb3;
  line-height: 1.25;
}
.dot-step__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5b6d82;
  line-height: 1.35;
  max-width: 18ch;
}
.dot-line {
  height: 2px;
  margin-top: 12px;
  background: #233142;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.dot-phase--post.is-locked .dot-line {
  background: repeating-linear-gradient(90deg, #233142 0 6px, transparent 6px 11px);
}
.dot-line.is-done { background: var(--green); }
.dot-line.is-active { background: var(--accent); }
.dot-line.is-error { background: var(--red); }

.dot-step.is-done .dot-step__circle {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(70, 173, 128, 0.16);
}
.dot-step.is-done .dot-step__title { color: #d7efe3; }
.dot-step.is-done .dot-step__sub { color: #7cb99d; }

.dot-step.is-current .dot-step__circle {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(51, 211, 230, 0.22);
  transform: scale(1.08);
}
.dot-step.is-current .dot-step__title { color: #f2f7fc; }
.dot-step.is-current .dot-step__sub { color: var(--accent); }

.dot-step.is-error .dot-step__circle {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(232, 92, 92, 0.28);
  transform: scale(1.1);
}
.dot-step.is-error .dot-step__title { color: #ffb3b3; }
.dot-step.is-error .dot-step__sub { color: #f38b8b; }

.dot-alert {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 92, 92, 0.45);
  background: rgba(232, 92, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.dot-alert[hidden] { display: none !important; }
.dot-alert strong { display: block; font-size: 0.88rem; color: #ffb3b3; margin-bottom: 3px; }
.dot-alert p { margin: 0; font-size: 0.82rem; color: var(--text-dim); }

@media (max-width: 680px) {
  .dot-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dot-step {
    grid-template-columns: 20px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    column-gap: 12px;
    row-gap: 2px;
  }
  .dot-step__circle { grid-row: 1 / span 2; margin-top: 2px; }
  .dot-step__sub { max-width: none; }
  .dot-line { display: none; }
}

/* ---------- cookie consent banner & modal ---------- */
.footer-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.footer-cookie-btn:hover { color: var(--accent); }

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 105;
  width: min(440px, calc(100vw - 36px));
  background: #0b1118;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 14px;
}
body.has-quickbar .cookie-banner {
  bottom: 84px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #f2f7fc;
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
.cookie-modal[hidden] { display: none !important; }
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.76);
  backdrop-filter: blur(4px);
}
.cookie-modal__panel {
  position: relative;
  width: min(600px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #0c121a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal__close {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-modal__close:hover { color: #fff; border-color: var(--accent); }
.cookie-list { display: grid; gap: 10px; }
.cookie-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090e14;
  padding: 13px 15px;
}
.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-cat__head strong { font-size: 0.92rem; color: #eef4fa; }
.cookie-cat__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #77c9a3;
  border: 1px solid rgba(70, 173, 128, 0.4);
}
.cookie-cat p { margin: 0; font-size: 0.83rem; line-height: 1.55; color: var(--text-dim); }
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex: none;
  cursor: pointer;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #1b2634;
  border: 1px solid var(--line-strong);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.cookie-switch span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9db0c4;
  transition: transform 0.16s ease, background 0.16s ease;
}
.cookie-switch input:checked + span {
  background: rgba(70, 173, 128, 0.28);
  border-color: var(--green);
}
.cookie-switch input:checked + span::before {
  transform: translateX(17px);
  background: var(--green);
}
.cookie-switch input:disabled + span { opacity: 0.7; cursor: not-allowed; }
.cookie-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- festive logo: Santa hat + twinkling lights ---------- */
.brand-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  overflow: visible;
}
.brand-santa-hat {
  position: absolute;
  top: -11px;
  left: -4px;
  width: 28px;
  height: 22px;
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.brand-lights {
  position: absolute;
  top: -18px;
  left: -9px;
  width: 48px;
  height: 16px;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.brand-lights .bl {
  animation: brandTwinkle 1.8s infinite ease-in-out;
}
.brand-lights .bl--1 { fill: #ff4d5a; filter: drop-shadow(0 0 4px #ff4d5a); animation-delay: 0s; }
.brand-lights .bl--2 { fill: #ffd154; filter: drop-shadow(0 0 4px #ffd154); animation-delay: 0.35s; }
.brand-lights .bl--3 { fill: #46e095; filter: drop-shadow(0 0 4px #46e095); animation-delay: 0.7s; }
.brand-lights .bl--4 { fill: #45d6ff; filter: drop-shadow(0 0 4px #45d6ff); animation-delay: 1.05s; }
.brand-lights .bl--5 { fill: #fff1b8; filter: drop-shadow(0 0 4px #fff1b8); animation-delay: 1.4s; }
@keyframes brandTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- winter theme: frosted window + falling snow ---------- */
.winter-snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
  opacity: 0.92;
}
.winter-frost {
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  /* Zamarznięta szyba: oszronione narożniki, lodowa ramka okna i subtelny blask szkła */
  background:
    radial-gradient(ellipse 38% 30% at 0% 0%, rgba(195, 236, 255, 0.30) 0%, rgba(125, 200, 240, 0.12) 45%, transparent 78%),
    radial-gradient(ellipse 38% 30% at 100% 0%, rgba(195, 236, 255, 0.30) 0%, rgba(125, 200, 240, 0.12) 45%, transparent 78%),
    radial-gradient(ellipse 42% 32% at 0% 100%, rgba(185, 230, 255, 0.32) 0%, rgba(115, 190, 235, 0.12) 48%, transparent 80%),
    radial-gradient(ellipse 42% 32% at 100% 100%, rgba(185, 230, 255, 0.32) 0%, rgba(115, 190, 235, 0.12) 48%, transparent 80%),
    linear-gradient(125deg, rgba(215, 244, 255, 0.05) 0%, transparent 26%, transparent 72%, rgba(205, 240, 255, 0.06) 100%);
  box-shadow:
    inset 0 0 48px rgba(180, 230, 255, 0.24),
    inset 0 0 110px rgba(120, 198, 245, 0.13),
    inset 0 1px 0 rgba(225, 248, 255, 0.30);
}
.winter-frost::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 14px 18px, rgba(235, 250, 255, 0.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 46px 32px, rgba(205, 240, 255, 0.52) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 28px 64px, rgba(225, 248, 255, 0.45) 0 1px, transparent 1.8px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, transparent 52%, #000 100%);
  mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, transparent 52%, #000 100%);
}
main, .site-header, .site-footer {
  position: relative;
  z-index: 3;
}
.site-header { z-index: 40; }

@media print {
  .site-header, .site-footer, .grid-bg, .winter-snow, .winter-frost, .btn, .nav-toggle, .quickbar, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .notice, .table-wrap { border-color: #ccc; background: #fff; }
}
