/*
 * VENT CMS — mobile-first presentation and compatibility layer
 * -------------------------------------------------------------
 * This file is intentionally loaded after the historical design layers. It
 * keeps the established visual language, but gives every public component a
 * predictable responsive baseline, readable typography and safe touch sizes.
 */

:root {
  --vent-content-max: 1600px;
  --vent-page-gutter: clamp(18px, 4.6vw, 82px);
  --vent-section-space: clamp(64px, 7vw, 112px);
  --vent-radius-sm: 12px;
  --vent-radius-md: 18px;
  --vent-radius-lg: 26px;
  --vent-text-xs: clamp(.75rem, .72rem + .08vw, .82rem);
  --vent-text-sm: clamp(.875rem, .84rem + .12vw, .96rem);
  --vent-text-body: clamp(1rem, .97rem + .12vw, 1.075rem);
  --vent-text-lead: clamp(1.05rem, 1rem + .3vw, 1.28rem);
  --vent-heading-sm: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  --vent-heading-md: clamp(2.15rem, 1.55rem + 2.6vw, 4.25rem);
  --vent-heading-lg: clamp(2.8rem, 1.7rem + 4.5vw, 6.4rem);
  --vent-touch: 46px;
  --vent-action: #076aa5;
  --vent-public-header-height: 82px;
}

