/* j2534passthru.com — tokens and components.
   Source of truth: reference/style/WEB_STYLE_GUIDE.md (mirrors VciConfigTool/Themes/).
   Rule: hex / rgba literals live only in :root. */

/* ---------- Fonts (local, woff2, Latin + Latin Extended-A) ---------- */
/* ---------- Fonts: Poppins ---------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../assets/fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../assets/fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../assets/fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../assets/fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../assets/fonts/Poppins-Bold.woff2") format("woff2"); }

body {
  font-family: "Poppins", sans-serif;
}

/* ---------- Key applications strip ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  min-height: 94px;
  padding: 18px 30px;
  border-block: 1px solid var(--glass-edge);
  background: var(--surface-titlebar);
  color: #b4dbfb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-strip i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 820px) {
  .trust-strip {
    justify-content: flex-start;
    gap: 25px;
    min-height: 78px;
    padding-inline: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-strip span { flex: 0 0 auto; }
}

/* ---------- ELP5 interface modes + capabilities ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin: 0 0 var(--space-xl);
  color: var(--accent);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 2);
  text-transform: uppercase;
}

.section-heading { max-width: 920px; }
.section-heading h2 { font-size: clamp(42px, 4.8vw, 72px); }

.about {
  position: relative;
  overflow: clip;
}

.about .section-heading { max-width: 800px; }

.about-eyebrow__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 13px var(--status-success);
}

.about-heading {
  overflow: visible;
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.01;
 
}

.about-heading__solid,
.about-heading__gradient {
  display: block;
  width: fit-content;
}

.about-heading__solid {
  white-space: nowrap;
}

.about-heading__gradient {
  padding: .04em .06em .1em 0;
  background: linear-gradient(
    135deg,
    #f00b5f 0%,
    #d92884 27%,
    #8358d8 54%,
    #3c76df 74%,
    #18b8e9 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -8%;
  width: 55%;
  height: 55%;
  background: url("../assets/images/pcb-right.svg") center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 76px);
  align-items: start;
  margin-top: 0;
}

.about-content { min-width: 0; }
.about-copy { color: var(--text-secondary); }
.about-content .about-copy { margin-top: var(--space-xxl); }
.about-copy > p:not(.large-copy) { margin: 0; }
.large-copy {
  margin: 0 0 1em;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(34px, 4vw, 54px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--divider);
}

.about-highlights > div {
  min-width: 0;
  padding: 0 clamp(12px, 1.4vw, 20px);
  border-left: 1px solid var(--divider);
}

.about-highlights > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-highlights > div:last-child { padding-right: 0; }

.about-highlights dt {
  margin-bottom: 7px;
  color: var(--text-primary);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 600;
  line-height: 1.2;
}

.about-highlights dd {
  margin: 0;
  color: var(--accent-soft, #73a6cf);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.made-in {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  margin-top: var(--space-xxl);
}

.made-in > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  font-size: var(--font-body);
}

.made-in div { display: flex; flex-direction: column; }
.made-in strong { color: var(--text-primary); font-size: var(--font-body); }
.made-in small { color: var(--text-muted); font-size: var(--font-caption); }

.mode-explorer {
  --scheme-line: var(--border-strong);
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 28px 26px 0;
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius-card) * 2);
  background:
    radial-gradient(circle at 50% 38%, var(--action-tint), transparent 32%),
    var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 34px 90px var(--shadow-tint);
}

.mode-explorer::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: var(--border-hero);
}

.mode-explorer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--glass-edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-edge) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .12;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}

.schematic-vehicle {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.schematic-vehicle svg {
  width: 82px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--glow-accent));
}

.schematic-vehicle strong {
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 2.5);
}

.schematic-stem {
  position: relative;
  width: 1px;
  height: 27px;
  margin: 3px auto 0;
  background: var(--scheme-line);
}

.schematic-dot,
.branch-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 4px var(--text-primary), 0 0 12px var(--accent);
  animation: schematicPulse 2.2s ease-in-out infinite;
}

.schematic-stem .schematic-dot { left: -3px; bottom: -3px; }
.schematic-dot.dot-pink {
  border-color: var(--pink-500);
  box-shadow: 0 0 4px var(--text-primary), 0 0 13px var(--pink-500);
}

.protocol-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 0 21px;
}

.protocol-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--scheme-line);
}

.protocol-item {
  position: relative;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: var(--tracking);
  text-align: center;
}

.protocol-item::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 19px;
  background: var(--scheme-line);
}

.protocol-item .schematic-dot { top: -13px; left: calc(50% - 3px); }
.protocol-item:nth-child(2) .schematic-dot { animation-delay: .25s; }
.protocol-item:nth-child(3) .schematic-dot { animation-delay: .5s; }
.protocol-item:nth-child(4) .schematic-dot { animation-delay: .75s; }

.schematic-device {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 198px;
  margin-top: -15px;
}

.schematic-device::before,
.schematic-device::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--scheme-line);
}
.schematic-device::before { top: 0; height: 24px; }
.schematic-device::after { bottom: -13px; height: 25px; }

.schematic-device img {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px var(--shadow-tint));
}

.schematic-device small {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  color: var(--text-muted);
  font-size: var(--font-caption);
  letter-spacing: calc(var(--tracking) * 2);
}

.device-orbit {
  position: absolute;
  width: 190px;
  height: 110px;
  border: 1px solid var(--glass-edge-hover);
  border-radius: 50%;
  background: radial-gradient(circle, var(--action-tint), transparent 65%);
  box-shadow: 0 0 50px var(--glow-accent);
  animation: orbitGlow 3.6s ease-in-out infinite;
}

.mode-split-title {
  position: relative;
  z-index: 2;
  padding: 2px 0 20px;
  text-align: center;
}

.mode-split-title span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--pink-500);
  border-radius: var(--radius-small);
  background: var(--surface-window);
  color: var(--pink-500);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 2);
  box-shadow: 0 0 22px var(--glow-page-2);
}

.mode-branches {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  padding-top: 29px;
}

.mode-branches::before,
.mode-branches::after,
.mode-tab::before {
  content: "";
  position: absolute;
  background: var(--scheme-line);
}
.mode-branches::before { top: 0; left: 25%; right: 25%; height: 1px; }
.mode-branches::after { top: -26px; left: 50%; width: 1px; height: 27px; }

.mode-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 205px;
  padding: 22px 12px 17px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--glass);
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .35s, background .35s, transform .35s, box-shadow .35s;
}
.mode-tab::before { top: -30px; left: 50%; width: 1px; height: 29px; }
.mode-tab:hover { transform: translateY(-3px); border-color: var(--glass-edge-hover); }
.mode-tab .branch-dot { top: -34px; left: calc(50% - 3px); }
.mode-kicker { color: var(--text-secondary); font-size: 14px; font-weight: 600; letter-spacing: calc(var(--tracking) * 2); }
.mode-tab strong { min-height: 20px; margin-top: 6px; color: var(--text-primary); font-size: 12px; font-weight: 400; line-height: 1.45; }
.mode-tab small { margin-top: auto; color: var(--text-faint); font-size: 12px;  letter-spacing: calc(var(--tracking) * 1.5); }

.mode-visual {
  width: 120px;
  height: 90px;
  color: var(--text-muted);
  transition: color .35s, filter .35s, transform .35s;
}
.mode-visual svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-visual text { fill: currentColor; stroke: none; font: 600 16px Poppins, sans-serif; }

.mode-tab.is-active {
  border-color: var(--glass-edge-hover);
  background: var(--glass-hover);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 12px 35px var(--shadow-tint);
}
.mode-tab.is-active .mode-kicker { color: var(--pink-500); }
.mode-tab.is-active .mode-visual { color: var(--text-primary); filter: drop-shadow(0 0 7px var(--glow-accent)); transform: translateY(-2px); }
.mode-tab.is-active small { color: var(--accent); }
.mode-tab.is-active .branch-dot { border-color: var(--pink-500); box-shadow: 0 0 4px var(--text-primary), 0 0 14px var(--pink-500); }

.mode-description {
  position: relative;
  z-index: 2;
  min-height: 72px;
  margin: 10px 2px 0;
  padding: 15px 0px;
  border-top: 1px solid var(--glass-edge);
  background: var(--surface-input);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@keyframes schematicPulse {
  0%, 100% { opacity: .55; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes orbitGlow { 50% { transform: scale(1.07); opacity: .72; } }

.capabilities {
  position: relative;
  overflow: hidden;
  max-width: none;
  background: linear-gradient(180deg, var(--surface-window), var(--surface-titlebar));
}

.heading-row {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(var(--space-xxl), 7vw, 80px);
  align-items: end;
  max-width: none;
}
.heading-row > p { max-width: 460px; margin: 0 0 var(--space-xs); color: var(--text-secondary); }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-l);
  margin-top: calc(var(--space-xs) * 2);
}

.capability-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius-card) * 2);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 20px 48px var(--shadow-tint);
  transition: background-color .25s, border-color .25s, box-shadow .25s, transform .3s;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--border-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.icon-frame {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
}
.icon-frame img { width: 40px; height: 40px; object-fit: contain; transition: filter .25s, transform .25s; }
.capability-card h3 {
  margin: 14px 0 12px;
  padding-right: 50px;
  font-size: var(--font-title);
}
.capability-card p { margin: 0; color: var(--text-secondary); font-size: var(--font-body-lg); line-height: 1.7; }

@media (hover: hover) {
  .capability-card:hover { transform: translateY(-3px); border-color: var(--glass-edge-hover); background: var(--glass-hover); }
  .capability-card:hover::before { transform: scaleX(1); }
  .capability-card:hover .icon-frame img { filter: drop-shadow(0 0 5px var(--glow-accent)); transform: scale(1.03); }
}

@media (max-width: 1180px) {
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .about-layout,
  .heading-row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-layout { margin-top: 0; }
  .mode-explorer { width: 100%; }
  .capability-grid { grid-template-columns: 1fr 1fr; margin-top: var(--space-xxl); }
  .capability-card { min-height: 0; }
}

@media (max-width: 520px) {
  .section-heading h2 { font-size: clamp(36px, 11vw, 52px); }
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  .about-highlights > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .mode-explorer { padding: 28px 14px 0; }
  .mode-branches { gap: 9px; }
  .mode-tab { min-height: 202px; padding-inline: 7px; }
  .mode-tab strong { font-size: 9px; }
  .mode-visual { width: 88px; }
  .mode-description { margin-inline: -14px; padding-inline: 17px; }
  .protocol-item { font-size: 11px; line-height: 1.4; letter-spacing: .03em; color: var(--text-primary); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
}

/* ---------- Technical data + protocol marquee ---------- */
.technical-data {
  position: relative;
  overflow: hidden;
}

.specs-panel {
  overflow: hidden;
  margin-top: calc(var(--space-xxl) * 2);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius-card) * 2);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 58px var(--shadow-tint);
}

