/* ── Anchored sections — sticky nav offset ─────────────────── */
section[id],
.hero_section {
  scroll-margin-top: 90px;
}

/* ── Page canvas: one cream field (Apple-style) ─────────────── */
html {
  scroll-padding-top: 148px;
  background-color: var(--tbs-cream, #fdfaf4);
}

@media screen and (min-width: 992px) {
  html {
    scroll-padding-top: 360px;
  }
}

body {
  background-color: var(--tbs-cream, #fdfaf4);
}

/* ── Site-wide: left-align (override Webflow center utilities) ─ */
:is(.text-center, .text-align-center) {
  text-align: left !important;
}

:is(.column-center,
  .column-large.column-center,
  .column-medium.column-center) {
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.align-center {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

:is(.justify-center, .row-wrap.justify-center) {
  justify-content: flex-start !important;
}

/* Footer stays centered */
.footer_section :is(.text-center, .text-align-center) {
  text-align: center !important;
}

.footer_section :is(.column-center,
  .column-large.column-center,
  .column-medium.column-center,
  .column-medium.justify-center) {
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer_section .align-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer_section :is(.justify-center, .row-wrap.justify-center) {
  justify-content: center !important;
}

.footer_section [style*="margin: 0 auto"],
.footer_section [style*="margin:0 auto"] {
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer_section [style*="text-align: center"],
.footer_section [style*="text-align:center"] {
  text-align: center !important;
}

#scan-to-trust-steps .tbs-scan-step-title {
  align-items: flex-start !important;
  text-align: left !important;
}

/* Tour shelf: mobile = left beside thumb; desktop = centered under image */
.tbs-tour-shelf__label,
.tbs-tour-shelf__desc {
  text-align: left !important;
}

@media screen and (min-width: 992px) {

  .tbs-tour-shelf__label,
  .tbs-tour-shelf__desc {
    text-align: center !important;
  }
}

#world-first-2014 .tbs-world-first-inner {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#compliance .tbs-compliance-panel__cell {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.uri-flow-cards-2x2 .contact_link-block {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

/* ── Section rhythm: proof (ink) vs educational (paper) ────── */
.tbs-section--proof {
  background-color: var(--tbs-ink, #14181f);
  color: rgba(253, 250, 244, 0.92);
  --border--primary: rgba(255, 255, 255, 0.14);
}

.tbs-section--proof.border-top {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.tbs-section--proof .text-color-secondary,
.tbs-section--proof .body-large.text-color-secondary {
  color: rgba(245, 241, 232, 0.78);
}

.tbs-section--proof .text-color-muted,
.tbs-section--proof .body-small.text-color-muted {
  color: #9ca3af;
}

.tbs-section--proof :is(.h1-heading,
  .h2-heading,
  .h3-heading,
  .h4-heading,
  .h5-heading,
  .h6-heading,
  .subheading-large,
  .subheading-x-large,
  .subheading-medium,
  .subheading-small) {
  color: var(--text--alternate, #fff);
}

.tbs-section--proof .badge.w-variant-79d9bc8a-88fc-b074-bfc4-361d8e9782af {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.tbs-section--edu {
  background-color: var(--tbs-cream, #fdfaf4);
}

/* Light cream sections (alternate to paper edu) */
.tbs-section--cream {
  background-color: var(--tbs-cream, #fdfaf4);
  color: var(--tbs-ink, #14181f);
  --border--primary: rgba(20, 24, 31, 0.1);
}

.tbs-section--cream.border-top {
  border-top-color: rgba(20, 24, 31, 0.1);
}

.tbs-section--cream :is(.h1-heading,
  .h2-heading,
  .h3-heading,
  .h4-heading,
  .h5-heading,
  .h6-heading,
  .subheading-large,
  .subheading-x-large,
  .subheading-medium,
  .subheading-small) {
  color: var(--tbs-ink, #14181f);
}

.tbs-section--cream .text-color-secondary,
.tbs-section--cream .body-large.text-color-secondary,
.tbs-section--cream .body-medium.text-color-secondary {
  color: var(--tbs-muted, #6b7280);
}

.tbs-section--cream .about_feature-card,
.tbs-section--edu .about_feature-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: var(--_layout---radius--large);
}

/* ── Sticky navbar — dark ink, tight logo ──────────────────── */
.nav_bar {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background-color: var(--tbs-ink, #14181f);
  border: none;
  box-shadow: none;
}

.nav_bar .nav_logo-link {
  flex: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav_bar .logo,
.footer_section .logo {
  height: 3rem;
  width: auto;
  min-width: 5rem;
  max-width: 12rem;
  overflow: visible;
}

.footer_section .logo {
  height: 4rem;
}

.nav_bar .logo .logo-image,
.footer_section .logo .logo-image {
  display: block;
  height: 100%;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  object-position: center center;
}

@media screen and (min-width: 992px) {
  .nav_bar .nav_link {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav_bar .nav_link:hover {
    color: rgba(253, 250, 244, 0.95);
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nav_bar .nav_link.w--current,
  .nav_bar .nav_link.is-nav-active {
    color: var(--tbs-amber, #b8501e);
    font-weight: 500;
  }

  .nav_bar .nav_link--watch {
    color: var(--tbs-amber, #b8501e) !important;
    font-weight: 500;
    gap: 0.4rem;
  }

  .nav_bar .nav_link--watch::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--tbs-amber, #b8501e);
    animation: tbs-nav-pulse 2s ease-in-out infinite;
  }

  .nav_bar .nav_link--watch:hover {
    color: #d4652e !important;
    background-color: rgba(184, 80, 30, 0.12);
  }
}

@keyframes tbs-nav-pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(184, 80, 30, 0.55);
  }

  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 0.45rem rgba(184, 80, 30, 0);
  }
}

.nav_bar .nav_menu-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav_bar .nav_menu-button.w--open {
  background-color: rgba(255, 255, 255, 0.16);
}

/* ── Base custom layouts ─────────────────────────────────────── */
.grid-four-column {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tbs-image-hover-swap {
  width: min(100%, 18rem);
  height: auto;
}

.tbs-image-hover-swap__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.tbs-image-hover-swap__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.tbs-image-hover-swap:hover .tbs-image-hover-swap__img--hover,
.tbs-image-hover-swap:focus-within .tbs-image-hover-swap__img--hover {
  opacity: 1;
}

/* Keep card hover behavior consistent across all primer cards */
.blog_card-link {
  transition: transform 0.25s ease;
}

.blog_card-link .image-cover {
  transition: transform 0.35s ease;
}

.blog_card-link:hover {
  transform: translateY(-2px);
}

.blog_card-link:hover .image-cover {
  transform: scale(1.04);
}

/* What this delivers — every card: muted overlay fades on hover/focus (same behavior, scoped so other blog grids unchanged) */
#delivers-across-line .blog_card-link .image-card_overlay {
  transition: opacity 0.35s ease;
}

#delivers-across-line .blog_card-link:hover .image-card_overlay,
#delivers-across-line .blog_card-link:focus-visible .image-card_overlay {
  opacity: 0;
  pointer-events: none;
}

/* Scan-to-trust steps — mobile: landscape frame; desktop: portrait frame */
#scan-to-trust-steps .tbs-scan-step-cell {
  min-width: 0;
}

#scan-to-trust-steps .tbs-scan-step-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  height: 100%;
}

#scan-to-trust-steps .tbs-scan-step-stack .image-card {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
}

@media screen and (min-width: 992px) {
  #scan-to-trust-steps .tbs-scan-step-stack .image-card {
    aspect-ratio: 3 / 4;
  }
}

#scan-to-trust-steps .tbs-scan-step-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text--primary);
}

#scan-to-trust-steps .tbs-scan-step-title-line {
  display: block;
}

#scan-to-trust-steps .tbs-scan-step-overlay {
  background-color: transparent;
  background-image: none;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(0.65rem, 1.5vw, 0.85rem);
}

#scan-to-trust-steps .tbs-scan-step-badge {
  border-radius: 9999px;
  min-width: 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--neutral--900, #14181f);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Override Webflow 2x-large (48rem) for select hero-scale intros */
.max-width-2x-large.tbs-intro-mega {
  max-width: min(72rem, 100%);
}

.feature-fade-card.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* blog_title — two max-width columns side-by-side (Webflow utility uses width:100%) */
.blog_title>[class*="max-width-"] {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

/* Barrier proof cards: three metrics in one row on desktop */
.tbs-barrier-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Barrier integrity — copy + photo row, metrics row below */
.tbs-barrier-integrity {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.35rem, 3vw, 2.25rem);
  align-items: stretch;
}

/* Row height follows copy column; image fills via absolute inset (no min-height tug-of-war) */
.tbs-barrier-integrity__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.tbs-barrier-integrity__media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 0;
  align-self: stretch;
  border-radius: var(--_layout---radius--large);
  overflow: hidden;
  background-color: var(--background--secondary);
}

.tbs-barrier-integrity__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.tbs-barrier-integrity__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.tbs-barrier-integrity__metrics {
  grid-column: 1 / -1;
}

/* Barrier metric cards — simple cream panel on paper section */
#barrier-integrity .tbs-barrier-integrity__metric {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: var(--_layout---radius--large);
}

/* blog_title-1 split header (80/20) */
.blog_title-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

/* ── Tablet  (≤ 991px) ──────────────────────────────────────── */
@media screen and (max-width: 991px) {
  .tbs-shift-layout {
    grid-template-columns: 1fr;
  }

  .tbs-shift-portrait {
    max-width: 420px;
    margin: 0 auto;
    height: clamp(300px, 75vw, 460px);
    min-height: 0;
  }

  /* #the-shift pillars: stack only on narrow phones (see ≤767 + 768–991 overrides) */
  #the-shift .tbs-shift-pillars {
    grid-template-columns: 1fr;
  }

  #the-shift .tbs-shift-pillar {
    border-right: 0;
    border-bottom: 1px solid var(--border--primary, rgba(0, 0, 0, 0.14));
  }

  #the-shift .tbs-shift-pillar:last-child {
    border-bottom: 0;
  }

  #one-code-audiences .tbs-one-code-portrait.image-card {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

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

  /* Blog split header — stack title + button */
  .blog_title-1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog_title-1>div {
    max-width: 100% !important;
    width: 100% !important;
  }

  .blog_title-1 .text-align-right {
    text-align: left;
  }

  .blog_title>[class*="max-width-"] {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100% !important;
  }

  .tbs-barrier-metrics {
    grid-template-columns: 1fr;
  }

  .tbs-barrier-integrity {
    grid-template-columns: 1fr;
  }

  .tbs-barrier-integrity__copy {
    grid-column: 1;
    grid-row: auto;
  }

  .tbs-barrier-integrity__media {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    min-height: clamp(220px, 58vw, 360px);
  }

  .tbs-barrier-integrity__figure {
    position: absolute;
    inset: 0;
  }

  /* Primer diagram side-by-side → stack */
  .display-2-box {
    grid-template-columns: 1fr;
  }

  .display-2-box .image-section {
    max-width: 280px;
    margin: 0 auto;
  }

  /* QR form + card side-by-side → stack */
  .deals_grid {
    grid-template-columns: 1fr;
  }

  #see-it-coded .deals_grid {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  #see-it-coded.is-bg-preview .deals_grid::before,
  #see-it-coded.is-bg-ready .deals_grid::before {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 85px;
    width: min(100%, calc(600px * 1086 / 1600));
    max-height: 600px;
    height: auto;
    aspect-ratio: 1086 / 1600;
    transform: translateX(-50%);
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  #see-it-coded .deals_grid::after {
    background: linear-gradient(to bottom,
        rgba(8, 14, 24, 0.8),
        rgba(8, 14, 24, 0.1));
  }

  #see-it-coded .deals_card.result-side {
    padding: 0;
    min-height: 300px;
  }

  #see-it-coded .deals_card.result-side .deals_card-bottom,
  #see-it-coded .deals_card.result-side .column-x-small {
    min-height: inherit;
    padding: 0;
  }

  #see-it-coded .deals_card.result-side .column-x-small {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  #see-it-coded .tbs-seeit-qr-row {
    bottom: 37%;
    right: 50%;
    transform: translateX(50%);
  }

  #see-it-coded .tbs-seeit-qr img,
  #see-it-coded .tbs-seeit-qr canvas {
    width: 44px !important;
    height: 44px !important;
  }

  #see-it-coded .tbs-seeit-human {
    font-size: 0.6rem;
  }

  /* Hero cards row — allow wrap */
  .hero_cards-row {
    justify-content: flex-start;
  }

  .hero_card {
    flex: 1 1 calc(50% - 1rem);
    max-width: none;
  }

  /* URI anatomy section */
  .uri-display {
    font-size: 0.78rem;
    word-break: break-all;
    line-height: 1.7;
  }

  .uri-anatomy-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .uri-anatomy-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .uri-anatomy-hero-visual {
    grid-column: 1;
    grid-row: 2;
    grid-row-end: auto;
    align-self: start;
  }

  .uri-anatomy-cta-slot {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }

  .uri-anatomy-cta-slot .uri-anatomy-cta-block {
    max-width: none;
    width: 100%;
  }

  .uri-anatomy-hero-visual .uri-anatomy-visual-card {
    height: auto;
  }

  .uri-anatomy-expand.uri-anatomy-panel-below {
    margin-top: 0.65rem;
  }

  /* One code — stack reads cleanly on tablet/mobile */
  #one-code-audiences .column-large.column-right.text-align-right {
    align-items: flex-start !important;
    text-align: left !important;
  }

  #one-code-audiences .badge {
    align-self: flex-start;
  }

  #one-code-audiences .tbs-shift-layout.tbs-shift-layout--mirror {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
    align-items: stretch;
  }

  /* Image first, then copy + grid (DOM stays logical for desktop) */
  #one-code-audiences .tbs-one-code-portrait {
    order: -1;
  }

  #one-code-audiences .tbs-shift-content.tbs-one-code-content {
    order: 1;
  }

  #one-code-audiences .tbs-shift-content.tbs-one-code-content,
  #one-code-audiences .tbs-shift-portrait {
    width: 100%;
    max-width: 100%;
  }

  #one-code-audiences .column-large.column-right {
    width: 100%;
    max-width: 100%;
  }

  #one-code-audiences .uri-flow-cards-2x2 {
    width: 100%;
    max-width: 100%;
  }

  #one-code-audiences .uri-flow-cards-2x2 .contact_link-block.w-inline-block {
    display: flex;
    width: 100%;
    max-width: none;
  }

  /* Security tier cards already on grid-three-column → handled by existing 991px rule */

  /* Tab card grid */
  .blog_card-link {
    width: 100%;
  }
}