html {
  min-width: 320px;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  z-index: 200000;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  border: 2px solid currentColor;
  border-radius: 10px;
  background: #fff;
  color: #06172d;
  font: 800 14px/1.2 system-ui, sans-serif;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

@supports (overflow: clip) {
  html,
  body,
  .site-shell {
    overflow-x: clip;
  }
}

html[data-theme="industrial"] .site-shell,
.site-shell[data-theme="industrial"] {
  --muted: #b8cde0;
  --accent-2: #69d2ff;
}

html[data-theme="light"] .site-shell,
.site-shell[data-theme="light"] {
  --ink: #071a2d;
  --muted: #425c71;
  --accent: #006da9;
  --accent-2: #005f96;
  --line: rgba(2, 62, 138, .2);
  --vent-action: #006da9;
}

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.site-shell :where(section, article, div, header, footer, nav, aside, form, fieldset) {
  min-width: 0;
}

.site-shell :where(img, video, canvas, svg, iframe) {
  max-width: 100%;
}

.site-shell :where(h1, h2, h3, h4) {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.site-shell :where(p, li, dd, figcaption) {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.site-shell small {
  font-size: .75rem;
  line-height: 1.4;
}

.site-shell :where(.eyebrow, .product-category, .section-tag) {
  font-size: var(--vent-text-xs);
  line-height: 1.35;
  letter-spacing: .12em;
}

.site-shell :where(.button, button, input, select, textarea) {
  font-size: var(--vent-text-sm);
}

.site-shell :where(.button, .text-link, button, a) {
  -webkit-tap-highlight-color: transparent;
}

.site-shell :where(.button, .text-link, .filter-tabs button, .support-tabs button) {
  min-height: var(--vent-touch);
}

.site-shell .button {
  max-width: 100%;
  border-radius: var(--vent-radius-sm);
  padding: 12px 22px;
  line-height: 1.25;
  box-shadow: 0 12px 30px rgba(0, 98, 164, .22);
}

.site-shell .button:not(.secondary),
.site-shell .filter-tabs button.active,
.site-shell .support-tabs button.active {
  background-color: var(--vent-action);
  color: #fff;
}

.site-shell .button.compact {
  min-height: 42px;
  padding-inline: 17px;
  font-size: .82rem;
}

.site-shell .text-link {
  gap: 8px;
  padding-block: 5px;
  font-size: var(--vent-text-sm);
  line-height: 1.35;
}

.site-shell :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.content-section {
  width: 100%;
  padding: var(--vent-section-space) var(--vent-page-gutter);
}

/* Keep asymmetric safe areas correct on phones with a notch. A single
   padding-inline value based on the left inset can clip content in landscape
   when the notch is on the right. */
@supports (padding: max(0px)) {
  .content-section,
  .software-choice-section,
  .official-product-flow,
  .official-product-showcase,
  .official-product-gallery {
    padding-right: max(var(--vent-page-gutter), env(safe-area-inset-right));
    padding-left: max(var(--vent-page-gutter), env(safe-area-inset-left));
  }
}

.section-heading {
  gap: clamp(18px, 3vw, 42px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading h2 {
  font-size: var(--vent-heading-md);
  line-height: .98;
}

.section-heading > p,
.section-heading > div + p {
  max-width: 680px;
  color: var(--muted);
  font-size: var(--vent-text-body);
  line-height: 1.7;
}

/* Shared header and navigation */
.site-header {
  min-width: 0;
  height: var(--vent-public-header-height);
  padding-inline: clamp(18px, 3.5vw, 64px);
  gap: clamp(12px, 1.6vw, 26px);
}

.site-header .brand {
  width: clamp(148px, 13vw, 202px);
}

.site-header .brand img {
  width: 100%;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  min-width: 0;
  gap: clamp(14px, 1.55vw, 28px);
}

.main-nav > a,
.nav-dropdown > a {
  font-size: clamp(.76rem, .7rem + .14vw, .84rem);
  line-height: 1.25;
}

.nav-submenu-toggle {
  min-width: 42px;
  min-height: 42px;
}

.dropdown-panel a {
  min-height: 44px;
  font-size: .82rem;
}

/* Canonical, collapsible vertical theme control */
.theme-dock {
  position: fixed !important;
  z-index: 8000 !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: env(safe-area-inset-left, 0px) !important;
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1;
  transform: translate(-100%, -50%) !important;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease !important;
}

.theme-dock.is-open {
  transform: translate(0, -50%) !important;
}

.theme-dock-panel {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: rgba(var(--bg-rgb), .96);
  box-shadow: 0 20px 55px rgba(0, 16, 40, .28);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.theme-dock-toggle {
  position: absolute;
  top: 50%;
  left: 100%;
  display: grid;
  place-items: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 54px;
  min-height: 54px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(var(--bg-rgb), .96);
  color: var(--accent-2);
  box-shadow: 10px 12px 28px rgba(0, 16, 40, .2);
  transform: translateY(-50%);
}

.theme-dock-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.theme-dock.is-open .theme-dock-toggle svg {
  transform: rotate(180deg);
}

.theme-dock-options.theme-slider,
.theme-dock-options {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  width: 52px !important;
  padding: 4px !important;
  overflow: hidden !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.theme-slider-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--vent-action), #087fc0);
  box-shadow: 0 8px 24px rgba(0, 112, 184, .32);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.theme-dock-options[data-selected="light"] .theme-slider-indicator {
  transform: translateY(46px);
}

.theme-dock-options button {
  position: relative;
  z-index: 1;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

.theme-dock-options button.active {
  color: #fff !important;
}

.theme-dock-icon {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.theme-dock-icon svg {
  width: 20px;
  height: 20px;
}

.theme-dock-title,
.theme-dock-copy {
  display: none !important;
}

html.menu-open .theme-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-100%, -50%) !important;
}

/* Home hero and carousel */
.home-hero.home-hero-slider {
  min-height: clamp(680px, 50vw, 820px);
}

.home-hero-slide {
  grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
}

.home-hero-slide > .hero-copy {
  padding: clamp(68px, 6vw, 104px) clamp(28px, 4vw, 68px) 76px var(--vent-page-gutter);
}

.hero-copy .hero-title,
.payment-hero-copy .hero-title {
  max-width: 780px;
  margin-block: 22px 26px;
  font-family: var(--display);
  font-size: var(--vent-heading-lg);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy .hero-title em {
  color: var(--accent);
  font-style: normal;
}

.payment-hero-copy .hero-title em {
  font-size: .84em;
  white-space: nowrap;
}

/* Apply the VENT blue gradient to accent text in every current and future
   homepage hero slide, regardless of its number or specific slide class. */
.home-hero-slider .home-hero-slide .hero-copy .hero-title em,
.home-hero-slider .home-hero-slide .hero-copy h1 em,
.home-hero-slider .home-hero-slide .hero-copy h2 em,
.home-hero-slider .home-hero-slide .hero-copy h3 em,
.home-hero-slider .home-hero-slide .hero-copy h4 em {
  color: var(--accent-2) !important;
  background-color: transparent !important;
  background-image: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 28%, #8bddff 100%) !important;
  background-repeat: no-repeat !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-copy > p,
.payment-hero-copy > p {
  max-width: 650px;
  font-size: var(--vent-text-lead);
  line-height: 1.65;
}

.hero-actions {
  gap: 18px 24px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
}

.hero-facts span {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 9px;
  max-width: none !important;
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: var(--vent-text-xs);
  line-height: 1.3;
}

.hero-facts span svg {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--accent-2);
}

.hero-facts b {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem);
  line-height: 1;
}

.hero-facts small {
  display: block;
  color: var(--muted);
  font-size: inherit;
  line-height: 1.3;
}

.home-hero-controls {
  bottom: 12px;
  min-height: 52px;
}

.home-hero-dots button,
.home-hero-arrow {
  min-width: 40px;
  min-height: 40px;
}

.home-hero-dots button b {
  font-size: .78rem;
}

.home-hero-dots button span {
  display: none !important;
}

.real-product-collage,
.payment-terminal-stage {
  min-width: 0;
}

/* Generic catalogue, cards and media */
.product-grid,
.brand-grid,
.feature-grid,
.contact-cards,
.official-product-feature-grid,
.official-flow-grid {
  align-items: stretch;
}

.product-card,
.brand-card,
.feature-grid > article,
.official-product-feature-card,
.official-flow-grid > article {
  min-width: 0;
  border-radius: var(--vent-radius-md);
  overflow: hidden;
}

.product-image {
  height: clamp(230px, 25vw, 330px);
}

.home-products .product-image {
  height: clamp(220px, 19vw, 270px);
}

.product-body {
  padding: clamp(20px, 2.2vw, 28px);
}

.product-category {
  font-size: var(--vent-text-xs);
}

.product-body h3 {
  margin-block: 11px;
  font-size: clamp(1.55rem, 1.3rem + .8vw, 2rem);
  line-height: 1.05;
}

.product-body p {
  min-height: 0;
  font-size: var(--vent-text-sm);
  line-height: 1.65;
}

.product-actions {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.product-actions :where(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .82rem;
  line-height: 1.25;
}

.brand-card p,
.feature-grid article p,
.contact-cards p {
  font-size: var(--vent-text-sm);
  line-height: 1.65;
}

.brand-logo-frame img,
.partner-set img {
  object-fit: contain;
}

.filter-tabs {
  max-width: 100%;
}

.filter-tabs button {
  font-size: .8rem;
}

/* Former 7–10px labels were difficult to read on real phones. Decorative
   labels stay compact, but no meaningful public copy falls below 11px. */
.site-shell :where(
  .collage-label span,
  .collage-label b,
  .pdf-icon,
  .pdf-icon small,
  .product-image span,
  .software-feature span,
  .instruction-tools label span,
  .qr-generator label span,
  .instruction-list small,
  .instruction-list > a > b,
  .contact-cards small,
  .contact-cards b,
  .visual-status span,
  .camera-status small,
  .camera-status b,
  .intro-trust span,
  .catalog-status span,
  .instruction-summary span,
  .support-overview small,
  .support-availability small,
  .support-feature-list small,
  .support-feature-list b,
  .support-steps small,
  .support-note,
  .ip-display button,
  .qr-preview > span,
  .map-badge small,
  .map-badge b,
  .partner-set span,
  .software-hero-shot span,
  .lightbox-head span,
  .premium-ticker span,
  .detail-capabilities span,
  .security-strip span,
  .software-metrics span,
  .cms-gallery-head > div:first-child > span,
  .cms-gallery-meta small,
  .product-detail-main .product-detail-zoom,
  .product-detail-services b,
  .product-detail-services small,
  .product-detail-tags span,
  .product-detail-price small,
  .product-specifications dt,
  .bluecash-fees-highlight span,
  .bluecash-fee-turnover > b,
  .bluecash-fee-value > small,
  .bluecash-fee-value > em,
  .payment-hero-facts span small,
  .terminal-stage-label span,
  .terminal-stage-label b,
  .terminal-product-copy small,
  .terminal-product-copy i,
  .terminal-offer-badge small,
  .terminal-offer-badge span,
  .terminal-order-badge span,
  .terminal-order-badge b,
  .kds-order-board header,
  .kds-order-board footer,
  .kds-board-columns small,
  .software-showcase-head span,
  .video-showcase-head span,
  .software-platform-info small,
  .software-showcase-core small,
  .software-floating-badge small,
  .software-floating-badge b,
  .video-floating-card small,
  .video-floating-card b,
  .video-monitor-bar b,
  .video-monitor-metrics small,
  .video-quality-badge small,
  .video-quality-badge span
) {
  font-size: clamp(.69rem, .66rem + .12vw, .78rem) !important;
  line-height: 1.35 !important;
}

.partner-set a {
  min-height: 74px;
}

.home-hero-dots {
  max-width: min(58vw, 360px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.home-hero-dots::-webkit-scrollbar {
  display: none;
}

/* Standard inner-page heroes */
.page-intro,
.software-hero,
.service-page-hero {
  min-height: clamp(500px, 45vw, 720px);
}

.page-intro > div,
.software-hero > div,
.service-page-hero > div:first-child {
  padding: clamp(62px, 6.5vw, 102px) var(--vent-page-gutter);
}

.page-intro h1,
.software-hero h1,
.service-page-hero h1,
.site-shell > .software-hub-hero-premium .software-hub-copy h1,
.site-shell > .video-page-premium h1 {
  max-width: 900px;
  font-size: var(--vent-heading-lg);
  line-height: .94;
  letter-spacing: -.045em;
}

.page-intro-aside p,
.software-hero p,
.service-page-hero p {
  font-size: var(--vent-text-lead);
  line-height: 1.7;
}

.software-hero-shot img,
.official-product-feature-card img,
.image-gallery img {
  max-width: 100%;
}

.detail-capabilities,
.security-strip,
.premium-ticker {
  min-width: 0;
}

/* Support */
.support-tabs {
  min-width: 0;
}

.support-tabs button {
  min-width: 0;
  min-height: 76px;
  font-size: var(--vent-text-sm);
}

.support-tabs button > span:nth-child(2) b {
  font-size: .9rem;
}

.support-tabs button > span:nth-child(2) small {
  font-size: .76rem;
  line-height: 1.35;
}

.support-copy h2,
.qr-generator h2 {
  font-size: var(--vent-heading-md);
  line-height: 1;
}

.support-copy p,
.qr-generator p,
.support-feature-list small,
.support-steps small {
  font-size: var(--vent-text-sm);
  line-height: 1.6;
}

.ip-display {
  max-width: 100%;
}

.ip-display :where(strong, output, span) {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Product detail */
.product-breadcrumb {
  font-size: var(--vent-text-xs);
}

.product-detail-summary h1 {
  font-size: var(--vent-heading-lg);
  line-height: .93;
}

.product-detail-lead,
.product-description .rich-content {
  font-size: var(--vent-text-body);
}

.product-detail-services :where(b, small),
.product-specifications :where(dt, dd) {
  font-size: var(--vent-text-xs);
}

/* Fee table and all wide data */
.bluecash-fees-section,
.cash-register-details {
  min-width: 0;
}

.bluecash-fees-table,
.table-wrap,
.table-responsive {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.bluecash-fee-row > div,
.bluecash-fees-notes article {
  min-width: 0;
}

/* Remaining shared modules. These appear on several database-managed pages,
   so their responsive behaviour must not depend on one page template. */
.service-banner {
  min-width: 0;
  gap: clamp(24px, 4vw, 50px);
}

.service-banner > div,
.service-banner-actions {
  min-width: 0;
}

.service-banner h2 {
  max-width: 900px;
  font-size: var(--vent-heading-md);
  line-height: .98;
}

.service-banner p {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--vent-text-body);
  line-height: 1.7;
}

.instruction-tools {
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  min-width: 0;
}

.instruction-tools > *,
.instruction-list > a,
.catalog-status,
.instruction-summary {
  min-width: 0;
}

.instruction-tools input,
.qr-generator input {
  min-height: 48px;
  font-size: 1rem;
}

.instruction-list strong {
  font-size: var(--vent-text-sm);
  line-height: 1.45;
}

.instruction-list > a > b {
  font-size: var(--vent-text-xs);
}

.catalog-status,
.instruction-summary {
  font-size: var(--vent-text-sm);
}

.catalog-status strong,
.instruction-summary strong {
  overflow-wrap: anywhere;
}

.software-choice-card,
.zamboo-solution-detail,
.kds-workflow,
.kds-order-board,
.contact-layout,
.address-card,
.map-section {
  min-width: 0;
  max-width: 100%;
}

.software-choice-card :where(h2, p, li, strong),
.zamboo-solution-detail :where(h3, p, li),
.kds-workflow :where(h2, h3, p, span),
.contact-layout :where(h2, p, strong) {
  overflow-wrap: break-word;
}

.software-choice-card img,
.zamboo-solution-visual img,
.kds-order-board img {
  max-width: 100%;
  object-fit: contain;
}

.map-section iframe {
  display: block;
  width: 100%;
  min-height: 390px;
  border: 0;
}

/* Full-screen gallery follows the selected site theme */
.cms-gallery-dialog {
  min-width: 320px;
  max-width: 100%;
  background: linear-gradient(145deg, var(--bg), var(--hero));
}

.cms-gallery-caption {
  font-size: var(--vent-text-sm);
}

.cms-gallery-close,
.cms-gallery-nav,
.cms-gallery-thumbs button {
  touch-action: manipulation;
}

/* Footer */
.site-footer {
  padding: clamp(62px, 7vw, 106px) var(--vent-page-gutter) max(22px, env(safe-area-inset-bottom));
}

.footer-lead {
  gap: 26px;
}

.footer-lead h2 {
  font-size: var(--vent-heading-md);
  line-height: 1;
}

.footer-grid {
  gap: clamp(28px, 4vw, 52px);
}

.footer-grid h3 {
  font-size: var(--vent-text-xs);
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  font-size: var(--vent-text-sm);
}

/* Tablet and compact desktop navigation switches at the same point as JS. */
@media (max-width: 1100px) {
  :root {
    --vent-page-gutter: clamp(18px, 4vw, 42px);
    --vent-section-space: clamp(58px, 7vw, 86px);
    --vent-public-header-height: calc(74px + env(safe-area-inset-top, 0px));
  }

  html {
    scroll-padding-top: calc(var(--vent-public-header-height) + 8px);
  }

  .site-header {
    height: var(--vent-public-header-height) !important;
    padding-top: env(safe-area-inset-top, 0px);
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .site-header .brand {
    width: clamp(145px, 25vw, 188px);
  }

  .site-header .brand img {
    height: 48px;
  }

  .site-header .menu-button {
    display: grid !important;
    flex: 0 0 46px;
    place-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    margin-left: auto;
    border: 0 !important;
    border-radius: 12px;
    background: var(--surface-2);
  }

  .site-header .menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .22s ease, opacity .18s ease;
  }

  html.menu-open .menu-button span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  html.menu-open .menu-button span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .site-header .main-nav {
    position: fixed !important;
    z-index: 2147483001 !important;
    top: var(--vent-mobile-header-height, var(--vent-public-header-height)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: none !important;
    width: 100% !important;
    height: calc(100vh - var(--vent-mobile-header-height, var(--vent-public-header-height))) !important;
    height: calc(100dvh - var(--vent-mobile-header-height, var(--vent-public-header-height))) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    overflow: hidden auto !important;
    overscroll-behavior: contain;
    border: 0 !important;
    background: rgba(var(--bg-rgb), .985) !important;
    box-shadow: 0 24px 60px rgba(0, 12, 34, .28) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .site-header .main-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
    justify-content: flex-start !important;
    gap: 0;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* A fixed menu must not be clipped by the public shell or trapped by the
     header's backdrop-filter stacking context in Chromium responsive mode. */
  html.menu-open .site-shell {
    overflow: visible !important;
  }

  html.menu-open .site-header {
    z-index: 2147483000 !important;
    overflow: visible !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-dropdown > a {
    min-height: 52px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: inset 0 -1px rgba(104, 163, 213, .2);
    font-size: .96rem !important;
    font-weight: 760;
    line-height: 1.3;
    transition: color .18s ease, background-color .18s ease;
  }

  .site-header .main-nav > a:hover,
  .site-header .main-nav > a:focus-visible,
  .site-header .nav-dropdown > a:hover,
  .site-header .nav-dropdown > a:focus-visible,
  .site-header .nav-dropdown.open > a {
    border-radius: 10px;
    background: rgba(37, 137, 217, .09) !important;
    color: var(--accent-2);
  }

  .site-header .main-nav > a::after,
  .site-header .nav-dropdown > a::after,
  .desktop-chevron {
    display: none !important;
  }

  .site-header .nav-dropdown {
    position: relative !important;
    display: block;
    width: 100%;
    height: auto !important;
  }

  .site-header .nav-dropdown > a {
    padding-right: 56px !important;
  }

  .site-header .nav-submenu-toggle {
    position: absolute !important;
    z-index: 4;
    top: 0;
    right: 0;
    display: grid !important;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0 !important;
    border-radius: 10px;
    background: transparent !important;
    color: var(--accent-2);
  }

  .site-header .nav-submenu-toggle span {
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    font-size: 0;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
  }

  .site-header .nav-submenu-toggle:hover,
  .site-header .nav-submenu-toggle:focus-visible {
    background: rgba(37, 137, 217, .1) !important;
  }

  .site-header .nav-dropdown.open .nav-submenu-toggle span {
    margin-top: 4px;
    transform: rotate(225deg);
  }

  .site-header .dropdown-panel,
  .site-header .nav-dropdown:hover .dropdown-panel,
  .site-header .nav-dropdown:focus-within .dropdown-panel {
    position: static !important;
    grid-column: 1 / -1;
    display: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 8px 18px !important;
    overflow: hidden !important;
    border: 0 !important;
    background: linear-gradient(90deg, rgba(37, 137, 217, .28) 0 2px, transparent 2px) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .site-header .nav-dropdown.open .dropdown-panel {
    display: grid !important;
  }

  .site-header .dropdown-panel a {
    min-height: 44px;
    padding: 9px 14px;
    border: 0 !important;
    border-radius: 9px;
    background: transparent;
    font-size: .88rem;
  }

  .site-header .dropdown-panel a:hover,
  .site-header .dropdown-panel a:focus-visible {
    background: rgba(37, 137, 217, .09);
    color: var(--accent-2);
  }

  .site-header .main-nav > a:last-child {
    box-shadow: none;
  }

  .site-header .header-actions {
    flex: 0 0 auto;
  }

  .site-header .header-actions .button.compact {
    min-height: 44px;
  }

  .home-hero.home-hero-slider,
  .home-hero-track,
  .home-hero-slide {
    min-height: 0;
  }

  .home-hero-slide {
    grid-template-columns: 1fr;
  }

  .home-hero-slide > .hero-copy {
    padding: clamp(62px, 8vw, 86px) var(--vent-page-gutter) 48px;
  }

  .home-hero-slide > .real-product-collage,
  .home-hero-slide > .payment-terminal-stage {
    min-height: clamp(510px, 68vw, 660px);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-hero-controls {
    right: auto;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
  }

  .home-products,
  .product-grid,
  .brand-grid,
  .feature-grid,
  .official-product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-intro,
  .software-hero,
  .service-page-hero,
  .site-shell > .software-hub-hero-premium,
  .site-shell > .video-page-premium {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-inline: 0;
    border-inline: 0;
    border-radius: 0;
  }

  .page-intro > .page-intro-title,
  .page-intro > .page-intro-aside,
  .site-shell > .software-hub-hero-premium > .page-intro-title,
  .site-shell > .video-page-premium > .page-intro-title {
    min-height: 0;
  }

  .software-hero-shot,
  .camera-illustration,
  .site-shell > .software-hub-hero-premium > .page-intro-aside,
  .site-shell > .video-page-premium > .page-intro-aside {
    min-height: clamp(460px, 68vw, 680px);
  }

  .product-detail-hero,
  .product-detail-information {
    grid-template-columns: 1fr;
  }

  .product-detail-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-specifications,
  .product-help-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --vent-page-gutter: 18px;
    --vent-section-space: clamp(52px, 13vw, 72px);
    --vent-heading-lg: clamp(2.2rem, 10.5vw, 3.65rem);
    --vent-heading-md: clamp(1.85rem, 8.5vw, 3rem);
  }

  .site-header {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .site-header .brand {
    width: min(54vw, 174px);
  }

  .site-header .header-actions {
    display: none;
  }

  .site-header .main-nav {
    padding: 6px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-dropdown > a {
    min-height: 48px !important;
    padding: 9px 11px !important;
    font-size: .94rem !important;
  }

  .site-header .nav-dropdown {
    display: block;
  }

  .site-header .nav-dropdown > a {
    padding-right: 52px !important;
  }

  .site-header .nav-submenu-toggle {
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 9px;
  }

  .theme-dock {
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-100%) !important;
  }

  .theme-dock.is-open {
    transform: translateX(0) !important;
  }

  html.menu-open .theme-dock {
    transform: translateX(-100%) !important;
  }

  .theme-dock-panel {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .site-shell :where(input, select, textarea) {
    font-size: 16px;
  }

  .home-hero-slide > .hero-copy {
    padding: 54px 18px 40px;
  }

  .hero-copy .hero-title,
  .payment-hero-copy .hero-title {
    margin-block: 18px 22px;
    line-height: .95;
    letter-spacing: -.042em;
  }

  .payment-hero-copy .hero-title em {
    white-space: normal;
  }

  .hero-copy > p,
  .payment-hero-copy > p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .hero-actions .text-link {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 10px 14px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px;
    margin-top: 26px;
  }

  .hero-facts span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-height: 104px;
    padding: 11px 9px;
    font-size: .72rem;
  }

  .hero-facts span svg {
    width: 18px;
    height: 18px;
  }

  .hero-facts b {
    font-size: 1.25rem;
  }

  .hero-rate-note {
    display: block;
    font-size: .72rem;
    line-height: 1.45;
  }

  /* On phones the message is the hero. Product collages use absolute layers
     and made the section fragile when an editor changed a font size. Hide the
     decorative stage, but keep the real working-hours status in normal flow. */
  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-content: start !important;
    min-height: 0 !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide > .hero-copy {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 54px max(18px, env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide.has-mobile-service-status > .hero-copy {
    padding-bottom: 26px !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide > .real-product-collage,
  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide > .payment-terminal-stage {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .home-hero-slide.has-mobile-service-status > .mobile-service-status-stage {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 max(18px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .mobile-service-status-stage > * {
    display: none !important;
  }

  html[data-theme][data-theme][data-theme] body .site-shell .mobile-service-status-stage > [data-service-status] {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: min(100%, 560px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 70px !important;
    margin: 0 auto !important;
    padding: 13px 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .home-hero-controls {
    grid-template-columns: 40px auto 40px;
    max-width: calc(100% - 24px);
    min-height: 50px;
    padding: 5px 6px 8px;
    border-radius: 15px;
  }

  .home-hero-arrow {
    width: 40px;
    height: 38px;
  }

  .home-hero-dots button {
    width: 42px;
    min-width: 42px;
    height: 38px;
    padding: 0;
  }

  .home-hero-dots {
    max-width: min(56vw, 270px);
  }

  .home-links,
  .home-products,
  .product-grid,
  .brand-grid,
  .feature-grid,
  .contact-cards,
  .official-product-feature-grid,
  .official-flow-grid,
  .pos-lite-tools .official-flow-grid,
  .official-product-gallery .image-gallery {
    grid-template-columns: 1fr !important;
  }

  .content-section,
  .software-choice-section,
  .official-product-flow,
  .official-product-showcase,
  .official-product-gallery {
    padding-right: max(18px, env(safe-area-inset-right)) !important;
    padding-left: max(18px, env(safe-area-inset-left)) !important;
  }

  .home-links {
    padding: 0;
  }

  .home-links a {
    min-height: 82px;
    padding: 18px;
    border-right: 0;
  }

  .home-links strong {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card,
  .brand-card,
  .feature-grid > article,
  .official-product-feature-card {
    border-radius: 16px;
  }

  .product-image,
  .home-products .product-image {
    height: min(68vw, 285px);
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-actions :where(a, button) {
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    text-align: center;
  }

  .filter-tabs {
    display: flex !important;
    gap: 8px;
    max-width: 100%;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .filter-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .catalog-status,
  .instruction-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .catalog-status span,
  .instruction-summary span {
    grid-column: 1 / -1;
  }

  .catalog-status b,
  .instruction-summary strong {
    font-size: 1rem;
    text-align: right;
  }

  .instruction-tools {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 22px;
  }

  .instruction-tools .filter-tabs {
    justify-content: flex-start;
    margin: 0;
  }

  .instruction-list {
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 0;
  }

  .instruction-list > a {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 76px;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .instruction-list > a > b {
    grid-column: 2;
    white-space: normal;
  }

  .page-intro > div,
  .software-hero > div,
  .service-page-hero > div:first-child,
  .site-shell > .software-hub-hero-premium > .page-intro-title,
  .site-shell > .video-page-premium > .page-intro-title {
    padding: 54px 18px 42px;
  }

  .page-intro h1,
  .software-hero h1,
  .service-page-hero h1,
  .site-shell > .software-hub-hero-premium .software-hub-copy h1,
  .site-shell > .video-page-premium h1 {
    margin-block: 18px 20px;
    font-size: var(--vent-heading-lg);
    line-height: .96;
  }

  .page-intro-aside p,
  .software-hero p,
  .service-page-hero p {
    font-size: 1rem;
  }

  .software-hero-shot,
  .camera-illustration,
  .site-shell > .software-hub-hero-premium > .page-intro-aside,
  .site-shell > .video-page-premium > .page-intro-aside {
    min-height: min(118vw, 500px);
  }

  .site-shell > .software-hub-hero-premium > .software-showcase {
    min-height: min(145vw, 560px);
  }

  .site-shell > .video-page-premium > .video-showcase {
    min-height: min(132vw, 520px);
  }

  .premium-showcase-canvas {
    inset: 18px 12px;
  }

  .software-showcase .premium-showcase-canvas {
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
  }

  .software-hero-platform {
    min-height: 0;
    border-radius: 16px;
  }

  .software-platform-info,
  .software-floating-badge,
  .video-floating-card,
  .video-quality-badge {
    min-width: 0;
    max-width: 100%;
  }

  .software-platform-info :where(b, small),
  .software-floating-badge :where(b, small),
  .video-floating-card :where(b, small) {
    overflow-wrap: break-word;
    white-space: normal;
  }

  .detail-capabilities,
  .security-strip,
  .premium-ticker,
  .software-metrics {
    grid-template-columns: 1fr !important;
  }

  .detail-capabilities span,
  .security-strip span,
  .premium-ticker span,
  .software-metrics > * {
    min-height: 54px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    font-size: var(--vent-text-sm);
  }

  .support-tabs {
    position: static;
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px;
    width: 100%;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .support-tabs button {
    flex: 0 0 min(78vw, 290px);
    min-height: 68px;
    padding: 10px 12px;
    scroll-snap-align: start;
    transform: none !important;
  }

  .support-layout,
  .support-overview,
  .premium-support-content,
  .premium-qr {
    grid-template-columns: 1fr !important;
    padding-right: 16px;
    padding-left: 16px;
  }

  .premium-support-content,
  .premium-qr {
    min-height: 0;
    padding-block: 32px;
  }

  .support-icon-stage {
    width: min(230px, 68vw);
    margin-inline: auto;
  }

  .support-feature-list,
  .support-steps {
    grid-template-columns: 1fr !important;
  }

  .ip-display {
    grid-template-columns: 1fr !important;
  }

  .ip-display button,
  .remote-buttons .button {
    width: 100%;
  }

  .remote-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .qr-preview {
    min-height: 300px;
    padding: 20px;
  }

  .product-detail-main.product-image,
  .product-detail-placeholder {
    height: min(106vw, 450px);
  }

  .product-detail-summary {
    padding: 48px 18px 56px;
  }

  .product-detail-summary h1 {
    font-size: var(--vent-heading-lg);
  }

  .product-detail-services {
    grid-template-columns: 1fr;
  }

  .product-detail-information,
  .product-detail-cta {
    padding: 58px 18px;
  }

  .product-detail-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail-cta .button {
    width: 100%;
  }

  .product-specifications dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-specifications dd {
    text-align: left;
  }

  .official-product-feature-card,
  .pos-lite-feature-grid .official-product-feature-card {
    grid-template-rows: minmax(260px, 66vw) auto;
  }

  .software-choice-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 30px;
  }

  .software-choice-card {
    grid-template-rows: minmax(220px, 67vw) auto !important;
    border-radius: 18px;
  }

  .software-card-visual {
    min-height: 0;
    padding: 20px;
  }

  .software-card-copy {
    padding: 25px 20px 28px;
  }

  .software-card-copy h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .zamboo-solution-detail,
  .zamboo-solution-detail:nth-child(even),
  .kds-workflow,
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .zamboo-solution-detail {
    min-height: 0;
    border-radius: 18px;
  }

  .zamboo-solution-copy {
    padding: 32px 20px;
  }

  .zamboo-solution-copy h3 {
    font-size: clamp(2rem, 9.8vw, 2.8rem);
    line-height: 1;
  }

  .zamboo-solution-visual,
  .zamboo-solution-detail:nth-child(even) .zamboo-solution-visual {
    grid-row: auto;
    grid-column: auto;
    min-height: min(110vw, 410px);
    padding: 20px 14px;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .ocr-workflow-visual {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ocr-workflow-visual > div {
    grid-template-columns: 46px 32px minmax(0, 1fr);
    width: min(100%, 330px);
    min-height: 0;
    text-align: left;
  }

  .ocr-workflow-visual > em {
    transform: rotate(90deg);
  }

  .kds-workflow {
    gap: 34px;
  }

  .kds-workflow-steps article {
    grid-template-columns: 32px 42px minmax(0, 1fr);
  }

  .kds-board-columns,
  .kds-benefit-grid,
  .kds-capabilities {
    grid-template-columns: 1fr !important;
  }

  .kds-board-columns article {
    min-height: 170px;
  }

  .contact-cards {
    grid-template-columns: 1fr !important;
  }

  .contact-cards a {
    min-height: 150px;
    padding: 24px 20px;
  }

  .address-card {
    padding: 34px 22px;
  }

  .map-section iframe {
    min-height: 360px;
  }

  .map-badge {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .service-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    padding: 52px max(18px, env(safe-area-inset-right)) 52px max(18px, env(safe-area-inset-left));
  }

  .service-banner h2 {
    font-size: var(--vent-heading-md);
  }

  .service-banner-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .service-banner :where(.button, .text-link) {
    justify-content: center;
    width: 100%;
  }

  .real-product-collage .visual-status,
  .visual-status.service-status-compact {
    right: 8px;
    bottom: 74px;
    max-width: calc(100% - 16px);
  }

  .official-product-gallery .image-gallery button {
    height: min(76vw, 390px);
  }

  .bluecash-fees-section {
    padding-inline: 16px;
  }

  .bluecash-fee-row {
    grid-template-columns: 1fr;
  }

  .bluecash-fee-turnover {
    grid-column: auto;
  }

  .bluecash-fee-row > div {
    padding: 19px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bluecash-fee-row > div:last-child {
    border-bottom: 0;
  }

  .cms-gallery-head {
    min-height: 62px;
    gap: 8px;
    padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  }

  .cms-gallery-caption {
    max-width: calc(100vw - 150px);
    font-size: .82rem;
  }

  .cms-gallery-counter {
    min-width: 48px;
    padding: 7px 8px;
  }

  .cms-gallery-close {
    width: 44px;
    height: 44px;
  }

  .cms-gallery-main {
    margin: 6px;
  }

  .cms-gallery-main img {
    padding: 6px;
  }

  .cms-gallery-nav {
    width: 42px;
    height: 58px;
  }

  .cms-gallery-nav.prev {
    left: 9px;
  }

  .cms-gallery-nav.next {
    right: 9px;
  }

  .cms-gallery-thumbs {
    justify-content: flex-start;
    min-height: 74px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  }

  .cms-gallery-thumbs button {
    flex-basis: 58px;
    width: 58px;
    height: 54px;
  }

  .footer-lead {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-lead .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 40px;
  }

  .footer-grid p,
  .footer-grid a,
  .footer-bottom {
    font-size: .92rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .hero-facts {
    display: flex !important;
    gap: 8px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .hero-facts span {
    flex: 0 0 min(46vw, 154px);
    min-height: 94px;
    scroll-snap-align: start;
  }

  .software-platform-info,
  .software-floating-badge,
  .video-floating-card,
  .video-quality-badge {
    font-size: .75rem;
  }

  .kds-workflow-steps article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .kds-workflow-steps article > i {
    display: none;
  }

  .service-banner,
  .product-detail-summary,
  .product-detail-information,
  .product-detail-cta {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
}

@media (max-width: 390px) {
  :root {
    --vent-heading-lg: clamp(2.1rem, 10.7vw, 3.1rem);
    --vent-heading-md: clamp(1.78rem, 9vw, 2.55rem);
  }

  .site-header .brand {
    width: min(52vw, 158px);
  }

  .site-header .menu-button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .hero-copy .hero-title,
  .payment-hero-copy .hero-title,
  .page-intro h1,
  .software-hero h1,
  .service-page-hero h1 {
    letter-spacing: -.035em;
  }

  .hero-facts span {
    min-height: 108px;
    padding-inline: 8px;
    font-size: .7rem;
  }

  .home-hero-controls {
    grid-template-columns: 38px auto 38px;
  }

  .home-hero-arrow {
    width: 38px;
  }

  .home-hero-dots button {
    width: 39px;
    min-width: 39px;
  }

  .content-section {
    padding-inline: 16px;
  }

  .product-body {
    padding: 20px 16px;
  }

  .official-product-feature-card > div,
  .official-flow-grid article {
    padding: 21px 18px;
  }

  .software-floating-badge,
  .video-floating-card {
    padding: 8px;
  }
}

/* Color-mix is an enhancement. These opaque fallbacks keep older Android and
   embedded browsers readable instead of leaving cards transparent. */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .site-shell :where(
    .product-card,
    .brand-card,
    .feature-grid > article,
    .official-product-feature-card,
    .official-flow-grid > article,
    .software-choice-card,
    .bluecash-fee-row
  ) {
    background: var(--surface);
  }

  .site-shell :where(.software-hub-hero-premium, .video-page-premium, .official-product-gallery) {
    background: var(--hero);
  }
}

@media (min-width: 1800px) {
  .site-shell {
    max-width: 2560px;
    margin-inline: auto;
  }

  .content-section > :where(.section-heading, .product-grid, .brand-grid, .feature-grid, .contact-cards, .image-gallery),
  .site-footer > *,
  .product-detail-information > *,
  .product-detail-cta > * {
    max-width: var(--vent-content-max);
  }

  .content-section > :where(.section-heading, .product-grid, .brand-grid, .feature-grid, .contact-cards, .image-gallery),
  .site-footer > * {
    margin-inline: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-shell :where(.product-card, .brand-card, .feature-grid > article, .official-product-feature-card, .official-flow-grid > article):hover {
    transform: none;
  }

  .site-shell :where(.button, .text-link, .product-card, .brand-card) {
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-progress i {
    animation: none !important;
    transform: scaleX(.28) !important;
  }

  .theme-dock,
  .theme-dock-toggle svg,
  .theme-slider-indicator {
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  html[data-theme="light"] .site-shell,
  .site-shell[data-theme="light"] {
    --muted: #2d475c;
    --line: rgba(2, 62, 138, .42);
  }

  html[data-theme="industrial"] .site-shell,
  .site-shell[data-theme="industrial"] {
    --muted: #d8e8f5;
    --line: rgba(105, 210, 255, .46);
  }

  .site-shell :where(.button, button, input, select, textarea, .product-card, .brand-card) {
    border-color: currentColor;
  }
}

@media (forced-colors: active) {
  .theme-dock-panel,
  .theme-dock-toggle,
  .theme-dock-options,
  .site-shell .button,
  .site-shell :where(.product-card, .brand-card, .feature-grid > article) {
    border: 1px solid CanvasText !important;
  }

  .theme-slider-indicator {
    background: Highlight;
  }
}
