/* TV•LAB CRO and trust release v1 */

/* Content must remain readable even if hydration or observers are delayed. */
.reveal {
  opacity: 1;
  transform: none;
}

.tvlab-quiz-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 20px;
}

.tvlab-quiz-assurances span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  color: #dce4ec;
  border: 1px solid #2d3945;
  border-radius: 14px;
  background: #121820;
}

.tvlab-quiz-assurances i {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #0b0d11;
  border-radius: 50%;
  background: #b7ff33;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.tvlab-quiz-assurances b {
  font-size: 11px;
  line-height: 1.35;
}

.specialist-profiles {
  padding: 52px 0 8px;
}

.specialist-profiles-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.specialist-profiles-head h3 {
  max-width: 680px;
  margin: 12px 0;
  color: #0b0d11;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -.045em;
}

.specialist-profiles-head p {
  max-width: 720px;
  margin: 0;
  color: #626e79;
  font-size: 14px;
  line-height: 1.6;
}

.specialist-profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.specialist-profile {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 20px;
  color: #f4f7fa;
  border: 1px solid #26313b;
  border-radius: 25px;
  background: #11161d;
  box-shadow: 0 18px 44px rgba(11, 13, 17, .11);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.specialist-profile:hover {
  transform: translateY(-4px);
  border-color: #7aab2b;
  box-shadow: 0 24px 54px rgba(11, 13, 17, .18);
}

.specialist-profile figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0 0 19px;
  border-radius: 19px;
  background: #1a222b;
}

.specialist-profile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.specialist-profile:hover img {
  transform: scale(1.025);
}

.specialist-profile figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  color: #d8e0e8;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(11, 13, 17, .76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.specialist-profile > span,
.typical-case-library-head > span,
.typical-case-label,
.tvlab-existing-case-label {
  color: #b7ff33;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .08em;
}

.specialist-profile > span,
.specialist-profile h4,
.specialist-profile > p,
.specialist-profile > a {
  margin-right: 12px;
  margin-left: 12px;
}

.specialist-profile h4 {
  margin-top: 8px;
  margin-bottom: 9px;
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.specialist-profile > p {
  flex: 1;
  margin-top: 0;
  margin-bottom: 20px;
  color: #99a5b1;
  font-size: 12px;
  line-height: 1.52;
}

.specialist-profile > a {
  color: #f2f6f9;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.specialist-profile > a:hover,
.specialist-profile > a:focus-visible {
  color: #b7ff33;
}

.tvlab-existing-case-label {
  display: block;
  margin-bottom: 8px;
}

.typical-case-library {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid #d3dad4;
}

.typical-case-library-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.typical-case-library-head h3 {
  margin: 10px 0 12px;
  color: #0b0d11;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1;
  letter-spacing: -.045em;
}

.typical-case-library-head p {
  max-width: 720px;
  margin: 0;
  color: #65717d;
  font-size: 14px;
  line-height: 1.58;
}

.typical-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.typical-case-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: #f4f7fa;
  border: 1px solid #28343f;
  border-radius: 24px;
  background: linear-gradient(145deg, #151b22, #0d1116);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.typical-case-card:hover,
.typical-case-card:focus-visible {
  transform: translateY(-4px);
  border-color: #7eae31;
  box-shadow: 0 24px 54px rgba(11, 13, 17, .2);
  outline: none;
}

.typical-case-card > small {
  margin-top: 24px;
  color: #8794a1;
  font-size: 11px;
  font-weight: 800;
}

.typical-case-card h3 {
  margin: 9px 0 12px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.typical-case-card > p {
  flex: 1;
  margin: 0 0 20px;
  color: #a3adb7;
  font-size: 12px;
  line-height: 1.55;
}

.typical-case-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 22px;
}

.typical-case-card dl div {
  padding: 12px;
  border: 1px solid #2b3742;
  border-radius: 13px;
  background: #171e26;
}

.typical-case-card dt {
  margin-bottom: 5px;
  color: #7f8b98;
  font-size: 9px;
}

.typical-case-card dd {
  margin: 0;
  color: #f3f6f8;
  font-size: 12px;
  font-weight: 850;
}

.typical-case-card > b {
  color: #b7ff33;
  font-size: 11px;
}

.tvlab-mobile-dock {
  width: auto;
  min-height: 0;
  height: auto;
  left: auto;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  color: #f6f8fa;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(11, 13, 17, .9);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.tvlab-mobile-dock:hover {
  transform: none;
}

.mobile-sticky.tvlab-mobile-dock.tvlab-callbar-hidden,
.tvlab-menu-open .mobile-sticky.tvlab-mobile-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 28px));
}

.tvlab-mobile-dock > a,
.tvlab-mobile-dock > button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: #0b0d11;
  border: 0;
  border-radius: 14px;
  background: #b7ff33;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.tvlab-mobile-dock > button.tvlab-mobile-dock-quiz {
  display: none;
}

.tvlab-mobile-dock > a:hover,
.tvlab-mobile-dock > button:hover,
.tvlab-mobile-dock > a:focus-visible,
.tvlab-mobile-dock > button:focus-visible {
  color: #0b0d11;
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: none;
}

@media (max-width: 1024px) {
  .specialist-profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .typical-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tvlab-quiz-assurances {
    grid-template-columns: 1fr;
  }

  .tvlab-quiz-assurances span {
    min-height: 48px;
  }

  .specialist-profiles {
    padding-top: 38px;
  }

  .specialist-profiles-head h3,
  .typical-case-library-head h3 {
    font-size: 32px;
  }

  .specialist-profiles-grid {
    display: grid;
    grid-auto-columns: minmax(78vw, 1fr);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 18vw 10px 0;
  }

  .specialist-profiles-grid::-webkit-scrollbar,
  .typical-case-grid::-webkit-scrollbar {
    display: none;
  }

  .specialist-profile {
    scroll-snap-align: start;
  }

  .typical-case-library {
    margin-top: 42px;
    padding-top: 34px;
  }

  .typical-case-grid {
    display: grid;
    grid-auto-columns: minmax(84vw, 1fr);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 12vw 10px 0;
  }

  .typical-case-card {
    min-height: 360px;
    scroll-snap-align: start;
  }

  .tvlab-mobile-dock {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: .9fr 1.15fr;
    gap: 5px;
    padding: 5px;
    border-radius: 17px;
  }

  .tvlab-mobile-dock > a,
  .tvlab-mobile-dock > button,
  .tvlab-mobile-dock > button.tvlab-mobile-dock-quiz {
    min-width: 0;
    min-height: 54px;
    display: flex;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 10px;
  }

  .tvlab-mobile-dock > button.tvlab-mobile-dock-quiz {
    color: #f4f7fa;
    border: 1px solid #34414e;
    background: #151b22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .specialist-profile,
  .specialist-profile img,
  .typical-case-card,
  .mobile-sticky {
    transition: none;
  }
}
