/* Sobio intro video pop-up. Self-contained: every rule is scoped to .sbi-*
   so it cannot affect the rest of the site. */

html.sbi-lock { overflow: hidden; }

.sbi {
  padding: 0; border: 0; margin: auto; background: transparent; overflow: visible;
  max-width: none; max-height: none; color: #0B0B0D;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* wide (desktop / landscape): 16:9, as large as fits */
  width: min(92vw, 1120px, calc(84svh * 16 / 9));
}
.sbi[data-shape="tall"] {
  /* tall (phones / portrait): 9:16, as tall as fits */
  width: min(92vw, 460px, calc(88svh * 9 / 16));
}
.sbi:focus { outline: none; }
.sbi::backdrop { background: rgba(8, 9, 9, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sbi[open] { animation: sbi-in 280ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes sbi-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.sbi__box {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #EDE8DC;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.sbi[data-shape="tall"] .sbi__box { aspect-ratio: 9 / 16; border-radius: 18px; }
.sbi__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.sbi__bar { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(15, 17, 16, 0.14); }
.sbi__bar i { display: block; height: 100%; background: #4F6B53; transform-origin: 0 50%; transform: scaleX(0); }

.sbi__top {
  position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center;
  padding: 14px; gap: 10px; pointer-events: none;
}
.sbi__top > * { pointer-events: auto; }

.sbi__chip {
  display: inline-flex; align-items: center; gap: 0.5em; border: 0; margin: 0; cursor: pointer;
  padding: 0.62em 1em; border-radius: 100px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
  background: rgba(15, 17, 16, 0.72); color: #F4F3EE; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 140ms ease-out; -webkit-tap-highlight-color: transparent;
}
.sbi__chip:hover { background: rgba(15, 17, 16, 0.88); }
.sbi__chip:active { transform: translateY(1px); }
.sbi__chip:focus-visible, .sbi__cta:focus-visible, .sbi-launch:focus-visible { outline: 2px solid #7E9A81; outline-offset: 2px; }
.sbi__chip svg { width: 1.05em; height: 1.05em; flex: none; }
.sbi__chip--icon { padding: 0.62em; }

.sbi__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; }
.sbi.is-blocked .sbi__hint { display: inline-flex; }

/* End screen. The video's last frame is the Sobio card, so the buttons sit in
   the empty paper around it: below the card. */
.sbi__end {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 20px 3.4%; opacity: 0; visibility: hidden;
  transition: opacity 260ms ease-out, visibility 0s linear 260ms;
}
.sbi[data-shape="tall"] .sbi__end { justify-content: flex-end; padding: 0 18px 15%; }
.sbi.is-ended .sbi__end { opacity: 1; visibility: visible; transition-delay: 0s; }
.sbi__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.sbi[data-shape="tall"] .sbi__row { flex-direction: column; align-items: stretch; width: min(100%, 260px); }
.sbi__cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.8em 1.4em; border-radius: 100px;
  background: #4F6B53; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color 140ms ease-out;
}
.sbi__cta:hover { background: #3F5843; color: #fff; }
.sbi__end .sbi__chip { background: rgba(15, 17, 16, 0.08); color: #0B0B0D; justify-content: center; }
.sbi__end .sbi__chip:hover { background: rgba(15, 17, 16, 0.15); }

.sbi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small "watch again" button that stays on the page after the pop-up closes. */
.sbi-launch {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.5em 1em 0.5em 0.5em; border: 0; border-radius: 100px; cursor: pointer;
  background: #0B0B0D; color: #F4F3EE; font: 500 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(8px); transition: opacity 240ms ease-out, transform 240ms ease-out;
}
.sbi-launch.is-on { opacity: 1; transform: none; }
.sbi-launch i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #7E9A81; }
.sbi-launch svg { width: 10px; height: 10px; margin-left: 2px; }
.sbi-launch:hover { background: #222; }

@media (max-width: 600px) {
  .sbi__top { padding: 10px; }
  .sbi__chip { font-size: 13px; padding: 0.55em 0.85em; }
  .sbi__chip--icon { padding: 0.55em; }
  .sbi-launch { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sbi[open] { animation: none; }
  .sbi-launch { transition: none; }
}