/* #the-shift tablet: image | intro on one row, three pillars full width below */
@media screen and (max-width: 1200px) and (min-width: 768px) {
  #the-shift .tbs-shift-layout {
    display: grid;
    grid-template-columns: minmax(200px, 40%) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    row-gap: 1.25rem;
    align-items: start;
  }

  #the-shift .tbs-shift-portrait {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    width: 100%;
    margin: 0;
    height: auto;
    min-height: clamp(240px, 36vw, 380px);
  }

  #the-shift .tbs-shift-content {
    display: contents;
  }

  #the-shift .tbs-shift-content>.column-small.column-left {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }

  /* pillars are in the modal now; no grid layout needed on page */
}

/* ── Mobile landscape / large phone  (≤ 767px) ──────────────── */
@media screen and (max-width: 767px) {

  /* #the-shift — stack image, intro, pillars (undo tablet grid + display:contents) */
  #the-shift .tbs-shift-layout {
    grid-template-columns: 1fr;
  }

  #the-shift .tbs-shift-content {
    display: flex;
    flex-direction: column;
  }

  #the-shift .tbs-shift-portrait {
    grid-column: auto;
    grid-row: auto;
    max-width: 420px;
    margin: 0 auto;
    height: clamp(300px, 75vw, 460px);
    min-height: 0;
  }

  #the-shift .tbs-shift-pillars {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  #the-shift .tbs-shift-pillar {
    border-right: 0;
    border-bottom: 1px solid var(--border--primary, rgba(0, 0, 0, 0.14));
  }

  #the-shift .tbs-shift-pillar:last-child {
    border-bottom: 0;
  }

  /* Four reasons — Webflow .w-layout-grid is 2 cols; stack on small screens */
  #reasons-grid {
    grid-template-columns: 1fr;
  }

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

  /* Hero cards — single column */
  .hero_cards-row {
    flex-direction: column;
  }

  .hero_card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  /* GS1 URL display — wrap & smaller */
  .uri-display {
    font-size: 0.72rem;
    word-break: break-all;
    white-space: normal;
    line-height: 1.8;
  }

  /* QR demo inputs */
  .input-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-shell {
    width: 100%;
  }

  /* URI output box */
  .uri-output-box {
    font-size: 0.7rem;
    word-break: break-all;
    white-space: normal;
  }

  /* Data stamp */
  .data-stamp {
    font-size: 0.75rem;
  }

  /* Blog split header */
  .blog_title-1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog_title-1>div {
    max-width: 100% !important;
    width: 100% !important;
  }

  .blog_title-1 .text-align-right {
    text-align: left;
  }

  /* URI buckets — full width */
  .uri-bucket-snippet {
    font-size: 0.72rem;
    word-break: break-all;
  }

  /* Security tier mechanism box */
  .security-tier-mechanism {
    font-size: 0.8rem;
  }

  /* Primer diagram */
  .display-2-box {
    grid-template-columns: 1fr;
  }

  .display-2-box .image-section svg {
    width: 100%;
    height: auto;
  }

  /* Heading sizes */
  .h2-heading {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .h5-heading {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  #reality .tbs-benefit-card {
    width: min(78vw, 340px);
  }

  /* Tabs section — stacked scrollable cards */
  .tabs_component .w-layout-grid {
    grid-template-columns: 1fr;
  }

  #see-it-coded .deals_grid::before,
  #see-it-coded.is-bg-ready .deals_grid::before {
    bottom: 120px;
  }

  #see-it-coded .tbs-seeit-qr-row {
    bottom: 44%;
  }

  .contact_link-block {
    padding: 0.5rem 0;
  }
}

