/* qsonaut.app — one stylesheet for every page. Light, wide, and quiet enough
   that the screenshots and the words do the talking. */
:root {
  --ink: #14302f;
  --muted: #56707a;
  --accent: #12655b;
  --accent-deep: #0b4a42;
  --accent-soft: #e3f0ec;
  --amber: #c59647;
  --border: #dbe3df;
  --paper: #f5f6f3;
  --card: #ffffff;
  --wide: 1160px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}
code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eaeeea;
}
pre {
  margin: 12px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 10px;
  background: #13302f;
  color: #dcefe9;
  line-height: 1.5;
}
pre code {
  padding: 0;
  background: none;
}
.wrap {
  width: min(var(--wide), 100% - 32px);
  margin: 0 auto;
}

/* Top bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(245 246 243 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 11;
}
.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-left: auto;
  font-size: 15px;
}
.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav nav a:hover,
.site-nav nav a[aria-current] {
  color: var(--ink);
}
.site-nav .cta {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}

/* Language: two flags with their codes; the current one sits in a pill. */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.site-nav .lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.site-nav .lang-switch a[aria-current] {
  background: var(--accent-soft);
  color: var(--ink);
}
.lang-switch .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15);
}

/* Hero */
.hero {
  padding: 72px 0 28px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.button:hover {
  background: var(--accent-deep);
}
.button.ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
}
.button.ghost:hover {
  border-color: var(--accent);
}
.platforms {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.shot {
  max-width: 1000px;
  margin: 44px auto 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow:
    0 30px 60px -30px rgb(20 48 47 / 0.35),
    0 12px 24px -12px rgb(20 48 47 / 0.12);
}

/* Sections */
section.block {
  padding: 72px 0 0;
}
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split.flip > :first-child {
  order: 2;
}
.split .shot {
  margin: 0;
}
.checks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.scenarios .card h3 {
  font-size: 18px;
}
.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fbf3e4;
  color: #8a5a12;
  font-size: 13px;
  font-weight: 650;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px 32px;
  margin-top: 30px;
}
.features h3 {
  font-size: 17px;
}
.features p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.band {
  margin-top: 72px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.band .split {
  align-items: start;
}

/* Downloads (rows generated by tools/site.py) */
.downloads {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.download > span:first-child {
  display: grid;
  gap: 2px;
  flex: 1 1 360px;
  min-width: 0;
}
.download small {
  color: var(--muted);
  font-size: 13px;
}
.download .hash {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.download .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download .button {
  padding: 9px 16px;
  font-size: 15px;
}
.soon {
  padding: 9px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* Guide */
.guide {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 40px;
}
.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 15px;
}
.toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  margin: 6px 0;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
.guide article {
  max-width: 800px;
}
.guide article h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.guide article h2 {
  margin-top: 56px;
  padding-top: 8px;
  font-size: 30px;
  scroll-margin-top: 80px;
}
.guide article h3 {
  margin-top: 28px;
}
.guide article li {
  margin: 6px 0;
}
.tip {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}
.tip.amber {
  border-color: var(--amber);
  background: #fbf3e4;
}
.steps {
  counter-reset: step;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  position: relative;
  margin: 12px 0;
  padding-left: 42px;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer */
footer {
  margin-top: 88px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 640px) {
  .site-nav nav .optional {
    display: none;
  }
  .site-nav nav {
    flex-wrap: nowrap;
    gap: 10px;
  }
  /* The flags alone say which language; the codes come back on wider screens. */
  .site-nav .lang-switch a {
    padding: 4px 6px;
    font-size: 0;
    gap: 0;
  }
  .site-nav .cta {
    padding: 6px 12px;
  }
}
@media (max-width: 430px) {
  .site-nav nav a[href^='przewodnik'],
  .site-nav nav a[href^='guide'] {
    display: none;
  }
}
@media (max-width: 860px) {
  .split,
  .split.flip,
  .guide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .toc {
    position: static;
  }
  .site-nav nav {
    font-size: 14px;
    gap: 4px 12px;
  }
  .hero {
    padding-top: 48px;
  }
}