.spec-tabs {
 display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--glass-edge);
}

.spec-tab {
  min-height: 72px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--glass-edge);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--font-body);
  cursor: pointer;
  transition: color .2s, background-color .2s, box-shadow .2s;
}

.spec-tab:last-child { border-right: 0; }
.spec-tab:hover { color: var(--text-primary); background: var(--action-tint); }
.spec-tab.is-active {
  color: var(--text-primary);
  background: var(--surface-control);
  box-shadow: inset 0 -2px var(--accent);
}

.spec-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-height: 310px;
  padding: clamp(20px, 3vw, 44px);
  background: var(--glass-edge);
}

.spec-group {
  min-width: 0;
  min-height: 190px;
  padding: clamp(22px, 2.2vw, 30px);
  background: var(--surface-titlebar);
}

.spec-group span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 1.5);
  text-transform: uppercase;
}

.spec-group strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(23px, 2.1vw, 26px);
  line-height: 1.15;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.spec-group p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: var(--font-body-lg);
  line-height: 1.65;
}

.protocol-marquee {
  overflow: hidden;
  margin-top: 28px;
  padding-block: 17px;
  border-block: 1px solid var(--glass-edge);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 1.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.protocol-marquee__track {
  display: flex;
  width: max-content;
  animation: protocolMarquee 25s linear infinite;
}

.protocol-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 27px;
  padding-right: 27px;
}

.protocol-marquee i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 8px var(--pink-500);
}

@keyframes protocolMarquee {
  to { transform: translateX(-50%); }
}

@media (hover: hover) {
  .protocol-marquee:hover .protocol-marquee__track { animation-play-state: paused; }
}

@media (max-width: 820px) {
  .specs-panel { margin-top: var(--space-xxl); }
  .spec-tabs { grid-template-columns: 1fr 1fr; }
  .spec-tab:nth-child(2) { border-right: 0; }
  .spec-tab:nth-child(-n + 2) { border-bottom: 1px solid var(--glass-edge); }
  .spec-content { grid-template-columns: 1fr; min-height: 0; padding: 20px; }
  .spec-group { min-height: 0; }
}

@media (max-width: 520px) {
  .spec-tabs { grid-template-columns: 1fr; }
  .spec-tab,
  .spec-tab:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--glass-edge); }
  .spec-tab:last-child { border-bottom: 0; }
  .spec-content { padding: 12px; }
}

/* ---------- Homepage routes to detailed content ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius-card) * 2);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 20px 48px var(--shadow-tint);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .25s, border-color .25s, background-color .25s;
}

.explore-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--border-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.explore-card__kicker {
  margin-bottom: var(--space-xl);
  color: var(--accent);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: calc(var(--tracking) * 1.5);
}

.explore-card h3 {
  margin: 0 0 var(--space-l);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: var(--font-weight-heading); 
}

.explore-card p {
  margin: 0 0 var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--font-body-lg);
  line-height: 1.7;
}

.explore-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  margin-top: auto;
  color: var(--text-primary);
  font-size: var(--font-body);
  font-weight: 600;
}

.explore-card__link span {
  color: var(--accent);
  font-size: 20px;
  transition: transform .25s;
}

@media (hover: hover) {
  .explore-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-edge-hover);
    background: var(--glass-hover);
    text-decoration: none;
  }

  .explore-card:hover::after { transform: scaleX(1); }
  .explore-card:hover .explore-card__link span { transform: translateX(4px); }
}

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-forced) .schematic-dot,
  :root:not(.motion-forced) .branch-dot,
  :root:not(.motion-forced) .device-orbit { animation: none; }
  :root:not(.motion-forced) .protocol-marquee__track { animation: none; }
}

button, input, select, textarea {
  font-family: inherit;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette (only here) */
  --navy-950: #002C53;
  --blue-600: #0072BC;
  --cyan-400: #27AAE1;
  --navy-800: #123250;
  --navy-700: #1F4A6C;
  --pink-500: #E51957;
  --purple-500: #7A55A4;
  --cyan-500: #00ADE3;
  --graphite-900-a90: rgba(28, 34, 39, .9);
  --gray-100: #E8E7E7;

  /* Surfaces */
  --surface-window: #0E1420;
  --surface-titlebar: #0A0F19;
  --surface-control: #1C2637;
  --surface-nav: var(--navy-950);
  --surface-card: linear-gradient(135deg, var(--navy-800), var(--graphite-900-a90));
  --surface-button:
    radial-gradient(35% 90% at 65% 100%, rgba(12, 68, 114, .7), rgba(12, 68, 114, 0)),
    linear-gradient(90deg, var(--navy-800) 35%, #083051);
  --surface-link: linear-gradient(90deg, var(--navy-800) 40%, #1A2936 60%);
  --surface-nav-active: linear-gradient(90deg, var(--navy-800), #062E50);
  --surface-status: linear-gradient(90deg, #24415A, rgba(36, 65, 90, 0));
  --surface-scrim: rgba(0, 0, 0, .7);

  /* Borders (brand gradient) */
  --border-hero: linear-gradient(135deg,
      var(--pink-500) 15%, var(--purple-500) 33%, var(--cyan-500) 50%,
      var(--purple-500) 67%, var(--pink-500) 85%);
  --border-tile: linear-gradient(135deg,
      rgba(0, 173, 227, .5) 15%, rgba(122, 85, 164, .5) 50%, rgba(229, 25, 87, .5) 85%);
  --border-button: linear-gradient(90deg,
      rgba(0, 173, 227, .5) 30%, rgba(122, 85, 164, .5) 50%, rgba(229, 25, 87, .5) 70%);
  --border-button-mirrored: linear-gradient(270deg,
      rgba(0, 173, 227, .5) 30%, rgba(122, 85, 164, .5) 50%, rgba(229, 25, 87, .5) 70%);
  --border-link: linear-gradient(90deg,
      rgba(0, 173, 227, .65) 35%, rgba(122, 85, 164, .65) 60%, rgba(229, 25, 87, .65) 80%);
  --border-nav-active: linear-gradient(90deg,
      var(--cyan-500) 30%, var(--purple-500) 55%, var(--pink-500) 80%);
  --border-spin: conic-gradient(from var(--angle),
      var(--cyan-500), var(--purple-500), var(--pink-500), var(--purple-500), var(--cyan-500));
  --border-field: rgba(39, 170, 225, .5);
  --border-control: #2E3A52;
  --divider: #2E3A52;
  --divider-accent: var(--blue-600);

  /* Action */
  --accent: var(--cyan-400);
  --action-hover: var(--navy-700);
  --action-pressed: var(--navy-800);
  --action-tint: rgba(39, 170, 225, .13);
  --glow-accent: rgba(39, 170, 225, .3);

  /* Text */
  --text-primary: var(--gray-100);
  --text-secondary: #A5B2CC;
  --text-muted: #8593AE;
  --text-faint: #6E7C99;
  --text-control: #D3DBEA;

  /* Status */
  --status-success: #45D18A;
  --status-success-strong: #07C33D;
  --status-success-badge: #22A447;
  --status-warning: #F0B44A;
  --status-danger: #E5484D;
  --status-danger-text: #F58893;

  /* Disabled */
  --disabled-bg: #1C2637;
  --disabled-border: #2E3A52;
  --disabled-text: #6E7C99;

  /* Scales (identical to the app) */
  --space-xs: 4px; --space-s: 8px; --space-m: 12px;
  --space-l: 16px; --space-xl: 24px; --space-xxl: 32px;

  --font-caption: 11px; --font-body: 13px; --font-body-lg: 14px;
  --font-title: 17px; --font-hero: 24px;

  --radius-small: 4px; --radius-card: 8px; --radius-pill: 999px;

  --font-main: "Poppins", system-ui, sans-serif;
  --font-footer: "Poppins", system-ui, sans-serif;

  /* Web-only extensions (no counterpart in the app) */
  --font-text: 16px;                          /* paragraphs; app Body=13 is too small for a page */
  --font-display-s: clamp(30px, 3.6vw, 48px); /* section H2 */
  --font-display-l: clamp(40px, 5vw, 64px);   /* hero H1 */
  --space-section: clamp(96px, 9vw, 144px);
  --container: 1200px;
  --gutter: var(--space-l);
  --header-h: 72px;
  --tracking: .06em;
  --surface-photo-dim: #D9DFE8; /* inactive coverflow plates: no white flash next to the active one */

  /* Web-only: glass surfaces. The brand gradient is reserved for the hero card, the primary
     CTA and the active coverflow card; everything else is frosted glass with a hairline edge. */
  --glass: rgba(52, 78, 116, .2);
  --glass-hover: rgba(62, 94, 138, .3);
  --glass-strong: rgba(14, 22, 36, .62);   /* header, drawer, form fields: more opaque for legibility */
  --glass-blur: blur(22px) saturate(160%);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-edge-hover: rgba(39, 170, 225, .45);
  --glass-shine: rgba(255, 255, 255, .14);  /* 1px inner top edge = light refraction */
  --surface-btn: rgba(18, 50, 80, .55);
  --surface-btn-hover: rgba(31, 74, 108, .7);
  --surface-btn-solid: #15304C; /* opaque, so the gradient border-box does not show through */
  --surface-input: rgba(8, 13, 22, .55);
  --border-strong: rgba(165, 178, 204, .26);
  --shadow-tint: rgba(2, 10, 24, .6);
  /* Ambient light behind the glass (fixed, so panes visibly blur it while scrolling) */
  --glow-page: rgba(0, 114, 188, .45);
  --glow-page-2: rgba(122, 85, 164, .24);
  --glow-page-3: rgba(0, 173, 227, .22);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font-display-xl: clamp(44px, 6.2vw, 84px);
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-xxl); }
}

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

html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grain) var(--surface-window);
  color: var(--text-primary);
  font: 400 var(--font-text)/1.65 var(--font-main);
  -webkit-font-smoothing: antialiased;
}

/* Ambient light the glass panes blur. Fixed, behind everything, never repaints on scroll. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 44% at 84% 6%, var(--glow-page), transparent 70%),
    radial-gradient(40% 40% at 4% 50%, var(--glow-page-2), transparent 70%),
    radial-gradient(44% 36% at 60% 100%, var(--glow-page-3), transparent 70%);
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 var(--space-l); font-weight: var(--font-weight-heading); line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--font-display-l);  }
h2 { font-size: var(--font-display-s);  }
h3 { font-size: var(--font-title); font-weight: var(--font-weight-heading); line-height: 1.3; }
p { margin: 0 0 var(--space-l); max-width: 68ch; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: calc(var(--space-section) * 0.7); }

.slogan { font-weight: 600; font-size: var(--font-title); text-transform: uppercase; letter-spacing: var(--tracking); line-height: 1.35; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; } /* product names that must not split at a hyphen */

