.brand-kit {
  border-top: 1px solid var(--border);
  background: rgb(241 243 248 / .4);
}

.brand-kit__container {
  width: min(100%, 1152px);
  margin-inline: auto;
  padding: 112px 24px;
}

.brand-kit__intro {
  max-width: 672px;
}

.brand-kit__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.brand-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
}

.brand-preview-card {
  display: flex;
  grid-column: span 4;
  grid-row: span 2;
  flex-direction: column;
}

.brand-preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-card__label svg,
.brand-feature-card__icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-preview-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-preview-tab {
  flex: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--secondary);
  padding: 4px 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  transition: color 150ms ease, background-color 150ms ease;
}

.brand-preview-tab:hover {
  color: var(--foreground);
}

.brand-preview-tab.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.brand-browser {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  box-shadow: 0 1px 3px rgb(15 18 29 / .1), 0 1px 2px -1px rgb(15 18 29 / .1);
}

.brand-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: rgb(241 243 248 / .5);
  padding: 10px 12px;
}

.brand-browser__dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: rgb(15 18 29 / .15);
}

.brand-browser__address {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  margin-left: 12px;
  border-radius: 6px;
  background: var(--background);
  padding: 4px 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-browser__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
}

.brand-browser__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.brand-browser__image.is-active {
  opacity: 1;
}

.brand-preview-card__caption {
  margin-top: 16px;
}

.brand-preview-card__caption h3,
.brand-feature-card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-preview-card__caption h3 {
  font-size: 20px;
  line-height: 24px;
}

.brand-preview-card__caption p,
.brand-card__copy,
.brand-feature-card p {
  color: var(--muted-foreground);
  font-size: 14px;
}

.brand-preview-card__caption p {
  line-height: 20px;
}

.brand-color-card,
.brand-video-card,
.brand-feature-card {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
}

.brand-color-card__swatches {
  display: flex;
  flex: 1;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
}

.brand-color-card__swatch {
  height: 48px;
  flex: 1;
  border: 1px solid rgb(226 228 232 / .5);
  border-radius: 8px;
}

.brand-color-card__swatch--sand { background: #d9b386; }
.brand-color-card__swatch--sun { background: #f4b41a; }
.brand-color-card__swatch--slate { background: #5c6570; }
.brand-color-card__swatch--white { background: #fff; }

.brand-card__copy {
  margin-top: 12px;
  line-height: 1.625;
}

.brand-video-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--foreground);
}

.brand-video-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-feature-card__icon {
  color: var(--primary);
}

.brand-feature-card h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 24px;
}

.brand-feature-card p {
  margin-top: 6px;
  line-height: 1.625;
}

@media (max-width: 1023px) {
  .brand-kit__container {
    padding-block: 96px;
  }

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

  .brand-preview-card {
    grid-column: span 2;
  }

  .brand-color-card,
  .brand-video-card,
  .brand-feature-card {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .brand-kit__container {
    padding: 80px 16px;
  }

  .brand-kit__grid {
    display: flex;
    flex-direction: column;
  }

  .brand-card {
    width: 100%;
  }

  .brand-preview-card__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand-preview-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brand-preview-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 389px) {
  .brand-card {
    padding: 20px;
  }
}