/* ── Mobile portrait  (≤ 479px) ─────────────────────────────── */
@media screen and (max-width: 479px) {
  .grid-four-column {
    grid-template-columns: 1fr;
  }

  #one-code-audiences .uri-flow-cards-2x2 {
    grid-template-columns: 1fr;
  }

  #one-code-audiences .uri-flow-cards-2x2 .contact_link-block {
    border-right: none !important;
    border-bottom: 1px solid var(--border--primary, rgba(0, 0, 0, 0.14)) !important;
  }

  #one-code-audiences .uri-flow-cards-2x2 .contact_link-block:last-child {
    border-bottom: none !important;
  }

  /* URI display */
  .uri-display {
    font-size: 0.65rem;
  }

  /* QR frame */
  .qr-frame {
    padding: 0.75rem;
  }

  .qr-frame img,
  .qr-frame canvas {
    width: 160px !important;
    height: 160px !important;
  }

  #see-it-coded .tbs-seeit-qr img,
  #see-it-coded .tbs-seeit-qr canvas {
    width: 48px !important;
    height: 48px !important;
  }

  #see-it-coded .tbs-seeit-human {
    font-size: 8px;
  }

  /* Security tier grid already handled (grid-three-column → 1fr at 991px) */

  /* Hero card image */
  .hero_card-image {
    height: 8rem;
  }

  /* Primer diagram SVG — constrain width */
  .display-2-box .image-section {
    max-width: 240px;
  }

  /* URI output box */
  .uri-output-box {
    font-size: 0.65rem;
  }

  /* Deals / QR demo card */
  .deals_card {
    padding: 1rem;
  }

  /* Blog title section */
  .blog_title-1 {
    gap: 1.5rem;
  }

  /* Timeline */

  /* Padding utility overrides */
  .padding-top-3,
  .padding-bottom-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Inline muted preview + expand / sound controls (watch-it-work, pos-closes-loop) */
