.tdi-page {
  background: var(--body-bg);
}

.tdi-page .edge-lock-layer {
  z-index: 15;
  opacity: calc(var(--edge-opacity) * 1.2);
}

.tdi-page main {
  margin-top: 62px;
  position: relative;
  z-index: 10;
}

.tdi-page .hero-header,
.tdi-page .site-footer {
  position: relative;
  z-index: 30;
}

.tdi-page .site-footer {
  margin-top: 0;
}

.tdi-header {
  z-index: 200;
}

.tdi-shell {
  width: min(1320px, 92vw);
  margin: 0 auto;
}

.tdi-section {
  position: relative;
  padding: clamp(52px, 6vw, 92px) 0;
  overflow: hidden;
}

.tdi-section--light {
  background: transparent;
  color: #535962;
}

.tdi-section--light h2,
.tdi-section--light h3 {
  color: #515862;
}

.tdi-section--dark {
  background: linear-gradient(98deg, #242628 0%, #1b1d20 56%, #242628 100%);
  color: #eef3f8;
}

.tdi-media {
  position: relative;
  background: linear-gradient(145deg, rgb(226 232 239 / 0.9), rgb(201 210 220 / 0.96));
  border: 1px solid rgb(118 132 148 / 0.35);
  overflow: hidden;
}

.tdi-section--dark .tdi-media {
  background: linear-gradient(145deg, rgb(54 63 74 / 0.75), rgb(39 45 53 / 0.88));
  border-color: rgb(169 186 206 / 0.28);
}

.tdi-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tdi-media--cover img {
  object-fit: cover;
}

.tdi-media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  color: #31455f;
  line-height: 1.35;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(225deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(315deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(45deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) 0 0 / 32px 32px;
}

.tdi-media__placeholder code {
  display: inline-block;
  margin-top: 6px;
  color: #1f3b5b;
}

.tdi-section--dark .tdi-media__placeholder {
  color: #e9f2ff;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(225deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(315deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(45deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) 0 0 / 32px 32px;
}

.tdi-section--dark .tdi-media__placeholder code {
  color: #ca0d00;
}

.tdi-media.has-media .tdi-media__placeholder {
  display: none;
}

.tdi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-blue);
  padding: 12px 24px;
}

.tdi-btn--solid {
  color: #ffffff;
  background: #ca0d00;
}

.tdi-hero {
  position: relative;
  min-height: clamp(500px, 62vh, 700px);
  display: grid;
  align-items: center;
  color: #ffffff;
  background: #0e1218;
}

.tdi-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tdi-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(6 10 16 / 0.78) 0%, rgb(6 10 16 / 0.56) 50%, rgb(6 10 16 / 0.76) 100%);
}

.tdi-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tdi-hero__content h1 {
  margin: 0 auto;
  width: min(900px, 96%);
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4.1vw, 4.6rem);
  line-height: 1.08;
}

.tdi-hero__content p {
  margin: 18px auto 0;
  width: min(980px, 96%);
  font-size: clamp(1rem, 1.18vw, 1.34rem);
  line-height: 1.5;
  color: rgb(243 248 253 / 0.94);
}

.tdi-wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 44px;
  z-index: 4;
  background: var(--story-bg);
  clip-path: polygon(0 30%, 10% 42%, 24% 34%, 35% 45%, 50% 32%, 65% 46%, 80% 35%, 92% 43%, 100% 32%, 100% 100%, 0 100%);
}

.tdi-expert {
  text-align: center;
  padding-top: clamp(44px, 4.8vw, 72px);
}

.tdi-expert__icon {
  width: clamp(84px, 6.4vw, 106px);
  height: clamp(84px, 6.4vw, 106px);
  margin: 0 auto 18px;
  color: #ca0d00;
}

.tdi-expert__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tdi-expert h2 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.55rem);
  line-height: 1.1;
}

.tdi-expert p {
  margin: 16px auto 0;
  width: min(980px, 96%);
  font-size: clamp(1rem, 1.18vw, 1.32rem);
  line-height: 1.5;
}

.tdi-band {
  min-height: clamp(320px, 36vw, 470px);
  display: grid;
  align-items: center;
  padding-top: clamp(56px, 5.8vw, 84px);
}

