/* ==========================================================
   Scan-Tronic PRO — Components
   Rules:
   - No hardcoded colors (only tokens)
   - No inline styles
   - One button (.st-btn) + one card (.st-card)
========================================================== */

/* ==============================
   Header
============================== */
.st-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 30;
  border-bottom: var(--st-border-w) solid var(--st-border-hairline);
  background: var(--st-header-bg);
  backdrop-filter: blur(12px);
}

.st-header__inner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--st-space-3);
}

.st-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  min-width: fit-content;
}

.st-brand__logo-wrap{
  position: relative;
  display: block;
  width: 200px;
  height: 40px;
  flex: 0 0 auto;
}

.st-brand__logo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--st-ease), visibility var(--st-ease);
}

.st-brand__logo--light{
  opacity: 1;
  visibility: visible;
}

html[data-theme="dark"] .st-brand__logo--light{
  opacity: 0;
  visibility: hidden;
}

html[data-theme="dark"] .st-brand__logo--dark{
  opacity: 1;
  visibility: visible;
}

html[data-theme="light"] .st-brand__logo--light{
  opacity: 1;
  visibility: visible;
}

html[data-theme="light"] .st-brand__logo--dark{
  opacity: 0;
  visibility: hidden;
}

.st-brand__text{
  display: none;
  flex-direction: column;
}

.st-brand__mark{
  height: 36px;
  width: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: var(--st-radius-s);
  background: rgb(var(--st-rgb-accent) / 0.10);
  border: var(--st-border-w) solid rgb(var(--st-rgb-accent) / 0.60);
  color: rgb(var(--st-rgb-accent-2) / 0.95);
  font-weight: 700;
}

.st-brand__name{
  font-size: 14px;
  font-weight: 700;
  letter-spacing:.04em;
  white-space: nowrap;
}

.st-brand__tag{
  font-size: var(--st-fs-2xs);
  color: var(--st-footer-text);
  white-space: nowrap;
}

.st-nav{
  display:flex;
  align-items:center;
  gap: 28px;
  font-size: 14px;
  color: rgb(var(--st-rgb-text) / 0.92);
}
.st-nav a{ text-decoration:none; }
.st-nav a:hover{ color: rgb(var(--st-rgb-accent-2) / 0.95); }

.st-actions{ display:flex; align-items:center; gap: 12px; }

/* Mobile navigation */
.st-mobile-toggle{
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--st-radius-pill);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: transparent;
  color: var(--st-header-text);
  cursor: pointer;
  transition:
    border-color var(--st-ease),
    color var(--st-ease),
    background var(--st-ease);
}

.st-mobile-toggle:hover{
  border-color: rgb(var(--st-rgb-accent) / 0.45);
  color: rgb(var(--st-rgb-accent-2) / 0.95);
  background: rgb(var(--st-rgb-accent) / 0.08);
}

.st-mobile-toggle__line{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--st-radius-pill);
  background: currentColor;
  transition:
    transform var(--st-ease),
    opacity var(--st-ease);
}

.st-header.is-mobile-open .st-mobile-toggle__line:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.st-header.is-mobile-open .st-mobile-toggle__line:nth-child(2){
  opacity: 0;
}

.st-header.is-mobile-open .st-mobile-toggle__line:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.st-mobile-nav{
  display: none;
}

