/* Instagram reels on the landing: hero stage, social proof, reels band and the reel dialog. */

:root {
  --ig-text: #0f0f23;
  --ig-muted: #687182;
  --ig-line: #e7e7ec;
  --ig-accent: #bc5813;
}

.dark {
  --ig-text: #ffffff;
  --ig-muted: #a3a9b6;
  --ig-line: #26263b;
}

.hero-section {
  min-height: 0;
  padding-top: 140px;
  padding-bottom: 56px;
}

.ig-verified {
  flex: none;
  width: 15px;
  height: 15px;
}

.ig-glyph {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.ig-glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.ig-glyph-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.ig-glyph-sm svg {
  width: 18px;
  height: 18px;
}

.ig-icon-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.ig-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Social proof under the hero headline */

.ig-proof-wrap {
  margin-top: 28px;
}

.ig-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--ig-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px -14px rgba(15, 15, 35, 0.35);
  color: var(--ig-text);
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.dark .ig-proof {
  background: #1a1a2e;
}

.ig-proof:hover {
  transform: translateY(-2px);
}

@media (max-width: 479px) {
  .ig-proof {
    padding-right: 18px;
    font-size: 14px;
  }

  .ig-proof .ig-glyph-sm {
    display: none;
  }
}

/* Hero stage: the latest reel plays a muted preview with the next two behind it */

.ig-stage {
  position: relative;
  height: 640px;
}

.ig-card,
.ig-back {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 315px;
  height: 560px;
  margin-left: -157px;
  overflow: hidden;
  border-radius: 28px;
}

.ig-back {
  object-fit: cover;
  box-shadow: 0 20px 40px -20px rgba(15, 15, 35, 0.5);
}

.ig-back-l {
  transform: translateX(-130px) rotate(-8deg) scale(0.84);
}

.ig-back-r {
  transform: translateX(130px) rotate(8deg) scale(0.84);
}

.ig-card {
  z-index: 1;
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(15, 15, 35, 0.55);
}

.ig-card video,
.ig-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.ig-card-label,
.ig-card-pause,
.ig-hint,
.ig-card-side,
.ig-card-bottom {
  position: absolute;
  z-index: 2;
}

.ig-card-label {
  top: 16px;
  left: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ig-card-pause {
  top: 12px;
  right: 12px;
}

.ig-hint {
  bottom: 112px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  animation: ig-hint-out 0.4s ease 3s forwards;
}

.ig-card:hover .ig-hint {
  animation: none;
}

@keyframes ig-hint-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.ig-hint svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.ig-card-side {
  right: 12px;
  bottom: 124px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ig-card-side a,
.ig-card-side button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.ig-card-side svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.ig-card-bottom {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 56px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}

.ig-card-bottom a {
  pointer-events: auto;
}

.ig-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.ig-card-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}

.ig-chip {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.ig-card-caption {
  display: block;
  margin-top: 8px;
}

.ig-stage-link {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  color: var(--ig-text);
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .ig-stage {
    height: 530px;
  }

  .ig-card,
  .ig-back {
    width: 252px;
    height: 448px;
    margin-left: -126px;
  }

  .ig-back-l {
    transform: translateX(-84px) rotate(-8deg) scale(0.84);
  }

  .ig-back-r {
    transform: translateX(84px) rotate(8deg) scale(0.84);
  }

  .ig-hint {
    bottom: 104px;
    left: 12px;
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* Reels band below the hero */

.ig-band {
  padding: 56px 0 64px;
  background: #f8f8fa;
}

.dark .ig-band {
  background: #15152c;
}

.ig-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px 24px;
}

.ig-band-title {
  color: var(--ig-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ig-band-sub {
  margin-top: 6px;
  color: var(--ig-muted);
  font-size: 16px;
}

.ig-band-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.ig-band-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ig-text);
  text-decoration: none;
}

.ig-ring {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.ig-ring img {
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 7px;
}

.ig-band-handle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.ig-band-meta {
  display: block;
  color: var(--ig-muted);
  font-size: 14px;
}

.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #0f0f23;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.ig-follow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dark .ig-follow {
  background: #fff;
  color: #0f0f23;
}

.ig-reels {
  display: grid;
  grid-auto-columns: minmax(150px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  margin: 0;
  padding: 4px 16px 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ig-reels li {
  scroll-snap-align: start;
}

.ig-reel {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  box-shadow: 0 10px 24px -12px rgba(15, 15, 35, 0.45);
  transition: transform 0.25s ease;
}

.ig-reel:hover {
  transform: translateY(-4px);
}

.ig-reel img,
.ig-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-preview {
  position: absolute;
  inset: 0;
}

.ig-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.ig-new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ig-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Reel dialog with the Instagram embed */

.ig-player {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ig-player[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-player::backdrop {
  background: rgba(8, 8, 20, 0.88);
}

.ig-pwrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(400px, 92vw);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

.ig-ptop {
  display: flex;
  flex: none;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ig-pcard {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
}

.ig-pcard iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

.ig-pnav {
  position: absolute;
  top: 40%;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.14);
}

.ig-pprev {
  left: -64px;
}

.ig-pnext {
  right: -64px;
}

.ig-ptitle {
  flex: none;
  margin: 14px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.ig-pactions {
  display: flex;
  flex: none;
  gap: 10px;
  margin-top: 12px;
}

.ig-pcta,
.ig-pinsta {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.ig-pcta {
  flex: 1;
  background: var(--ig-accent);
  color: #fff;
}

.ig-pinsta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 640px) {
  .ig-pnav {
    top: 0;
    width: 38px;
    height: 38px;
  }

  .ig-pprev {
    left: 0;
  }

  .ig-pnext {
    right: auto;
    left: 48px;
  }
}
