/* Legacy page layouts and media. Canonical tokens and text roles live in site-foundation.css. */
:root {
  --color-accent: #00a7d9;
  --color-success: #16a34a;
  --color-text-light: #ffffff;
  --shadow-surface-hover: 0 18px 42px rgba(16, 24, 40, 0.08);
  --radius-sm: var(--radius-control);
  --radius-md: var(--radius-control);
  --radius-lg: var(--radius-surface);
  --radius-pill: 999px;
  --border-subtle: 1px solid var(--color-border);
  --shadow-card: var(--shadow-surface-hover);
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.06);
  --blue: var(--color-primary);
  --blue2: var(--color-primary);
  --azure: var(--color-accent);
  --ink: var(--color-text-main);
  --ink-2: #344054;
  --ink-3: var(--color-text-secondary);
  --muted: var(--color-text-secondary);
  --bg: var(--color-bg);
  --soft: var(--color-bg-soft);
  --line: var(--color-border);
  --line-2: var(--color-border);
  --card: #ffffff;
  --shadow: var(--shadow-card);
  --radius: var(--radius-surface);
  --r: var(--radius-surface);
  --r-lg: var(--radius-surface);
  --max: var(--layout-content-max);
  --wrap: var(--layout-content-max);
  --accent: var(--color-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text-main);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: var(--type-size-body);
  line-height: var(--type-line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.news-page) {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 44%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

input,
select,
textarea,
button {
  font: inherit;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.container,
.wrap,
.news-header,
.news-main {
  width: 100%;
  max-width: var(--container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--layout-gutter) !important;
  padding-right: var(--layout-gutter) !important;
}

.section,
.sec,
.uc,
.product-spec-section {
  padding-top: var(--layout-section-space) !important;
  padding-bottom: var(--layout-section-space) !important;
}

.section.soft,
.sec-soft,
.section-soft,
.product-text-layer,
.product-spec-section {
  background: var(--color-bg-soft) !important;
}

.section.ink,
.section-dark {
  background: var(--color-bg-dark) !important;
  color: #ffffff !important;
}

.section.ink p,
.section-dark p {
  color: rgba(255, 255, 255, 0.74) !important;
}

.page-title,
.hero:not(.uc-hero):not(.news-hero) {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%) !important;
}

.page-title {
  padding: 92px 0 52px !important;
}

.hero-in,
.hero-grid {
  gap: 56px !important;
}

.hero-in {
  padding-top: 96px !important;
  padding-bottom: 88px !important;
}

.hero-copy {
  max-width: 760px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero h1,
.page-title h1,
.product-text-layer h1,
.news-hero-copy h1,
.detail-hero h1 {
  max-width: 18ch;
  margin-bottom: 22px !important;
}

.lead,
.sub,
.section p.sub,
.sec-head .sub,
.section-heading:not(h1):not(h2):not(h3):not(h4) p {
  max-width: var(--layout-reading-max);
  color: var(--color-text-secondary) !important;
  font-size: var(--type-lead-compact) !important;
  line-height: var(--type-line-lead) !important;
}

.section-head,
.sec-head,
.section-heading:not(h1):not(h2):not(h3):not(h4) {
  max-width: 760px !important;
  margin-bottom: 32px !important;
}

.section-head {
  align-items: end;
}

.sec-head.center,
.section-heading:not(h1):not(h2):not(h3):not(h4) {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.eyebrow,
.section-label,
.label,
.panel-label,
.uc-tag,
.summary-label,
.breadcrumbs,
.crumbs,
.k,
.lab {
  color: var(--color-primary) !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(26, 92, 255, 0.08) !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 12px !important;
}

.eyebrow::before {
  background: var(--color-primary) !important;
}

.grid-2,
.g2,
.hero-grid,
.uc-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 48px !important;
  align-items: center;
}

.grid-3,
.g3,
.product-grid,
.news-grid,
.solution-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.grid-4,
.g4,
.stats,
.stats-grid,
.news-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-accent,
.h-herobtn,
.h-accentbtn,
.h-navcta,
.btn-dark,
.btn-quote,
a.nav-cta,
.card-cta,
button[type="submit"],
.news-search button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--button-min-height) !important;
  border-radius: var(--radius-control) !important;
  padding: var(--button-pad-y) var(--button-pad-x) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--type-size-button) !important;
  font-weight: var(--type-weight-button) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn.primary,
