/* Astra normalizes <legend> with a fixed 20px line-height. Keep scan questions readable. */
.sbe-platform .sbe-question-area legend {
  display: block;
  width: 100%;
  padding: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
}

/* Keep every gauge in the same visual station regardless of source dimensions. */
.sbe-platform .sbe-hero > .sbe-gauge,
.sbe-platform .sbe-result > .sbe-gauge {
  width: min(100%, 360px);
  height: 360px;
  object-fit: contain;
  object-position: center;
  align-self: center;
}

.sbe-platform .sbe-scan-label {
  color: #d2ae63;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Replace Astra's plain page title with the branded label inside the scan. */
body:has(.sbe-platform[data-sbe-scan]) .entry-header .entry-title {
  display: block;
}

.entry-title .sbe-title-tm {
  font-size: .38em;
  line-height: 0;
  vertical-align: super;
  margin-left: .08em;
}

.sbe-platform .sbe-brand {
  text-transform: none;
}

.sbe-platform .sbe-button {
  column-gap: .28em;
}

.sbe-platform .sbe-cf7-submit-original {
  display: none !important;
}

.sbe-platform .sbe-cf7-submit-proxy {
  text-transform: none;
}

.sbe-platform .sbe-result:not([hidden]) {
  display: block;
}

@media (min-width: 1321px) {
  .sbe-platform .sbe-rail {
    top: 180px;
  }
}

body:has(.sbe-home) .entry-header .entry-title,
body:has(.sbe-system) .entry-header .entry-title {
  display: none;
}

.sbe-platform .sbe-instrument-hero {
  padding: clamp(22px, 4vw, 52px) max(20px, calc((100% - 1240px) / 2));
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(183,146,74,.18), transparent 65%), #111416;
  border-bottom: 1px solid var(--line);
}

.sbe-platform .sbe-instrument-hero img {
  display: block;
  width: min(100%, 1200px);
  height: auto;
  margin: 0 auto;
}

.sbe-platform .sbe-home-intro,
.sbe-platform .sbe-system-intro,
.sbe-platform .sbe-compare,
.sbe-platform .sbe-road,
.sbe-platform .sbe-home-proof,
.sbe-platform .sbe-home-final {
  padding: clamp(48px, 8vw, 96px) max(24px, calc((100% - 1080px) / 2));
}

.sbe-platform .sbe-compare {
  background: #202529;
}

.sbe-platform .sbe-compare > p {
  max-width: 780px;
}

.sbe-platform .sbe-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
  margin-top: 36px;
}

.sbe-platform .sbe-compare-grid figure {
  margin: 0;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.sbe-platform .sbe-compare-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.sbe-platform .sbe-compare-grid figcaption {
  padding: 12px 8px 4px;
  font-weight: 800;
}

.sbe-platform .sbe-home-intro,
.sbe-platform .sbe-system-intro {
  background: radial-gradient(circle at 80% 25%, rgba(183,146,74,.16), transparent 34%), linear-gradient(135deg,#202529,#111416);
}

.sbe-platform .sbe-home-intro > p,
.sbe-platform .sbe-system-intro > p {
  max-width: 780px;
  font-size: 1.08em;
}

.sbe-platform .sbe-free-promise {
  padding: 18px 20px;
  border-left: 3px solid var(--brass);
  background: rgba(255,255,255,.055);
}

.sbe-platform .sbe-road {
  background: var(--paper);
  color: var(--ink);
}

.sbe-platform .sbe-road h2 {
  color: var(--ink);
}

/* The site has a global white !important heading rule. Preserve the chosen
   white type on light SBE panels while giving it a restrained readable edge. */
.sbe-platform .sbe-road :is(h1,h2,h3),
.sbe-platform .sbe-question-area form :is(h1,h2,h3),
.sbe-platform .sbe-capture :is(h1,h2,h3) {
  -webkit-text-stroke: .8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 1px 1px rgba(26,29,31,.75);
}

.sbe-platform .sbe-pervasive-hook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  padding: 18px max(24px, calc((100% - 1080px) / 2));
  background: #f3ebdd;
  color: var(--ink);
  border-block: 1px solid rgba(183,146,74,.55);
}

.sbe-platform .sbe-pervasive-hook strong {
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.25;
}

.sbe-platform .sbe-pervasive-hook .sbe-button {
  flex: 0 0 auto;
  padding: 10px 18px;
}

.sbe-platform .sbe-road ol {
  list-style: none;
  margin: 36px 0;
  padding: 0;
  counter-reset: road;
}

.sbe-platform .sbe-road li {
  counter-increment: road;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #d5d0c7;
}

.sbe-platform .sbe-road li::before {
  content: counter(road);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brass);
  color: #16191b;
  font-weight: 900;
}

.sbe-platform .sbe-road li strong,
.sbe-platform .sbe-road li span {
  grid-column: 2;
}

.sbe-platform .sbe-road li span {
  margin-top: -12px;
}

.sbe-platform .sbe-home-proof {
  background: #202529;
}

.sbe-platform .sbe-home-final {
  text-align: center;
  background: #15191b;
  border-top: 1px solid var(--line);
}

.sbe-platform .sbe-card-grid small {
  color: #c7ced3;
}

.sbe-platform .sbe-system-card {
  gap: 12px;
}

.sbe-platform .sbe-card-scan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.sbe-platform .sbe-card-video {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #e1bd70;
  font-weight: 800;
  text-decoration: none;
}

.sbe-platform .sbe-card-video:hover,
.sbe-platform .sbe-card-video:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .sbe-platform .sbe-compare-grid {
    grid-template-columns: 1fr;
  }

  .sbe-platform .sbe-pervasive-hook {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .sbe-platform .sbe-pervasive-hook .sbe-button {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .sbe-platform .sbe-hero > .sbe-gauge,
  .sbe-platform .sbe-result > .sbe-gauge {
    height: min(78vw, 340px);
  }
}
