.idv-route-page {
  --route-ink: #17202c;
  --route-night: #0b111b;
  --route-night-soft: #111c29;
  --route-paper: #f7f2e9;
  --route-muted: #697481;
  --route-orange: #c4552d;
  --route-teal: #7ed6dc;
  overflow: hidden;
  background: var(--route-paper);
  color: var(--route-ink);
}

.idv-route-page *,
.idv-route-page *::before,
.idv-route-page *::after {
  box-sizing: border-box;
}

.idv-route-shell {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.idv-route-hero {
  position: relative;
  min-height: 540px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(126, 214, 220, .18), transparent 24%),
    radial-gradient(circle at 72% 38%, rgba(196, 85, 45, .13), transparent 42%),
    linear-gradient(142deg, #111a26 0%, #080d15 76%);
  color: #faf7f2;
}

.idv-route-hero::before,
.idv-route-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.idv-route-hero::before {
  inset: 0;
  opacity: .36;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .82) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(126, 214, 220, .66) 0 1px, transparent 1.2px);
  background-position: 0 0, 37px 63px;
  background-size: 128px 128px, 173px 173px;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000);
}

.idv-route-hero::after {
  width: 650px;
  height: 650px;
  top: 54%;
  right: max(-120px, calc((100vw - 1220px) / 2 - 140px));
  border: 1px solid rgba(126, 214, 220, .15);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(126, 214, 220, .07), inset 0 0 80px rgba(126, 214, 220, .04);
  transform: translateY(-50%);
}

.idv-route-hero-orbit {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 260px;
  right: max(-210px, calc((100vw - 1220px) / 2 - 250px));
  top: 48%;
  border: 1px solid rgba(250, 247, 242, .22);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.idv-route-hero-orbit::after {
  position: absolute;
  width: 11px;
  height: 11px;
  top: 28px;
  left: 18%;
  content: "";
  border-radius: 50%;
  background: var(--route-orange);
  box-shadow: 0 0 0 8px rgba(196, 85, 45, .12), 0 0 26px rgba(196, 85, 45, .8);
}

.idv-route-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding-block: 92px 82px;
}

.idv-route-kicker,
.idv-route-step {
  margin: 0 0 18px;
  color: var(--route-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.idv-route-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #faf7f2;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(48px, 7.2vw, 94px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .96;
}

.idv-route-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(250, 247, 242, .72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.idv-route-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 38px;
  margin-top: 44px;
  color: rgba(250, 247, 242, .74);
  font-size: 13px;
}

.idv-route-promises span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.idv-route-promises b {
  color: var(--route-teal);
  font-size: 10px;
  letter-spacing: .12em;
}

.idv-route-workspace {
  position: relative;
  padding: 92px 0 112px;
  background:
    linear-gradient(rgba(20, 85, 90, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 85, 90, .045) 1px, transparent 1px),
    var(--route-paper);
  background-size: 54px 54px;
}

.idv-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .84fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.idv-route-panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(28, 36, 49, .12);
  border-radius: 28px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 30px 80px rgba(28, 36, 49, .09);
}

.idv-route-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(28, 36, 49, .1);
}

.idv-route-panel-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
  line-height: 1.04;
}

.idv-route-panel-head .idv-route-step {
  margin-bottom: 10px;
}

