.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step-small);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
}

.hero__copy {
  padding: clamp(2rem, 6vw, 5rem) var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 36rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1rem + 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.hero__lead {
  font-size: var(--step-lead);
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero__visual img {
  width: 135%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  position: absolute;
  inset: 0 auto 0 -18%;
  mix-blend-mode: multiply;
  transform: scale(1.12);
  clip-path: inset(0 100% 0 0);
  animation: shutter 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes shutter {
  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

.page-hero {
  --page-hero-bg: url("../images/webbg001.jpg");
  --page-hero-overlay: color-mix(in srgb, var(--nav-bg) 70%, transparent);
  position: relative;
  isolation: isolate;
  padding: var(--space-6) 0 var(--space-4);
  color: #fff;
  background-color: var(--nav-bg);
  background-image: linear-gradient(var(--page-hero-overlay), var(--page-hero-overlay)), var(--page-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero h1 {
  max-width: 16ch;
  color: #fff;
}

.page-hero p {
  color: color-mix(in srgb, #fff 82%, transparent);
  font-size: var(--step-lead);
}

.page-hero .breadcrumb,
.page-hero .breadcrumb a {
  color: color-mix(in srgb, #fff 78%, transparent);
}

.page-hero .breadcrumb a:hover {
  color: #fff;
}

body[data-page="about"] .page-hero,
body[data-page="pos-all-in-one"] .page-hero,
body[data-page="partnertech-pt-8850"] .page-hero,
body[data-page="poindus-varipos-815"] .page-hero,
body[data-page="datavan-frontier-1945"] .page-hero,
body[data-page="ec-1553"] .page-hero,
body[data-page="pm-150"] .page-hero,
body[data-page="b01"] .page-hero,
body[data-page="b02"] .page-hero {
  --page-hero-bg: url("../images/webbg001.jpg");
}

body[data-page="features"] .page-hero,
body[data-page="pos-pc-display"] .page-hero,
body[data-page="lenovo-think-center"] .page-hero,
body[data-page="ec-ts-1515"] .page-hero,
body[data-page="pos-printer"] .page-hero,
body[data-page="epson-tm-88iv"] .page-hero,
body[data-page="epson-tm-u220"] .page-hero,
body[data-page="help"] .page-hero {
  --page-hero-bg: url("../images/webbg002.jpg");
}

body[data-page="clients"] .page-hero,
body[data-page="barcode-scanner"] .page-hero,
body[data-page="handheld-barcode-reader"] .page-hero,
body[data-page="omnidirectional-laser-scanner"] .page-hero,
body[data-page="omnidirectional-barcode-imager"] .page-hero,
body[data-page="cash-drawer"] .page-hero,
body[data-page="cd-100m"] .page-hero,
body[data-page="ec-g-5100"] .page-hero,
body[data-page="sitemap"] .page-hero {
  --page-hero-bg: url("../images/webbg003.jpg");
}

body[data-page="contact"] .page-hero,
body[data-page="products"] .page-hero,
body[data-page="customer-display"] .page-hero,
body[data-page="ucom-vdf-d850"] .page-hero,
body[data-page="digital-camera"] .page-hero,
body[data-page="digital-video"] .page-hero,
body[data-page="accessories"] .page-hero {
  --page-hero-bg: url("../images/webbg004.jpg");
}

.section {
  padding: var(--space-6) 0;
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--field-dark);
  color: #e7eef1;
}

.section--dark .muted {
  color: #a8b4ba;
}

.section__head {
  margin-bottom: var(--space-5);
}

.section__head p {
  color: var(--muted);
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

.icon--xl {
  width: 2.5rem;
  height: 2.5rem;
}

.feature-tile {
  min-height: 16rem;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  gap: 0.35rem;
}

.feature-tile__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  color: #fff;
}

.feature-tile__icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.feature-tile:nth-child(1) { background: #3498db; }
.feature-tile:nth-child(2) { background: #31353d; }
.feature-tile:nth-child(3) { background: #e82d00; }
.feature-tile:nth-child(4) { background: #2471a3; }

.feature-tile h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-tile p {
  margin: 0;
  color: color-mix(in srgb, #fff 82%, transparent);
  font-size: var(--step-small);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.product-card__media {
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: var(--space-2);
  display: grid;
  place-items: center;
}

.product-card__media img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step-body);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
}

.product-card__meta {
  font-size: var(--step-small);
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: var(--space-4);
  background: var(--surface);
  text-decoration: none;
  min-height: 8rem;
  transition: background var(--transition);
}

.category-link:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: inherit;
}

.category-link__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  grid-row: 1 / span 2;
}

.category-link__icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.category-link strong {
  display: block;
  font-size: var(--step-lead);
  margin-bottom: 0.35rem;
}

.category-link span {
  color: var(--muted);
  font-size: var(--step-small);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split__media {
  overflow: hidden;
  background: var(--surface);
  min-height: 22rem;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.features-original {
  max-width: 56rem;
}

.features-original #tableabv td {
  vertical-align: top;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.feature-row--reverse .feature-row__copy {
  order: 2;
}

.feature-row--reverse .feature-row__media {
  order: 1;
}

.feature-row__title {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--space-3);
}

.feature-row__title--orange { color: #ff9900; }
.feature-row__title--orange2 { color: #ff6600; }
.feature-row__title--green { color: #008000; }
.feature-row__title--cyan { color: #00ccff; }

.feature-row__copy p {
  text-align: justify;
  max-width: none;
}

.feature-row__media img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 3px 14px -5px rgba(0, 0, 0, 0.75);
}

.help-map {
  position: relative;
  width: min(100%, 37.25rem);
  margin: 0 auto;
}

.help-map > img {
  width: 100%;
  height: auto;
  display: block;
}

.help-map__hotspots {
  position: absolute;
  inset: 0;
}

.help-map__spot {
  position: absolute;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.help-map__spot--1 { left: 5.5%; top: 5.4%; width: 36.6%; height: 40.6%; }
.help-map__spot--2 { left: 58%; top: 5.2%; width: 36.7%; height: 40.9%; }
.help-map__spot--3 { left: 5.4%; top: 52.1%; width: 37.1%; height: 40.9%; }
.help-map__spot--4 { left: 57.9%; top: 51.6%; width: 37.2%; height: 42.4%; }

.help-map-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 37.25rem;
  margin: var(--space-4) auto 0;
}

.help-map-links a {
  display: block;
  padding: 0.85rem 1rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.help-map-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.help-original {
  max-width: 52rem;
}

.help-original h2,
.help-original h3 {
  text-transform: none;
  letter-spacing: 0;
}

.help-original .article-list,
.help-original ul {
  padding-left: 1.25rem;
}

.help-original table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.help-original img {
  max-width: 100%;
  height: auto;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.client-logo {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.client-logo img {
  width: 100%;
  height: auto;
  max-height: 8.5rem;
  object-fit: contain;
  object-position: center;
}

.gallery-strip {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-strip__track {
  display: flex;
  gap: 5vw;
  width: max-content;
  padding-inline: var(--page-pad);
}

.gallery-strip__item {
  width: min(34vw, 11rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
  transition: transform 250ms ease;
}

.gallery-strip__item:hover {
  transform: scale(1.1);
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-list {
  max-width: 48rem;
  margin-left: clamp(0rem, 8vw, 8rem);
}

.faq-list details {
  padding: 1rem 0;
}

.faq-list details[open] {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin: 0.5rem -1.5rem;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.contact-card {
  background: var(--bg);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-size: var(--step-small);
  color: var(--muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-card dt .icon {
  color: var(--accent);
}

.contact-card dd {
  margin: 0.2rem 0 0;
  padding-left: 1.7rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-row .icon {
  color: var(--accent);
  margin-top: 0.15rem;
}

.map-placeholder {
  min-height: 18rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 12px,
      color-mix(in srgb, var(--ink) 4%, transparent) 12px,
      color-mix(in srgb, var(--ink) 4%, transparent) 13px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
  color: var(--muted);
}

.map-placeholder strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: var(--step-lead);
}

.form-grid {
  display: grid;
  gap: var(--space-3);
}

.form-field label {
  display: block;
  font-size: var(--step-small);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--ink);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-error {
  color: #9b1c1c;
  font-size: var(--step-small);
  margin-top: 0.35rem;
}

.form-success {
  padding: var(--space-3);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  margin-bottom: var(--space-3);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.similar-cats {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.similar-cats h3 {
  margin-bottom: var(--space-2);
  font-size: var(--step-body);
}

.similar-cats__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.similar-cats__list li {
  margin: 0;
}

.similar-cats__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.similar-cats__list a::before {
  content: "›";
  color: var(--muted);
  font-size: 1.1em;
  line-height: 1;
}

.similar-cats__list a:hover {
  text-decoration: underline;
}

.product-grid--related {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  .product-grid--related {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .product-grid--related {
    grid-template-columns: 1fr;
  }
}

.product-detail__media {
  background: var(--surface);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-detail__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.breadcrumb {
  font-size: var(--step-small);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  text-decoration: none;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
  align-items: center;
  overflow: hidden;
  background: var(--surface);
  min-height: 70svh;
}

.cta-band__media {
  position: relative;
  height: 100%;
  min-height: 22rem;
  overflow: hidden;
}

.cta-band__media img {
  width: 130%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
}

.cta-band__copy {
  padding: var(--space-5) var(--page-pad) var(--space-5) 0;
}

/* Reveal only animates small tiles; never hide legacy / long content */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.legacy-content {
  max-width: 56rem;
  margin-inline: auto;
  color: var(--text);
  line-height: 1.7;
}

.legacy-content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
}

.legacy-content a {
  color: var(--accent);
}

.lightbox-trigger {
  cursor: zoom-in;
}

a.lightbox-trigger {
  display: inline-block;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(20, 24, 30, 0.88);
  backdrop-filter: blur(2px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
}

.lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0;
  background: var(--nav-bg);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--accent);
  outline: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: var(--nav-bg);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 0;
}

.back-to-top:hover {
  background: var(--accent);
}

.back-to-top .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.empty-state {
  padding: var(--space-5);
  background: var(--surface);
}

.prose h2 {
  margin-top: var(--space-5);
}

.prose h3 {
  margin-top: var(--space-4);
}

.sitemap-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.sitemap-columns ul {
  list-style: none;
  padding: 0;
}

.sitemap-columns li + li {
  margin-top: 0.45rem;
}

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    min-height: 55vw;
    order: -1;
  }

  .hero__visual img {
    position: relative;
    inset: auto;
    width: 120%;
    height: 55vw;
    margin-left: -10%;
  }

  .feature-tiles,
  .product-grid,
  .category-grid,
  .client-logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split--reverse,
  .contact-layout,
  .product-detail,
  .cta-band,
  .sitemap-columns,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-row__copy,
  .feature-row--reverse .feature-row__media {
    order: initial;
  }

  .cta-band__copy {
    padding: 0 var(--page-pad) var(--space-5);
  }

  .faq-list {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .feature-tiles,
  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-logo {
    min-height: 5.5rem;
    padding: var(--space-2);
  }

  .client-logo img {
    max-height: 6.5rem;
  }

  .gallery-strip__item {
    width: 34vw;
  }
}
