/* Strona Lokomatic / Throttlematic. Kolory i kroje tylko z tokenów poniżej (te same barwy co na panelu:
   tło ekranu, szare kontrolki, bursztyn włączonego przełącznika, czerwień STOP, zieleń „Uruchom”). */
:root {
  --bg: #101010;
  --surface: #191a1d;
  --control: #2a2c31;
  --line: #34363c;
  --edge: #7d8089;
  --text: #ecece9;
  --muted: #a8a9af;
  --amber: #f3b000;
  --amber-hi: #ffc929;
  --amber-ink: #171204;
  --stop: #ff6b6b;
  --go: #4cc76a;
  --glass: #050506;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-text: "Barlow", Arial, Helvetica, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 24px;
  --r-control: 6px;
  --r-panel: 10px;
  --r-device: 22px;
  --control-h: 48px;
  color-scheme: dark;
}

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- podstawa ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  caret-color: var(--amber);
}
::selection { background: var(--amber); color: var(--amber-ink); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h1 { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4.75rem); }
h2 { font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3.25rem); }
h3, .h3 { font-size: 1.625rem; line-height: 1.15; }
p, ul, ol, dl, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd {
  font-family: var(--font-code);
  font-size: 0.9em;
  background: var(--control);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.nb { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 30;
  padding: 10px 16px; background: var(--amber); color: var(--amber-ink); border-radius: var(--r-control);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- przyciski i pola ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-control);
  font: inherit; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--edge); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.field {
  display: block; width: 100%; height: var(--control-h); padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--edge); border-radius: var(--r-control);
  font: inherit;
}
.field:hover { border-color: var(--text); }
.field:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: var(--stop); }
.field:disabled { opacity: 0.5; cursor: not-allowed; }
select.field { appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat; }
label { display: block; }
.label { display: block; margin-bottom: 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- nagłówek strony: jak pasek panelu (bursztynowa nazwa, kreska, reszta) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; line-height: 1;
  color: var(--amber); text-decoration: none; white-space: nowrap;
  padding-right: 20px; border-right: 1px solid var(--edge);
}
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a, .menu-list a {
  display: block; padding: 10px 12px; border-radius: var(--r-control);
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav a:hover, .menu-list a:hover { background: var(--control); }
.nav a[aria-current="page"], .menu-list a[aria-current="page"] { color: var(--amber); }
.top details { position: relative; }
.top summary {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--edge); border-radius: var(--r-control);
  cursor: pointer; white-space: nowrap; list-style: none; user-select: none; -webkit-user-select: none;
}
.top summary::-webkit-details-marker { display: none; }
.top summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.top details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.top summary:hover { border-color: var(--amber); }
.drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
}
.drop a { display: block; padding: 10px 12px; border-radius: var(--r-control); color: var(--text); text-decoration: none; white-space: nowrap; }
.drop a:hover { background: var(--control); }
.drop a[aria-current="true"] { color: var(--amber); }
.menu { display: none; }
@media (max-width: 1080px) {
  .nav, .top-cta { display: none; }
  .menu { display: block; }
  .lang { margin-left: auto; }
  .brand { border-right: 0; padding-right: 0; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .top-in { gap: 10px; }
  .brand { font-size: 1.5rem; }
  .top summary { padding: 0 10px; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.375rem; }
  .top summary { padding: 0 8px; gap: 6px; }
}

/* ---------- pierwszy ekran: napis i panel z działającym demo ---------- */
.hero { padding-block: 40px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.hero .lead { margin-top: 20px; font-size: 1.3125rem; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.device {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-device);
  padding: 3.4% 4.6%;
}
.screen { position: relative; aspect-ratio: 5 / 3; background: var(--bg); border-radius: 4px; overflow: hidden; }
.screen img, .screen canvas { width: 100%; height: 100%; }
.screen canvas { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.screen canvas[hidden] { display: none; }
.demo-start { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); }
.demo-start:active { transform: translateX(-50%) translateY(1px); }
.demo-start[hidden] { display: none; }
.demo-status {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: var(--bg); color: var(--muted); font-size: 0.9375rem; text-align: center;
}
.demo-status[hidden] { display: none; }
.device-hint { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
html:not(.js) .device-hint { display: none; }
@media (max-width: 960px) {
  .hero { padding-block: 32px 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero .lead { max-width: 40ch; }
  .device { border-radius: 14px; }
}

/* ---------- sekcje ---------- */
.section { padding-block: 72px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 961px) {
  .section { padding-block: 104px; }
  .section + .section:not(.band) { padding-top: 40px; }
  .section-head { margin-bottom: 56px; }
}

/* zrzuty ekranu: rzędy o różnych szerokościach (7/5, 5/7, 7/5) */
.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 40px; align-items: start; }
.shot { grid-column: span 6; }
.shot:nth-child(4n + 1), .shot:nth-child(4n + 4) { grid-column: span 7; }
.shot:nth-child(4n + 2), .shot:nth-child(4n + 3) { grid-column: span 5; }
.shot img, .frame { width: 100%; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); }
.shot figcaption { margin-top: 16px; }
.shot figcaption p { margin-top: 6px; color: var(--muted); max-width: 44ch; }
@media (max-width: 760px) {
  .shots { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .shots .shot { grid-column: auto; }
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 620px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* wiersze: warianty budowy, produkty w sklepie, części */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr) auto;
  gap: 12px 32px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line);
}
.row p { color: var(--muted); }
.row .state { color: var(--text); font-size: 0.9375rem; }
.row .state.off { color: var(--muted); }
.row .btn { justify-self: end; }
.row-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
  .row .btn { justify-self: start; margin-top: 8px; }
}
.parts .row { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.parts h3 { font-size: 1.375rem; }
.parts .qty { font-family: var(--font-head); font-weight: 600; font-size: 1.625rem; line-height: 1.15; color: var(--muted); }
.parts .buy { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 900px) {
  .parts .row { grid-template-columns: 56px minmax(0, 1fr); }
  .parts .buy { grid-column: 2; }
}

/* dwie kolumny z kreską (oprogramowanie, opis budowy) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; }
.split > * { max-width: 46ch; }
.split p { margin-top: 12px; color: var(--muted); }
.split .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* lista oczekujących */
.waitlist-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.waitlist-grid .intro p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--amber); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; min-height: 1.6em; }
.form-msg[data-kind="ok"] { color: var(--go); }
.form-msg[data-kind="error"] { color: var(--stop); }
@media (max-width: 960px) {
  .waitlist-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-row .btn { width: 100%; }
}

