.masthead.optic-hero.hero-landing {
  min-height: calc(100svh - clamp(238px, 39svh, 320px));
  padding-top: clamp(88px, 15svh, 148px);
  grid-template-rows: 1fr auto;
  row-gap: clamp(18px, 4svh, 46px);
  padding-bottom: clamp(18px, 3vh, 36px);
}
.landing-reassurance {
  display: grid;
  gap: 8px;
  color: #fff;
  text-align: left;
  text-wrap: balance;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;
}
.landing-reassurance p { display: flex; align-items: flex-start; gap: 10px; }
.landing-reassurance svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.landing-reassurance strong { font-weight: 600; }
.hero-scroll > .hero-testimonials {
  --testimonial-fade: clamp(112px, 14vw, 196px);
  /* Keep the rail on the hero's dark background and blend only below it. */
  padding-block-end: calc(var(--testimonial-fade) + 12px);
  background:
    linear-gradient(to bottom, #fff0, #fff2 23%, #fffb 62%, #fff 96%),
    radial-gradient(ellipse 58% 68% at 50% 70%, #367dbbb3, #367dbb00),
    #081525;
  background-size: 100% var(--testimonial-fade);
  background-position: center bottom;
  background-repeat: no-repeat;
}
.testimonial-window {
  --quote-width: min(79vw, clamp(285px, 43vw, 570px));
  --mask-edge: clamp(40px, 13vw, 220px);
  position: relative;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 var(--mask-edge), #000 calc(100% - var(--mask-edge)), transparent);
}
.testimonial-window::-webkit-scrollbar { display: none; }
.testimonial-window:focus-visible { outline-offset: -3px; }
.testimonial-track {
  display: flex;
  gap: clamp(12px, 3.4vw, 56px);
  padding: 10px calc((100% - var(--quote-width)) / 2) 14px;
}
.testimonial-quote {
  display: grid;
  flex: 0 0 var(--quote-width);
  align-content: center;
  gap: 5px;
  margin: 0;
  padding: 11px clamp(12px, 2.2vw, 32px);
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b2c2d5;
  text-align: center;
  scroll-snap-align: center;
}
.testimonial-quote[data-active] {
  border-color: #9bc7f649;
  background: linear-gradient(145deg, #1b324b, #101e30 74%);
  box-shadow: inset 0 1px 0 #d7eaff20, 0 8px 26px #020a1b42;
  color: #f4f7fc;
}
.testimonial-quote blockquote {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.3;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.testimonial-quote figcaption {
  color: #a8bfd7;
  font-size: 13px;
  line-height: 1.35;
}
.testimonial-quote figcaption strong { font-weight: 600; }
.testimonial-quote[data-active] figcaption { color: #d9e8f8; }
@media (prefers-contrast: more) {
  .testimonial-window { mask-image: none; }
  .testimonial-quote[data-active] { border-color: #a8bfd7; }
}

.landing-demo-screen {
  margin: 0;
  padding: clamp(12px, 2.5vw, 38px) 24px 24px;
}
.landing-demo-screen figcaption {
  margin-top: clamp(22px, 3.4vw, 42px);
  color: var(--app-gray);
  text-align: center;
  font-size: 13px;
}
.landing-demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px clamp(44px, 7vw, 88px);
}
.landing-demo-screen,
.landing-demo-actions {
  background: #fff url('/vitrine/product-assets/bento-grain.png');
}

.tools-index { padding-bottom: clamp(58px, 9vh, 110px); }
.tools-index .tool-bento { margin-top: clamp(25px, 5vw, 56px); gap: 12px; }
.tools-index .tool-tile { min-height: 192px; padding: clamp(18px, 3vw, 28px); border-radius: 15px; }
.tools-index .tool-tile strong { margin-top: 7px; font-size: clamp(22px, 3vw, 34px); }
.tools-index .tool-tile small:not(.tile-cta) { font-size: 14px; }
.tools-index .tile-category { display: none; }

@media (max-width: 760px) {
  main:has(> .hero-scroll > .hero-landing) {
    --landing-gutter: clamp(20px, 6vw, 28px);
  }
  .hero-landing .wrap { width: calc(100% - 2 * var(--landing-gutter)); }
  .hero-scroll:has(> .hero-landing) ~ .landing-demo-screen {
    padding-inline: calc(var(--landing-gutter) + 8px);
  }
  .hero-scroll:has(> .hero-landing) ~ .landing-demo-actions { padding-inline: var(--landing-gutter); }
  .tools-index .tool-bento { grid-template-columns: 1fr; }
  .tools-index .tool-tile { min-height: 146px; }
}

@media (max-width: 380px) {
  .hero-landing .hero-inner h1 { font-size: clamp(36px, 11vw, 42px); }
}

@media (max-width: 900px) {
  .masthead.optic-hero.hero-landing {
    min-height: auto;
    padding-top: clamp(104px, 16svh, 144px);
    grid-template-rows: auto auto;
  }
  .hero-landing .optic-stage {
    top: var(--landing-title-center, 54%);
    right: -11%;
    width: min(118%, 840px);
    translate: 0 -50%;
  }
  .hero-landing.optic-static .hero-art::before,
  .hero-landing.optic-static .hero-art::after {
    top: var(--landing-title-center, 54%);
    translate: 0 -50%;
  }
}