.btn-primary,
.btn-accent,
.h-herobtn,
.h-accentbtn,
.h-navcta,
.btn-dark,
.btn-quote,
button[type="submit"],
.news-search button {
  border: 1px solid var(--color-primary) !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(26, 92, 255, 0.18) !important;
}

.btn.primary:hover,
.btn-primary:hover,
.btn-accent:hover,
.h-herobtn:hover,
.h-accentbtn:hover,
.h-navcta:hover,
.btn-dark:hover,
.btn-quote:hover,
button[type="submit"]:hover,
.news-search button:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px) !important;
}

.btn:not(.primary):not(.dark):not(.btn-primary):not(.btn-accent),
.btn-secondary,
.btn-ghost,
.h-ghost,
.link-explore,
.news-nav a,
.anchor-grid a {
  border: var(--border-subtle) !important;
  background: #ffffff !important;
  color: var(--color-text-main) !important;
  box-shadow: none !important;
}

.btn:not(.primary):not(.dark):not(.btn-primary):not(.btn-accent):hover,
.btn-secondary:hover,
.btn-ghost:hover,
.h-ghost:hover,
.link-explore:hover,
.anchor-grid a:hover {
  border-color: var(--color-primary) !important;
  background: var(--color-bg-soft) !important;
  color: var(--color-primary) !important;
}

.card,
.qcard,
.product-card,
.feature-card,
.solution-card,
.stat,
.stat-item,
.fact,
.model,
.stage,
.flow-step,
.cap-card,
.platform,
.answer,
.aeo-summary,
.faq-lite,
.compliance-note,
.feature-panel,
.hero-panel-card,
.summary-card,
.news-card,
.article-card,
.detail-aside .sticky-card,
.detail-hero,
.news-toolbar,
.image-panel,
.uc-shell,
.market-card,
.portrait-card {
  overflow: hidden;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.card:hover,
.qcard:hover,
.product-card:hover,
.feature-card:hover,
.solution-card:hover,
.stat:hover,
.stat-item:hover,
.model:hover,
.stage:hover,
.flow-step:hover,
.cap-card:hover,
.platform:hover,
.hero-panel-card:hover,
.summary-card:hover,
.news-card:hover,
.article-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(26, 92, 255, 0.28) !important;
  box-shadow: var(--shadow-surface-hover) !important;
}

.product-card,
.news-card {
  padding: 0 !important;
}

.product-card img,
.product-image,
.article-cover img,
.news-card img,
.image-panel img,
.uc-shot img,
.market-card img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.image-panel img,
.image-panel video {
  height: 100%;
  object-fit: cover;
}

.ar99-pro-video-embed {
  overflow: hidden !important;
}

.ar99-pro-video-embed video {
  width: 79.2% !important;
  height: 64.5% !important;
  max-width: none !important;
}

.product-body,
.product-card-body,
.news-card-body,
.article-card,
.hero-panel-card {
  padding: 24px !important;
}

.pill,
.chip,
.product-tags span,
.platform-strip span,
.news-hero-stats span,
.detail-meta span,
.keyword-list span {
  display: inline-flex !important;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-pill) !important;
  background: #f2f5fa !important;
  color: #475467 !important;
  padding: 6px 11px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.chip.active,
.pill.active {
  border-color: rgba(26, 92, 255, 0.3) !important;
  background: rgba(26, 92, 255, 0.1) !important;
  color: var(--color-primary) !important;
}

.stat,
.stat-item,
.summary-card {
  padding: 28px 22px !important;
  text-align: center;
}

.stat b,
.stat strong,
.stat .num,
.stat-item strong,
.summary-value,
.ipstat .big {
  display: block;
  color: var(--color-primary) !important;
  font-size: clamp(30px, 3.2vw, 42px) !important;
  line-height: 1 !important;
  margin-bottom: 10px;
}

table,
.table,
.sku-table,
.spec-table,
.status-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-soft) !important;
}

th,
td,
.table th,
.table td,
.sku-table th,
.sku-table td,
.spec-table th,
.spec-table td {
  padding: 16px !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: #475467 !important;
  text-align: left;
  vertical-align: top;
}

