html {
  scroll-behavior: smooth;
}

body {
  font-family: "Prompt", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding-bottom: 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background-image: url("../assets/hero.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.82) 0%, rgba(250, 248, 243, 0.52) 42%, rgba(250, 248, 243, 0.18) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-mobile-cta {
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.sticky-mobile-cta .line-cta {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 223, 209, 0.9);
  box-shadow: 0 8px 24px rgba(46, 42, 38, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sticky-mobile-cta.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.line-cta,
summary,
a[href^="#"] {
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.line-cta:hover,
a[href^="#"]:hover,
.line-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.line-cta:active,
a[href^="#"]:active,
.line-secondary:active {
  transform: translateY(0);
}

.science-icon {
  display: inline-flex;
  height: 36px;
  width: 36px;
  color: #c8a96b;
}

.science-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f8f5ef;
}

.product-backdrop,
.product-scrim {
  position: absolute;
  inset: 0;
}

.product-backdrop {
  background-image: url("../assets/product.jpg");
  background-position: 42% center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(0.95);
  transition:
    transform 0.8s ease-out,
    box-shadow 0.8s ease-out;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.12);
  will-change: transform;
}

.product-backdrop.is-zoomed {
  transform: scale(1);
}

.product-scrim {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.92) 0%, rgba(250, 248, 243, 0.72) 38%, rgba(250, 248, 243, 0.18) 100%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.06) 0%, rgba(46, 42, 38, 0.08) 100%);
}

.product-content {
  position: relative;
  z-index: 1;
}

.technology-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.technology-backdrop,
.technology-scrim {
  position: absolute;
  inset: 0;
}

.technology-backdrop {
  background-image: url("../assets/technology.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.technology-scrim {
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.72) 0%, rgba(250, 248, 243, 0.56) 34%, rgba(250, 248, 243, 0.82) 100%),
    linear-gradient(90deg, rgba(250, 248, 243, 0.82) 0%, rgba(250, 248, 243, 0.34) 50%, rgba(250, 248, 243, 0.72) 100%);
}

.technology-content {
  position: relative;
  z-index: 1;
}

.certification-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.certification-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  width: 56px;
  padding: 0;
}

.certification-logo img {
  max-height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.certification-strip::-webkit-scrollbar {
  display: none;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.diagram-step {
  transform-origin: center;
  animation: floatSoft 5.5s ease-in-out infinite;
}

.diagram-step:nth-of-type(2) {
  animation-delay: 0.3s;
}

.diagram-step:nth-of-type(3) {
  animation-delay: 0.6s;
}

.diagram-step:nth-of-type(4) {
  animation-delay: 0.9s;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.reset-day,
.trust-item,
.lead-benefit {
  border-radius: 2rem;
  border: 1px solid rgba(231, 223, 209, 0.9);
  background: rgba(250, 248, 243, 0.72);
  box-shadow: 0 16px 40px rgba(46, 42, 38, 0.05);
}

.reset-day {
  padding: 2rem;
  text-align: left;
}

.reset-day-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a96b;
}

.trust-item,
.lead-benefit {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

.trust-item::before,
.lead-benefit::before {
  content: "✔";
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  color: #c8a96b;
  font-size: 1rem;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    right: 1rem;
    top: 4rem;
  }

  #hero .line-cta,
  #hero .line-secondary {
    min-height: 3.5rem;
  }

  #hero h1 {
    max-width: 10ch;
  }

  .hero-backdrop {
    background-position: 68% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(250, 248, 243, 0.62) 0%, rgba(250, 248, 243, 0.42) 36%, rgba(250, 248, 243, 0.72) 100%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
  }

  details {
    scroll-margin-top: 5rem;
  }

  .product-backdrop {
    background-position: 38% center;
  }

  .product-scrim {
    background:
      linear-gradient(180deg, rgba(250, 248, 243, 0.68) 0%, rgba(250, 248, 243, 0.42) 32%, rgba(250, 248, 243, 0.68) 100%),
      linear-gradient(90deg, rgba(250, 248, 243, 0.92) 0%, rgba(250, 248, 243, 0.46) 30%, rgba(250, 248, 243, 0.02) 100%);
  }

  .technology-backdrop {
    background-position: 58% center;
  }

  #story-video .px-6 {
    padding-left: 0;
    padding-right: 0;
  }

  .video-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-shadow: none;
  }

  .certification-strip {
    justify-content: space-between;
    gap: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .certification-logo {
    width: calc((100% - 0.4rem) / 5);
    min-height: 3.5rem;
  }

  .certification-logo img {
    max-height: 56px;
  }

  #final-cta p.text-lg,
  #reset-flow p.text-lg,
  #science p.text-lg,
  #product p.text-lg {
    line-height: 1.6;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .certification-strip {
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .certification-logo {
    width: 72px;
    min-height: 3rem;
  }

  .certification-logo img {
    max-height: 34px;
  }
}

@media (min-width: 1024px) {
  .certification-logo {
    width: 88px;
  }

  .certification-logo img {
    max-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .line-cta,
  summary,
  a[href^="#"] {
    transition: none;
  }

  .sticky-mobile-cta {
    transition: none;
  }

  .diagram-step {
    animation: none;
  }

  .product-backdrop {
    transform: none;
    transition: none;
  }
}
