@charset "UTF-8";
/* AI Cloud TCO page components, layered on top of the shared .samx system
 * (accelerator-model.scss loads first). Everything here belongs to the
 * "Where a GPU-hour goes" section; the rest of the page uses shared parts.
 *
 * Interaction model: hovering a segment or its legend row highlights the
 * pair, dims the rest, and floats a tooltip over the segment — wired by
 * setupCostbar() in accelerator-model.js via .is-hot / .has-hot classes.
 */
/* ---- Cost stack ---- */
.samx-costbar {
  position: relative;
}

/* One full-width bar; each segment takes its share from --samx-seg and
 * grows in from the left when the reveal lands. Entrance runs as an
 * animation so the hover transitions below stay snappy. */
.samx-costbar__track {
  display: flex;
  gap: 4px;
  height: 64px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--samx-border);
  border-radius: 14px;
}

.samx-costbar__seg {
  position: relative;
  flex: 0 0 calc(var(--samx-seg) - 4px);
  min-width: 0;
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
}

.samx-costbar__seg--a {
  background: linear-gradient(180deg, #ffc55f, var(--samx-amber));
}

.samx-costbar__seg--b {
  background: rgba(247, 176, 65, 0.55);
}

.samx-costbar__seg--c {
  background: var(--samx-blue);
}

.samx-costbar__seg--d {
  background: rgba(11, 134, 209, 0.55);
}

.samx-costbar__seg--e {
  background: rgba(38, 201, 216, 0.75);
}

.samx-costbar__seg--f {
  background: rgba(232, 228, 221, 0.28);
}

.samx-costbar.is-in .samx-costbar__seg {
  transform: scaleX(1);
  animation: samx-costbar-grow 0.9s var(--samx-ease) backwards;
}

.samx-costbar.is-in .samx-costbar__seg--a {
  animation-delay: 0.05s;
}

.samx-costbar.is-in .samx-costbar__seg--b {
  animation-delay: 0.16s;
}

.samx-costbar.is-in .samx-costbar__seg--c {
  animation-delay: 0.27s;
}

.samx-costbar.is-in .samx-costbar__seg--d {
  animation-delay: 0.38s;
}

.samx-costbar.is-in .samx-costbar__seg--e {
  animation-delay: 0.49s;
}

.samx-costbar.is-in .samx-costbar__seg--f {
  animation-delay: 0.6s;
}

@keyframes samx-costbar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* Pair highlight: the hovered segment lifts and brightens, the rest recede. */
.samx-costbar.is-in .samx-costbar__seg.is-hot {
  z-index: 1;
  transform: scaleX(1) scaleY(1.14);
  filter: brightness(1.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.samx-costbar.has-hot .samx-costbar__seg:not(.is-hot) {
  filter: brightness(0.6) saturate(0.85);
}

/* Floating tooltip, positioned over the active segment by setupCostbar(). */
.samx-costbar__tip {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: 250px;
  padding: 10px 13px;
  background: #101014;
  border: 1px solid var(--samx-border-hover);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, left 0.18s ease;
}
.samx-costbar__tip strong {
  display: block;
  font-family: var(--samx-ft-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--samx-amber);
  margin-bottom: 4px;
}
.samx-costbar__tip span {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--samx-tx-muted);
}
.samx-costbar__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  background: #101014;
  border-right: 1px solid var(--samx-border-hover);
  border-bottom: 1px solid var(--samx-border-hover);
  transform: translateX(-50%) rotate(45deg);
}
.samx-costbar__tip.is-show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

/* Legend: one row per component, dot matched to its segment. */
.samx-costbar__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.samx-costbar__legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--samx-tx-muted);
  transition: background-color 0.2s ease;
}
.samx-costbar__legend li strong {
  grid-column: 2;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--samx-tx);
  transition: color 0.2s ease;
}
.samx-costbar__legend li > span:last-child {
  grid-column: 2;
}
.samx-costbar__legend li.is-hot {
  background-color: rgba(255, 255, 255, 0.04);
}
.samx-costbar__legend li.is-hot strong {
  color: var(--samx-amber);
}

.samx-costbar__dot {
  grid-row: 1;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: translateY(1px);
  transition: box-shadow 0.2s ease;
}

li.is-hot .samx-costbar__dot {
  box-shadow: 0 0 0 3px rgba(247, 176, 65, 0.25);
}

.samx-costbar__dot--a {
  background: var(--samx-amber);
}

.samx-costbar__dot--b {
  background: rgba(247, 176, 65, 0.55);
}

.samx-costbar__dot--c {
  background: var(--samx-blue);
}

.samx-costbar__dot--d {
  background: rgba(11, 134, 209, 0.55);
}

.samx-costbar__dot--e {
  background: rgba(38, 201, 216, 0.75);
}

.samx-costbar__dot--f {
  background: rgba(232, 228, 221, 0.28);
}

.samx-costbar__note {
  margin-top: 18px;
  font-family: var(--samx-ft-mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: var(--samx-tx-muted);
}

/* Public tracker links under the stack. */
.samx-tco__live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--samx-border);
}

.samx-tco__live-label {
  margin: 0;
  font-family: var(--samx-ft-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--samx-tx-muted);
}

.samx-tco__live-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .samx-costbar__seg {
    transform: none;
    transition: filter 0.22s ease, opacity 0.22s ease;
  }
  .samx-costbar.is-in .samx-costbar__seg {
    animation: none;
  }
  .samx-costbar.is-in .samx-costbar__seg.is-hot {
    transform: none;
  }
}
@media (max-width: 780px) {
  .samx-costbar__track {
    height: 48px;
  }
  .samx-costbar__legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .samx-costbar__legend {
    grid-template-columns: 1fr;
  }
}
/* ---- Hero stat strip ---- */
/* This page runs three stat cards (the coverage chip was dropped), so
 * override the shared 4-column grid; this stylesheet loads after
 * accelerator-model.scss. On narrow screens the shared 2-column rule
 * would strand the third card, so let it span the row instead. */
.samx-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .samx-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .samx-strip__item:last-child {
    grid-column: 1/-1;
  }
}
/*# sourceMappingURL=ai-cloud-tco.css.map */