/* Plumo — style strony głównej (EN i PL). Nagłówek jest w site.css. */
:root {
  --ink-top: #0C0E14;
  --ink: #10131A;
  --panel: #151A22;
  --panel-2: #1B212C;
  --line: rgba(140, 234, 221, 0.14);
  --line-soft: rgba(233, 236, 243, 0.08);
  --text: #E9ECF3;
  --muted: #98A1B4;
  --teal: #52CBC2;
  --mint: #8CEADD;
  --mint-pale: #C9F6EF;
  --teal-deep: #3FB3AA;
  /* The document the demo writes in: a light window on a dark page, because
     that is what most writing looks like when the panel appears over it. */
  --paper: #F6F6F4;
  --paper-2: #ECECEA;
  --paper-ink: #1C1D22;
  --paper-muted: #7A7D86;
  --sel: rgba(82, 203, 194, 0.34);
  /* The panel itself, as macOS draws it. */
  --pp-bg: #2B2B2E;
  --pp-field: #1E1E21;
  --pp-seg: #3A3A3E;
  --pp-text: #F2F2F4;
  --pp-muted: #9A9AA2;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink-top);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6;
}
h1, h2, h3 { font-family: "Instrument Sans", "IBM Plex Sans", sans-serif; letter-spacing: -0.015em; text-wrap: balance; }
a { color: var(--mint); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
button { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section, .privacy { scroll-margin-top: 76px; }
.mono { font-family: "IBM Plex Mono", monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
}
section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 0 0 14px; line-height: 1.12; text-wrap: pretty; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 36px; text-wrap: pretty; }
.key {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72em; font-weight: 500;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 7px; padding: 2px 9px 3px; color: var(--mint-pale); display: inline-block;
}
.keys { display: inline-flex; gap: 6px; vertical-align: middle; margin: 0 4px; position: relative; top: -2px; }
.keys .key { line-height: 1.25; }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 12px; border: 0; cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--mint), var(--teal-deep));
  color: #06251f; box-shadow: 0 6px 24px rgba(82, 203, 194, 0.28);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
/* Both download buttons are two lines — the name, then what it runs on or
   when it arrives — so they stand side by side at one height. */
.btn.two, .btn.soon {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.15; padding: 8px 22px 7px;
}
.btn .btn-sub { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; font-weight: 500; opacity: .8; }
/* Every build by name, under the one button that guessed; for the wrong
   guess and for downloading for another machine. */