.btn.skip-link { position: absolute; left: var(--space-l); top: -100px; z-index: 100; }
.btn.skip-link:focus { top: var(--space-l); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Visible placeholder for data still to be supplied */
.todo { color: var(--status-warning); outline: 1px dashed var(--status-warning); outline-offset: 2px; font-weight: 500; }

/* ---------- Icons: SVG as mask, colour from currentColor ---------- */
.icon {
  display: inline-block; flex: none;
  width: 24px; height: 24px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.icon--16 { width: 16px; height: 16px; }
.icon--32 { width: 32px; height: 32px; }
.icon-j2534    { --icon: url("../assets/icons/j2534.svg"); }
.icon-firmware { --icon: url("../assets/icons/firmware.svg"); }
.icon-selftest { --icon: url("../assets/icons/self_test.svg"); }
.icon-info     { --icon: url("../assets/icons/info.svg"); }
.icon-download { --icon: url("../assets/icons/download.svg"); }
.icon-connect  { --icon: url("../assets/icons/connect.svg"); }
.icon-check    { --icon: url("../assets/icons/check.svg"); }
.icon-copy     { --icon: url("../assets/icons/copy.svg"); }
.icon-settings { --icon: url("../assets/icons/settings.svg"); }
.icon-locked   { --icon: url("../assets/icons/locked.svg"); }
.icon-chevron-down { --icon: url("../assets/icons/chevron_down.svg"); }
.icon-cart     { --icon: url("../assets/icons/cart.svg"); }

/* ---------- Spinning gradient border (SpinningBorder) ---------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }

.btn::after, .tile.is-clickable::after {
  content: ""; position: absolute; inset: -2px; padding: 2px;
  border-radius: inherit;
  background: var(--border-spin);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.btn:not(:disabled, [aria-disabled="true"]):hover::after,
.tile.is-clickable:hover::after,
.tile.is-clickable:focus-visible::after { opacity: 1; animation: spin 6s linear infinite; }

/* ---------- Buttons (OutlineButton) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s);
  min-height: 48px; padding: var(--space-s) var(--space-xl);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--surface-btn);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  color: var(--text-primary);
  font: 600 15px/1.2 var(--font-main);
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; cursor: pointer;
  text-wrap: balance; text-align: center;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), transform .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn::after { inset: -1px; padding: 1px; }
.btn:hover { text-decoration: none; background-color: var(--surface-btn-hover); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 16px; height: 16px; color: var(--accent); }

/* Primary CTA: the one button that carries the brand gradient */
.btn--accent {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface-btn-solid) 0 0) padding-box, var(--border-button) border-box;
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 28px -10px var(--glow-accent);
}
.btn--accent:hover { box-shadow: inset 0 1px 0 var(--glass-shine), 0 10px 34px -8px var(--glow-accent); }
.btn--accent::after { inset: -1.5px; padding: 1.5px; }
.btn--small { min-height: 36px; padding: var(--space-xs) var(--space-l); font-size: 13px; }
.btn--quiet { background-color: transparent; }
.btn--quiet:hover { background-color: var(--action-tint); }
.btn--link {
  min-height: 36px; padding: var(--space-xs) var(--space-l);
  font-size: 13px;
}

.btn:disabled, .btn[aria-disabled="true"] {
  color: var(--disabled-text); cursor: default;
  background: var(--disabled-bg); border-color: var(--disabled-border);
}
.btn:disabled .icon, .btn[aria-disabled="true"] .icon { color: var(--disabled-text); }

.btn[hidden] { display: none; } /* .btn sets display, which would beat the UA [hidden] rule */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.btn-row--end { justify-content: flex-end; }   /* primary action far right, cancel to its left */
.btn-row--fill > .btn { flex: 1 1 220px; }

/* ---------- Cards ---------- */
.card-hero {
  position: relative; isolation: isolate;
  border: 2px solid transparent;
  border-radius: calc(var(--radius-card) * 2);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 80px -30px var(--shadow-tint), 0 0 80px -20px var(--glow-accent);
}

/* Brand-gradient edge on a translucent pane: drawn by a masked layer, so the fill stays glass */
.card-hero::after {
  content: ""; position: absolute; inset: -2px; padding: 2px; z-index: 1;
  border-radius: inherit; background: var(--border-hero); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Frosted glass pane */
.tile {
  position: relative;
  display: block;
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius-card) * 1.5);
  padding: var(--space-xl);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 48px -24px var(--shadow-tint);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.tile.is-clickable::after { display: none; }
.tile.is-clickable:hover, .tile.is-clickable:focus-visible { background-color: var(--glass-hover); border-color: var(--glass-edge-hover); transform: translateY(-2px); }
.tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-l); margin-bottom: var(--space-m); }
.tile__title { margin: 0; font-size: 20px; font-weight: var(--font-weight-heading);  }
.tile p { color: var(--text-secondary); }
.tile__head .icon { width: 32px; height: 32px; color: var(--accent); }
.tile p { margin: 0; }
a.tile:hover { text-decoration: none; }

.grid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Hero card layout (Home mock): image | name + status + specs | actions + slogan */
.hero-card { display: grid; gap: var(--space-xl); padding: var(--space-xl); align-items: center; }
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: url("../assets/images/car_dark.webp") right center / auto 100% no-repeat;
  opacity: .65; pointer-events: none;
}
.hero-card__img { width: min(260px, 70%); justify-self: center; }
.hero-card__title { margin: 0; font-size: var(--font-display-s); }
.hero-card__subtitle { margin: 0 0 var(--space-l); font-size: var(--font-title); }
.hero-card__actions { display: grid; gap: var(--space-l); }
.hero-card__actions .btn { font-size: var(--font-text); } /* longer labels (PL, DE) must fit the column */
.hero-card__actions .slogan { margin: var(--space-s) 0 0; }

@media (min-width: 1024px) {
  .hero-card { grid-template-columns: minmax(180px, .8fr) 1.3fr minmax(280px, 1.1fr); padding: var(--space-xxl) calc(var(--space-xxl) * 1.5); }
  .hero-card__img { width: 100%; }
}

/* Compact card below 1024px: small image next to the name, so the card fits one screen */
@media (max-width: 1023px) {
  .hero-card { grid-template-columns: clamp(80px, 22vw, 160px) 1fr; gap: var(--space-m) var(--space-l); padding: var(--space-l); }
  .hero-card__info { display: contents; }
  .hero-card__img { grid-row: 1 / span 2; width: 100%; }
  .hero-card__title { align-self: end; }
  .hero-card__subtitle { align-self: start; margin: 0; font-size: var(--font-text); }
  .hero-card .status-pill, .hero-card .spec, .hero-card__actions { grid-column: 1 / -1; margin: 0; }
}

/* ---------- Home hero scene (poster by default, 3D when .is-3d) ---------- */
.hero-scene__stage {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-xl);
}
.hero-scene__final { width: 100%; }
.hero-scene__canvas, .hero-scene__intro { display: none; }

.is-3d .hero-scene__stage { height: calc(100svh - var(--header-h)); min-height: 0; padding: 0; }
.is-3d .hero-scene__canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  /* darker right behind the car, so its lit outline stands off the page's glow; gone once the car fills the frame */
  background: radial-gradient(48% 42% at 50% 60%, var(--surface-titlebar), color-mix(in srgb, var(--surface-titlebar) 55%, transparent) 55%, transparent 100%);
}
.is-3d .hero-scene__canvas.is-inside { background: none; }
.is-3d .hero-scene__final { position: absolute; inset: 0; display: grid; align-content: center; opacity: 0; }
/* Hero intro: logo left, left-aligned copy right; preserve 3D stage overlay. */
.is-3d .hero-scene__intro {
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 1;
  grid-template-columns: 230px minmax(0, 560px);
  grid-template-rows: repeat(3, auto);
  align-content: start;
  align-items: center;
  justify-content: center;
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 8px;
  padding: clamp(36px, 8vh, 88px) var(--gutter) 0;
  text-align: left;
  pointer-events: none;
}
.hero-scene__intro-logo {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
}
.hero-scene__intro-logo img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px var(--glow-accent));
}
.hero-scene__intro-divider { display: none; }
.hero-scene__intro-eyebrow {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-scene__intro-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: var(--font-weight-heading);
  line-height: 1.2;
  
  white-space: nowrap;
}
.hero-scene__intro-title span { color: var(--accent); }
.hero-scene__intro-sub {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .015em;
  text-align: left;
}
@media (max-width: 900px) and (min-width: 768px) {
  .is-3d .hero-scene__intro {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 26px;
  }
  .hero-scene__intro-logo img { width: 180px; }
  .hero-scene__intro-title { font-size: clamp(22px, 3.2vw, 30px); }
  .hero-scene__intro-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-scene__intro-sub { font-size: 12px; }
}
@media (max-width: 767px) {
  .is-3d .hero-scene__intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: center;
    row-gap: 12px;
    padding: clamp(20px, 5vh, 42px) 20px 0;
    text-align: center;
  }
  .hero-scene__intro-logo,
  .hero-scene__intro-eyebrow,
  .hero-scene__intro-title,
  .hero-scene__intro-sub {
    grid-column: 1;
    grid-row: auto;
  }
  .hero-scene__intro-logo img { width: 180px; }
  .hero-scene__intro-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-scene__intro-title {
    font-size: clamp(20px, 5vw, 28px);
    white-space: normal;
  }
  .hero-scene__intro-sub {
    max-width: 300px;
    font-size: 12px;
    text-align: center;
  }
}
/* Scroll hint at the bottom centre of the hero */
.hero-scene__more {
  position: absolute; left: 50%; bottom: var(--space-l); z-index: 2; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-edge); background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--accent); box-shadow: 0 0 24px -6px var(--glow-accent);
  animation: hint-bob 2.4s var(--ease-out) infinite;
}
.hero-scene__more:hover { border-color: var(--glass-edge-hover); }
.hero-scene__more { transition: opacity .3s var(--ease-out), visibility .3s; }
.hero-scene__more.is-gone { opacity: 0; visibility: hidden; } /* next section on screen: the hint has done its job */
@media (max-width: 599px) { .hero-scene__more { left: calc(var(--gutter) + 56px); transform: none; } } /* "Play animation" sits bottom right, the cookie badge bottom left */
@keyframes hint-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
.hero-scene__play:not([hidden]) { position: absolute; right: var(--gutter); bottom: var(--space-l); z-index: 2; }
.is-3d .hero-scene__play { display: none; }

