/* "What Each System Does": dialer-style tabs. Click state, scroll state (auto-advance with a progress bar). */
.tb-sec { padding: 72px 0 80px; }
.tb-head { margin-bottom: 32px; }
.tb-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }

/* Tab row: one flat bar, thin dividers, active option lit solid blue */
.tb-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; width: fit-content; max-width: min(1340px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin: 0 0 28px; padding: 6px; background: #fff; border: 1px solid #D9DEE7; border-radius: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.tb-list::-webkit-scrollbar { display: none; }
.tb-tab { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 10px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: #3A4150; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; scroll-snap-align: center;
  transition: color .15s ease-out, background-color .15s ease-out; }
.tb-tab + .tb-tab::before { content: ""; position: absolute; left: -0.5px; top: 50%; width: 1px; height: 24px; margin-top: -12px; background: #D9DEE7; transition: opacity .15s; }
.tb-tab[aria-selected="true"]::before, .tb-tab[aria-selected="true"] + .tb-tab::before { opacity: 0; }
@media (hover: hover) {
  .tb-tab:hover::before, .tb-tab:hover + .tb-tab::before { opacity: 0; }
}
.tb-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tb-tab .tb-ic { flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: none; color: inherit; }
.tb-tab .tb-ic .ic { width: 18px; height: 18px; }
.tb-name { min-width: 0; }
.tb-tab .flag { font-size: 10px; padding: 2px 7px 2px 5px; letter-spacing: .06em; }
@media (max-width: 759px) { .tb-tab .flag { font-size: 12px; } }
.tb-tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.tb-tab[aria-selected="true"] .flag { background: #fff; color: var(--blue); }
@media (hover: hover) {
  .tb-tab:not([aria-selected="true"]):hover { background: #E8F1FE; color: var(--blue); }
}
/* progress bar runs along the bottom edge of the active option */
.tb-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; pointer-events: none; }
.tb-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.tb.auto .tb-tab[aria-selected="true"] .tb-bar { background: rgba(255, 255, 255, .35); }
.tb.auto .tb-tab[aria-selected="true"] .tb-bar::after { animation: tbFill 8s linear forwards; }
.tb.auto.paused .tb-tab[aria-selected="true"] .tb-bar::after { animation-play-state: paused; }
@keyframes tbFill { to { transform: scaleX(1); } }

/* Panel card */
.tb-card { position: relative; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 40px); }
.tb-panel { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 48px; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.tb-panel.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease, visibility 0s; }
.tb-panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
html:not(.js) .tb-panel { opacity: 1; visibility: visible; pointer-events: auto; grid-area: auto; margin-bottom: 40px; }
html:not(.js) .tb-card { display: block; }

.tb-copy { min-width: 0; }
.tb-sys { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 18px; }
.tb-sys .tb-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; }
.tb-sys .tb-ic .ic { width: 18px; height: 18px; }
.tb-sys-name { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0077FA; }
.tb-vsl { margin: 0; width: 100%; }
.tb-vsl-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0B0F19; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 15, 25, .05), 0 10px 28px rgba(11, 15, 25, .08); }
.tb-vsl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-vsl figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.tb-h { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; color: var(--ink); text-wrap: balance; }
.tb-sub { font-size: 18px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.tb-checks { margin-top: 22px; display: grid; gap: 12px; }
.tb-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; line-height: 1.45; color: var(--text); }
.tb-checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: 1px; }
.tb-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.tb-more { font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.tb-more:hover { color: var(--ink); }

/* The scene square */
.tb-scene { position: relative; width: 100%; aspect-ratio: 1440 / 1300; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 15, 25, .05), 0 10px 28px rgba(11, 15, 25, .08); }

/* All 12 */
.tb-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; grid-column: 1 / -1; }
.tb-panel#tbp-all { display: block; }
.tb-job { grid-column: 1 / -1; padding: 12px 0 8px; border-bottom: 2px solid var(--blue); margin-bottom: 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.tb-job:first-child { padding-top: 0; }
.tb-job h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--ink); }
.tb-job p { font-size: 14.5px; color: var(--muted); }
.tb-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: inherit; text-decoration: none; }
.tb-it { display: block; min-width: 0; }
.tb-it b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tb-it > span { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); margin-top: 1px; }
.tb-cta-all { justify-content: center; margin-top: 12px; }
.tb-cta-all .btn { font-size: 15px; padding: 10px 22px; }

@media (max-width: 1000px) {
  .tb-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; }
}

/* Phone: pills in a scroll row, panel stacks text then the scene */
@media (max-width: 760px) {
  .tb-sec { padding: 52px 0 56px; }
  .tb-list { justify-content: flex-start; margin-bottom: 18px; scroll-snap-type: x mandatory; }
  .tb-card { display: block; padding: 20px 16px 24px; border-radius: 16px; }
  .tb-panel { display: none; opacity: 0; visibility: visible; pointer-events: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tb-panel.on { display: grid; animation: tbIn .2s ease both; }
  .tb-panel#tbp-all { display: none; }
  .tb-panel#tbp-all.on { display: block; }
  @keyframes tbIn { from { opacity: 0; } to { opacity: 1; } }
  .tb-h { font-size: 30px; }
  .tb-sub { font-size: 16.5px; }
  .tb-all { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tb-cta .btn { flex: 1 1 auto; }
  .tb-eyebrow { font-size: 14px; }
  .tb-more { display: inline-flex; align-items: center; min-height: 44px; }
  .tb-item { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-panel, .tb-tab, .tb-tab::before { transition: none; }
  .tb.auto .tb-tab[aria-selected="true"] .tb-bar::after { animation: none; transform: scaleX(1); }
}