#watch-it-work .tbs-inline-video-tile,
#watch-it-work .tbs-inline-video-tile.tournament_lightbox-link,
#pos-closes-loop .tbs-inline-video-tile,
#pos-closes-loop .tbs-inline-video-tile.tournament_lightbox-link {
  aspect-ratio: 5 / 4;
  border-radius: var(--_layout---radius--large);
  display: block;
  justify-content: unset;
  align-items: unset;
  position: relative;
  overflow: hidden;
  width: 100%;
  isolation: isolate;
}

#watch-it-work .tbs-inline-video-tile__video,
#watch-it-work .tbs-inline-video-tile__poster,
#pos-closes-loop .tbs-inline-video-tile__video,
#pos-closes-loop .tbs-inline-video-tile__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#watch-it-work .tbs-inline-video-tile__video,
#pos-closes-loop .tbs-inline-video-tile__video {
  z-index: 0;
}

#watch-it-work .tbs-inline-video-tile__poster,
#pos-closes-loop .tbs-inline-video-tile__poster {
  z-index: 1;
  transition: opacity 0.35s ease;
}

#watch-it-work .tbs-inline-video-tile.is-playing .tbs-inline-video-tile__poster,
#pos-closes-loop .tbs-inline-video-tile.is-playing .tbs-inline-video-tile__poster {
  opacity: 0;
  pointer-events: none;
}