.idv-route-duration {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(20, 85, 90, .2);
  border-radius: 999px;
  color: #14555a;
  background: rgba(126, 214, 220, .12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.idv-route-fields {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 32px;
}

.idv-route-field > span,
.idv-route-choice legend,
.idv-route-formats legend {
  display: block;
  margin-bottom: 10px;
  color: #46515e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.idv-route-field select {
  width: 100%;
  min-height: 58px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(28, 36, 49, .16);
  border-radius: 13px;
  color: var(--route-ink);
  background-color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.idv-route-field select:focus,
.idv-route-swap:focus-visible,
.idv-route-generate:focus-visible,
.idv-route-download:focus-visible {
  outline: 3px solid rgba(126, 214, 220, .55);
  outline-offset: 2px;
}

.idv-route-swap {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #14555a;
  box-shadow: 0 8px 20px rgba(20, 85, 90, .2);
  font-size: 19px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.idv-route-swap:hover {
  color: #fff;
  background: var(--route-orange);
  transform: rotate(180deg);
}

.idv-route-choice,
.idv-route-formats {
  display: grid;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  gap: 10px;
}

.idv-route-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idv-route-choice legend,
.idv-route-formats legend {
  grid-column: 1 / -1;
}

.idv-route-choice-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(28, 36, 49, .12);
  border-radius: 14px;
  background: #fff;
}

.idv-route-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.idv-route-choice-card.is-active {
  border-color: rgba(196, 85, 45, .55);
  box-shadow: inset 0 0 0 1px rgba(196, 85, 45, .2);
}

.idv-route-choice-card.is-upcoming {
  opacity: .48;
}

.idv-route-choice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--route-orange);
  font-size: 17px;
}

.idv-route-choice-card.is-upcoming .idv-route-choice-icon {
  color: var(--route-ink);
  background: #e4e2dc;
}

.idv-route-choice-card strong,
.idv-route-choice-card small {
  display: block;
  line-height: 1.2;
}

.idv-route-choice-card strong {
  color: var(--route-ink);
  font-size: 13px;
}

.idv-route-choice-card small {
  margin-top: 5px;
  color: var(--route-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.idv-route-formats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idv-route-formats label {
  cursor: pointer;
}

.idv-route-formats input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.idv-route-formats label > span {
  display: grid;
  min-height: 94px;
  padding: 13px 9px;
  place-items: center;
  border: 1px solid rgba(28, 36, 49, .12);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.idv-route-formats label:hover > span {
  transform: translateY(-2px);
}

.idv-route-formats input:checked + span {
  border-color: var(--route-orange);
  box-shadow: inset 0 0 0 1px var(--route-orange);
}

.idv-route-formats input:focus-visible + span {
  outline: 3px solid rgba(126, 214, 220, .55);
  outline-offset: 2px;
}

.idv-route-formats strong,
.idv-route-formats small {
  line-height: 1;
}

.idv-route-formats strong {
  color: var(--route-ink);
  font-size: 12px;
}

.idv-route-formats small {
  color: var(--route-muted);
  font-size: 10px;
}

.idv-format-shape {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: #14555a;
}

.idv-format-shape--vertical { width: 10px; height: 17px; }
.idv-format-shape--square { width: 15px; height: 15px; }
.idv-format-shape--landscape { width: 19px; height: 11px; }

.idv-route-actions {
  margin-top: 34px;
}

.idv-route-generate,
.idv-route-download {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--route-orange);
  box-shadow: 0 16px 32px rgba(196, 85, 45, .22);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.idv-route-generate:hover,
.idv-route-download:hover {
  color: #fff;
  background: #a94524;
  box-shadow: 0 18px 38px rgba(196, 85, 45, .3);
  transform: translateY(-2px);
}

.idv-route-generate:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.idv-route-actions p {
  margin: 13px 4px 0;
  color: var(--route-muted);
  font-size: 11px;
  line-height: 1.55;
}

.idv-route-preview-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.idv-route-preview-head {
  display: flex;
  width: min(100%, 430px);
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #55616e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.idv-route-preview-head div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.idv-route-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--route-orange);
  box-shadow: 0 0 0 5px rgba(196, 85, 45, .12);
}

.idv-route-device {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 9px solid #111721;
  border-radius: 38px;
  background: #0a1019;
  box-shadow: 0 42px 90px rgba(28, 36, 49, .23), 0 8px 20px rgba(28, 36, 49, .14);
  transition: width .35s ease, aspect-ratio .35s ease, border-radius .35s ease;
}

.idv-route-device::before {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 20px;
  top: 8px;
  left: 50%;
  content: "";
  border-radius: 999px;
  background: #111721;
  transform: translateX(-50%);
  pointer-events: none;
}

.idv-route-device[data-format="square"] {
  width: min(100%, 470px);
  aspect-ratio: 1;
  border-radius: 30px;
}

.idv-route-device[data-format="landscape"] {
  width: min(100%, 540px);
  aspect-ratio: 16 / 9;
  border-radius: 26px;
}

.idv-route-device[data-format="square"]::before,
.idv-route-device[data-format="landscape"]::before {
  display: none;
}

#idv-route-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--route-night);
}

.idv-route-loading {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  color: rgba(250, 247, 242, .72);
  background: #0a1019;
  text-align: center;
  transition: opacity .4s ease, visibility .4s ease;
}

.idv-route-loading.is-ready {
  visibility: hidden;
  opacity: 0;
}

.idv-route-loading span {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(126, 214, 220, .18);
  border-top-color: var(--route-teal);
  border-radius: 50%;
  animation: idv-route-spin .8s linear infinite;
}

.idv-route-loading p {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes idv-route-spin {
  to { transform: rotate(360deg); }
}

.idv-route-progress {
  width: min(100%, 430px);
  height: 3px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 36, 49, .12);
}

.idv-route-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--route-orange);
  transform: scaleX(0);
  transform-origin: left;
}

.idv-route-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #697481;
  font-size: 12px;
  text-align: center;
}