@media (max-width: 980px){
  .st-nav{ display:none; }

  .st-mobile-toggle{ display: inline-flex; }

  .st-mobile-nav{
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 29;
    display: none;
    padding: var(--st-space-2);
    border-bottom: var(--st-border-w) solid var(--st-border-hairline);
    background: var(--st-header-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 44px rgb(var(--st-rgb-shadow) / 0.28);
  }

  .st-header.is-mobile-open .st-mobile-nav,
  .st-mobile-nav:not([hidden]){
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .st-mobile-nav a{
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: var(--st-radius-s);
    color: var(--st-header-text);
    text-decoration: none;
    font-size: var(--st-fs-sm);
  }

  .st-mobile-nav a:hover{
    background: rgb(var(--st-rgb-accent) / 0.08);
    color: rgb(var(--st-rgb-accent-2) / 0.95);
  }
}

@media (max-width: 767px){
  .st-header__inner{ gap: var(--st-space-2); }

  .st-brand__logo-wrap{
    width: 170px;
    height: 34px;
  }

  .st-actions{ gap: 8px; }
}

@media (max-width: 480px){
  .st-brand__logo-wrap{
    width: 145px;
    height: 30px;
  }

  .st-theme,
  .st-dd__btn{
    height: 34px;
    padding: 0 10px;
  }

  .st-mobile-toggle{
    width: 38px;
    height: 38px;
  }
}


/* ==============================
   Dropdown (language)
============================== */
.st-dd{ position: relative; }

.st-dd__btn{
  height: 36px;
  padding: 0 12px;
  border-radius: var(--st-radius-pill);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: transparent;
  color: var(--st-header-text);
  font-size: var(--st-fs-xs);
  cursor: pointer;
}
.st-dd__btn:hover{
  border-color: rgb(var(--st-rgb-accent) / 0.45);
  color: rgb(var(--st-rgb-accent-2) / 0.95);
}

.st-dd__menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 10px;
  border-radius: var(--st-radius-m);
  border: var(--st-border-w) solid var(--st-border);
  background: var(--st-surface-1);
  box-shadow: 0 16px 44px rgb(var(--st-rgb-shadow) / 0.45);
  display:none;
}
.st-dd[data-open="1"] .st-dd__menu{ display:block; }

.st-dd__item{
  width:100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--st-radius-s);
  text-decoration:none;
  color: var(--st-text);
  font-size: 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align:left;
}
.st-dd__item:hover{ background: rgb(var(--st-rgb-accent) / 0.08); }


/* Theme toggle */
.st-theme{
  height: 36px;
  padding: 0 12px;
  border-radius: var(--st-radius-pill);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: transparent;
  color: var(--st-header-text);
  font-size: var(--st-fs-xs);
  cursor:pointer;
}
.st-theme:hover{
  border-color: rgb(var(--st-rgb-accent) / 0.45);
  color: rgb(var(--st-rgb-accent-2) / 0.95);
}


/* ==============================
   Disabled state (global)
============================== */
.st-is-disabled,
.st-btn[aria-disabled="true"],
.st-btn.is-disabled{
  opacity: 0.55;
  cursor: default !important;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.st-btn[aria-disabled="true"]::before,
.st-btn.is-disabled::before{ opacity: 0 !important; }


/* ==============================
   Pill / badge
============================== */
.st-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--st-radius-pill);
  border: var(--st-border-w) solid rgb(var(--st-rgb-accent) / 0.55);
  background: rgb(var(--st-rgb-accent) / 0.10);
  color: rgb(var(--st-rgb-accent-3) / 1);
  font-size: 13px;
  font-weight: 650;
}
.st-pill__dot{
  width: 6px;
  height: 6px;
  border-radius: var(--st-radius-pill);
  background: rgb(var(--st-rgb-accent-2) / 1);
}


/* ==============================
   Card (one system + variants)
============================== */
.st-card{
  position: relative;
  display:flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--st-space-3);
  border-radius: var(--st-radius-l);
  border: var(--st-border-w) solid var(--st-card-border);
  background: var(--st-card-bg);
  box-shadow: var(--st-card-shadow);
  transition:
    border-color var(--st-ease),
    box-shadow var(--st-ease),
    transform var(--st-ease),
    background var(--st-ease);
}
.st-card:hover{
  border-color: var(--st-card-hover-border);
  box-shadow: var(--st-card-hover-shadow);
  transform: translateY(-1px);
}

/* Make cards usable as buttons/links */
.st-card--interactive{
  width: 100%;
  text-align:left;
  cursor:pointer;
}

/* Smaller card padding (for compact lists) */
.st-card--compact{ padding: var(--st-space-2); }

/* Row layout variant (still st-card) */
.st-card--row{
  flex-direction: row;
  align-items: center;
  gap: var(--st-space-2);
}

