/* Statyczne strony produktu (/, /dla-agentow/) — bez frameworka, te same barwy i krój co aplikacja. */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f3f1;
  --card: #ffffff;
  --ink: #141414;
  --muted: #55574f;
  --subtle: #7d7f77;
  --line: #e5e6e1;
  --soft: #f6f6f3;
  --spot: #e8410b;
  --spot-hover: #c9370a;
  --spot-ink: #c2370a;
  --spot-soft: #fdeee7;
  --shell: #141414;
  --shell-2: #2a2a28;
  --shell-ink: #d6d6cf;
  --radius: 14px;
  --max: 1180px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-stretch: 92%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--spot);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Nagłówek */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.mark {
  font-stretch: 110%;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.mark b {
  color: var(--spot);
  font-weight: 700;
}
.top nav {
  display: none;
  gap: 4px;
  margin-left: 8px;
}
.top nav a {
  color: var(--shell-ink);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}
.top nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.top nav a[aria-current='page'] {
  color: #fff;
}
.top .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (min-width: 880px) {
  .top nav {
    display: flex;
  }
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-spot {
  background: var(--spot);
  color: #fff;
}
.btn-spot:hover {
  background: var(--spot-hover);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.btn-line {
  color: var(--ink);
  border-color: #cfd0ca;
  background: var(--card);
}
.btn-line:hover {
  border-color: var(--ink);
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 15px;
}
.top .btn-ghost.btn-sm {
  display: none;
}
@media (min-width: 560px) {
  .top .btn-ghost.btn-sm {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  background: var(--shell);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 80px;
}
@media (min-width: 1000px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 104px;
  }
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spot-ink);
  margin: 0 0 12px;
}
.hero .eyebrow {
  color: #ff7a4d;
}
h1,
h2,
h3 {
  font-stretch: 92%;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 650;
}
.hero h1 em {
  font-style: normal;
  color: var(--spot);
}
.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--shell-ink);
  margin: 20px 0 0;
  max-width: 36em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fine {
  font-size: 14px;
  color: #9d9e97;
  margin-top: 16px;
}
.fine a {
  color: #fff;
}

/* Podgląd karty spółki w hero */
.preview {
  background: #1c1c1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 18px;
  font-size: 14px;
}
.preview .search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #262624;
  border-radius: 10px;
  padding: 10px 12px;
  color: #b9bab3;
}
.preview .search svg {
  flex: none;
}
.preview .search kbd {
  margin-left: auto;
  font: inherit;
  font-size: 12px;
  color: #8b8c85;
  border: 1px solid #3a3a37;
  border-radius: 6px;
  padding: 1px 6px;
}
.pv-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  margin-top: 12px;
  padding: 16px;
}
.pv-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.pv-name {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.pv-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pill-ok {
  background: #e8f4ec;
  color: #1f7a45;
}
.pill-spot {
  background: var(--spot-soft);
  color: var(--spot-ink);
}
.pv-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.pv-kpi {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px;
}
.pv-kpi span {
  display: block;
  font-size: 11px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}
.pv-kpi strong {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.pv-kpi small {
  color: #1f7a45;
  font-weight: 650;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.bars i {
  flex: 1;
  background: #d4d5cf;
  border-radius: 4px 4px 0 0;
}
.bars i:last-child {
  background: var(--spot);
}
.pv-people {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.pv-person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pv-person .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}
.pv-person em {
  font-style: normal;
  color: var(--subtle);
  margin-left: auto;
  white-space: nowrap;
}
.pv-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  background: #262624;
  color: #e9e9e4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.pv-alert b {
  color: #ff7a4d;
  font-weight: 650;
}

/* Liczby */
.stats {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stats ul {
  list-style: none;
  margin: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 880px) {
  .stats ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats span {
  color: var(--muted);
  font-size: 15px;
}

/* Sekcje */
section.block {
  padding: 88px 0;
}
section.block + section.block {
  padding-top: 0;
}
.head {
  max-width: 760px;
  margin-bottom: 40px;
}
.head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
}
.head p {
  color: var(--muted);
  font-size: 19px;
  margin: 14px 0 0;
}
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1020px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}
.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}
.card li + li {
  margin-top: 4px;
}
.ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--spot-soft);
  color: var(--spot-ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ico svg {
  width: 20px;
  height: 20px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  color: var(--spot-ink);
  background: var(--spot-soft);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 14px;
}

/* Dla kogo */
.who {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 900px) {
  .who {
    grid-template-columns: repeat(4, 1fr);
  }
}
.who > div {
  background: var(--card);
  padding: 24px;
}
.who h3 {
  font-size: 19px;
  font-weight: 650;
}
.who p {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 0;
}

/* Pas ciemny (API) */
.dark {
  background: var(--shell);
  color: #fff;
  border-radius: 22px;
  padding: 40px 24px;
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .dark {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 56px;
    align-items: center;
  }
}
.dark h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 650;
}
.dark p {
  color: var(--shell-ink);
}
.dark .eyebrow {
  color: #ff7a4d;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.checks li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--spot);
  transform: translateY(-2px);
}
pre,
code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
pre {
  margin: 0;
  background: #1c1c1b;
  color: #e9e9e4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.light pre {
  background: var(--shell);
  border-color: var(--shell);
}
pre .k {
  color: #ff9e7a;
}
pre .s {
  color: #b9e3a4;
}
pre .c {
  color: #8b8c85;
}
code.inl {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 650;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--subtle);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Końcowe CTA i stopka */
.final {
  text-align: center;
  padding: 88px 0 96px;
}
.final h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 650;
}
.final p {
  color: var(--muted);
  font-size: 19px;
  margin: 14px auto 0;
  max-width: 34em;
}
.final .cta {
  justify-content: center;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--subtle);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Strona dla agentów */
.doc-hero .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
  display: block;
}
.doc-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 650;
  max-width: 18em;
}
.doc {
  display: grid;
  gap: 40px;
  padding: 56px 0 88px;
}
@media (min-width: 1020px) {
  .doc {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
.toc {
  display: none;
}
@media (min-width: 1020px) {
  .toc {
    display: block;
  }
  .toc nav {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 2px;
    font-size: 15px;
  }
  .toc a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .toc a:hover {
    background: var(--card);
    color: var(--ink);
  }
}
.doc article {
  min-width: 0;
}
.doc article > section {
  scroll-margin-top: 84px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.doc article > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.doc h2 {
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 14px;
}
.doc h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 26px 0 10px;
}
.doc p,
.doc li {
  color: #33342f;
}
.doc p {
  margin: 0 0 14px;
}
.doc ol,
.doc ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.doc li + li {
  margin-top: 6px;
}
.doc pre {
  margin: 0 0 16px;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: s;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 16px 56px;
  position: relative;
  margin: 0 !important;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}
.table-wrap .table {
  margin-bottom: 0;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.table thead th {
  border-top: 0;
  background: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  font-weight: 650;
}
.table td:first-child {
  white-space: nowrap;
}
.table code {
  font-size: 13.5px;
  font-weight: 600;
}
.table td.m {
  color: var(--muted);
}
.method {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
  background: #e8f4ec;
  color: #1f7a45;
}
.method.post {
  background: #e8eef8;
  color: #1d4f91;
}
.note {
  background: var(--spot-soft);
  border: 1px solid #f6d3c3;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
  color: #5a2a14;
  font-size: 15px;
}
.note strong {
  color: #3d1a09;
}
