/* Arca — strona produktu. Bez zewnętrznych zasobów. Kolory z ikony: jasna płytka, grafitowy pasek, niebieskie zaznaczenie, bursztyn. */
:root {
  --bg: #f4f2ee;
  --bg-2: #ebe8e2;
  --surface: #ffffff;
  --line: #dcd8d0;
  --line-2: #cbc6bc;
  --text: #1f1e1b;
  --text-dim: #5d5a53;
  --text-faint: #8a867d;
  --ink: #232220;
  --ink-2: #2e2c29;
  --ink-line: #3b3935;
  --ink-text: #ecebe7;
  --ink-dim: #a8a49b;
  --accent: #3b78e7;
  --accent-hover: #2f6bd9;
  --accent-soft: rgba(59, 120, 231, 0.1);
  --amber: #c98a2b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", "Noto Sans", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, "JetBrains Mono", "DejaVu Sans Mono", monospace;
  --wrap: 1200px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.88em; color: #8a5a12; }
kbd {
  font-size: 0.8em;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 650; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Nagłówek (grafit jak pasek boczny w ikonie) ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--ink-text);
  border-bottom: 1px solid #141311;
}
.top-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; flex: 1; }
.nav a {
  text-decoration: none; color: var(--ink-dim); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; transition: color 0.12s;
}
.nav a:hover { color: var(--ink-text); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-cta { padding: 8px 14px; font-size: 14px; }
.top .btn-ghost { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-text); }
.top .btn-ghost:hover { background: #363430; border-color: #4a4843; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: 7px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: #a9a399; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.hero-icon { width: 76px; height: 76px; margin: -6px 0 18px -6px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.kicker-mark { width: 18px; height: 2px; background: var(--amber); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.03em; }
.lead { margin-top: 22px; font-size: 18px; color: var(--text-dim); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }
.hero-shot { margin-right: -120px; }

/* ---------- Okno macOS ---------- */
.win {
  margin: 0;
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #c9c4ba;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 22px 44px -22px rgba(40, 32, 18, 0.45);
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  background: #e9e7e2; border-bottom: 1px solid #d6d2ca;
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.win-bar i:nth-child(1) { background: #ee6a5f; }
.win-bar i:nth-child(2) { background: #f5be4f; }
.win-bar i:nth-child(3) { background: #62c554; }
.win-bar span {
  flex: 1; text-align: center; margin-right: 50px;
  font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zoom { display: block; cursor: zoom-in; }
.zoom img { width: 100%; }

/* ---------- Fakty ---------- */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 21px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 6px; }
.fact strong::before {
  content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 14px;
}
.fact:nth-child(even) strong::before { background: var(--amber); }
.fact span { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; display: block; }

/* ---------- Sekcja z zakładkami ---------- */
.suite { padding: 104px 0 96px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { margin-top: 14px; color: var(--text-dim); font-size: 17px; }

.tabs {
  display: flex; justify-content: center; gap: 4px;
  width: max-content; max-width: 100%; margin: 0 auto 48px;
  padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--text-dim);
  font: 500 15.5px var(--font); padding: 10px 20px; border-radius: 7px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}
.tabs button:hover { color: var(--text); background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ink-text); font-weight: 600; }

.panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 10px; }
.panel-copy h3 { font-size: 28px; }
.panel-copy > p { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; color: #3d3b36; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}
.ticks b { color: var(--text); font-weight: 600; }

/* ---------- Bloki funkcji ---------- */
.feature { padding: 96px 0; border-top: 1px solid var(--line); }
.feature.alt { background: var(--bg-2); }
.feature-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
}
.feature.alt .feature-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.alt .feature-copy { order: 2; }
.feature.alt .feature-media { order: 1; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.feature h2 { font-size: clamp(26px, 3vw, 36px); }
.feature-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; }

.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.thumb {
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface);
  text-decoration: none; transition: border-color 0.12s;
}
.thumb:hover { border-color: #9d978c; }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.thumb span {
  display: block; padding: 7px 10px; font-size: 12.5px; color: var(--text-dim);
  border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb:hover span { color: var(--text); }

/* ---------- Skróty ---------- */
.keys { padding: 96px 0; border-top: 1px solid var(--line); background: var(--ink); color: var(--ink-text); }
.keys .sec-head p { color: var(--ink-dim); }
.key-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 10px; overflow: hidden; }
.key { background: var(--ink-2); padding: 18px 20px; display: grid; gap: 6px; }
.key kbd { justify-self: start; background: #3a3834; border-color: #4d4a45; color: #fff; font-size: 13px; }
.key span { font-size: 14px; color: var(--ink-dim); }

/* ---------- Pobieranie ---------- */
.download { padding: 104px 0 112px; border-top: 1px solid var(--line); background: var(--bg); }
.download .sec-head p { font-size: 16px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.dl {
  display: grid; gap: 4px; padding: 22px 24px; border-radius: 10px; text-decoration: none;
  background: var(--accent); color: #fff;
  transition: background-color 0.12s, transform 0.12s;
}
.dl + .dl { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.dl:hover { background: var(--accent-hover); }
.dl + .dl:hover { background: #fbfaf8; border-color: #9d978c; }
.dl:active { transform: translateY(1px); }
.dl-arch { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.dl-name { font-family: var(--mono); font-size: 13px; opacity: 0.85; }
.dl-meta { font-size: 13.5px; opacity: 0.8; }

.install {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px;
  max-width: 1040px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--line);
}
.install h3 { font-size: 19px; margin-bottom: 16px; }
.req dl { margin: 0; display: grid; gap: 4px; }
.req dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-top: 12px; }
.req dt:first-child { margin-top: 0; }
.req dd { margin: 0; color: #3d3b36; font-size: 15px; }
.steps ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #3d3b36; font-size: 15.5px; }
.code { position: relative; margin-top: 18px; }
.code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  background: var(--ink); border: 1px solid #141311; border-radius: 8px;
  font-size: 13.5px; line-height: 1.75;
}
.code pre code { color: #e6e4df; font-size: inherit; }
.copy {
  position: absolute; top: 10px; right: 10px;
  appearance: none; border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--ink-dim);
  font: 500 12.5px var(--font); padding: 5px 10px; border-radius: 5px; cursor: pointer;
}
.copy:hover { color: var(--ink-text); border-color: #55524c; }
.copy.done { color: #8fb4f5; border-color: #8fb4f5; }
.small { margin-top: 14px; font-size: 14px; color: var(--text-faint); }

/* ---------- Stopka ---------- */
.foot { border-top: 1px solid #141311; background: var(--ink); color: var(--ink-text); padding: 36px 0 44px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot-nav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--ink-text); }
.copy-note { grid-column: 1 / -1; font-size: 13px; color: #8d8980; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: auto;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 19, 17, 0.88); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 8px; border: 1px solid #4a4843; }
.lb-cap { margin-top: 10px; color: #cfccc5; font-size: 14px; text-align: center; max-width: 94vw; }
.lb-close {
  position: fixed; top: 14px; right: 16px; width: 40px; height: 40px;
  appearance: none; border: 1px solid #4a4843; border-radius: 50%; background: var(--ink-2); color: var(--ink-text);
  font: 400 24px/1 var(--font); cursor: pointer;
}
.lb-close:hover { border-color: #6b6862; }

/* Buy Me a Coffee */
.top-cta.coffee-top { display: inline-flex; align-items: center; gap: 7px; }
.cup { flex: none; vertical-align: -3px; }
.coffee { margin: 28px auto 0; max-width: 760px; text-align: center; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text-dim); }
.coffee a { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.coffee a:hover { text-decoration: underline; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .hero-shot { margin-right: 0; }
  .nav { gap: 18px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero-in, .panel, .feature-in, .feature.alt .feature-in, .install { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-in { padding-top: 48px; padding-bottom: 56px; }
  .feature.alt .feature-copy, .feature.alt .feature-media { order: 0; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .suite, .feature, .keys { padding: 72px 0; }
  .key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .coffee-top span { display: none; } }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15.5px; }
  .top-cta { padding: 7px 11px; font-size: 13px; }
  .lead { font-size: 16.5px; }
  .cta .btn { flex: 1 1 100%; }
  .facts-in { grid-template-columns: 1fr; }
  .fact, .fact:first-child, .fact:nth-child(3) { border-left: 0; padding: 22px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .tabs { justify-content: flex-start; width: 100%; }
  .tabs button { padding: 9px 14px; font-size: 14.5px; }
  .panel-copy h3 { font-size: 23px; }
  .dl-grid, .key-grid { grid-template-columns: 1fr; }
  .win-bar span { margin-right: 0; }
  .code pre { font-size: 12px; padding: 16px 14px; }
  .copy { position: static; margin-bottom: 8px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