/* Tile variant (front page app tiles) */
.st-card--tile{
  padding: 20px;
  min-height: 172px;
  background: var(--st-surface-3);
}

/* Glow variant (shared by product-style cards and legacy front-page glow class) */
.st-card--product::after,
.st-card--glow::after{
  content:"";
  position:absolute;
  left: 22px;
  right: 22px;
  bottom: -26px;
  height: 56px;
  border-radius: var(--st-radius-l);
  background: radial-gradient(
    circle at 50% 50%,
    rgb(var(--st-rgb-accent) / 0.35),
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--st-ease);
  pointer-events:none;
}
.st-card--product:hover::after,
.st-card--glow:hover::after{ opacity: 1; }

.st-card__kicker{
  font-size: var(--st-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgb(var(--st-rgb-accent-2) / 1);
}

.st-card__title{
  margin: 0 0 var(--st-space-2);
  color: var(--st-text);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.25;
}

.st-card__title--sm{ font-size: 15px; margin: 0; }

.st-card__text{
  margin: 0 0 var(--st-space-3);
  color: var(--st-muted);
}
.st-card__text--compact{ margin-bottom: var(--st-space-2); font-size: var(--st-fs-sm); }

/* Clamp for card intros (matches previous line-clamp usage) */
.st-card__text--clamp{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.st-card__list{
  margin: 0 0 var(--st-space-3);
  padding-left: 18px;
  color: var(--st-muted);
}
.st-card__list li{ margin: 0 0 8px; }
.st-card__list--compact{ margin-bottom: var(--st-space-2); }
.st-card__list--compact li{ margin-bottom: 6px; }

.st-card__cta{
  margin-top: auto;
  padding-top: var(--st-space-2);
  display:flex;
  flex-wrap: wrap;
  gap: var(--st-space-2);
  align-items:center;
}


/* ==============================
   Dot (used in compact row cards)
============================== */
.st-dot{
  width: 8px;
  height: 8px;
  border-radius: var(--st-radius-pill);
  background: rgb(var(--st-rgb-accent-2) / 1);
  flex: 0 0 auto;
}


/* ==============================
   Stats (front page)
============================== */
.st-stat{
  padding: 16px;
  border-radius: var(--st-radius-l);
  border: var(--st-border-w) solid var(--st-border);
  background: var(--st-surface-2);
  transition:
    border-color var(--st-ease),
    box-shadow var(--st-ease),
    transform var(--st-ease),
    background var(--st-ease);
}

.st-stat:hover,
.st-stat:focus-within{
  border-color: var(--st-card-hover-border);
  box-shadow: var(--st-card-hover-shadow);
  transform: translateY(-3px);
}
.st-stat__value{
  font-size: 18px;
  font-weight: 750;
  color: rgb(var(--st-rgb-accent-2) / 1);
}
.st-stat__label{
  margin-top: 6px;
  font-size: var(--st-fs-xs);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgb(var(--st-rgb-text) / 0.78);
}
.st-stat__text{
  margin-top: 10px;
  margin-bottom: 0;
  font-size: var(--st-fs-xs);
  color: rgb(var(--st-rgb-text) / 0.65);
}


/* ==============================
   Metrics cards (Impact section)
============================== */
.st-metric{
  text-align:center;
  padding: 20px;
}
.st-metric__label{
  font-size: var(--st-fs-xs);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgb(var(--st-rgb-text) / 0.78);
}
.st-metric__value{
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgb(var(--st-rgb-accent-2) / 1);
}
.st-metric__value--success{ color: rgb(var(--st-rgb-success) / 1); }
.st-metric__value--info{ color: rgb(var(--st-rgb-info) / 1); }

.st-metric__note{
  margin-top: 8px;
  margin-bottom: 0;
  font-size: var(--st-fs-2xs);
  color: rgb(var(--st-rgb-text) / 0.60);
}


/* ==============================
   Button (one system)
============================== */
.st-btn{
  position: relative;
  height: var(--st-btn-h);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--st-radius-pill);
  border: var(--st-border-w) solid var(--st-btn-border);
  background: var(--st-btn-bg);
  color: var(--st-btn-text);
  text-decoration:none;
  box-shadow: var(--st-btn-shadow);
  transition:
    background var(--st-ease),
    box-shadow var(--st-ease),
    transform var(--st-ease),
    border-color var(--st-ease),
    color var(--st-ease);
  cursor:pointer;
}
.st-btn:hover{
  background: var(--st-btn-hover-bg);
  transform: translateY(-1px);
}

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

/* Solid accent variant (still the same geometry) */
.st-btn--solid{
  background: var(--st-btn-active-bg);
  border-color: var(--st-btn-active-border);
  color: var(--st-btn-active-text);
  box-shadow: 0 10px 30px rgb(var(--st-rgb-accent) / 0.22);
}
.st-btn--solid:hover{
  background: rgb(var(--st-rgb-accent) / 0.92);
}

/* Stateful “active” (used by Impact toggle, tabs, etc.) */
.st-btn.is-active{
  background: var(--st-btn-active-bg);
  border-color: var(--st-btn-active-border);
  color: var(--st-btn-active-text);
}

/* Button glow layer (token-driven, no inline CSS) */
.st-btn::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--st-radius-pill);
  opacity: 0;
  filter: blur(18px);
  background: radial-gradient(
    circle at 50% 50%,
    rgb(var(--st-rgb-accent) / 0.35),
    transparent 60%
  );
  transition: opacity var(--st-ease);
  pointer-events:none;
}
.st-btn:hover::before{ opacity: 1; }