th,
.table th,
.sku-table th,
.spec-table th {
  background: #f2f6ff !important;
  color: var(--color-text-main) !important;
  font-weight: 800 !important;
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea,
.form-control,
.h-field,
.news-search input,
input,
select,
textarea {
  min-height: 48px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background: #ffffff !important;
  color: var(--color-text-main) !important;
  padding: 12px 16px !important;
  outline: none;
}

textarea,
textarea.form-control,
.rfq-form textarea {
  min-height: 140px;
  padding-top: 14px !important;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.h-field:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.14) !important;
}

.topbar,
.site-header,
header.site,
.header,
.news-header {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  min-height: 72px;
  background: #ffffff !important;
  color: var(--color-text-main) !important;
  border-bottom: 1px solid rgba(229, 234, 240, 0.9) !important;
  backdrop-filter: none;
}

.nav,
.site-header .nav,
.news-header {
  min-height: 72px;
  align-items: center;
}

.brand,
.news-brand,
.site-header .brand {
  color: var(--color-text-main) !important;
  font-weight: 800 !important;
}

.header .brand-text strong {
  color: var(--color-text-main) !important;
}

.header .brand-text span {
  color: var(--color-text-secondary) !important;
}

.brand-mark,
.brand-xy,
.news-brand-mark,
.site-header .brand-mark {
  border-radius: var(--radius-sm) !important;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.navlinks,
.nav-links,
.news-nav,
.site-header .navlinks {
  gap: 8px !important;
  color: #344054 !important;
}

.navlinks a,
.nav-links a,
.news-nav a,
.site-header .navlinks a {
  width: auto !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  color: #344054 !important;
  font-size: var(--type-size-navigation) !important;
  font-weight: var(--type-weight-navigation) !important;
  line-height: var(--type-line-navigation) !important;
}

.navlinks a:hover,
.navlinks a.active,
.nav-links a:hover,
.nav-links a.active,
.news-nav a:hover,
.news-nav a.active,
.site-header .navlinks a:hover,
.site-header .navlinks a.active {
  background: rgba(26, 92, 255, 0.08) !important;
  color: var(--color-primary) !important;
}

.navlinks a.nav-cta,
a.nav-cta,
header.site .nav-cta.btn-accent {
  border-color: var(--color-primary) !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

.navlinks a.nav-cta:hover,
a.nav-cta:hover,
header.site .nav-cta.btn-accent:hover {
  background: var(--color-primary-dark) !important;
  color: #ffffff !important;
}

.menu-btn {
  min-height: 44px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background: #ffffff !important;
  color: var(--color-text-main) !important;
  padding: 9px 12px !important;
  font-weight: 800;
}

.footer,
.site-footer,
footer.site,
footer[data-site-footer] {
  background: var(--color-bg-dark) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 72px 0 32px !important;
}

.footer h3,
.site-footer h3,
footer.site h3,
footer.site h4,
.footer b,
.site-footer b {
  color: #ffffff !important;
}

.footer p,
.site-footer p,
footer.site p,
.footer a,
.site-footer a,
footer.site a {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: var(--type-size-body-sm) !important;
  line-height: var(--type-line-footer) !important;
}

.footer a:hover,
.site-footer a:hover,
footer.site a:hover {
  color: #ffffff !important;
}

.footer-grid,
.foot-grid,
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1.2fr !important;
  gap: 48px !important;
}

.copyright,
.foot-bottom,
.site-footer .copyright {
  color: rgba(255, 255, 255, 0.5) !important;
}

.cta,
.band {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

.band,
.cta-box {
  border-radius: var(--radius-lg) !important;
  background: linear-gradient(135deg, #0b1b3a, var(--color-bg-dark)) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-card) !important;
}

.band h2,
.cta-box h2 {
  color: #ffffff !important;
}

.band p,
.cta-box p {
  color: rgba(255, 255, 255, 0.76) !important;
}

.news-page {
  --accent: var(--color-primary);
  background: var(--color-bg-soft) !important;
  font-family: var(--font-sans) !important;
}

.news-hero {
  gap: 28px !important;
}

.news-hero-copy {
  background: var(--color-bg-dark) !important;
}

.news-hero-copy p {
  color: rgba(255, 255, 255, 0.76) !important;
}

@media (max-width: 992px) {
  .grid-3,
  .g3,
  .product-grid,
  .news-grid,
  .solution-grid,
  .grid-4,
  .g4,
  .stats,
  .stats-grid,
  .news-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --layout-gutter: 20px;
    --layout-section-space: 56px;
  }

  body {
    font-size: 16px;
  }

  p {
    font-size: 16px;
    line-height: 1.7;
  }

  .container,
  .wrap,
  .news-header,
  .news-main {
    padding-left: var(--layout-gutter) !important;
    padding-right: var(--layout-gutter) !important;
  }

  .section,
  .sec,
  .uc,
  .product-spec-section,
  .cta {
    padding-top: var(--layout-section-space) !important;
    padding-bottom: var(--layout-section-space) !important;
  }

  .hero-in,
  .page-title {
    padding-top: 72px !important;
    padding-bottom: 64px !important;
  }

  .grid-2,
  .g2,
  .hero-grid,
  .uc-hero-grid,
  .grid-3,
  .g3,
  .product-grid,
  .news-grid,
  .solution-grid,
  .grid-4,
  .g4,
  .stats,
  .stats-grid,
  .news-summary,
  .footer-grid,
  .foot-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  header.site .wrap.nav {
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    gap: 12px !important;
  }

  header.site .brand {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0;
  }

  header.site .brand-tx {
    min-width: 0;
  }

  header.site .brand-tx small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  header.site a.nav-cta {
    display: none !important;
  }

  header.site .menu-btn {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header .nav {
    width: min(100% - 28px, 1240px) !important;
    max-width: calc(100% - 28px) !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header .brand-text {
    min-width: 0;
  }

  .header .brand-text span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .header .nav-cta {
    flex: 0 0 auto;
    gap: 8px !important;
  }

  .header .nav-cta .desktop-only {
    display: none !important;
  }

  .header .menu-btn {
    width: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px;
    padding: 0 !important;
  }

  .section-head,
  .sec-head,
  .section-heading:not(h1):not(h2):not(h3):not(h4) {
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  .sec-head.center,
  .section-heading:not(h1):not(h2):not(h3):not(h4) {
    text-align: left !important;
  }

  .hero-actions,
  .hero-cta,
  .news-search {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-accent,
  .h-herobtn,
  .h-accentbtn,
  .h-navcta,
  .btn-dark,
  .btn-quote,
a.nav-cta,
  button[type="submit"],
  .news-search button {
    width: 100% !important;
  }

  .navlinks,
  .nav-links,
  .site-header .navlinks {
    top: 72px !important;
    left: 18px !important;
    right: 18px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
  }

  .matrix-wrap,
  .scrollx {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sku-table,
  .status-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .g4,
  .stats,
  .stats-grid,
  .news-summary {
    grid-template-columns: 1fr !important;
  }

  .card,
  .qcard,
  .product-body,
  .product-card-body,
  .news-card-body,
  .hero-panel-card {
    padding: 20px !important;
  }

  body > div[style*="overflow-x:hidden"] > div:first-child {
    flex-wrap: wrap !important;
    white-space: normal !important;
    row-gap: 6px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body > div[style*="overflow-x:hidden"] > div:first-child .bar-link {
    white-space: nowrap !important;
  }

  body > div[style*="overflow-x:hidden"] > nav > div {
    gap: 12px !important;
    justify-content: center !important;
  }

  body > div[style*="overflow-x:hidden"] > header#top {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body > div[style*="overflow-x:hidden"] > header#top > * {
    min-width: 0 !important;
  }
}

/* Homepage product showcase */
#products.home-products {
  max-width: var(--layout-content-max) !important;
  padding-top: clamp(78px, 8vw, 112px) !important;
}

#products.home-products > div:first-child {
  align-items: end !important;
  gap: 36px !important;
  margin-bottom: 44px !important;
}

#products.home-products .home-products-tier {
  margin: 40px 0 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(10, 20, 35, 0.14) !important;
  color: #625d54 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
}

#products.home-products .home-product-grid {
  display: grid !important;
  align-items: stretch !important;
  gap: 20px !important;
}

#products.home-products .g2,
#products.home-products .g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#products.home-products .g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#products.home-products .home-product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: 20px !important;
  border: 1px solid #dedbd0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #08111f !important;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(15, 24, 36, 0.08) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

#products.home-products .home-product-card > div:first-child {
  min-height: 48px !important;
  gap: 14px !important;
}



#products.home-products .home-product-card > div:first-child > div:last-child {
  flex: 0 0 auto !important;
  font-size: 10.5px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

#products.home-products .home-product-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(61, 98, 255, 0.36) !important;
  box-shadow: 0 24px 52px rgba(15, 24, 36, 0.13) !important;
}

#products.home-products .home-product-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1.92 / 1 !important;
  margin: 16px 0 14px !important;
  border: 1px solid #dfdcd0 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #f5f4ee 0%, #ece9df 100%) !important;
  overflow: hidden !important;
}

