/* =======================
   BASE LAYOUT
======================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #ebf4f7;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
}

/* HEADER */

header {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 4px solid #08b9ed;
  border-radius: 12px;
  padding: 40px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header h1 {
  font-size: 58px;
}

.subtitle {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #334a5e;
  opacity: 0.8;
}

.logo {
  height: 60px;
}

/* KPI */

#kpi-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kpi-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #ebf4f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.kpi-title {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: #334a5e;
  opacity: 0.8;
}

.kpi-value {
  font-size: 50px;
  font-weight: 600;
  margin-top: 8px;
}

/* MAIN */

main {
  flex: 1;
  display: flex;
  gap: 24px;
  min-height: 0;
  padding: 120px 0;
}

.left {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.right {
  width: 40%;
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 54px;
}

.muted {
  color: #334a5e;
}

/* TOP PERFORMERS */

#top-performers-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.top-performer-card {
  background: #fff;
  border: 1px solid #ebf4f7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* SLIDER */

#slider-container {
  flex: 1;
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 16px;
  isolation: isolate;
}

#slider-dots-container {
  display: flex;
  gap: 8px;
}

.dot-bar {
  height: 8px;
  border-radius: 10px;
  transition:
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-bar.active {
  width: 40px;
  background: #08b9ed;
}

.dot-bar.inactive {
  width: 12px;
  background: #334a5e;
  opacity: 0.2;
}

.slide-track {
  position: absolute;
  inset: 0;
}

.slide-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.slide-pane--visible {
  opacity: 1;
  z-index: 1;
}

.slide-pane--instant {
  transition: none;
}

.slide-media-wrapper {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 60px;
  border-radius: 12px;
}

.slide-media-wrapper img,
.slide-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .slide-pane {
    transition: none;
  }

  .dot-bar {
    transition: none;
  }
}

.section-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px;
  color: #334a5e;
  font-size: 18px;
  text-align: center;
}

.section-message--error {
  color: #b42318;
}

.section-message--fatal {
  grid-column: 1 / -1;
  min-height: 160px;
  font-size: 20px;
}

.loading-skeleton {
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(90deg,
      #ebf4f7 25%,
      #dceef4 50%,
      #ebf4f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.loading-skeleton--tall {
  min-height: 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.trustpilot-widget {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ebf4f7;
  border-radius: 12px;
  padding: 16px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trustpilot-image {
  display: block;
  width: auto;
  height: 150px;
}