/* drżysz – same look as the mżawka plugin: black, cream, grain, dashed frames, Space Mono. */

@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --raised: #161614;
  --line: #4a4840;
  --dim: #8d897c;
  --text: #f4f0e4;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 "Space Mono", ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav, main, .footer { position: relative; z-index: 1; }

a { color: inherit; }
::selection { background: var(--text); color: var(--bg); }

/* Headings, labels and buttons are upper case like the plugin; paragraphs stay normal. */
h1, h2, h3, .eyebrow, .btn, .nav, dt, summary, .num, .price, .note, .wordmark, .footer-row, .more, .tagline {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(44px, 9vw, 96px); letter-spacing: 0.02em; }
h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 28px; }
h3 { font-size: 15px; margin-bottom: 8px; }
p { margin: 0; }

/* ---------- frames ---------- */
.frame {
  border: 2px dashed var(--line);
  background: rgba(11, 11, 11, 0.72);
}
.frame-strong { border-color: var(--dim); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(11, 11, 11, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--line);
  font-size: 12px;
}
.nav nav { display: flex; gap: 20px; margin-left: auto; overflow-x: auto; }
.nav nav a { text-decoration: none; color: var(--dim); white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
.wordmark { font-weight: 700; font-size: 16px; text-decoration: none; }

@media (max-width: 640px) {
  .nav nav a:not([aria-current]) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px dashed var(--text);
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--dim); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 7px 14px; font-size: 11px; }
.btn-block { display: block; text-align: center; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: clamp(64px, 12vw, 140px) 0 40px; }
.eyebrow { color: var(--dim); font-size: 12px; margin-bottom: 20px; }
.tagline { font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; margin-top: 14px; }
.lead { max-width: 620px; margin-top: 24px; color: var(--text); opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* The plugin's progress line: square, dashes, triangle. */
.progress { display: flex; align-items: center; gap: 10px; margin-top: 56px; }
.progress .sq { width: 10px; height: 10px; background: var(--text); flex: none; }
.progress .dash { flex: 1; border-top: 2px dashed var(--dim); }
.progress .tri {
  width: 0; height: 0; flex: none;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 12px solid var(--text);
}

.shot { margin: 0 0 24px; padding: 10px; }
.shot img { display: block; width: 100%; height: auto; }

.block { padding: clamp(56px, 9vw, 104px) 0 0; }
.sub { color: var(--dim); margin: -16px 0 28px; }

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li { border-top: 2px dashed var(--line); padding-top: 18px; }
.num { display: block; color: var(--dim); font-size: 12px; margin-bottom: 10px; }
.steps p, .features p { color: var(--dim); }

/* ---------- features ---------- */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.features li { padding: 22px; }

/* ---------- controls / specs ---------- */
.controls, .specs { margin: 0; }
.controls div, .specs div {
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px dashed var(--line);
}
.controls div:first-child, .specs div:first-child { border-top: 2px dashed var(--line); }
dt { font-weight: 700; font-size: 13px; }
dd { margin: 0; color: var(--dim); }
@media (max-width: 560px) {
  .controls div, .specs div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- pricing ---------- */
.plans {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 760px;
}
.plan { padding: 28px; display: flex; flex-direction: column; }
.price { font-size: 44px; font-weight: 700; margin-top: 18px; line-height: 1; }
.note { color: var(--dim); font-size: 12px; margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.ticks li { padding: 6px 0 6px 22px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; background: var(--text);
}

/* ---------- faq ---------- */
.faq details { border-bottom: 2px dashed var(--line); }
.faq details:first-child { border-top: 2px dashed var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 16px 32px 16px 0; position: relative;
  font-weight: 700; font-size: 13px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 18px; }
details[open] summary::after { content: "−"; }
.faq p { color: var(--dim); padding: 0 0 18px; max-width: 680px; }

/* ---------- products (brand page) ---------- */
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.product { display: block; text-decoration: none; height: 100%; padding: 10px; }
.product img { display: block; width: 100%; height: auto; }
.product-body { padding: 18px 12px 12px; }
.product-body p { color: var(--dim); }
.more { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; }
a.product:hover { border-color: var(--text); }
.product-empty {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 220px; padding: 28px; color: var(--dim);
}

/* ---------- footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.footer .progress { margin-top: 0; }
.footer-row {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline;
  margin-top: 24px; font-size: 12px; color: var(--dim);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-links a[aria-current] { color: var(--text); }

/* ---------- language switch ---------- */
.lang { display: flex; flex: none; }
.lang button {
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: transparent; color: var(--dim);
  border: 2px dashed transparent; padding: 5px 8px; cursor: pointer;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); border-color: var(--dim); }
.lang button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- private download page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.keyform { max-width: 620px; }
.field {
  width: 100%;
  font: inherit; font-size: 15px; letter-spacing: 0.04em;
  color: var(--text); background: rgba(11, 11, 11, 0.8);
  border: 2px dashed var(--dim); padding: 14px 16px;
}
.field:focus { outline: none; border-color: var(--text); }
.field::placeholder { color: var(--line); }
.status { min-height: 1.7em; margin-top: 12px; color: var(--dim); font-size: 13px; }
.status.is-error { color: #d9705a; }
.yours { visibility: hidden; margin: 0 0 8px; }
.is-yours .yours { visibility: visible; color: var(--text); }
button.btn { font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; margin-top: auto; }
button.btn:disabled { opacity: 0.5; cursor: wait; }
/* Download cards: buttons sit at the bottom edge, so they line up even when one description wraps. */
.plan > button.btn { margin-top: auto; }
.plan > .note:nth-last-child(2) { margin-bottom: 24px; }
.block > .num { margin-bottom: 6px; }
.steps .ticks { margin: 4px 0 0; }
.steps .ticks li { color: var(--dim); }

/* ---------- legal pages: both languages in the page, one shown ---------- */
html:not([lang="pl"]) [data-only="pl"],
html[lang="pl"] [data-only="en"] { display: none; }
.legal article { max-width: 760px; padding: clamp(56px, 10vw, 110px) 0 0; }
.legal h1 { font-size: clamp(30px, 6vw, 56px); margin-bottom: 20px; }
.legal h2 { font-size: 15px; margin: 44px 0 12px; }
.legal p { color: var(--dim); margin: 0 0 14px; }
.legal .lead { color: var(--text); margin-bottom: 8px; }
.legal .ticks { margin: 8px 0 16px; }
.legal .ticks li { color: var(--dim); }
.legal a { color: var(--text); }

/* ---------- footer: wraps nicely on phones ---------- */
.footer-links a { white-space: nowrap; }
.footer-links a[hidden] { display: none; }
.footer-links a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; text-decoration: none; }
.actions .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
