/* Assurance scene: light background, gradient title, six assurances as icon medallions on two rows of three. */
html body main.page > #assurance.assurance.surface {
  box-sizing: border-box;
  display: grid;
  align-content: safe center;
  justify-items: center;
  padding: clamp(28px, 5vh, 64px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(ellipse 55% 50% at 88% 0%, rgba(185, 209, 243, .45), transparent 70%),
    linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
  color: #0f1e43;
  overflow-x: clip;
  /* Never let a quick scroll or the menu jump flick past this scene to the next one. */
  scroll-snap-stop: always;
}
#assurance .as-frame { position: relative; width: min(100%, 1180px); overflow: clip; padding: 8px; box-sizing: border-box; }
#assurance .as-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(64px, 11vh, 112px); }
#assurance .as-head h2 {
  margin: 0; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; text-wrap: balance;
  background: var(--ralph-spectrum, linear-gradient(105deg, #15366D 0%, #235CA6 40%, #3579C9 75%, #69A3E6 100%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #235ca6;
}
#assurance .as-head p { margin: 14px 0 0; max-width: 44ch; color: #44526f; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
#assurance .as-rows { position: relative; display: flex; flex-direction: column; gap: clamp(26px, 4.5vh, 44px); }
#assurance .as-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(34px, 6vh, 52px) 24px; }
#assurance .as-item {
  position: relative; flex: 0 0 calc((100% - 48px) / 3); min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 6px;
}
#assurance .as-tile { width: 48px; height: 48px; display: grid; place-items: center; color: #235ca6; }
#assurance .as-i { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#assurance .as-item h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 650; color: #0f1e43; }
#assurance .as-item p { margin: 0; max-width: 26ch; font-size: 14px; line-height: 1.5; color: #44526f; }

@media (min-width: 901px) and (max-height: 860px) and (pointer: fine) {
  html body main.page > #assurance.assurance.surface { padding-block: 22px; }
  #assurance .as-head { margin-bottom: 52px; }
  #assurance .as-head p { margin-top: 10px; }
  #assurance .as-row { row-gap: 30px; }
  #assurance .as-item { gap: 8px; }
}
@media (max-width: 900px), (pointer: coarse) and (max-height: 600px) {
  html body main.page > #assurance.assurance.surface {
    height: auto; min-height: 0; max-height: none; overflow-y: visible;
    width: calc(100% - 22px); max-width: 780px; margin: 0 auto 18px; border-radius: 21px; padding: 34px 18px;
  }
  #assurance .as-item { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 560px) {
  html body main.page > #assurance.assurance.surface { padding: 24px 14px; }
  #assurance .as-frame { padding: 0; }
  #assurance .as-head { margin-bottom: 22px; }
  #assurance .as-head h2 { font-size: 34px; }
  #assurance .as-head p { margin-top: 8px; font-size: 14px; line-height: 1.45; }
  #assurance .as-row { gap: 18px 12px; }
  #assurance .as-item { flex-basis: calc((100% - 12px) / 2); padding: 0; gap: 5px; }
  #assurance .as-tile { width: 28px; height: 28px; }
  #assurance .as-item h3 { font-size: 13.5px; line-height: 1.4; font-weight: 700; text-wrap: balance; }
  #assurance .as-item p { max-width: none; font-size: 13.5px; line-height: 1.4; }
}

/* Tall scenes grow instead of becoming their own scroll box. A scene that is taller than a short window used to trap the wheel
   inside itself (the founder story kept scrolling on its own and Assurance could not be reached). The page now scrolls through them. */
@media (min-width: 751px) and (pointer: fine) {
  html body main.page > :is(#story, #assurance, #roadmap).surface.surface.surface.surface {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

/* Nav "Home" link: shown only once the visitor has scrolled away from the top. */
html body main.page > #top .site-nav-dropdown a.nav-home[hidden], html body .site-nav-links a.nav-home[hidden], html body .site-nav-mobile .site-nav-dropdown a.nav-home[hidden] { display: none !important; }