/* ==============================
   Text link
============================== */
.st-link{
  color: rgb(var(--st-rgb-accent-3) / 0.95);
  text-decoration: none;
}
.st-link:hover{ color: rgb(var(--st-rgb-accent-2) / 1); }


/* ==============================
   Forms
============================== */
.st-form{
  display:flex;
  flex-direction: column;
  gap: var(--st-space-2);
}

.st-form__grid{
  display:grid;
  gap: var(--st-space-2);
}
.st-form__grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px){
  .st-form__grid--2{ grid-template-columns: 1fr; }
}

.st-field{ display:flex; flex-direction:column; gap: 8px; }

.st-label{
  font-size: var(--st-fs-xs);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgb(var(--st-rgb-accent-2) / 1);
}

.st-input,
.st-textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--st-radius-s);
  border: var(--st-border-w) solid var(--st-border);
  background: var(--st-surface-1);
  color: var(--st-text);
  transition: border-color var(--st-ease), box-shadow var(--st-ease), background var(--st-ease);
}

.st-textarea{ min-height: 130px; resize: vertical; }

.st-input::placeholder,
.st-textarea::placeholder{
  color: rgb(var(--st-rgb-text) / 0.45);
}

.st-input:focus-visible,
.st-textarea:focus-visible{
  outline: 2px solid rgb(var(--st-rgb-accent) / 0.55);
  outline-offset: 2px;
  border-color: rgb(var(--st-rgb-accent) / 0.45);
}

.st-form__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: var(--st-space-2);
  margin-top: var(--st-space-2);
}

.st-alert{
  padding: 12px 14px;
  border-radius: var(--st-radius-s);
  border: var(--st-border-w) solid rgb(var(--st-rgb-accent) / 0.35);
  background: rgb(var(--st-rgb-accent) / 0.10);
  color: var(--st-text);
}

/* ==============================
   Modal
============================== */
html.st-modal-open{ overflow: hidden; }

.st-modal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--st-space-3);
  overflow-y: auto;
}
.st-modal[data-open="1"]{ display:flex; }

.st-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgb(var(--st-rgb-black) / 0.62);
  backdrop-filter: blur(6px);
}

.st-modal__dialog{
  position: relative;
  width: min(560px, 100%);
  border-radius: var(--st-radius-l);
  border: var(--st-border-w) solid var(--st-border);
  background: var(--st-surface-3);
  box-shadow: 0 24px 80px rgb(var(--st-rgb-shadow) / 0.55);
  padding: var(--st-space-3);
  margin: auto;
}

