:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --band: #ebf2ee;
  --fg: #1b1d1c;
  --muted: #5f6763;
  --line: #dde3df;
  --accent: #1f6f54;
  --accent-fg: #ffffff;
  --hl: #e3f2ea;
  --bubble-me: #d8f5c8;
  --bubble-bot: #ffffff;
  --chat-bg: #efe9df;
  --shadow: 0 10px 30px rgba(20, 40, 30, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #1a1f1d;
    --band: #17201c;
    --fg: #e9eeeb;
    --muted: #a2aca7;
    --line: #2a3330;
    --accent: #5cc49a;
    --accent-fg: #0d1a14;
    --hl: #1d3a2e;
    --bubble-me: #1f4a36;
    --bubble-bot: #222a27;
    --chat-bg: #0f1412;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.9rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .92em;
  background: var(--hl);
  padding: .1em .4em;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
section.wrap { padding-top: 4rem; padding-bottom: 1rem; }
.band { background: var(--band); padding: 4rem 0; margin-top: 3rem; }

/* nagłówek */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--fg); text-decoration: none; font-size: 1.1rem; }
.logo {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 9px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 800; font-size: 1rem;
}
.logo.sm { width: 1.5rem; height: 1.5rem; font-size: .8rem; border-radius: 7px; }
nav { display: flex; gap: 1.2rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--fg); }

/* hero */
.hero { padding: 4rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1.2rem; }
.hl { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }

/* telefon z rozmową */
.phone {
  background: var(--chat-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 22rem; justify-self: center; width: 100%;
}
.phone-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; background: var(--accent); color: var(--accent-fg); font-weight: 600;
}
.chat { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.msg { margin: 0; padding: .55rem .8rem; border-radius: 14px; max-width: 85%; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 4px; }
.msg.voice { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.wave {
  width: 7rem; height: 1.1rem;
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 6px);
  opacity: .7; border-radius: 4px;
}

/* karty */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem;
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { font-size: 1.5rem; margin-bottom: .5rem; }

/* kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 3.2rem 1.3rem 1.2rem;
}
.steps li::before {
  content: counter(s);
  position: absolute; top: 1rem; left: 1.3rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: .95rem;
}
.steps p { margin: .3rem 0; color: var(--muted); }
.big { font-size: 1.2rem; font-weight: 600; color: var(--fg); }
.steps .big a { text-decoration: none; }
code.big { display: inline-block; padding: .35em .6em; word-break: break-all; }
.small { font-size: .88rem; color: var(--muted); }
.note { margin: 1.5rem 0 0; color: var(--muted); }

/* jak używać */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.examples { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.examples li {
  background: var(--bubble-me); padding: .55rem .9rem; border-radius: 14px; border-bottom-right-radius: 4px;
  width: fit-content; max-width: 100%;
}
.cmds { border-collapse: collapse; width: 100%; }
.cmds td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { white-space: nowrap; padding-left: 0; }
.cmds td:last-child { color: var(--muted); }

/* prywatność */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* kontakt i stopka */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact h2 { margin-bottom: .4rem; }
.contact p { margin: 0; }
.foot { padding: 2rem 1rem; color: var(--muted); font-size: .9rem; text-align: center; }

/* telefon */
@media (max-width: 860px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 2.5rem; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  nav { gap: .8rem; }
  nav a { font-size: .85rem; }
  h2 { font-size: 1.6rem; }
  .cmds td:first-child { white-space: normal; }
}
