/* Shared hardware sales module; isolated from the legacy enterprise styles. */
.hardware-module {
  --hw-page: #fff;
  --hw-surface: #f6f6f6;
  --hw-text: #171717;
  --hw-muted: #626262;
  --hw-line: #dedede;
  --hw-contrast: #171717;
  --hw-on-contrast: #fff;
  box-sizing: border-box;
  padding-block: clamp(64px, 7vw, 104px);
  border-block: 1px solid var(--hw-line);
  background: var(--hw-page);
  color: var(--hw-text);
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  text-align: start;
  scroll-margin-block-start: 100px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hardware-module {
    --hw-page: #111;
    --hw-surface: #191919;
    --hw-text: #f1f1f1;
    --hw-muted: #b3b3b3;
    --hw-line: #363636;
    --hw-contrast: #eee;
    --hw-on-contrast: #171717;
  }
}
:root[data-theme="dark"] .hardware-module {
  --hw-page: #111;
  --hw-surface: #191919;
  --hw-text: #f1f1f1;
  --hw-muted: #b3b3b3;
  --hw-line: #363636;
  --hw-contrast: #eee;
  --hw-on-contrast: #171717;
}
.hardware-module *, .hardware-module *::before, .hardware-module *::after { box-sizing: border-box; }
.hardware-module .hw-inner { inline-size: min(calc(100% - clamp(32px, 6vw, 96px)), 1280px); margin-inline: auto; }
.hardware-module h2, .hardware-module h3 { color: var(--hw-text); font-family: inherit; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
/* Legacy enterprise CSS forces every h2 white with !important. */
.hardware-module h2 { color: var(--hw-text) !important; }
.hardware-module p, .hardware-module figcaption { color: var(--hw-muted); font-family: inherit; overflow-wrap: anywhere; }
.hardware-module a, .hardware-module button, .hardware-module summary { font-family: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hardware-module a:focus-visible, .hardware-module button:focus-visible, .hardware-module summary:focus-visible { outline: 2px solid var(--hw-text); outline-offset: 4px; }
.hardware-module .hw-heading { max-inline-size: 780px; margin-block-end: 48px; }
.hardware-module .hw-eyebrow { margin: 0 0 16px; color: var(--hw-muted); font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.hardware-module .hw-heading h2 { margin: 0 0 18px; font-size: clamp(32px, 3.8vw, 52px); }
.hardware-module .hw-intro { margin: 0; font-size: 17px; line-height: 1.7; }
.hardware-module .hw-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 30px; margin-block-end: 56px; }
.hardware-module .hw-feature-number { display: block; margin-block-end: 18px; color: var(--hw-muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.hardware-module .hw-feature h3 { margin: 0 0 14px; font-size: 22px; }
.hardware-module .hw-feature p { margin: 0 0 22px; font-size: 13px; line-height: 1.7; }
.hardware-module .hw-feature-list { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.hardware-module .hw-feature-list li { position: relative; padding-inline-start: 18px; margin: 0; color: var(--hw-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.hardware-module .hw-feature-list li::before { position: absolute; inset-inline-start: 0; content: "✓"; color: var(--hw-text); font-size: 11px; }
.hardware-module .hw-gallery { min-inline-size: 0; margin: 0; }
.hardware-module .hw-poster-button { position: relative; display: block; inline-size: 100%; overflow: hidden; border: 1px solid var(--hw-line); border-radius: 16px; padding: 0; background: #040615; cursor: zoom-in; }
.hardware-module .hw-poster { display: block; inline-size: 100%; block-size: auto; margin: 0; object-fit: contain; }
.hardware-module .hw-expand { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; background: rgb(0 0 0 / .4); color: #fff; font-size: 18px; }
.hardware-module .hw-gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block-start: 14px; }
.hardware-module .hw-gallery-bottom figcaption { margin: 0; font-size: 11px; }
.hardware-module .hw-device-preview { position: relative; flex-shrink: 0; inline-size: 94px; overflow: hidden; padding: 4px; border: 1px solid var(--hw-line); border-radius: 8px; background: var(--hw-surface); cursor: zoom-in; }
.hardware-module .hw-device-preview img { display: block; inline-size: 100%; block-size: auto; }
.hardware-module .hw-device-preview > span { position: absolute; inset-block-start: 2px; inset-inline-end: 4px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; }
.hardware-module .hw-packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.hardware-module .hw-card { position: relative; display: flex; flex-direction: column; min-inline-size: 0; padding: 30px 23px 23px; border: 1px solid var(--hw-line); border-radius: 16px; background: var(--hw-page); }
.hardware-module .hw-card h3 { min-block-size: 3.6em; margin: 0 0 16px; font-size: 19px; }
.hardware-module .hw-card-featured { border-color: var(--hw-contrast); background: var(--hw-surface); box-shadow: inset 0 0 0 1px var(--hw-contrast); }
.hardware-module .hw-badge { position: absolute; inset-block-start: -12px; inset-inline-start: 23px; max-inline-size: calc(100% - 46px); padding: 4px 12px; border-radius: 5px; background: var(--hw-contrast); color: var(--hw-on-contrast); font-size: 10px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.hardware-module .hw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 18px; color: var(--hw-text); }
.hardware-module .hw-price bdi { color: var(--hw-text); font-size: 42px; font-weight: 600; line-height: 1.15; letter-spacing: -.06em; }
.hardware-module .hw-price > span { color: var(--hw-muted); font-size: 11px; }
.hardware-module .hw-description { margin: 0 0 20px; font-size: 13px; line-height: 1.75; }
.hardware-module .hw-upgrade-note { margin: -7px 0 20px; font-size: 11px; line-height: 1.7; }
.hardware-module .hw-order { margin-block-start: auto; padding-block-start: 18px; border-block-start: 1px solid var(--hw-line); }
.hardware-module .hw-order-label { margin: 0 0 12px; color: var(--hw-text); font-size: 12px; font-weight: 600; }
.hardware-module .hw-contact-links { display: flex; flex-wrap: wrap; gap: 7px; }
.hardware-module .hw-contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-block-size: 40px; padding: 7px; border: 1px solid var(--hw-line); border-radius: 7px; background: var(--hw-page); color: var(--hw-text); font-size: 10px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.hardware-module .hw-contact-link:hover { border-color: var(--hw-contrast); background: var(--hw-contrast); color: var(--hw-on-contrast); }
.hardware-module .hw-contact-link svg { flex-shrink: 0; inline-size: 14px; block-size: 14px; fill: currentColor; }
.hardware-module .hw-card-other { background: var(--hw-surface); }
.hardware-module .hw-other-mark { display: flex; align-items: center; block-size: 48px; margin-block-end: 18px; color: var(--hw-text); font-size: 45px; font-weight: 400; line-height: 1; }
.hardware-module .hw-contact-menu { position: relative; margin-block-start: auto; }
.hardware-module .hw-contact-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 48px; padding: 12px 14px; border: 1px solid var(--hw-contrast); border-radius: 8px; background: var(--hw-contrast); color: var(--hw-on-contrast); font-size: 12px; font-weight: 550; line-height: 1.6; list-style: none; cursor: pointer; }
.hardware-module .hw-contact-menu summary::-webkit-details-marker { display: none; }
.hardware-module .hw-menu-arrow { flex-shrink: 0; font-size: 18px; transition: transform .15s ease; }
.hardware-module .hw-contact-menu[open] .hw-menu-arrow { transform: rotate(45deg); }
.hardware-module .hw-menu-contacts { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: calc(100% - 1px); display: grid; gap: 6px; padding: 8px; border: 1px solid var(--hw-line); border-radius: 10px; background: var(--hw-page); box-shadow: 0 12px 30px rgb(0 0 0 / .16); }
.hardware-module .hw-menu-contacts .hw-contact-link { justify-content: start; gap: 9px; min-block-size: 42px; padding-inline: 12px; font-size: 12px; }
.hardware-module .hw-order-note { margin: 22px 0 0; font-size: 12px; text-align: center; }
.hardware-module .hw-lightbox { inline-size: min(1120px, calc(100vw - 32px)); max-inline-size: none; max-block-size: calc(100dvh - 32px); margin: auto; padding: 18px; overflow: auto; border: 1px solid var(--hw-line); border-radius: 16px; background: var(--hw-page); color: var(--hw-text); }
.hardware-module .hw-lightbox:not([open]) { display: none; }
.hardware-module .hw-lightbox::backdrop { background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); }
.hardware-module .hw-close { display: flex; align-items: center; justify-content: center; gap: 12px; min-block-size: 44px; margin-inline-start: auto; margin-block-end: 12px; padding: 8px 12px; border: 1px solid var(--hw-line); border-radius: 7px; background: var(--hw-surface); color: var(--hw-text); font-size: 13px; cursor: pointer; }
.hardware-module .hw-close > span:last-child { font-size: 20px; line-height: 1; }
.hardware-module .hw-lightbox-image { display: block; inline-size: 100%; max-block-size: calc(100dvh - 220px); block-size: auto; margin: 0 auto; object-fit: contain; }
.hardware-module .hw-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 16px; }
.hardware-module .hw-lightbox-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 9px 12px; border: 1px solid var(--hw-line); border-radius: 7px; background: var(--hw-surface); color: var(--hw-text); font-size: 12px; cursor: pointer; }
.hardware-module .hw-image-count { color: var(--hw-muted); font-size: 11px; text-align: center; }
.hardware-module [hidden] { display: none !important; }
@media (max-width: 1150px) {
  .hardware-module .hw-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 28px; }
  .hardware-module .hw-gallery { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hardware-module .hw-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .hardware-module .hw-card h3 { min-block-size: 2.4em; }
}
@media (max-width: 650px) {
  .hardware-module .hw-heading { margin-block-end: 30px; }
  .hardware-module .hw-overview { display: flex; flex-direction: column; gap: 30px; margin-block-end: 42px; }
  .hardware-module .hw-gallery { order: -1; inline-size: 100%; }
  .hardware-module .hw-feature { inline-size: 100%; }
  .hardware-module .hw-feature h3 { font-size: 23px; }
  .hardware-module .hw-feature p, .hardware-module .hw-feature-list li { font-size: 14px; }
  .hardware-module .hw-feature-number { margin-block-end: 10px; }
  .hardware-module .hw-packages { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hardware-module .hw-card { padding: 28px 24px 24px; }
  .hardware-module .hw-card h3 { min-block-size: 0; font-size: 23px; }
  .hardware-module .hw-description { font-size: 14px; }
  .hardware-module .hw-contact-links { gap: 8px; }
  .hardware-module .hw-contact-link { min-block-size: 44px; padding: 9px 10px; font-size: 12px; }
  .hardware-module .hw-contact-link svg { inline-size: 16px; block-size: 16px; }
  .hardware-module .hw-menu-contacts { position: static; margin-block-start: 10px; box-shadow: none; }
  .hardware-module .hw-order-label { font-size: 13px; }
  .hardware-module .hw-lightbox { padding: 12px; }
  .hardware-module .hw-lightbox-controls { flex-wrap: wrap; }
  .hardware-module .hw-lightbox-controls button { flex: 1; }
  .hardware-module .hw-image-count { order: -1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hardware-module .hw-menu-arrow { transition: none; }
}