#watch-it-work .tournament_video-overlay,
#pos-closes-loop .tournament_video-overlay {
  z-index: 2;
  pointer-events: none;
  padding: 1rem;
  justify-content: flex-end;
  align-items: flex-start;
  grid-row-gap: 0;
  background-color: transparent;
  background-image: radial-gradient(ellipse 72% 58% at 0% 100%,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.42) 42%,
      transparent 68%);
}

#watch-it-work .tournament_video-overlay .row-right,
#pos-closes-loop .tournament_video-overlay .row-right {
  display: none;
}

#watch-it-work .tournament_video-overlay .column-2x-small,
#pos-closes-loop .tournament_video-overlay .column-2x-small {
  grid-row-gap: 0.125rem;
  row-gap: 0.125rem;
}

#watch-it-work .tournament_video-overlay .subheading-large,
#watch-it-work .tournament_video-overlay .body-small,
#pos-closes-loop .tournament_video-overlay .subheading-large,
#pos-closes-loop .tournament_video-overlay .body-small {
  margin: 0;
  color: var(--text--alternate, #fff);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

#watch-it-work .tournament_video-overlay .subheading-large,
#pos-closes-loop .tournament_video-overlay .subheading-large {
  line-height: 1.15;
}

#watch-it-work .tournament_video-overlay .body-small,
#pos-closes-loop .tournament_video-overlay .body-small {
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}