#products.home-products .home-product-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: var(--home-product-image-pad, 12px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(var(--home-product-image-scale, 0.9)) !important;
  transform-origin: center center !important;
}

#products.home-products .home-product-card > p {
  flex: 1 1 auto !important;
  margin-bottom: 14px !important;
  color: #253042 !important;
  font-size: 12.8px !important;
  line-height: 1.52 !important;
}

#products.home-products .home-product-card > div:last-child {
  margin-top: auto !important;
  padding-top: 11px !important;
  border-top: 1px solid rgba(10, 20, 35, 0.1) !important;
  color: #5f6875 !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

#products.home-products .home-product-card[data-product="audio"] {
  --home-product-image-scale: 0.98;
  --home-product-image-pad: 8px;
}

#products.home-products .home-product-card[data-product="k900"] {
  --home-product-image-scale: 0.88;
  --home-product-image-pad: 14px;
}

#products.home-products .home-product-card[data-product="nudge"] {
  --home-product-image-scale: 0.92;
  --home-product-image-pad: 10px;
}

#products.home-products .home-product-card[data-product="ar99"] {
  --home-product-image-scale: 1.02;
  --home-product-image-pad: 8px;
}

#products.home-products .home-product-card[data-product="ar99-style"] {
  --home-product-image-scale: 1;
  --home-product-image-pad: 10px;
}