/* Label / value list (InfoLabel / InfoValue) */
.spec { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s) var(--space-xl); margin: 0; font-size: var(--font-body-lg); }
.spec dt { color: var(--text-secondary); }
.spec dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Status pill (ConnectionStatusPill) ---------- */
.status-pill {
  display: inline-grid; grid-template-columns: auto 1fr; column-gap: var(--space-s); align-items: center;
  padding: var(--space-s) var(--space-xxl) var(--space-s) var(--space-l);
  margin-bottom: var(--space-l);
  background: var(--surface-status);
  border-radius: 0 0 0 var(--radius-card);
}
.status-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--status-success-strong); }
.status-pill__text { font-weight: 600; font-size: var(--font-body-lg); text-transform: uppercase; letter-spacing: var(--tracking); color: var(--status-success-strong); }
.status-pill__hint { grid-column: 2; font-size: var(--font-body-lg); }

/* ---------- Badge (SuccessBadge) ---------- */
.badge {
  display: inline-block; padding: 0 var(--space-xs);
  border-radius: var(--radius-small);
  background: var(--status-success-badge); color: var(--text-primary);
  font: 600 var(--font-caption)/1.6 var(--font-main);
  text-transform: uppercase; letter-spacing: var(--tracking);
}

/* ---------- Form fields ---------- */
.field { display: grid; gap: var(--space-xs); }
.field__label { color: var(--text-secondary); font-size: var(--font-body-lg); }
.field__error { color: var(--status-danger-text); font-size: var(--font-body-lg); }

.input {
  width: 100%; min-height: 48px; padding: 0 var(--space-l);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface-input);
  box-shadow: inset 0 1px 2px var(--shadow-tint);
  color: var(--text-primary);
  font: 500 var(--font-text) var(--font-main);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.input:hover { border-color: var(--border-field); }
.input:focus { border-color: var(--accent); background-color: var(--glass-strong); }
.input::placeholder { color: var(--text-faint); font-weight: 400; }
select.input { color-scheme: dark; cursor: pointer; } /* native arrow and a dark option list */
textarea.input { min-height: 144px; padding-block: var(--space-m); font: 400 var(--font-text)/1.5 var(--font-main); resize: vertical; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--status-danger); }
.input:disabled { background: var(--disabled-bg); border-color: var(--disabled-border); color: var(--disabled-text); }

/* ---------- Product image with glow (DeviceImage) ---------- */
.product-img { filter: drop-shadow(0 0 20px var(--glow-accent)); }

/* ---------- Header / navigation (NavItemButton) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--glass-edge);
}
/* Glass on a pseudo-element: backdrop-filter on .site-header itself would make it the
   containing block of the fixed mobile drawer inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.site-header__bar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--header-h); }
.site-header__logo { flex: none; }
.site-header__logo img { width: auto; height: 56px; } /* ELP Pass-Thru Link mark; its small "PASS-THRU LINK" line needs the height */
@media (max-width: 767px) { .site-header__logo img { height: 48px; } }

.nav { margin-left: auto; }
.nav__shop { flex: none; white-space: nowrap; } /* external: Elprosys online shop, new tab */
.nav ul { display: flex; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.nav li > a {
  display: block;
  border: solid transparent; border-width: 1.5px 1.5px 1.5px 3px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 6px var(--space-m) 6px var(--space-l);
  color: var(--text-primary); font-weight: 600; font-size: var(--font-body-lg);
  text-decoration: none; white-space: nowrap;
}
.nav li > a { transition: background-color .2s var(--ease-out); }
.nav li > a:hover { background: var(--action-tint); }
.nav li > a[aria-current="page"] { background: var(--surface-nav-active) padding-box, var(--border-nav-active) border-box; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--space-s); }
  .nav ul { gap: var(--space-s); }
  .nav li > a {
    position: relative; display: flex; align-items: center; height: var(--header-h);
    border: 0; border-radius: 0; padding: 0 var(--space-m);
    color: var(--text-secondary);
    transition: color .2s var(--ease-out);
  }
  .nav li > a::after { /* indicator sits on the header's bottom edge */
    content: ""; position: absolute; left: var(--space-m); right: var(--space-m); bottom: -1px; height: 2px;
    border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--glow-accent);
    transform: scaleX(0); transition: transform .3s var(--ease-out);
  }
  .nav li > a:hover { background: none; color: var(--text-primary); }
  .nav li > a[aria-current="page"] { background: none; color: var(--text-primary); }
  .nav li > a[aria-current="page"]::after { transform: none; }
  .nav li > a:focus-visible { outline-offset: -6px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { /* 6 PL labels + shop icon + EN | PL fit at 1024 */
  .nav ul { gap: 0; }
  .nav li > a { padding-inline: var(--space-s); }
}
@media (min-width: 1024px) and (max-width: 1439px) { /* too narrow for the label: cart icon only (label stays for screen readers) */
  .nav__shop { padding-inline: var(--space-s); }
  .nav__shop-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Language: "EN | PL" as plain text, current one bright */
.lang { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.lang li + li { border-left: 1px solid var(--border-strong); }
.lang a {
  display: block; padding: var(--space-xs) var(--space-m);
  color: var(--text-muted); font-weight: 600; font-size: var(--font-body-lg); letter-spacing: .04em; text-decoration: none;
  transition: color .2s var(--ease-out);
}
.lang a:hover, .lang a[aria-current="true"] { color: var(--text-primary); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--border-field); border-radius: var(--radius-card);
  background: transparent; color: var(--text-primary); cursor: pointer;
}
.nav-toggle svg { margin: auto; }
.nav-scrim { display: none; }

/* Mobile: off-canvas drawer styled as the app sidebar */
@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .site-header__bar .lang { order: 2; }
  .nav-toggle { order: 3; margin-left: 0; }
  .site-header__bar .lang { margin-left: auto; }

  .nav {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(280px, 85vw); margin: 0;
    padding: var(--space-xxl) var(--space-l) var(--space-l) 0;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-edge);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s .25s;
    overflow-y: auto;
  }
  .nav ul { flex-direction: column; gap: var(--space-m); }
  .nav li > a { padding-block: var(--space-m); font-size: var(--font-text); }
  .nav__shop { margin: var(--space-xl) 0 0 var(--space-l); }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: var(--surface-scrim); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: var(--space-xxl);
  border-top: 1px solid var(--glass-edge);
  background:
    radial-gradient(40% 70% at 0% 100%, var(--glow-page-3), transparent 70%),
    radial-gradient(36% 80% at 100% 0%, var(--glow-page-2), transparent 70%),
    var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
/* Sister sites above the footer, footer-wide, an endless strip like diagprog5.com. Two equal lists, the track slides by one list's width.
   Logos are dark-on-light artwork, so each sits on a white plate. Reduced motion: no loop, the strip scrolls by hand. */
.logotypes { margin-top: var(--space-xxl); }
.logotypes__view {
  overflow: hidden; padding-block: var(--space-s);
  /* the ends fade into the page: logos dim as they reach the edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.logotypes__track { display: flex; width: max-content; animation: logotypes 40s linear infinite; }
.logotypes:hover .logotypes__track, .logotypes:focus-within .logotypes__track { animation-play-state: paused; }
.logotypes__list { display: flex; gap: var(--space-xl); margin: 0; padding: 0 var(--space-xl) 0 0; list-style: none; }
.logotype {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-s);
  color: var(--text-secondary); font-size: 13px; text-decoration: none;
}
.logotype__img {
  display: grid; place-items: center; width: 200px; height: 72px; padding: var(--space-m) var(--space-l);
  border-radius: var(--radius-card); 
  transition: box-shadow .25s var(--ease-out);
}
.logotype__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.logotype:hover { color: var(--accent); }
.logotype:hover .logotype__img { box-shadow: 0 0 24px -6px var(--glow-accent); }
@keyframes logotypes { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-forced) .logotypes__view { overflow-x: auto; }
  :root:not(.motion-forced) .logotypes__list[aria-hidden] { display: none; }
}
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl);
  padding-block: calc(var(--space-xxl) * 1.5) var(--space-xxl);
}
.site-footer__logo { width: 220px; height: auto; }
.site-footer__social { display: flex; gap: var(--space-m); margin: 0; padding: 0; list-style: none; }
.site-footer__social a, .site-footer__ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--text-primary);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.site-footer__social a { transition: border-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.site-footer__social a:hover { border-color: var(--glass-edge-hover); color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 24px -6px var(--glow-accent); }
.site-footer__ico { flex: none; width: 40px; height: 40px; color: var(--accent); }
.site-footer__ico .icon { width: 20px; height: 20px; }
.icon-chevron-right { --icon: url("../assets/icons/chevron_down.svg"); rotate: -90deg; }
.icon-pin       { --icon: url("../assets/icons/pin.svg"); }
.icon-phone     { --icon: url("../assets/icons/phone.svg"); }
.icon-mail      { --icon: url("../assets/icons/mail.svg"); }
.icon-chat      { --icon: url("../assets/icons/chat.svg"); }
.icon-facebook  { --icon: url("../assets/icons/facebook.svg"); }
.icon-youtube   { --icon: url("../assets/icons/youtube.svg"); }
.icon-instagram { --icon: url("../assets/icons/instagram.svg"); }
.icon-linkedin  { --icon: url("../assets/icons/linkedin.svg"); }

.site-footer__main {
  display: grid; gap: var(--space-xl) calc(var(--space-xxl) * 1.5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative; padding-block: var(--space-xxl);
  font-size: var(--font-text); line-height: 1.7; color: var(--text-secondary);
}
@media (min-width: 1100px) { .site-footer__main { grid-template-columns: 1fr 1fr 1.2fr 1.5fr; } }
.site-footer__main address { font-style: normal; }
.site-footer__main p { margin: 0; }
.site-footer__main strong { color: var(--text-primary); font-weight: 600; }
.site-footer__main ul { margin: 0; padding: 0; list-style: none; }
.site-footer__main a { color: var(--text-primary); text-decoration: none; }
.site-footer__main a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__item { display: flex; gap: var(--space-l); align-items: flex-start; }
.site-footer__contact > .site-footer__item + .site-footer__item { margin-top: var(--space-l); }
.site-footer__item > :last-child { padding-top: var(--space-s); } /* first line level with the icon centre */
.site-footer__links { display: flex; gap: var(--space-xl); justify-content: space-between; align-items: flex-start; font-size: 15px; }
.site-footer__links a { color: var(--text-secondary); }
.site-footer__qr { flex: none; width: 120px; }
.site-footer__qr img { display: block; width: 100%; height: auto; } /* the image carries its own frame */

.site-footer__reg {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-s) var(--space-xl);
  position: relative; margin-block: 0; padding-block: var(--space-xl) var(--space-xxl);
  font: 400 var(--font-caption)/1.5 var(--font-footer); color: var(--text-muted);
}


.site-footer__reg div { display: flex; gap: var(--space-s); }
.site-footer__reg dt { font-weight: 600; color: var(--text-secondary); }
.site-footer__reg dt::after { content: ":"; }
.site-footer__reg dd { margin: 0; font-variant-numeric: tabular-nums; }

.site-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s);
  padding-block: var(--space-m);
  position: relative;
  font: 400 var(--font-caption)/1.5 var(--font-footer);
}
.site-footer__main::before, .site-footer__reg::before, .site-footer__bar::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--glass-edge); }
.site-footer__bar strong { font-weight: 600; }

