/* b2on.pl — the product page. Values as in the landing handoff (5 px, 9 px,
   13.5 px…), colours and type only from tokens.css (the integrator's design
   system, copied verbatim). */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2 {
  margin: 0;
}
h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--mono);
}
#jak,
#cennik,
#demo,
#zamow {
  scroll-margin-top: 60px;
}

/* --- Header ---------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface-page);
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-body);
}
.brand:hover {
  color: var(--text-body);
}
.mark {
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--accent);
}
.wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wordmark .on {
  color: var(--accent);
}
.brand.small .mark {
  height: 16px;
}
.brand.small .wordmark {
  font-size: 13.5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
}
.nav a {
  font-size: 13.5px;
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--text-body);
}
.spacer {
  flex: 1;
}
/* Theme and language pickers — the same look as on the integrator's login. */
.seg {
  display: inline-flex;
  gap: 4px;
}
.seg + .seg {
  margin-left: 4px;
}
.seg button {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.seg button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-accent-soft);
}
@media (max-width: 639px) {
  .nav {
    display: none;
  }
  .bar {
    gap: 12px;
  }
  .seg + .seg {
    margin-left: 0;
  }
  .seg button {
    padding: 4px 7px;
  }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  padding: 64px 28px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lead {
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 46ch;
}
.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 520px;
}
.metric {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
}
.metric .value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}
.metric .label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* A drawn Kokpit, not a screenshot — it stays right when the product moves. */
.shot {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}
.shot-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.shot-title {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.shot-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.shot-row.ok {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--status-ok-soft);
  color: var(--status-ok-ink);
  font-size: 13px;
  font-weight: 600;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shot-grid .k {
  font-size: 11.5px;
  color: var(--text-muted);
}
.shot-grid .v {
  font-size: 20px;
  font-weight: 700;
}
.shot-acc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.shot-acc small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}
.light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ok);
}
.light.warn {
  background: var(--status-warn);
}

/* --- Buttons ---------------------------------------------------------------- */
.primary,
.secondary {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 0.12s ease;
}
.primary {
  border: 0;
  background: var(--accent);
  color: var(--text-on-accent);
}
.primary:hover {
  background: var(--accent-strong);
  color: var(--text-on-accent);
}
.secondary {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}
.secondary:hover {
  background: var(--surface-accent-soft);
}
.cta {
  display: block;
  margin-top: 20px;
}
.link-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

/* --- Tiles / sections -------------------------------------------------------- */
.tile {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
}
.desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.desc.small {
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}
.num {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.num + .card-title {
  margin-top: 8px;
}
.sunken {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}
.block {
  padding: 56px 28px;
}
.grid {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.steps {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.pricing-lead {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 56ch;
}

/* --- Pricing ------------------------------------------------------------------ */
.pricing {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.price-card .plan {
  flex: 1;
}
.plan-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.per-month {
  font-size: 14px;
  color: var(--text-muted);
}
.per-company {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.rule {
  margin: 18px 0;
  height: 1px;
  background: var(--line);
}
.plan {
  display: grid;
  gap: 9px;
  align-content: start;
}
.plan-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
}
.tick {
  color: var(--status-ok);
  font-weight: 700;
}

/* --- Demo / order -------------------------------------------------------------- */
.demo-block,
.order {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}
.demo-card,
.order-card {
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.order-card .cta:first-child {
  margin-top: 0;
}
.order-card .secondary {
  margin-top: 10px;
}

/* --- Footer --------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
}
.foot-row {
  padding: 24px 28px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.foot-links a {
  color: var(--text-muted);
}
.foot-links a:hover {
  color: var(--accent);
}
.domain {
  font-family: var(--mono);
}
.foot-legal {
  padding: 0 28px 24px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 639px) {
  .hero {
    padding: 40px 20px 36px;
  }
  h1 {
    font-size: 34px;
  }
  .block,
  .foot-row {
    padding-left: 20px;
    padding-right: 20px;
  }
  .wrap {
    padding: 0 20px;
  }
  .demo-card,
  .order-card {
    justify-self: stretch;
    max-width: none;
  }
}
