/* Inside the product section — Figma node 1:2556 */

.inside-product {
  position: relative;
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}

.inside-product-ambient-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -548.056px;
  width: 100%;
  aspect-ratio: 31 / 38;
  background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 69.35%), url('../assets/inside-product-photo-raw.png') lightgray 0px -395px / 100% 122.38% no-repeat;
  z-index: 0;
  pointer-events: none;
}

.inside-product-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 100px 0;
}

.inside-product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 1120px;
}

.inside-product-heading-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 506px;
}

.inside-product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 5px 8px 5px 12px;
  background: var(--white);
  border: 0.5px solid var(--border-color);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.006em;
}

.inside-product-eyebrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
  transform: rotate(-90deg);
}

.inside-product-title {
  font-size: 48px;
  line-height: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.inside-product-desc {
  max-width: 361px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: #636363;
  text-align: left;
}

.inside-product-card {
  position: relative;
  width: 100%;
  max-width: 1120px;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0A0A0A;
  border: none;
  border-radius: 20px;
  margin: 0;
  /* No frame: a hairline ring, a close contact shadow and a long soft one for depth */
  box-shadow:
    0 0 0 1px rgba(10, 10, 10, 0.08),
    0 2px 6px rgba(10, 10, 10, 0.06),
    0 40px 90px -24px rgba(26, 38, 102, 0.35);
  overflow: hidden;
}

.inside-product-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #000;
}

/* Sits over the autoplaying player so clicks never reach YouTube (js/youtube-embed.js) */
.inside-product-video-shield {
  position: absolute;
  inset: 0;
}

.inside-product-control {
  position: absolute;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.inside-product-sound { right: 16px; }

/* Play / pause sits in the middle of the video. While it plays the button only shows on hover or keyboard focus, so it
   doesn't cover the walkthrough; once paused it stays up. Touch screens have no hover, so it stays, a little lighter. */
.inside-product-play {
  top: 50%;
  left: 50%;
  bottom: auto;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.inside-product-play svg { width: 26px; height: 26px; }
.inside-product-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.inside-product-play.is-playing { opacity: 0; }
.inside-product-card:hover .inside-product-play.is-playing,
.inside-product-play.is-playing:focus-visible { opacity: 1; }

@media (hover: none) {
  .inside-product-play { width: 52px; height: 52px; }
  .inside-product-play svg { width: 22px; height: 22px; }
  .inside-product-play.is-playing { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .inside-product-play, .inside-product-play:hover { transition: none; transform: translate(-50%, -50%); }
}

.inside-product-control:hover {
  background: rgba(10, 10, 10, 0.8);
}

.inside-product-control:focus-visible {
  outline: 2px solid #0090FF;
  outline-offset: 2px;
}

.inside-product-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inside-product-play svg { fill: currentColor; }

.inside-product-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 9px;
}

@media (max-width: 860px) {
  .inside-product-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .inside-product-title {
    font-size: 36px;
    line-height: 42px;
  }

  .inside-product-container {
    padding: 72px 0;
    gap: 40px;
  }

  .inside-product-heading {
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .inside-product {
    padding: 0 20px;
  }

  .inside-product-title {
    font-size: var(--section-title-phone);
    line-height: var(--section-title-phone-lh);
    letter-spacing: -0.02em;
  }

  .inside-product-desc {
    max-width: none;
  }

  .inside-product-container {
    padding: 56px 0;
    gap: 32px;
  }

  .inside-product-card {
    border-radius: 14px;
  }
}

/* Shown instead of the player when the page is opened from disk (file://) */
.inside-product-video-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.inside-product-video-fallback span {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* Stands in for the player until advertising is allowed in the cookie banner (js/youtube-embed.js) */
.inside-product-video-poster {
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.inside-product-video-poster span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}
.inside-product-video-poster svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.inside-product-video-poster:hover span { background: rgba(10, 10, 10, 0.95); }
.inside-product-video-poster:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}