/* ---------- Home sections ---------- */
.section-head { max-width: 920px; margin-bottom: calc(var(--space-xxl) * 1.5); }
.home-heading-gradient {
  background: linear-gradient(90deg, var(--pink-500), var(--purple-500) 50%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p:last-child { margin-bottom: 0; }
.lead { max-width: 60ch; color: var(--text-secondary); font-size: 19px; line-height: 1.6; }
.note { margin: var(--space-xl) 0 0; color: var(--text-muted); font-size: var(--font-body-lg); }
.tile .note { color: var(--text-secondary); } /* text-muted on the light corner of a card is 4.2:1, below AA */
.trust-strip + .section[hidden] + .section[hidden] + .section.about {
  padding-top: var(--space-section);
}

.section.capabilities + .section.technical-data {
  padding-top: var(--space-section);
}

.split { display: grid; gap: var(--space-xxl); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } }
.split > .section-head { margin-bottom: 0; } /* the split gap already separates it */

/* PC -> driver -> VCI -> vehicle chain */
.chain { display: grid; gap: var(--space-l); margin: 0; padding: 0; list-style: none; }
.chain li { position: relative; display: flex; align-items: center; gap: var(--space-l); }
.chain li + li::before {
  content: ""; position: absolute; left: 27px; top: calc(var(--space-l) * -1); height: var(--space-l);
  border-left: 2px solid var(--divider-accent);
}
.chain .tile { flex: 1; padding: var(--space-m) var(--space-l); }
.chain .tile strong { display: block; font-weight: 500; }
.chain .tile span { color: var(--text-secondary); font-size: var(--font-body-lg); }
.chain__icon {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px;
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 1.5);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine); color: var(--accent);
}
.chain li.is-hero .chain__icon { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 24px -4px var(--glow-accent); }
.chain li.is-hero .tile { border-color: var(--glass-edge-hover); }

/* Benefits: one glass strip split by hairlines, not three boxed cards */
.features {
  display: grid; margin: calc(var(--space-xxl) * 2) 0 0; padding: 0; list-style: none;
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 48px -24px var(--shadow-tint);
}
.features li { padding: var(--space-xl); }
.features li + li { border-top: 1px solid var(--glass-edge); }
.features--flush { margin-top: 0; }
.features h3 { margin: 0 0 var(--space-s); font-size: 20px; font-weight: var(--font-weight-heading); }
.features p { margin: 0; color: var(--text-secondary); }
@media (min-width: 900px) {
  .features { grid-auto-flow: column; grid-auto-columns: 1fr; }
  /* 5+ items: rows of three instead of thin slivers */
  .features:has(> li:nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .features:has(> li:nth-child(5)) > li:nth-child(3n + 1) { border-left: 0; }
  .features:has(> li:nth-child(5)) > li:nth-child(n + 4) { border-top: 1px solid var(--glass-edge); }
  .features li { padding: var(--space-xxl); }
  .features li + li { border-top: 0; border-left: 1px solid var(--glass-edge); }
}

/* Numbered steps: a timeline, no boxes */
.steps { counter-reset: step; display: grid; gap: var(--space-xxl); margin: 0; padding: 0; list-style: none; }
.steps > li { counter-increment: step; position: relative; display: flex; flex-direction: column; padding-top: var(--space-xl); border-top: 1px solid var(--glass-edge); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  margin-bottom: var(--space-l);
  color: var(--accent); font-size: var(--font-display-s); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums;
}
.steps > li::after { /* node on the timeline */
  content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--glow-accent);
}
.steps .tile__title { margin-bottom: var(--space-s); }
.steps p { margin-bottom: var(--space-l); color: var(--text-secondary); }
.steps .product__more { margin-top: auto; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }

/* Product captions (coverflow) */
.product__maker { margin: 0; color: var(--text-muted); font-size: var(--font-caption); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking); }
.product__more { color: var(--accent); text-decoration: none; font-size: var(--font-body-lg); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking); }
.product__more_oem { color: #ea1268; text-decoration: underline; font-size: var(--font-body-lg); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking); }
/* Coverflow (js/coverflow.js). Without JS: a plain scrollable row with all captions. */
.coverflow { --cf-card: clamp(180px, 22vw, 260px); display: grid; gap: var(--space-l); }
.coverflow__frame { overflow-x: auto; outline: none; border-radius: var(--radius-card); }
.coverflow__frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coverflow__stage { display: flex; gap: var(--space-l); }
.coverflow__card {
  flex: none; width: var(--cf-card); aspect-ratio: 1;
  display: grid; place-items: center; padding: var(--space-l);
  border: 2px solid transparent; border-radius: calc(var(--radius-card) * 1.5);
  background: linear-gradient(var(--surface-photo-dim) 0 0) padding-box, linear-gradient(var(--glass-edge) 0 0) border-box;
  box-shadow: 0 24px 48px -16px var(--shadow-tint);
  transition: background .2s;
}
.coverflow__card img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.coverflow__card.is-active {
  background: linear-gradient(var(--surface-photo-dim) 0 0) padding-box, var(--border-hero) border-box;
  box-shadow: 0 24px 48px -16px var(--shadow-tint), 0 0 48px -8px var(--glow-accent);
}
/* Selected card: spinning brand-gradient border, same as SpinningBorder on buttons */
.coverflow__card::after {
  content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: inherit;
  background: var(--border-spin);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.coverflow__card { position: relative; }
.coverflow__card.is-active::after { opacity: 1; animation: spin 6s linear infinite; }
.coverflow__captions { display: grid; }
.coverflow__caption { display: grid; justify-items: center; gap: var(--space-s); text-align: center; }
.coverflow__caption > * { margin: 0; }
.coverflow__caption p:not(.product__maker) { max-width: 520px; color: var(--text-secondary); font-size: var(--font-body-lg); }
.coverflow__dots { display: flex; justify-content: center; gap: var(--space-xs); }
.coverflow__dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.coverflow__dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--border-field); transition: background-color .2s, border-color .2s;
}
.coverflow__dots button:hover::before { border-color: var(--accent); }
.coverflow__dots button[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); }

.coverflow.is-ready .coverflow__frame {
  overflow: hidden; padding-block: calc(var(--space-xxl) + var(--space-s));
  perspective: calc(var(--cf-card) * 3);
  touch-action: pan-y; cursor: grab;
}
.coverflow.is-ready .coverflow__frame:active { cursor: grabbing; }
.coverflow.is-ready .coverflow__stage { position: relative; display: block; height: var(--cf-h, var(--cf-card)); transform-style: preserve-3d; user-select: none; }
.coverflow.is-ready .coverflow__card { position: absolute; left: 50%; top: 0; will-change: transform; cursor: pointer; }
.coverflow.is-ready .coverflow__caption { grid-area: 1 / 1; } /* stacked, so the height does not jump */
.coverflow.is-ready .coverflow__caption[hidden] { display: grid; visibility: hidden; }

/* App screenshots (16:9, dark): same coverflow, wider cards, no white photo plate */
.coverflow--screens { --cf-card: clamp(260px, 48vw, 600px); --cf-h: calc(var(--cf-card) * 9 / 16); }
.coverflow--screens .coverflow__card {
  aspect-ratio: 16 / 9; padding: var(--space-l); text-align: center;
  background: linear-gradient(var(--surface-window) 0 0) padding-box, linear-gradient(var(--glass-edge) 0 0) border-box;
}
.coverflow--screens .coverflow__card.is-active { background: linear-gradient(var(--surface-window) 0 0) padding-box, var(--border-hero) border-box; }
.coverflow--screens .coverflow__card:has(img) { padding: 0; }
.coverflow--screens .coverflow__card img { object-fit: cover; border-radius: calc(var(--radius-card) * 1.25) calc(var(--radius-card) * 1.25) calc(var(--radius-card) * 1.25) 0; mix-blend-mode: normal; }
.app-tiles { margin: var(--space-xxl) 0 0; padding: 0; list-style: none; }

/* Works with: OEM application names only, no logos (D5) */
.works-with { display: flex; flex-wrap: wrap; gap: var(--space-m); margin: 0; padding: 0; list-style: none; }
.works-with li {
  padding: var(--space-s) var(--space-l);
  border: 1px solid var(--glass-edge); border-radius: var(--radius-card);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  font-size: var(--font-title); font-weight: 500;
}




/* Text column next to a picture: list on top, link under it */
.stack { display: grid; gap: var(--space-xl); justify-items: start; }
.stack > .features { justify-self: stretch; margin: 0; }
@media (min-width: 900px) {
  .split--media { grid-template-columns: 1fr 1.4fr; }
  .features--stack { grid-auto-flow: row; }
  .features--stack li { padding: var(--space-xl); }
  .features--stack li + li { border-left: 0; border-top: 1px solid var(--glass-edge); }
}

/* Photo with numbered markers; the legend repeats the numbers (markers are decorative) */

/* External link tiles (OEM portals) */
.link-tile { display: flex; flex-direction: column; gap: var(--space-xs); }
.link-tile strong { font-size: var(--font-title); font-weight: 500; }
.link-tile span { color: var(--text-secondary); font-size: var(--font-body-lg); }
.link-tile .link-tile__host { margin-top: auto; padding-top: var(--space-s); color: var(--accent); font-size: var(--font-body); overflow-wrap: anywhere; }
/* Manufacturer portals: one glass panel with link rows */
.portal-list {
  display: grid; margin: 0; padding: var(--space-s); list-style: none;
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
@media (min-width: 900px) { .portal-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-s); } }
.portal-list__row {
  display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-l); align-items: baseline;
  padding: var(--space-m) var(--space-l); border-radius: var(--radius-card);
  color: var(--text-primary); text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.portal-list__row:hover, .portal-list__row:focus-visible { background: var(--action-tint); }
.portal-list__row strong { font-weight: 500; }
.portal-list__row > span:not(.portal-list__host) { grid-column: 1; color: var(--text-secondary); font-size: var(--font-body-lg); }
.portal-list__host { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: var(--font-body); }
.portal-list__host::after { content: " ↗"; }
@media (max-width: 599px) { .portal-list__host { grid-column: 1; grid-row: auto; } }
.group-title { margin: var(--space-xxl) 0 var(--space-l); color: var(--text-secondary); font-size: var(--font-body-lg); font-weight: var(--font-weight-heading); text-transform: uppercase; letter-spacing: var(--tracking); }