.idv-route-download {
  width: min(100%, 430px);
  margin-top: 12px;
  background: #14555a;
  box-shadow: 0 16px 32px rgba(20, 85, 90, .18);
}

.idv-route-download[hidden] {
  display: none;
}

.idv-route-notes {
  padding: 105px 0 118px;
  color: rgba(250, 247, 242, .82);
  background: var(--route-night);
}

.idv-route-notes-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  column-gap: 70px;
  align-items: end;
}

.idv-route-notes-head .idv-route-kicker {
  grid-column: 1 / -1;
}

.idv-route-notes-head h2 {
  max-width: 600px;
  margin: 0;
  color: #faf7f2;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -.045em;
  line-height: 1;
}

.idv-route-notes-head > p:last-child {
  max-width: 540px;
  margin: 0;
  color: rgba(250, 247, 242, .62);
  font-size: 17px;
  line-height: 1.75;
}

.idv-route-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid rgba(250, 247, 242, .13);
}

.idv-route-note-grid article {
  min-height: 230px;
  padding: 32px 36px 20px 0;
  border-right: 1px solid rgba(250, 247, 242, .13);
}

.idv-route-note-grid article + article {
  padding-left: 36px;
}

.idv-route-note-grid article:last-child {
  border-right: 0;
}

.idv-route-note-grid span {
  color: var(--route-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.idv-route-note-grid h3 {
  margin: 42px 0 12px;
  color: #faf7f2;
  font-size: 27px;
}

.idv-route-note-grid p {
  margin: 0;
  color: rgba(250, 247, 242, .56);
  font-size: 14px;
  line-height: 1.7;
}

.idv-route-noscript {
  margin: 0;
  padding: 16px;
  color: #fff;
  background: #8c3218;
  text-align: center;
}

@media (max-width: 980px) {
  .idv-route-grid {
    grid-template-columns: 1fr;
  }

  .idv-route-preview-wrap {
    grid-row: 1;
  }

  .idv-route-device {
    width: min(76vw, 380px);
  }

  .idv-route-notes-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .idv-route-shell {
    width: min(100% - 28px, 1220px);
  }

  .idv-route-hero,
  .idv-route-hero-inner {
    min-height: 520px;
  }

  .idv-route-hero-inner {
    padding-block: 70px 64px;
  }

  .idv-route-hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .idv-route-lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .idv-route-promises {
    display: grid;
    gap: 12px;
    margin-top: 32px;
  }

  .idv-route-workspace {
    padding: 62px 0 80px;
  }

  .idv-route-grid {
    gap: 52px;
  }

  .idv-route-device {
    width: min(86vw, 350px);
    border-width: 7px;
    border-radius: 32px;
  }

  .idv-route-panel {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .idv-route-panel-head {
    display: block;
  }

  .idv-route-duration {
    display: inline-block;
    margin-top: 15px;
  }

  .idv-route-fields {
    grid-template-columns: 1fr 36px;
  }

  .idv-route-field:last-child {
    grid-column: 1;
  }

  .idv-route-swap {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: 26px 0 0;
  }

  .idv-route-choice {
    grid-template-columns: 1fr;
  }

  .idv-route-choice-card {
    min-height: 62px;
  }

  .idv-route-formats label > span {
    min-height: 86px;
  }

  .idv-route-notes {
    padding: 76px 0 84px;
  }

  .idv-route-note-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .idv-route-note-grid article,
  .idv-route-note-grid article + article {
    min-height: 0;
    padding: 26px 0 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(250, 247, 242, .13);
  }

  .idv-route-note-grid article:last-child {
    border-bottom: 0;
  }

  .idv-route-note-grid h3 {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idv-route-page *,
  .idv-route-page *::before,
  .idv-route-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