.st-modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--st-space-2);
  margin-bottom: var(--st-space-2);
}

.st-modal__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.st-modal__close{
  width: 36px;
  height: 36px;
  border-radius: var(--st-radius-s);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: rgb(var(--st-rgb-accent) / 0.10);
  color: var(--st-text);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  line-height: 1;
}
.st-modal__close:hover{
  border-color: rgb(var(--st-rgb-accent) / 0.45);
}

.st-modal__text{
  margin: 0;
  color: var(--st-muted);
}

.st-modal__actions{
  display:flex;
  flex-wrap:wrap;
  gap: var(--st-space-2);
  margin-top: var(--st-space-3);
}

.st-modal__hint{
  margin-top: var(--st-space-2);
  margin-bottom: 0;
  font-size: var(--st-fs-xs);
  color: rgb(var(--st-rgb-text) / 0.65);
}

.st-modal__media{
  margin-bottom: var(--st-space-2);
  display: flex;
  justify-content: center;
}

.st-modal__image{
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  height: auto;
  border-radius: var(--st-radius-m);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: var(--st-surface-1);
  object-fit: contain;
}

html[data-theme="light"] .st-modal__image{
  filter: grayscale(1) contrast(1.04) brightness(0.94);
}

.st-modal[data-st-modal-mode="image"] .st-modal__dialog{
  width: min(1100px, calc(100vw - (var(--st-space-3) * 2)));
}

.st-modal[data-st-modal-mode="image"] .st-modal__head{
  margin-bottom: var(--st-space-2);
}

@media (max-width: 980px){
  .st-modal{
    padding: var(--st-space-2);
  }

  .st-modal__dialog{
    width: min(100%, calc(100vw - (var(--st-space-2) * 2)));
    padding: var(--st-space-2);
  }

  .st-modal__image{
    max-height: calc(100vh - 180px);
  }

  .st-modal[data-st-modal-mode="image"] .st-modal__dialog{
    width: min(100%, calc(100vw - (var(--st-space-2) * 2)));
  }
}


/* ==============================
   Footer
============================== */
.st-footer{
  border-top: var(--st-border-w) solid var(--st-border);
  background: var(--st-footer-bg);
  padding: var(--st-space-2) 0;
}
.st-footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--st-space-2);
  font-size: var(--st-fs-xs);
  color: var(--st-footer-text);
}

@media (max-width: 680px){
  .st-footer__inner{ flex-direction: column; align-items:flex-start; }
}


/* ==========================================================
   Transitional class aliases (kept for safety)
   - Templates were migrated away from Tailwind; these keep any
     unexpected legacy references rendering non-destructively.
========================================================== */
.st-btn-primary,
.st-btn-secondary{
  height: var(--st-btn-h);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--st-radius-pill);
  text-decoration:none;
  cursor:pointer;
  transition:
    background var(--st-ease),
    box-shadow var(--st-ease),
    transform var(--st-ease),
    border-color var(--st-ease),
    color var(--st-ease);
}

.st-btn-secondary{
  border: var(--st-border-w) solid var(--st-btn-border);
  background: var(--st-btn-bg);
  color: var(--st-btn-text);
  box-shadow: var(--st-btn-shadow);
}
.st-btn-secondary:hover{
  background: var(--st-btn-hover-bg);
  transform: translateY(-1px);
}

.st-btn-primary{
  border: var(--st-border-w) solid var(--st-btn-active-border);
  background: var(--st-btn-active-bg);
  color: var(--st-btn-active-text);
  box-shadow: 0 10px 30px rgb(var(--st-rgb-accent) / 0.22);
}
.st-btn-primary:hover{
  background: rgb(var(--st-rgb-accent) / 0.92);
  transform: translateY(-1px);
}

/* st-card-hover legacy (hover is built-in) */
.st-card-hover{ }