.tdi-band__notch {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 24px solid #e8eaee;
  transform: translateX(-50%);
  z-index: 5;
}

.tdi-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tdi-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(4 10 18 / 0.8) 0%, rgb(4 10 18 / 0.54) 50%, rgb(4 10 18 / 0.8) 100%);
}

.tdi-band__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tdi-band__content h2 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 4.1rem);
  line-height: 1.05;
  color: #ffffff;
}

.tdi-band__content p {
  margin: 14px auto 0;
  width: min(1080px, 96%);
  font-size: clamp(1rem, 1.18vw, 1.3rem);
  line-height: 1.52;
  color: rgb(237 244 253 / 0.92);
}

.tdi-band__content .tdi-btn {
  margin-top: 22px;
}

.tdi-infographic {
  text-align: center;
}

.tdi-infographic h2 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.1;
}

.tdi-infographic__lead {
  margin: 16px auto 0;
  width: min(980px, 96%);
  font-size: clamp(1rem, 1.14vw, 1.28rem);
  line-height: 1.5;
}

.tdi-infographic__media {
  margin: clamp(24px, 2.8vw, 40px) auto 0;
  width: min(490px, 100%);
  min-height: clamp(260px, 27vw, 360px);
}

.tdi-infographic h3 {
  margin: clamp(30px, 3.2vw, 44px) auto 0;
  width: min(980px, 96%);
  color: #ca0d00;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2.55vw, 2.9rem);
  line-height: 1.12;
}

.tdi-infographic__note {
  margin: 14px auto 0;
  width: min(1040px, 96%);
  font-size: clamp(1rem, 1.14vw, 1.28rem);
  line-height: 1.5;
}

.tdi-infographic .tdi-btn {
  margin-top: 24px;
}

.tdi-install {
  padding-top: clamp(36px, 4vw, 54px);
  padding-bottom: clamp(64px, 7vw, 108px);
}

.tdi-install__grid {
  display: grid;
  grid-template-columns: minmax(360px, 50%) 1fr;
  align-items: stretch;
  min-height: clamp(320px, 34vw, 460px);
}

.tdi-install__media {
  min-height: 100%;
  border-left: 0;
  border-bottom: 0;
}

.tdi-install__copy {
  padding: clamp(24px, 2.8vw, 42px) clamp(28px, 3vw, 46px);
  display: grid;
  align-content: center;
  background: rgb(255 255 255 / 0.22);
}

.tdi-install__copy h2 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 2.9vw, 3.3rem);
  line-height: 1.14;
}

.tdi-install__copy p {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.16vw, 1.3rem);
  line-height: 1.52;
}

.tdi-install__copy .tdi-btn {
  margin-top: 18px;
  justify-self: start;
}

body.theme-dark .tdi-section--light {
  color: #c9d5e4;
}

body.theme-dark .tdi-section--light h2,
body.theme-dark .tdi-section--light h3 {
  color: #e5eef8;
}

body.theme-dark .tdi-expert p,
body.theme-dark .tdi-infographic__lead,
body.theme-dark .tdi-infographic__note,
body.theme-dark .tdi-install__copy p {
  color: #bdccde;
}

body.theme-dark .tdi-install__copy {
  background: rgb(13 20 30 / 0.68);
}

@media (max-width: 1160px) {
  .tdi-install__grid {
    grid-template-columns: 1fr;
  }

  .tdi-install__media {
    min-height: clamp(280px, 45vw, 420px);
  }
}

@media (max-width: 780px) {
  .tdi-page main {
    margin-top: 56px;
  }

  .tdi-shell {
    width: min(1320px, 94vw);
  }

  .tdi-section {
    padding: 42px 0;
  }

  .tdi-hero {
    min-height: clamp(420px, 58vh, 560px);
  }

  .tdi-hero__content h1,
  .tdi-expert h2,
  .tdi-band__content h2,
  .tdi-infographic h2,
  .tdi-infographic h3,
  .tdi-install__copy h2 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  .tdi-hero__content p,
  .tdi-expert p,
  .tdi-band__content p,
  .tdi-infographic__lead,
  .tdi-infographic__note,
  .tdi-install__copy p {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
  }

  .tdi-wave-divider {
    height: 28px;
  }
}
