.tablet-dissolve-reactor {
  position: relative;
  min-height: 520vh;
  margin: 0;
  color: #142027;
  background: #f8fafb;
  overflow: clip;
}

.tablet-dissolve-reactor,
.tablet-dissolve-reactor * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tdr-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(232, 244, 240, 0.9)),
    linear-gradient(135deg, #ffffff, #edf7f2 54%, #f8fafb);
}

.tdr-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 32, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 32, 39, 0.03) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.tdr-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tdr-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.tdr-copy {
  position: absolute;
  z-index: 4;
  top: 9vh;
  left: max(22px, calc((100vw - 1220px) / 2));
  width: min(430px, calc(100% - 44px));
  pointer-events: none;
}

.tdr-kicker {
  margin: 0 0 12px;
  color: #007c89;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tdr-copy h2 {
  margin: 0;
  color: #142027;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tdr-copy > p {
  max-width: 395px;
  margin: 16px 0 0;
  color: #33464e;
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.tdr-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tdr-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #526268;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tdr-steps span.is-active {
  border-color: rgba(0, 124, 137, 0.46);
  background: #ffffff;
  color: #007c89;
}

.tdr-phase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  pointer-events: auto;
}

.tdr-phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid rgba(20, 32, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #142027;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 80, 92, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tdr-phase span {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(20, 32, 39, 0.18);
  border-radius: 999px;
  background: var(--tdr-phase-color);
  flex: 0 0 auto;
}

.tdr-phase:hover,
.tdr-phase:focus-visible,
.tdr-phase.is-active {
  border-color: rgba(0, 124, 137, 0.58);
  background: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.tdr-result {
  position: absolute;
  z-index: 5;
  right: max(22px, calc((100vw - 1220px) / 2));
  bottom: 9vh;
  width: min(350px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(28, 80, 92, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: var(--tdr-result-opacity, 0);
  transform: translateY(calc(18px - (var(--tdr-result-opacity, 0) * 18px)));
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tablet-dissolve-reactor.is-result-visible .tdr-result {
  pointer-events: auto;
}

.tdr-result span {
  display: block;
  color: #007c89;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tdr-result strong {
  display: block;
  margin-top: 8px;
  color: #142027;
  font-size: 25px;
  line-height: 1.14;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tdr-result p {
  margin: 10px 0 0;
  color: #3d4f56;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.tdr-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 15px;
  padding: 0 22px;
  border-radius: 8px;
  background: #007c89;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 124, 137, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.tdr-buy:hover,
.tdr-buy:focus-visible {
  background: #005f68;
  color: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.tdr-reference {
  position: absolute;
  z-index: 3;
  right: max(22px, calc((100vw - 1220px) / 2));
  top: 8vh;
  width: min(150px, 16vw);
  border-radius: 8px;
  opacity: 0.84;
  filter: drop-shadow(0 18px 28px rgba(17, 68, 84, 0.16));
  pointer-events: none;
}

.tdr-tooltip {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  width: min(270px, calc(100vw - 32px));
  padding: 14px 15px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #142027;
  box-shadow: 0 20px 46px rgba(19, 57, 68, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.tdr-tooltip.is-visible {
  opacity: 1;
}

.tdr-tooltip span {
  display: block;
  color: #007c89;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tdr-tooltip strong {
  display: block;
  margin-top: 6px;
  color: #142027;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tdr-tooltip p {
  margin: 8px 0 0;
  color: #42545b;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tdr-fallback {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  background: #f8fafb;
}

.tablet-dissolve-reactor.is-fallback .tdr-scene,
.tablet-dissolve-reactor.is-fallback .tdr-reference {
  display: none;
}

.tablet-dissolve-reactor.is-fallback .tdr-fallback {
  display: flex;
}

.tdr-fallback img {
  width: min(320px, 42vw);
  border-radius: 8px;
  filter: drop-shadow(0 18px 32px rgba(19, 57, 68, 0.15));
}

.tdr-fallback div {
  width: min(390px, 100%);
}

.tdr-fallback strong {
  display: block;
  color: #142027;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.tdr-fallback p {
  color: #42545b;
  font-size: 15px;
  line-height: 1.55;
}

.tdr-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #007c89;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .tablet-dissolve-reactor {
    min-height: 560vh;
  }

  .tdr-stage {
    min-height: 100vh;
    min-height: 100svh;
  }

  .tdr-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 42vh;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 250, 251, 0.94), rgba(248, 250, 251, 0));
  }

  .tdr-copy {
    top: 24px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: 360px;
  }

  .tdr-kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .tdr-copy h2 {
    max-width: 335px;
    font-size: 31px;
    line-height: 1.08;
  }

  .tdr-copy > p {
    max-width: 330px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.48;
  }

  .tdr-steps {
    margin-top: 14px;
    gap: 7px;
  }

  .tdr-steps span {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .tdr-phase-list {
    margin-top: 12px;
    gap: 8px;
  }

  .tdr-phase {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .tdr-result {
    right: 16px;
    bottom: 18px;
    width: min(330px, calc(100% - 32px));
    padding: 14px;
  }

  .tdr-result strong {
    font-size: 21px;
  }

  .tdr-result p {
    font-size: 12px;
  }

  .tdr-buy {
    width: 100%;
    min-height: 40px;
  }

  .tdr-reference {
    display: none;
  }

  .tdr-tooltip {
    width: min(230px, calc(100vw - 28px));
  }

  .tdr-fallback {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 16px;
  }

  .tdr-fallback img {
    width: min(270px, 76vw);
  }
}

@media (max-width: 420px) and (max-height: 740px) {
  .tdr-copy h2 {
    font-size: 26px;
  }

  .tdr-copy > p {
    font-size: 12px;
  }

  .tdr-phase {
    min-height: 31px;
    font-size: 11px;
  }

  .tdr-result p {
    display: none;
  }
}