#products.home-products .home-product-card[data-product="ar99-pro"] {
  --home-product-image-scale: 0.9;
  --home-product-image-pad: 14px;
}

#products.home-products .home-product-card[data-product="c100"] {
  --home-product-image-scale: 0.98;
  --home-product-image-pad: 8px;
}

#products.home-products .home-product-card[data-product="bb-medical"],
#products.home-products .home-product-card[data-product="confidant"],
#products.home-products .home-product-card[data-product="falcon"] {
  --home-product-image-scale: 0.92;
  --home-product-image-pad: 12px;
}

@media (max-width: 1180px) {
  #products.home-products .g2,
  #products.home-products .g3,
  #products.home-products .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  #products.home-products {
    padding-left: var(--layout-gutter) !important;
    padding-right: var(--layout-gutter) !important;
  }

  #products.home-products > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 34px !important;
  }

  #products.home-products .g2,
  #products.home-products .g3,
  #products.home-products .g4 {
    grid-template-columns: 1fr !important;
  }

  #products.home-products .home-product-card {
    padding: 20px !important;
  }

  #products.home-products .home-products-tier {
    margin-top: 36px !important;
  }
}

/* Preserve the legacy small-screen overflow safeguards. Typography is in the foundation. */
@media (max-width: 768px) {
  :where(main, section, article, aside, header, footer, .container, .wrap, .products-page, .products-page .container, .products-hero-grid, .products-section-head, .program-grid, .hero-grid, .grid-2, .grid-3, .grid-4) {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  :where(.products-hero-grid > *, .products-section-head > *, .hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .program-grid > *) {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  :where(h1, h2, h3, h4, p, li, td, th, figcaption, .lead, .sub, .btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-accent) {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }
}


/* Visual consistency stabilization utilities */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(body) {
  overflow-wrap: break-word;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

:where(.container, .wrap, .site-container, .pad) {
  width: 100%;
  max-width: var(--layout-content-max) !important;
  margin-inline: auto !important;
}

body > div[style*="overflow-x:hidden"] :where(.pad) {
  max-width: var(--layout-content-max) !important;
  padding-left: var(--layout-gutter) !important;
  padding-right: var(--layout-gutter) !important;
}

:where(.g2, .g3, .g4, .g5, .grid, .cards) > * {
  min-width: 0;
}

:where(img, video, iframe, svg) {
  max-inline-size: 100%;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(26, 92, 255, 0.34);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage Typography Polish
   Scope: homepage text rhythm and controls only. Layout, media sizing,
   module order and brand colors are intentionally untouched. */
:root {
  --home-type-h1: var(--type-home-hero);
  --home-type-h2: var(--type-h2);
  --home-type-h3: var(--type-h3);
  --home-type-h4: var(--type-h4);
  --home-type-body: var(--type-size-body);
  --home-type-card: 16px;
  --home-type-caption: 12px;
  --home-line-body: 1.66;
  --home-line-card: 1.58;
  --home-line-heading: 1.16;
  --home-button-height: 48px;
  --home-button-pad-x: 24px;
}

body > div[style*="overflow-x:hidden"] {
  font-family: var(--type-font-sans) !important;
  text-rendering: optimizeLegibility;
}

body > div[style*="overflow-x:hidden"] :where(h1, h2, h3, h4, summary) {
  font-family: var(--type-font-display) !important;
  font-weight: var(--type-weight-heavy) !important;
  letter-spacing: 0 !important;
}

body > div[style*="overflow-x:hidden"] :where(h1) {
  font-size: var(--home-type-h1) !important;
  line-height: 1.08 !important;
}

body > div[style*="overflow-x:hidden"] :where(h2) {
  font-size: var(--home-type-h2) !important;
  line-height: var(--home-line-heading) !important;
}

body > div[style*="overflow-x:hidden"] :where(h3) {
  font-size: var(--home-type-h3) !important;
  line-height: 1.28 !important;
}

body > div[style*="overflow-x:hidden"] :where(h4) {
  font-size: var(--home-type-h4) !important;
  line-height: 1.36 !important;
}

body > div[style*="overflow-x:hidden"] main > section :where(p) {
  font-size: var(--home-type-body) !important;
  line-height: var(--home-line-body) !important;
  font-weight: var(--type-weight-regular) !important;
}

body > div[style*="overflow-x:hidden"] :where(li, td, th) {
  line-height: var(--home-line-body) !important;
}

body > div[style*="overflow-x:hidden"] :where(
  .home-products-tier,
  .home-product-card > div:first-child div:first-child > div:first-child,
  .home-product-card > div[style*="text-transform:uppercase"],
  small,
  figcaption
) {
  font-family: var(--type-font-meta) !important;
  font-size: var(--home-type-caption) !important;
  font-weight: var(--type-weight-bold) !important;
  line-height: var(--type-line-caption) !important;
  letter-spacing: 0 !important;
}

body > div[style*="overflow-x:hidden"] :where(.home-product-card) {
  font-size: var(--home-type-card) !important;
  line-height: var(--home-line-card) !important;
}

body > div[style*="overflow-x:hidden"] :where(.home-product-card p, .home-product-card li) {
  font-size: var(--home-type-card) !important;
  line-height: var(--home-line-card) !important;
}

body > div[style*="overflow-x:hidden"] :where(.home-product-card strong) {
  font-weight: var(--type-weight-bold) !important;
}

body > div[style*="overflow-x:hidden"] :where(details summary) {
  font-size: clamp(17px, 1.45vw, 20px) !important;
  line-height: 1.36 !important;
  font-weight: var(--type-weight-bold) !important;
}

body > div[style*="overflow-x:hidden"] :where(details p) {
  font-size: 16px !important;
  line-height: 1.68 !important;
}

body > div[style*="overflow-x:hidden"] :where(.btn-blue, .btn-line, .cta-blue, .cta-line) {
  min-height: var(--home-button-height) !important;
  border-radius: var(--button-radius) !important;
  padding: 0 var(--home-button-pad-x) !important;
  font-family: var(--type-font-sans) !important;
  font-size: var(--type-size-button) !important;
  font-weight: var(--type-weight-bold) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body > div[style*="overflow-x:hidden"] :where(.site-footer p, .site-footer a) {
  font-size: 14px !important;
  line-height: 1.68 !important;
}

body > div[style*="overflow-x:hidden"] :where(.site-footer h3) {
  font-size: 18px !important;
  line-height: 1.34 !important;
  font-weight: var(--type-weight-bold) !important;
}

/* Homepage four-layer moat contrast */
body > div[style*="overflow-x:hidden"] #technology > .pad > h2 {
  color: #f8fafc !important;
}

body > div[style*="overflow-x:hidden"] #technology > .pad > p {
  color: #c5cad5 !important;
}

/* Homepage closing CTA contrast */
body > div[style*="overflow-x:hidden"] #contact > .pad h2 {
  color: #f8fafc !important;
}

body > div[style*="overflow-x:hidden"] #contact > .pad > .split > div:first-child > p {
  color: #d4d8e2 !important;
}

/* Homepage product row alignment */
body > div[style*="overflow-x:hidden"] #products.home-products .home-product-grid {
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card {
  gap: 0 !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:first-child {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 56px !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:first-child > div:first-child {
  min-width: 0 !important;
}


body > div[style*="overflow-x:hidden"] #products.home-products .home-product-media {
  flex: 0 0 auto !important;
  margin: 14px 0 13px !important;
  aspect-ratio: 1.82 / 1 !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > p {
  flex: 0 0 auto !important;
  min-height: 62px !important;
  margin: 0 0 12px !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:last-child {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card:has(> .home-product-media:nth-child(3)) > div:first-child {
  min-height: 14px !important;
  height: 14px !important;
  display: block !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card:has(> .home-product-media:nth-child(3)) > div:nth-child(2) {
  min-height: 40px !important;
  display: flex !important;
  align-items: flex-end !important;
  margin-top: 5px !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card:has(> .home-product-media:nth-child(3)) .home-product-media {
  margin-top: 10px !important;
}

body > div[style*="overflow-x:hidden"] #products.home-products .g4 .home-product-card:has(> .home-product-media:nth-child(3)) .home-product-media {
  margin-top: 16px !important;
}

@media (max-width: 760px) {
  :root {
    --home-type-h1: clamp(36px, 8.6vw, 42px);
    --home-type-h2: clamp(28px, 6.4vw, 34px);
    --home-type-h3: clamp(21px, 5.4vw, 25px);
    --home-type-body: 16px;
    --home-type-card: 16px;
    --home-button-height: 48px;
    --home-button-pad-x: 24px;
  }

  body > div[style*="overflow-x:hidden"],
  body > div[style*="overflow-x:hidden"] > main {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body > div[style*="overflow-x:hidden"] :where(main, section, header, footer, .pad) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body > div[style*="overflow-x:hidden"] :where(.pad) {
    padding-left: var(--layout-gutter) !important;
    padding-right: var(--layout-gutter) !important;
  }

  body > div[style*="overflow-x:hidden"] :where(.split, .g2, .g3, .g4, .g5) {
    grid-template-columns: 1fr !important;
  }

  body > div[style*="overflow-x:hidden"] :where(.split > *, .g2 > *, .g3 > *, .g4 > *, .g5 > *, .pad > *, section > *) {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body > div[style*="overflow-x:hidden"] :where(h1, h2, h3, h4, p) {
    max-width: calc(100vw - 36px) !important;
  }

  body > div[style*="overflow-x:hidden"] :where(h1, h2, h3, h4) {
    overflow-wrap: normal;
    word-break: normal;
  }

  body > div[style*="overflow-x:hidden"] :where(p, li) {
    overflow-wrap: break-word;
  }

  body > div[style*="overflow-x:hidden"] #top > div > div:first-child {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    row-gap: 8px !important;
  }

  body > div[style*="overflow-x:hidden"] #top > div > div:first-child > span[style*="height:1px"] {
    flex: 0 1 56px !important;
    max-width: 56px !important;
  }

  body > div[style*="overflow-x:hidden"] #top .split {
    gap: 24px !important;
    margin-top: 28px !important;
  }

  body > div[style*="overflow-x:hidden"] #top .split > div:last-child {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  body > div[style*="overflow-x:hidden"] :where(.btn-blue, .btn-line, .cta-blue, .cta-line) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:first-child,
  body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:first-child > div:first-child > div:last-child,
  body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > p,
  body > div[style*="overflow-x:hidden"] #products.home-products .home-product-card > div:last-child {
    min-height: 0 !important;
  }
}
