/* EtkSystem – strona produktu. Kolory jak w programie (klasa Palette), czcionka Roboto Condensed (OFL 1.1). */

@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* Ikony: <i data-icon="..."> zamieniane na SVG przez js/main.js */
i[data-icon] { display: inline-flex; width: 1em; height: 1em; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Makieta ekranu stanowiska ---------- */
.scr { font-family: "Roboto Condensed", "Segoe UI", sans-serif; container-type: inline-size; }
.scr .t { font-size: 2.4cqw; }
.scr .weight-frame { transition: border-color .25s, box-shadow .25s; }
.scr .weight-frame.is-unstable { border-color: #D23B3B; }
.scr .weight-frame.is-stable { border-color: #2D994E; }
.scr .weight-value { font-size: 11cqw; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scr .weight-unit { font-size: 5cqw; }
.scr .msg-ok { color: #2D994E; }
.scr .zwaz.is-pressed { background: #BFC1C3; transform: scale(.985); }
.scr .zwaz { transition: background .15s, transform .15s; }
.scr .tile-bump { animation: bump .5s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); background: #c9d6f1; } 100% { transform: scale(1); } }

/* Etykieta wysuwana z drukarki */
.label-out { transform: translateY(-105%); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.label-out.is-printed { transform: translateY(0); opacity: 1; }

/* Kod kreskowy rysowany paskami (dekoracja) */
.barcode { height: 100%; background: repeating-linear-gradient(90deg,
  #141414 0 2px, transparent 2px 3px, #141414 3px 4px, transparent 4px 7px, #141414 7px 10px, transparent 10px 11px,
  #141414 11px 12px, transparent 12px 15px, #141414 15px 16px, transparent 16px 17px, #141414 17px 20px, transparent 20px 22px); }

/* ---------- Jak to działa: kroki ---------- */
.step-dot { transition: background .3s, color .3s, border-color .3s; }

/* Krok 1 – kursor pisania */
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: #3567CA; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Krok 2 – pola etykiety wskakują na miejsce */
.lbl-field { opacity: 0; transform: translateX(-18px); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); outline: 1px dashed transparent; }
.lbl-field.is-in { opacity: 1; transform: none; }
.lbl-field.is-selected { outline-color: #3567CA; background: rgb(53 103 202 / .06); }

/* Krok 3 – paczka danych w drodze do stanowiska */
.packet { offset-rotate: 0deg; }
.wire { stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

/* Pasek „scroll” logotypów / zastosowań */
.marquee { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pojawianie się sekcji */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .lbl-field, .label-out { transition: none; opacity: 1; transform: none; }
  .marquee, .wire, .caret::after, .tile-bump { animation: none; }
}