.other-downloads { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.other-downloads a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ── Hero ── */
.hero { padding: 56px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(ellipse 60% 55% at 70% 30%, rgba(82,203,194,0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; position: relative; }
.hero h1 { font-size: clamp(38px, 4.9vw, 62px); font-weight: 700; line-height: 1.04; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .sub { color: var(--muted); font-size: 19px; max-width: 44ch; margin: 0 0 28px; }
/* The buttons set the width; the command box below takes exactly that width,
   so its right edge lines up with the Windows button. */
.cta { display: inline-grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; }
/* The button and the lines under it sit centred in the block, whose width
   the brew line sets; the copy above stays on the left edge. */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; justify-content: center; }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.disclaimer { margin-top: 36px; }
/* Under the buttons: the Homebrew line, then two chips with the two promises */
.free-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
/* Hidden by demo.js off a Mac: Homebrew is a Mac thing. The attribute
   needs the rule, since display: flex below would otherwise win over it. */
.brew[hidden] { display: none; }
.brew {
  display: flex; align-items: stretch; margin: 16px 0 0; max-width: 100%;
  background: var(--ink-top); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 1px 0 rgba(255,255,255,0.03);
  font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1;
}
.brew .prompt { color: var(--teal); padding: 11px 0 11px 14px; user-select: none; }
.brew code { font-family: inherit; color: var(--mint-pale); padding: 11px 16px 11px 10px; white-space: nowrap; overflow-x: auto; flex: 1; }
.brew .copy {
  margin-left: auto; border: 0; border-left: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 14px; cursor: pointer; border-radius: 0 9px 9px 0;
}
.brew .copy:hover { color: var(--text); background: #222a36; }
.brew .copy.done { color: var(--mint); }
.chips { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chips li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: rgba(21, 26, 34, 0.6); text-align: center; text-wrap: balance; }
.chips li b { display: block; color: var(--mint-pale); font-weight: 600; font-size: 15px; }
.chips li span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }

/* ── Stage ── */
.stage { position: relative; }
.win {
  background: var(--paper); color: var(--paper-ink); border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden; font-size: 16px; line-height: 1.55;
}
.win-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: var(--paper-2); border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--paper-muted); font-size: 13px;
}
.win-bar .dots { display: inline-flex; gap: 7px; margin-right: 8px; }
.win-bar .dots i { width: 12px; height: 12px; border-radius: 50%; background: #d6d6d3; display: block; }
.win-bar .title { flex: 1; text-align: center; margin-right: 58px; }
.win-meta { padding: 12px 22px 0; font-size: 14px; color: var(--paper-muted); border-bottom: 1px solid rgba(0,0,0,0.06); }
.win-meta div { padding: 3px 0; }
.win-meta b { color: var(--paper-ink); font-weight: 500; }
.doc { padding: 16px 22px 22px; min-height: 330px; }
.doc p { margin: 0 0 12px; }
.doc p:last-child { margin-bottom: 0; }
.doc .line { border-radius: 4px; transition: background .25s; }
.doc .line.sel { background: var(--sel); box-shadow: 0 0 0 3px var(--sel); }
.doc .line.swap { animation: swap .9s ease-out; }
@keyframes swap { 0% { background: rgba(82,203,194,0.55); } 100% { background: transparent; } }
.doc .line.done { color: var(--paper-ink); }
.doc .line .err { text-decoration: underline wavy rgba(215, 70, 70, 0.75); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc .line.done .err { text-decoration: none; }
.doc ::selection { background: var(--sel); }

/* Key HUD: the keys the demo is pressing, or waiting for */
.hud {
  position: absolute; top: 10px; right: 14px; display: flex; gap: 6px; z-index: 3;
}
.hud .k {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500;
  color: var(--paper-muted); background: #fff; border: 1px solid rgba(0,0,0,0.12);
  border-bottom-width: 3px; border-radius: 6px; padding: 1px 8px 2px; min-width: 26px; text-align: center;
  transition: transform .08s, border-bottom-width .08s, background .08s, color .08s;
}
.hud .k.down { transform: translateY(2px); border-bottom-width: 1px; background: var(--mint); color: #06251f; border-color: var(--teal-deep); }
.hud .gap { width: 10px; }

/* The panel, as the app draws it */
.pp {
  position: absolute; z-index: 4; width: min(520px, calc(100% - 16px)); left: 0; top: 0;
  background: var(--pp-bg); color: var(--pp-text); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  padding: 12px; font-size: 14px; line-height: 1.45;
  transform-origin: top left; opacity: 0; transform: scale(.96) translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s;
}
.pp.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.pp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--pp-field); border-radius: 7px; padding: 2px; gap: 1px; }
.seg button {
  background: transparent; border: 0; color: var(--pp-muted); font-size: 12.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 5px; cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.seg button.on { background: var(--pp-seg); color: var(--pp-text); }
.seg button:hover:not(.on) { color: var(--pp-text); }
.seg button.locked { opacity: .55; }
.pp-lang {
  margin-left: auto; font-size: 12.5px; color: var(--pp-text); background: var(--pp-seg);
  border-radius: 6px; padding: 4px 10px; display: inline-flex; gap: 8px; align-items: center;
}
.pp-lang small { color: var(--pp-muted); font-size: 11px; }
.pp-x { color: var(--pp-muted); font-size: 16px; line-height: 1; padding: 0 2px 0 6px; background: none; border: 0; cursor: pointer; }
.pp-x:hover { color: var(--pp-text); }
.pp-field {
  background: var(--pp-field); border-radius: 8px; padding: 10px 12px; min-height: 48px; position: relative;
}
.pp-field.src { color: #C9C9CE; font-size: 13.5px; }
.pp-field.dst { min-height: 62px; margin-top: 6px; }
.pp-field .glyph { position: absolute; right: 9px; bottom: 7px; color: var(--pp-muted); font-size: 12px; opacity: .8; }
.pp-tone { display: flex; justify-content: flex-end; margin-top: 8px; }
.pp-tone .seg { transform: scale(.94); transform-origin: right center; }
.pp-tone .seg button { font-size: 12px; padding: 3px 10px; }
.pp-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.pp-foot .note { margin-right: auto; color: var(--pp-muted); font-size: 12px; }
.pp-replace {
  background: var(--pp-seg); color: var(--pp-text); border: 0; border-radius: 7px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pp-replace:hover { background: #47474c; }
.pp-replace .mono { color: var(--pp-muted); font-size: 12px; margin-left: 6px; font-weight: 500; }
.caret { display: inline-block; width: 1px; height: 1.05em; vertical-align: -2px; background: var(--mint); margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.pp.idle .caret { display: none; }

.stage-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; color: var(--muted); font-size: 14px;
}
.stage-foot b { color: var(--mint-pale); font-weight: 600; }
.stage-foot .try .key { font-size: 11px; padding: 1px 6px 2px; vertical-align: 1px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 0; }
.linkbtn:hover { color: var(--text); }

/* Steps: three states of the demo, lit as it goes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line-soft); }
.step { padding: 24px 22px 28px 0; position: relative; color: var(--muted); transition: color .3s; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line-soft); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; right: 22px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .35s ease-out; }
.step + .step::before { left: 22px; }
.step.on { color: var(--text); }
.step.on::before { transform: scaleX(1); }
.step .glyph { font-family: "IBM Plex Mono", monospace; font-size: 20px; color: var(--mint); margin-bottom: 8px; display: block; }
.step h3 { font-size: 17px; margin: 0 0 6px; color: inherit; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ── Sections ── */
section { padding: 88px 0; }

/* Anatomy */
.anatomy { display: grid; padding: 0 12px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.anatomy .pp { position: relative; opacity: 1; transform: none; pointer-events: auto; visibility: visible; width: 100%; max-width: 560px; }
.anatomy .pp .tag {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #06251f;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(140,234,221,0.18);
}
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.legend li:last-child { border-bottom: 1px solid var(--line-soft); }
.legend .tag {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mint); color: var(--mint);
  font-family: "IBM Plex Mono", monospace; font-size: 12px; display: grid; place-items: center; margin-top: 2px;
}
.legend h3 { font-size: 16px; margin: 0 0 4px; }
.legend p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.legend .key { font-size: 11px; padding: 1px 6px 2px; vertical-align: 1px; }

/* Feature columns */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-soft); }
.col h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-family: "IBM Plex Mono", monospace; font-weight: 500; margin: 0 0 18px; }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.col li b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.col .names { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--mint-pale); }

/* Privacy */
.privacy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.privacy .inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.privacy ul { color: var(--muted); padding-left: 0; list-style: none; margin: 0; }
.privacy li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15.5px; }
.privacy li:last-child { border-bottom: 1px solid var(--line-soft); }
.privacy li b { color: var(--text); font-weight: 600; }
.flow { width: 100%; height: auto; display: block; }
.flow text { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; fill: var(--text); }
.flow .small { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; fill: var(--muted); letter-spacing: .08em; }
.flow .box { fill: var(--panel); stroke: var(--line); }
.flow .box.you { stroke: var(--teal); stroke-width: 1.5; }
.flow .wire { stroke: var(--teal); stroke-width: 1.5; fill: none; }
.flow .wire.opt { stroke: var(--muted); stroke-dasharray: 4 5; }
.flow .dot { fill: var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .flow .dot { animation: travel 3.2s linear infinite; offset-path: path("M 210 80 L 210 130 L 250 130"); }
  @keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border-color: rgba(140,234,221,0.4); box-shadow: 0 0 60px rgba(82,203,194,0.08); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-family: "Instrument Sans", sans-serif; font-size: 40px; font-weight: 700; margin: 8px 0 0; letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 14px; margin: 2px 0 18px; }
.plan ul { padding-left: 0; list-style: none; color: var(--muted); font-size: 15px; margin: 0 0 auto; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.plan li b { color: var(--text); font-weight: 600; }
.plan .btn { display: block; text-align: center; margin-top: 22px; }
.trial-note { color: var(--muted); font-size: 15px; margin-top: 22px; text-wrap: pretty; }
.trial-note b { color: var(--mint-pale); }

/* FAQ */
.faq details { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-family: "IBM Plex Mono", monospace; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 15.5px; margin: 12px 0 0; text-wrap: pretty; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .anatomy, .privacy .inner { grid-template-columns: minmax(0, 1fr); }
  .anatomy .pp { max-width: none; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step, .step + .step { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .step::before, .step + .step::before { left: 0; right: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .chips li { text-align: left; }
  .chips li span { display: inline; margin-left: 6px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero .sub { font-size: 17px; }
  .btn { padding: 12px 20px; }
  section { padding: 60px 0; }
  .pp { padding: 10px; }
  .seg button { padding: 4px 8px; font-size: 12px; }
  .pp-lang { display: none; }
  .win-bar .title { visibility: hidden; }
  .anatomy { padding: 0; }
  .anatomy .pp .tag { transform: scale(.9); }
  .stage-foot { font-size: 13px; }
  .doc { padding: 14px 16px 18px; }
  .win-meta { padding-left: 16px; }
}