/* Contact */
.contact { display: grid; gap: var(--space-xxl); }
.company-contact { display: grid; align-content: start; gap: var(--space-xxl); min-width: 0; }
.company-contact h2, .company-contact h3, .company-contact p { margin: 0; }
.company-contact__group { display: grid; gap: var(--space-s); padding-top: var(--space-xl); border-top: 1px solid var(--divider); }
.company-contact__group h3 { margin-bottom: var(--space-s); font-size: var(--font-title); color: var(--text-secondary); }
.company-contact__group a { width: fit-content; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.company-contact__group a:hover { color: var(--accent); }
.company-contact__group { position: relative; padding-left: calc(var(--space-xxl) + var(--space-l)); }
.company-contact__icon { position: absolute; left: 0; top: var(--space-xl); color: var(--accent); width: var(--space-xl); height: var(--space-xl); }
.company-contact__teams { display: grid; place-items: center; border: 1px solid var(--accent); border-radius: var(--radius-card); font-size: var(--font-title); font-weight: 600; }
.company-contact__vat { display: inline-block; margin-top: var(--space-l); color: var(--text-primary); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.4fr; } }
.contact address { font-style: normal; line-height: 1.8; }
.contact address a { color: var(--text-primary); }
.form { display: grid; gap: var(--space-l); }
.form__row { display: grid; gap: var(--space-l); }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { margin: 0; }
/* Heading with an action on the right */
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); margin-bottom: calc(var(--space-xxl) * 1.5); }
.section-head--row .section-head { margin-bottom: 0; }

/* Closing CTA panel */
.cta-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl);
  padding: clamp(var(--space-xl), 5vw, calc(var(--space-xxl) * 2));
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2.5);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--action-tint), transparent 70%),
    var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 80px -30px var(--shadow-tint);
}
.cta-panel h2 { margin-bottom: var(--space-s); }
.cta-panel > h2:only-of-type { margin: 0; }
.cta-panel .lead { margin: 0; }
@media (max-width: 599px) { .cta-panel .btn-row > .btn { flex: 1 1 100%; } }
.cta-panel .btn[href^="mailto:"] { text-transform: none; letter-spacing: .01em; } /* an e-mail address is not a label */

/* ---------- Product page template ---------- */
.breadcrumb { margin: 0; padding: var(--space-xl) 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-s); color: var(--text-muted); font-size: var(--font-body-lg); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-s); color: var(--text-faint); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.page-head { padding-top: var(--space-xxl); }
.page-head .section-head { margin-bottom: 0; }
.page-head + .section { padding-top: calc(var(--space-xxl) * 1.75); }

.product-hero { display: grid; gap: var(--space-xxl); align-items: center; padding-block: var(--space-xxl) var(--space-section); }
@media (min-width: 900px) { .product-hero { grid-template-columns: 1fr 1.2fr; } }
.product-hero__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: var(--space-xl);
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2);
  background: var(--surface-photo-dim);
  box-shadow: 0 32px 64px -28px var(--shadow-tint);
}
.product-hero__photo img { width: 100%; height: 100%; object-fit: contain; }
.product-hero__photo:not(.product-hero__photo--dark) img, .coverflow__card img { mix-blend-mode: multiply; }
.product-hero__photo:not(.product-hero__photo--dark) .product-img { filter: none; } /* glow is for the cut-out ELP5 photo only */
.product-hero__photo--dark { position: relative; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.product-hero h1 { margin-bottom: var(--space-s); }
.product-hero .lead { margin-bottom: var(--space-xl); }
.product-hero .btn-row { margin-top: var(--space-xl); }
.product-hero .slogan { margin: var(--space-xl) 0 0; }
.product-hero + .section { padding-top: calc(var(--space-xxl) * 1.5); }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-s); }
.list li { position: relative; padding-left: var(--space-l); color: var(--text-secondary); font-size: var(--font-body-lg); }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--accent); }
.list li strong { color: var(--text-primary); font-weight: 500; }
.tile > h3, .tile > h2.tile__title { margin: 0 0 var(--space-l); }
.tile > p + .list { margin-top: var(--space-l); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tile-column { display: grid; gap: var(--space-xl); align-content: start; } /* tiles stacked in one grid cell */
@media (min-width: 600px) { .list--cols { grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }
.spec--table { row-gap: 0; }
.spec--table dt, .spec--table dd { padding: var(--space-s) 0; border-bottom: 1px solid var(--divider); }

/* ---------- Stage 5 pages ---------- */
/* Form result: contact.php redirects to #contact-sent / #contact-error, no JS needed */
.form-status { display: none; gap: var(--space-s); align-items: flex-start; padding: var(--space-m) var(--space-l); border-radius: var(--radius-card); border: 1px solid var(--status-success); color: var(--text-primary); }
.form-status .icon { color: var(--status-success); width: 20px; height: 20px; }
.form-status--error { border-color: var(--status-danger); }
.form-status--error .icon { color: var(--status-danger-text); }
.form-status:target { display: flex; }

/* CopyButton */
.hash { display: flex; align-items: center; gap: var(--space-s); flex-wrap: wrap; }
.hash code { font: 500 var(--font-body)/1.4 var(--font-main); color: var(--text-control); overflow-wrap: anywhere; user-select: all; }
.copy-btn { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); border: 1px solid var(--glass-edge); border-radius: var(--radius-small); background: var(--glass); color: var(--text-secondary); font: 500 var(--font-body) var(--font-main); cursor: pointer; }
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-field); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn__done { display: none; color: var(--status-success); }
.copy-btn.is-copied .copy-btn__label { display: none; }
.copy-btn.is-copied .copy-btn__done { display: inline; }
.release__version { color: var(--accent); }
[data-release] > * + *, [data-ready] > * + *, [data-soon] > * + * { margin-top: var(--space-l); }
[data-notes-block] .tile__title { margin-bottom: var(--space-s); }

/* Support: installation step by step (number | text | screenshot) and in-page links */
.page-toc { margin-top: var(--space-xl); }
.install-steps { counter-reset: step; display: grid; margin: 0; padding: 0; list-style: none; }
.install-steps > li {
  counter-increment: step; display: grid; gap: var(--space-l) var(--space-xxl); align-items: start;
  padding-block: var(--space-xxl); border-top: 1px solid var(--glass-edge);
}
.install-steps > li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent); font-size: var(--font-display-s); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums;
}
.install-steps .tile__title { margin-bottom: var(--space-s); }
.install-steps p { margin-bottom: var(--space-l); color: var(--text-secondary); }
@media (min-width: 900px) { .install-steps > li { grid-template-columns: calc(var(--space-xxl) * 2.5) 1fr 1fr; } }
.shot {
  display: grid; place-items: center; aspect-ratio: 16 / 9; padding: var(--space-l); text-align: center;
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 1.5); background: var(--surface-window);
}
.shot:has(img) { padding: 0; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--icon img { width: auto; height: auto; border-radius: var(--radius-card); } /* small desktop-icon crop: native size, centred */

/* FAQ */
.faq { display: grid; gap: var(--space-m); max-width: 860px; }
.faq details { border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 1.5); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 var(--glass-shine); }
.faq summary { padding: var(--space-l) var(--space-xl); cursor: pointer; font-size: var(--font-title); font-weight: var(--font-weight-heading); list-style: none; display: flex; justify-content: space-between; gap: var(--space-l); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary {
  border-radius: inherit;
  transition: background-color var(--motion-ui-duration, 220ms) var(--ease-out), color var(--motion-ui-duration, 220ms) var(--ease-out);
}
.faq summary:focus-visible {
  background: var(--action-tint);
  color: var(--text-primary);
}
@media (hover: hover) {
  .faq summary:hover {
    background: var(--action-tint);
    color: var(--text-primary);
  }
  .faq details:has(> summary:hover) { border-color: var(--accent); }
}
.faq summary::after { content: "+"; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 var(--space-xl) var(--space-l); color: var(--text-secondary); }
.faq details > div p:last-child { margin-bottom: 0; }

/* About counters */
.stats { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; }
.stats div { display: grid; align-content: start; gap: var(--space-xs); }
.stats dd { order: -1; } /* number above its label, numbers aligned even when a label wraps */
@media (min-width: 600px) { .stats--row { grid-template-columns: repeat(3, 1fr); } .stats--row dd { font-size: var(--font-display-s); } }
.stats dt { color: var(--text-secondary); font-size: var(--font-body-lg); text-transform: uppercase; letter-spacing: var(--tracking); }
.stats dd { margin: 0; color: var(--accent); font-size: var(--font-display-l); font-weight: 600; line-height: 1;  font-variant-numeric: tabular-nums; }

/* Legal text */
.prose {
  max-width: 880px; padding: clamp(var(--space-xl), 4vw, calc(var(--space-xxl) * 1.5));
  border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  color: var(--text-secondary);
}
.prose > p:first-child { color: var(--text-primary); }
.prose ol { counter-reset: clause; margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
.prose ol > li { counter-increment: clause; position: relative; padding: var(--space-m) 0 var(--space-m) calc(var(--space-xxl) + var(--space-m)); border-top: 1px solid var(--glass-edge); }
.prose ol > li::before {
  content: counter(clause, decimal-leading-zero); position: absolute; left: 0; top: var(--space-m);
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}
.prose li > ul { margin: var(--space-s) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.prose li > ul > li { position: relative; padding-left: var(--space-l); }
.prose li > ul > li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; background: var(--accent); }
.prose h2 { margin: calc(var(--space-xxl) * 1.5) 0 var(--space-m); color: var(--text-primary); font-size: var(--font-display-s); }

/* Map card (static, no iframe) */
.map-card { display: grid; gap: var(--space-m); align-content: start; }
.map { position: relative; overflow: hidden; margin-bottom: var(--space-s); border: 1px solid var(--glass-edge); border-radius: var(--radius-card); }
.map:hover { border-color: var(--glass-edge-hover); }
.map__static { display: block; }
.map iframe { display: block; width: 100%; aspect-ratio: 1407 / 932; border: 0; }
.map.is-live + .map__credit { display: none; } /* Google shows its own attribution */
.map__load {
  position: absolute; left: var(--space-m); right: var(--space-m); bottom: var(--space-m);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l);
  padding: var(--space-m) var(--space-l); border: 1px solid var(--glass-edge); border-radius: var(--radius-card);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.map__load p { margin: 0; color: var(--text-secondary); font-size: var(--font-caption); }
.map img { display: block; width: 100%; height: auto; filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.7); } /* light OSM tiles turned dark */
/* Pin over the building: the export (mapa.webp) is centred on it, ElproSys label at 49.5% / 51% */
.map__pin {
  position: absolute; left: 49.5%; top: 51%; width: 28px; height: 28px; translate: -50% -100%;
  border-radius: 50% 50% 50% 0; rotate: -45deg; transform-origin: 50% 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--glass-strong), 0 0 24px var(--glow-accent);
}
.map__pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-window); }
.map__credit { margin: 0 0 var(--space-m); color: var(--text-muted); font-size: var(--font-caption); }
.map__credit a { color: var(--text-secondary); }