/* st-box legacy (map to card, smaller padding) */
.st-box{
  position: relative;
  display:block;
  padding: var(--st-space-2);
  border-radius: var(--st-radius-l);
  border: var(--st-border-w) solid var(--st-card-border);
  background: var(--st-card-bg);
}

/* ==========================================================
   Page-specific refinements (still token-driven)
========================================================== */
/* Subpage hero media layout */

.st-hero--subpage .st-hero__copy{
  min-width: 0;
}

.st-hero--subpage .st-hero__media{
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding-right: 32px;
  box-sizing: border-box;
  margin-top: 40px;
}

.st-hero--subpage .st-hero__image{
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px){
  .st-hero--subpage .st-hero__media{
    max-width: 680px;
    justify-self: start;
    padding-right: 0;
    margin-top: 0;
  }
}

/* Hero extras (front page) */
.st-hero__visual{
  position: relative;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.st-hero__tiers{
  position: absolute;
  top: -6px;
  right: 0;
  width: min(100%, 420px);
  z-index: 2;
  pointer-events: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.st-hero__tiers-trigger{
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.st-hero__tiers-img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

html[data-theme="light"] .st-hero__tiers-img{
  filter: grayscale(1) contrast(1.04) brightness(0.94);
}

.st-hero__visual .st-stack{
  position: relative;
  z-index: 1;
  margin-top: auto;
}

@media (max-width: 1200px){
  .st-hero__tiers{
    top: 14px;
    width: min(100%, 330px);
  }
}

@media (max-width: 980px){
  .st-hero__tiers{
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 16px;
  }

  .st-hero__visual .st-stack{
    margin-top: 0;
  }
}

@media (max-width: 980px){
  .st-hero__actions-grid,
  .st-hero__stats-grid{ max-width: none; }
}

/* Front page tiles */
.st-tile__footer{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--st-space-2);
}

.st-qr{
  width: 72px;
  height: 72px;
  border-radius: var(--st-radius-m);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: rgb(var(--st-rgb-accent) / 0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px;
}

.st-qr__text{
  font-size: 10px;
  line-height: 1.2;
  text-align:center;
  color: rgb(var(--st-rgb-text) / 0.70);
}

/* Smaller button size (still the same button system) */
.st-btn--sm{
  height: 38px;
  padding: 0 14px;
  font-size: var(--st-fs-xs);
}

/* Product cards on front page */
.st-card--product{
  padding: 20px;
  background: rgb(var(--st-rgb-surface-3) / 0.60);
}
.st-card--product:hover{
  background: rgb(var(--st-rgb-surface-3) / 0.70);
}

/* Impact toggles */
.st-impact__tabs{
  display:flex;
  flex-wrap:wrap;
  gap: var(--st-space-2);
}
.st-impact__note{ margin-top: var(--st-space-2); max-width: 90ch; }

/* About section */
.st-about__stats{ margin-top: var(--st-space-3); }

/* Callouts */
.st-callout{
  padding: var(--st-space-2);
  border-radius: var(--st-radius-m);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: rgb(var(--st-rgb-accent) / 0.06);
}
.st-callout__quote{
  margin: 0;
  color: rgb(var(--st-rgb-text) / 0.84);
}
.st-callout__cite{
  margin: 10px 0 0;
  font-size: var(--st-fs-xs);
  color: rgb(var(--st-rgb-text) / 0.62);
}

/* Contact card blocks */
.st-contact-block{
  padding: var(--st-space-2);
  border-radius: var(--st-radius-m);
  border: var(--st-border-w) solid var(--st-border-hairline);
  background: rgb(var(--st-rgb-accent) / 0.06);
}
.st-contact-block--company{
  margin-top: var(--st-space-4);
}

.st-contact-block--company strong{
  display:block;
  margin-bottom: var(--st-space-2);
}

/* Industry page */
.st-industry__cta{ margin-top: var(--st-space-3); }

/* Hero typography spacing (aligns with front page source-of-truth) */
.st-hero h1{ margin-bottom: var(--st-space-3); }
.st-hero .st-lead--hero{ margin-bottom: 0; }

/* Section head → content spacing is handled globally in base.css */