/* ---------- podstrony ---------- */
.page-head { padding-block: 56px 40px; }
.page-head .lead { margin-top: 20px; font-size: 1.3125rem; line-height: 1.45; color: var(--muted); max-width: 44ch; }
.page-body { padding-bottom: 104px; }
.page-body > * + * { margin-top: 72px; }
.page-body.tail { padding-bottom: 72px; }
.page-body.stack > * + * { margin-top: 40px; }
.after { margin-top: 20px; }
.block h2 { margin-bottom: 24px; }

/* jak to działa: łańcuch urządzeń (poziomo, na telefonie pionowo) */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) 104px minmax(0, 1fr) 104px minmax(0, 1fr); align-items: stretch; }
.node { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.node strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.node > span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.node.key { border-color: var(--amber); }
.link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.link::after { content: ""; width: 100%; border-top: 2px dashed var(--edge); }
.link.wire::after { border-top: 3px solid var(--amber); }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .link { flex-direction: row; justify-content: flex-start; min-height: 56px; padding-left: 28px; }
  .link::after { order: -1; width: 0; height: 40px; border-top: 0; border-left: 2px dashed var(--edge); }
  .link.wire::after { border-top: 0; border-left: 3px solid var(--amber); }
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 72px; }
.facts > li { max-width: 46ch; }
.facts p { margin-top: 10px; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.notes > li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); max-width: 72ch; }
.notes > li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 12px; border-top: 2px solid var(--amber); }
.notes > li:first-child { border-top: 1px solid var(--line); }

/* instrukcje: kroki z numerami (kolejność ma znaczenie) */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 16px; padding-block: 40px; border-top: 1px solid var(--line); }
.steps > li::before {
  content: counter(step); font-family: var(--font-head); font-weight: 600; font-size: 3.25rem; line-height: 0.95; color: var(--amber);
}
.steps h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: 16px; }
.step-body > * + * { margin-top: 16px; }
.step-body > p, .step-body > ul { max-width: 68ch; }
.step-body ul > li { position: relative; padding-left: 24px; }
.step-body ul > li + li { margin-top: 8px; }
.step-body ul > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; border-top: 2px solid var(--edge); }
@media (max-width: 620px) {
  .steps > li { grid-template-columns: minmax(0, 1fr); }
  .steps > li::before { font-size: 2.5rem; margin-bottom: 8px; }
}
.alert { padding: 20px 24px; border: 1px solid var(--stop); border-radius: var(--r-panel); max-width: 80ch; }
.alert h2 { font-size: 1.625rem; margin-bottom: 12px; }
.alert ol { counter-reset: rule; }
.alert ol > li { counter-increment: rule; position: relative; padding-left: 32px; }
.alert ol > li + li { margin-top: 8px; }
.alert ol > li::before { content: counter(rule) "."; position: absolute; left: 0; font-weight: 600; color: var(--stop); }
.wiring { border: 1px solid var(--line); border-radius: var(--r-panel); overflow-x: auto; background: var(--bg); }
.wiring img { width: 100%; min-width: 880px; }
figcaption.cap { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 760px; }
th, td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
td.num, th.num { width: 1%; padding-right: 20px; color: var(--muted); }
td code { background: transparent; padding: 0; font-size: 1em; color: var(--text); }

/* stopka */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 0.9375rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px 56px; }
.foot .brand { display: inline-block; border: 0; padding: 0; margin-bottom: 12px; font-size: 1.5rem; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot li + li { margin-top: 8px; }
.foot-legal > p + p { margin-top: 8px; }
.foot-notes { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); max-width: 96ch; }
.foot-notes > p + p { margin-top: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* strona wyboru języka (adres bez przypisanej domeny) */
.chooser { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; gap: 28px; padding: var(--gutter); }
.chooser ul { display: grid; gap: 12px; }
.chooser .brand { border: 0; padding: 0; font-size: 3rem; }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .demo-start:active { transform: translateX(-50%); }
  html { scroll-behavior: auto; }
}