/* Text-style button (opens the consent dialog from links and notes) */
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer__main .link-button { color: var(--text-secondary); text-decoration: none; }
.site-footer__main .link-button:hover { color: var(--accent); text-decoration: underline; }

/* Consent dialog + badge (js/consent.js) */
.icon-cookie { --icon: url("../assets/icons/cookie.svg"); }
.consent {
  position: fixed; left: var(--space-l); bottom: var(--space-l); z-index: 70;
  width: min(420px, calc(100vw - 2 * var(--space-l))); max-height: calc(100svh - 2 * var(--space-l)); overflow-y: auto;
  padding: var(--space-xl); border: 1px solid var(--glass-edge); border-radius: calc(var(--radius-card) * 2);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 48px -16px var(--shadow-tint);
}
.consent__title { margin: 0 0 var(--space-m); font-size: var(--font-title); }
.consent p { margin: 0 0 var(--space-l); color: var(--text-secondary); font-size: var(--font-body-lg); }
.consent__opt {
  display: flex; gap: var(--space-m); align-items: flex-start; padding-block: var(--space-m);
  border-top: 1px solid var(--glass-edge); color: var(--text-secondary); font-size: var(--font-body-lg); cursor: pointer;
}
.consent__opt strong { display: block; color: var(--text-primary); font-weight: 600; }
.consent .btn-row { margin-top: var(--space-l); }
.consent .btn-row--fill > .btn { flex: 1 1 auto; padding-inline: var(--space-m); white-space: nowrap; letter-spacing: .04em; }
.switch {
  appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 2px 0 0;
  border: 1px solid var(--glass-edge); border-radius: var(--radius-pill); background: var(--glass-hover); cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-primary); transition: translate .2s var(--ease-out); }
.switch:checked { background: var(--accent); }
.switch:checked::before { translate: 18px 0; }
.switch:disabled { opacity: .55; cursor: default; }
.consent-badge {
  position: fixed; left: var(--space-l); bottom: var(--space-l); z-index: 40;
  display: flex; align-items: center; height: 44px; padding: 0 9px;
  border: 1px solid var(--glass-edge); border-radius: var(--radius-pill);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--accent); cursor: pointer; box-shadow: inset 0 1px 0 var(--glass-shine);
}
.consent-badge[hidden] { display: none; }
.consent-badge__text {
  max-width: 0; overflow: hidden; white-space: nowrap; color: var(--text-primary);
  font: 600 var(--font-caption)/1 var(--font-main); text-transform: uppercase; letter-spacing: var(--tracking);
  transition: max-width .3s var(--ease-out), margin .3s var(--ease-out);
}
.consent-badge:hover .consent-badge__text, .consent-badge:focus-visible .consent-badge__text { max-width: 200px; margin-inline: var(--space-s) var(--space-xs); }

/* Entrance: subtle fade/slide once (JS adds .reveal-on) */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-on .reveal--left { transform: translateX(-32px); }
.reveal-on .reveal--right { transform: translateX(32px); }
.reveal-on .reveal--scale { transform: translateY(32px) scale(.96); }
.install-steps { overflow-x: clip; } /* the slide-ins start outside the column */

/* Lists: children rise one after another. Animation, not transition, so hover transitions keep no delay */
.reveal-on [data-stagger]:not(.is-visible) > * { opacity: 0; }
.reveal-on [data-stagger].is-visible > * { animation: rise .6s var(--ease-out) calc(var(--i, 0) * 80ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Technical drawing (ELP5 page) */
.drawing { display: grid; gap: var(--space-xxl); align-items: center; margin: 0; }
@media (min-width: 600px) { .drawing { grid-template-columns: minmax(0, 300px) 1fr; } }
.drawing__img { position: relative; width: min(100%, 300px); justify-self: center; }
.drawing__img img { display: block; width: 100%; height: auto; filter: invert(1); opacity: .85; } /* dark lines on transparent -> light */
.drawing .group-title { margin: 0 0 var(--space-l); }
/* Scan: revealed top to bottom, an accent line rides the edge */
.reveal-on .reveal--scan { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.8s ease-in-out; }
.reveal-on .reveal--scan.is-visible { clip-path: inset(0); }
.reveal--scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--glow-accent); opacity: 0; }
.reveal-on .reveal--scan.is-visible::after { animation: scan-move 1.8s ease-in-out forwards, scan-fade .4s 1.6s forwards; }
@keyframes scan-move { from { top: 0; opacity: 1; } to { top: calc(100% - 2px); opacity: 1; } }
@keyframes scan-fade { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Motion ---------- */
/* Reduced motion: everything stops except the one-off entrance animations (js/site.js); ?motion lifts it all (review) */
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-forced) *:not(.reveal, [data-stagger] > *),
  :root:not(.motion-forced) *::before,
  :root:not(.motion-forced) *:not(.reveal--scan)::after { animation: none !important; transition: none !important; }
}

/* Device "Details": cards in balanced columns (no holes); on phones each card folds (js/site.js) */
.masonry { columns: 2 380px; column-gap: var(--space-xl); }
.masonry > * { break-inside: avoid; margin-bottom: var(--space-xl); }
.fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-l); }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { margin-bottom: var(--space-l); }
@media (min-width: 768px) { .fold > summary { pointer-events: none; } }
@media (max-width: 767px) {
  .fold > summary { cursor: pointer; }
  .fold > summary::after { content: "+"; color: var(--accent); font-weight: 600; font-size: var(--font-title); }
  .fold[open] > summary::after { content: "\2212"; }
}

/* ---------- Homepage refinements ---------- */
/* Tabs: author styles must not override the native hidden state. */
#specs .spec-content[hidden] {
  display: none !important;
}

/* The Interfaces tab contains two cards, so both fill the available width. */
#panel-hardware {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Lighter visual hierarchy for the descriptions in Getting started. */
#getting-started .steps > li > p {
  font-size: 0.9rem !important;
  line-height: 1.5;
}

/* Subtle device-head pattern in selected sections. */
#specs .specs-panel,
#getting-started {
  position: relative;
  isolation: isolate;
}

#specs .specs-panel::before,
#getting-started::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/images/bg5.png") right center / cover no-repeat;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}

#specs .specs-panel::before {
  border-radius: inherit;
}

#specs .specs-panel > *,
#getting-started > * {
  position: relative;
  z-index: 1;
}



/* ELP PASS-THRU LINK — ASYMMETRIC CORNERS */

:root {
  --radius-panel-ui: 12px 12px 12px 0;
  --radius-button-ui: 8px 8px 8px 0;
}

/* Cards and panels */
.capability-card,
.explore-card,
.tile,
.mode-explorer,
.mode-tab,
.specs-panel,
.card-hero,
.hero-card,
.cta-panel,
.prose,
.faq details,
.portal-list,
.coverflow__card,
.product-hero__photo {
  border-radius: var(--radius-panel-ui);
}

/* Buttons */
.btn,
.nav-toggle,
.copy-btn,
.nav li > a,
.consent .btn {
  border-radius: var(--radius-button-ui);
}

/* Form fields */
.input,
select.input,
textarea.input {
  border-radius: var(--radius-button-ui);
}


/* ==========================================
   APP TILES — SAME STYLE AS CAPABILITY CARDS
   ========================================== */

/* Four equal cards */
.capability-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-xxl);
  padding: 0;
  list-style: none;
}

/* Same card appearance */
.capability-grid--four .capability-card {
  min-width: 0;
  min-height: 200px;
  border-radius: 12px 12px 12px 0;
}

/* Icon placement and size */
.capability-grid--four .icon-frame {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  margin: 0;
}

/* SVG mask icons */
.capability-grid--four .icon-frame .icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--accent);
  transition: filter .25s, transform .25s;
}

/* Headings */
.capability-grid--four .capability-card h3 {
  margin: 14px 0 12px;
  padding-right: 50px;
  font-size: var(--font-title);
  font-weight: var(--font-weight-heading);
  line-height: 1.3;
}

/* Descriptions */
.capability-grid--four .capability-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-body-lg);
  line-height: 1.7;
}

/* Hover — same as other cards */
@media (hover: hover) {
  .capability-grid--four .capability-card:hover .icon {
    filter: drop-shadow(0 0 5px var(--glow-accent));
    transform: scale(1.03);
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .capability-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 599px) {
  .capability-grid--four {
    grid-template-columns: 1fr;
  }

  .capability-grid--four .capability-card {
    min-height: 0;
  }
}



/* =========================================
   SOFTWARE SECTION — HEADER
   ========================================= */

.app-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  width: 100%;
}

/* Left column */
.app-section-header .section-head {
  max-width: 850px;
  margin: 0;
}

.app-section-header .about-heading {
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.01;

  margin-bottom: 28px;
}

.app-section-header .eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
}

.app-section-header .lead {
  max-width: 650px;
  margin-bottom: 0;
}

/* Right column — logo and button */
.app-section-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  gap: 32px;
  width: 100%;
  max-width: 390px;
}

.app-section-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.app-section-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--glow-accent));
  margin-bottom: 20px;
}

/* Download button */
.app-section-actions .btn {
  width: 100%;
  max-width: 390px;
  justify-content: center;
  text-align: center;
  border-radius: 8px 0px 8px 0px;
}

/* Tablet and mobile */
@media (max-width: 820px) {
  .app-section-header {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-section-actions {
    justify-self: center;
    max-width: 390px;
  }

  .app-section-logo img {
    max-width: 210px;
  }
}

@media (max-width: 520px) {
  .app-section-header .about-heading {
    font-size: clamp(34px, 9vw, 48px);
  }

  .app-section-actions {
    gap: 24px;
  }

  .app-section-actions .btn {
    font-size: 12px;
    padding-inline: 12px;
  }
}


/* CAPABILITIES — larger product image */

.capabilities .capabilities-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: center;
}

.capabilities-hero__image {
  position: relative;
  width: 125%;
  max-width: none;
  justify-self: start;
  overflow: visible;
  transform: translateX(-15px);
}

.capabilities-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  /* Remove previous fading effect */
  -webkit-mask-image: none;
  mask-image: none;
}

/* Tablet */
@media (max-width: 900px) {
  .capabilities .capabilities-hero {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .capabilities-hero__image {
    width: 100%;
    max-width: 650px;
    transform: none;
    justify-self: center;
  }
}


/* Animated capabilities strip */

.trust-strip {
  position: relative;
  overflow: hidden;
}

/* Pulsating cyan dots */
.trust-strip i {
  animation: trustDotPulse 2.5s ease-in-out infinite;
}

.trust-strip i:nth-of-type(2) {
  animation-delay: .5s;
}

.trust-strip i:nth-of-type(3) {
  animation-delay: 1s;
}

.trust-strip i:nth-of-type(4) {
  animation-delay: 1.5s;
}

/* Moving light along bottom edge */
.trust-strip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 25%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  box-shadow: 0 0 10px var(--glow-accent);
  animation: trustLightSweep 7s linear infinite;
  pointer-events: none;
}