/* Shared pill control — expand (top-left) + sound (top-right) */
#watch-it-work .tbs-inline-video-tile__control,
#pos-closes-loop .tbs-inline-video-tile__control {
  z-index: 10;
  position: absolute;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--_layout---radius--x-large);
  background-color: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

#watch-it-work .tbs-inline-video-tile__control:hover,
#pos-closes-loop .tbs-inline-video-tile__control:hover {
  background-color: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.03);
  color: #fff;
}

#watch-it-work .tbs-inline-video-tile__expand,
#pos-closes-loop .tbs-inline-video-tile__expand {
  left: 0.75rem;
  right: auto;
  width: auto;
  height: auto;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  transform: none;
}

#watch-it-work a.tbs-inline-video-tile__expand,
#pos-closes-loop a.tbs-inline-video-tile__expand {
  position: absolute;
  top: 0.75rem;
  bottom: auto;
}

#watch-it-work .tbs-inline-video-tile__expand script.w-json,
#pos-closes-loop .tbs-inline-video-tile__expand script.w-json {
  display: none !important;
}

#watch-it-work .tbs-inline-video-tile__sound,
#pos-closes-loop .tbs-inline-video-tile__sound {
  right: 0.75rem;
  left: auto;
}

#watch-it-work .tbs-inline-video-tile__control-icon,
#pos-closes-loop .tbs-inline-video-tile__control-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

#watch-it-work .tbs-inline-video-tile__sound-icon--on,
#pos-closes-loop .tbs-inline-video-tile__sound-icon--on {
  display: none;
}

#watch-it-work .tbs-inline-video-tile.is-sound-on .tbs-inline-video-tile__sound-icon--off,
#pos-closes-loop .tbs-inline-video-tile.is-sound-on .tbs-inline-video-tile__sound-icon--off {
  display: none;
}

#watch-it-work .tbs-inline-video-tile.is-sound-on .tbs-inline-video-tile__sound-icon--on,
#pos-closes-loop .tbs-inline-video-tile.is-sound-on .tbs-inline-video-tile__sound-icon--on {
  display: inline-flex;
}

@media screen and (max-width: 767px) {

  #watch-it-work .tbs-inline-video-tile__sound-label,
  #pos-closes-loop .tbs-inline-video-tile__sound-label {
    display: none;
  }

  #watch-it-work .tbs-inline-video-tile__sound,
  #pos-closes-loop .tbs-inline-video-tile__sound {
    padding: 0.45rem;
    border-radius: var(--_layout---radius--round);
  }

  #watch-it-work .tbs-inline-video-tile__expand,
  #pos-closes-loop .tbs-inline-video-tile__expand {
    padding: 0.45rem;
    border-radius: var(--_layout---radius--round);
  }
}