@keyframes trustDotPulse {
  0%, 100% {
    opacity: .35;
    transform: scale(.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@keyframes trustLightSweep {
  to {
    left: 110%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .trust-strip i,
  .trust-strip::after {
    animation: none;
  }
}



/* SPEC TABS — THREE CATEGORIES */

.spec-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec-tab:nth-child(2) {
  border-right: 1px solid var(--glass-edge);
}

/* Tablet */
@media (max-width: 820px) {
  .spec-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spec-tab:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Mobile */
@media (max-width: 599px) {
  .spec-tabs {
    grid-template-columns: 1fr;
  }

  .spec-tab {
    border-right: 0;
    border-bottom: 1px solid var(--glass-edge);
  }

  .spec-tab:last-child {
    border-bottom: 0;
  }
}


/* INTERFACES — only 2 columns */

#specContent[aria-labelledby="spec-tab-hardware"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Other tabs remain unchanged */
#specContent[aria-labelledby="spec-tab-host"],
#specContent[aria-labelledby="spec-tab-protocols"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Mobile */
@media (max-width: 820px) {
  #specContent[aria-labelledby="spec-tab-hardware"],
  #specContent[aria-labelledby="spec-tab-host"],
  #specContent[aria-labelledby="spec-tab-protocols"] {
    grid-template-columns: 1fr;
  }
}


/* Shared motion: content stays visible until the optional entrance runs. */
:root {
  --motion-entry-duration: 550ms;
  --motion-ui-duration: 220ms;
  --motion-entry-distance: var(--space-l);
}
.reveal, .reveal-on .reveal,
.reveal-on [data-stagger]:not(.is-visible) > * {
  opacity: 1;
  transform: none;
  translate: none;
}
.motion-entry.motion-entered:not([data-stagger]) {
  animation: shared-content-enter var(--motion-entry-duration) var(--ease-out) both;
}
[data-stagger].motion-entered > * {
  animation: shared-content-enter var(--motion-entry-duration) var(--ease-out) var(--entry-delay, 0ms) both;
}
@keyframes shared-content-enter {
  from { opacity: 0; translate: 0 var(--motion-entry-distance); }
  to { opacity: 1; translate: 0 0; }
}
.faq summary::after {
  transition: transform var(--motion-ui-duration) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] > div { animation: shared-content-enter var(--motion-ui-duration) var(--ease-out); }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--motion-ui-duration) var(--ease-out), content-visibility var(--motion-ui-duration) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (hover: hover) {
  .link-tile, .explore-card, .portal-list__row {
    transition: border-color var(--motion-ui-duration), background-color var(--motion-ui-duration), box-shadow var(--motion-ui-duration);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-on .reveal, .motion-entry { opacity: 1 !important; transform: none !important; translate: none !important; clip-path: none !important; }
}

/* SUPPORT & CONTACT — subtle product texture */

.utility-page main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.utility-page main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: clamp(520px, 62vw, 820px);
  pointer-events: none;
  background: url("/assets/images/bg5.png") right center / cover no-repeat;
  opacity: .20;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
}

.utility-page main > * {
  position: relative;
  z-index: 1;
}

.support-page main { overflow: clip; }
.support-page main > .product-subnav {
  position: sticky;
  z-index: 8;
}
.support-page main > section[id] {
  scroll-margin-top: calc(var(--header-h) + 80px);
}

.contact-page .form .btn-row--end .btn[type="submit"] {
  min-width: 180px;
  justify-content: center;
}

@media (max-width: 720px) {
  .utility-page main::before {
    height: 560px;
    background-position: 68% center;
    opacity: .20;
  }
}


/* Shared heading weight, matching the ELP5 PRO-VCI product page. */
:root { --font-weight-heading: 650; }
h4, h5, h6, [role="heading"] { font-weight: var(--font-weight-heading); }

/* Language selection temporarily unavailable; English pages remain the public navigation. */
.site-header__bar .lang { display: none; }
@media (max-width: 1023px) { .site-header__bar .nav-toggle { margin-left: auto; } }

/* Shared section rhythm for subpages; the homepage retains its spacious layout. */
.product-page { --subpage-section-space: calc(var(--space-xxl) * 2); }
.product-page main > :is(.section, .product-section):not(.about-functions) { padding-block: var(--subpage-section-space); }
.product-page main > .product-cta { padding-top: calc(var(--space-xxl) * 1.5); padding-bottom: var(--subpage-section-space); }
@media (max-width: 820px) { .product-page { --subpage-section-space: calc(var(--space-xxl) * 1.5); } }

/* English subpage heading scale; homepage and Polish pages keep their existing styles. */
html[lang="en"] body.product-page {
 --subpage-h1: clamp(40px, 4.8vw, 62px);
 --subpage-h2: clamp(30px, 3.6vw, 48px);
 --subpage-h3: 20px;
 --subpage-heading-small: 24px;
}
html[lang="en"] body.product-page #main h1 { font-size: var(--subpage-h1); font-weight: var(--font-weight-heading); line-height: 1.2; }
html[lang="en"] body.product-page #main h2 { font-size: var(--subpage-h2); font-weight: var(--font-weight-heading); line-height: 1.2; }
html[lang="en"] body.product-page #main h3 { font-size: var(--subpage-h3); font-weight: var(--font-weight-heading); line-height: 1.35; }
html[lang="en"] body.product-page #main .drawing-copy h2 { white-space: normal; }
/* Headings inside a document or compact invitation use the same secondary scale. */
html[lang="en"] body.product-page #main .legal-section h2,
html[lang="en"] body.product-page #main .contact-form-heading h2,
html[lang="en"] body.product-page #main .about-shop h2 { font-size: var(--subpage-heading-small); line-height: 1.35; }

/* Homepage: the requested brick backdrop behind the introduction and specifications. */
body:not(.product-page) #about,
body:not(.product-page) #specs { position: relative; isolation: isolate; }
body:not(.product-page) #about::before,
body:not(.product-page) #specs::before {
 content: ""; position: absolute; inset: 0; width: auto; height: auto; z-index: -1; pointer-events: none;
 background: url("../assets/images/bg5.png") right center / min(960px, 100vw) auto no-repeat;
 opacity: .5;
 -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
 mask-image: linear-gradient(90deg, transparent, #000 65%);
}

/* Keep the homepage schematic edge clean, without an external dark shadow. */
body:not(.product-page) .mode-explorer { box-shadow: inset 0 1px 0 var(--glass-shine); }

/* Homepage carousel: full-size screenshots and optional automatic rotation. */
.coverflow--zoomable .coverflow__card.is-active { cursor: zoom-in; }
.coverflow__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-m); margin-top: var(--space-l); }
.coverflow-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-xxl); border: 0; background: transparent; overflow: auto; }
.coverflow-lightbox[open] { display: grid; place-items: center; }
.coverflow-lightbox::backdrop { background: rgba(4, 10, 18, .94); }
.coverflow-lightbox img { display: block; width: auto; height: auto; max-width: min(1280px, 100%); max-height: calc(100dvh - var(--space-xxl) * 2); object-fit: contain; border: 1px solid var(--border-strong); border-radius: var(--radius-card); }
.coverflow-lightbox__close { position: fixed; top: var(--space-m); right: var(--space-m); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-window); color: var(--text-primary); font: inherit; font-size: 28px; cursor: pointer; }
.coverflow-lightbox__close:hover { color: var(--accent); border-color: var(--accent); }
html.coverflow-zoom-open { overflow: hidden; }
@media (max-width: 600px) { .coverflow-lightbox { padding: var(--space-s); } .coverflow-lightbox img { max-height: calc(100dvh - 96px); } }

/* Clickable text invitations in the getting-started steps. */
.product__more, .product__more_oem {
 display: inline-block;
 transition: transform .22s var(--ease-out), filter .22s ease, text-shadow .22s ease;
 text-underline-offset: var(--space-xs);
}
.product__more:hover, .product__more_oem:hover,
.product__more:focus-visible, .product__more_oem:focus-visible {
 transform: translateX(3px);
 filter: brightness(1.25);
 text-shadow: 0 0 var(--space-m) currentColor;
}
@media (prefers-reduced-motion: reduce) {
 .product__more, .product__more_oem { transition: none; }
 .product__more:hover, .product__more_oem:hover,
 .product__more:focus-visible, .product__more_oem:focus-visible { transform: none; }
}



/* Secondary card titles: quieter than section headings and product names. */
html[lang="en"] body:not(.product-page) .app-tiles .capability-card h3,
html[lang="en"] body:not(.product-page) .steps .tile__title,
html[lang="en"] body.elp5-page #main .package-item h3,
html[lang="en"] body.software-page #main .capability-card h3,
html[lang="en"] body.software-page #main .steps .tile__title,
html[lang="en"] body.software-page #main .software-download__grid .tile__title,
html[lang="en"] body.software-page #main .coverflow__caption .tile__title {
 font-size: 18px;
 font-weight: 600;
 line-height: 1.4;
}

/* Automatically scroll all application labels on narrow screens. */
.trust-strip__track, .trust-strip__group { display: contents; }
.trust-strip__duplicate { display: none; }
@media (max-width: 820px) {
 .trust-strip { justify-content: flex-start; padding-inline: 0; overflow: hidden; }
 .trust-strip__track { display: flex; width: max-content; flex: none; animation: applications-marquee 24s linear infinite; }
 .trust-strip__group { display: flex; align-items: center; gap: 25px; padding-right: 25px; flex: none; }
 .trust-strip__group > * { flex: none; }
 .trust-strip__group i { margin: 0; }
 .trust-strip:focus-within .trust-strip__track { animation-play-state: paused; }
}
@keyframes applications-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
 .trust-strip { overflow-x: auto; padding-inline: var(--space-l); }
 .trust-strip__track { animation: none; }
 .trust-strip__duplicate { display: none; }
}

/* Mobile specification tabs: remove nested list and panel indents. */
@media (max-width: 820px) {
 #specs .spec-content { padding: 0; }
 #specs .spec-group { padding: var(--space-l); }
 #specs .spec-group ul { margin: var(--space-l) 0 0; padding-left: var(--space-l); list-style-position: outside; }
 #specs .spec-group li { padding-left: 0; }
 #specs .spec-group li + li { margin-top: var(--space-m); }
 #specs .spec-group li p { margin: 0; }
}



/* Card grids are layout containers, not indented bullet lists. */
@media (max-width: 820px) {
 .capability-grid { padding-inline: 0; margin-inline: 0; list-style: none; width: 100%; }
 .oem-overview__grid .capability-card { width: 100%; margin-inline: 0; padding: var(--space-l); }
}
