/* Conversion path, role cards and the closing impact. */
#roadmap {
  background-color: #f3e9e2;
  background-image:
    radial-gradient(ellipse at 16% 18%, #ffd3bc96, transparent 49%),
    radial-gradient(ellipse at 87% 63%, #facbb366, transparent 52%),
    linear-gradient(#894b2a0c 1px, transparent 1px),
    linear-gradient(90deg, #894b2a0c 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

#roadmap .section-intro { margin-bottom: clamp(30px, 5vw, 72px); }
#roadmap .section-intro em { color: #a54423; }

#roadmap .roadmap-stage {
  --route-gutter: clamp(42px, 5vw, 63px);
  position: relative;
  z-index: 3;
  min-height: 0;
  padding: 0;
}

#roadmap .roadmap-svg { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#roadmap #roadmapBase { stroke: #a36c5288; stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
#roadmap #roadmapProgress { stroke: url(#roadmapInk); stroke-width: 2.35; stroke-linecap: round; filter: none; }
#roadmap #roadmapWake { stroke: #edac82; stroke-width: 4; stroke-linecap: round; opacity: .8; }
#roadmap .roadmap-stage.is-launching #roadmapWake { opacity: 0; }
#roadmap .roadmap-origin { visibility: hidden; fill: #f9e6d8; stroke: #b27a61; stroke-width: 1.25; }
#roadmap .roadmap-stage.is-route-ready .roadmap-origin { visibility: visible; }

#roadmap .roadmap-rocket {
  display: none;
  z-index: 4;
  left: 0;
  top: 0;
  height: clamp(38px, 4.6vw, 53px);
  aspect-ratio: 44 / 52;
  width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: translate3d(var(--rocket-x, 0px), var(--rocket-y, 0px), 0) translate(-50%, -50%) rotate(var(--rocket-rotate, 0deg));
  transition: opacity 180ms ease;
  will-change: transform;
}

#roadmap .roadmap-stage.is-route-ready .roadmap-rocket { display: grid; }
#roadmap .roadmap-stage.is-launching .roadmap-rocket { opacity: 0; box-shadow: none; transition: opacity 215ms ease-out 35ms; }
#roadmap .roadmap-rocket::before,
#roadmap .roadmap-rocket::after { display: none; }
#roadmap .roadmap-rocket svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px #663b272b);
}
#roadmap .rocket-body { fill: #fff7eb; stroke: #9a5f47; stroke-width: 1.2; stroke-linejoin: round; }
#roadmap .rocket-shade { fill: #edc5aa; opacity: .64; }
#roadmap .rocket-fins { fill: #d79977; stroke: #9a5f47; stroke-width: 1; stroke-linejoin: round; }
#roadmap .rocket-flame { fill: #dc9469; stroke: #f2c6a2; stroke-width: .85; }
#roadmap .roadmap-rocket circle { fill: #9b6147; stroke: #ffefdc; stroke-width: .9; }

#roadmap .checkpoint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0 28px var(--route-gutter);
}

#roadmap .checkpoint {
  --tile-fill: #fff8ef;
  --tile-edge: #b9806866;
  --tile-text: #2b1e19;
  --tile-body: #554138;
  --tile-accent: #aa4321;
  --glyph-accent: #d15b2b;
  top: auto;
  align-self: start;
  min-width: 0;
  min-height: 0;
  margin: var(--step-drop, 0px) var(--step-right, 0px) 0 var(--step-left, 0px);
  padding: 0;
  overflow: visible;
  scroll-margin-top: 7rem;
  border: 1px solid var(--tile-edge);
  border-radius: var(--tile-shape, 12px 26px 12px 12px);
  color: var(--tile-text);
  background: var(--tile-fill);
  box-shadow: 0 15px 36px -26px #6b2f1699, 0 1px 0 #fff9 inset;
  transform: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

#roadmap .checkpoint:nth-child(even) { transform: none; }
#roadmap .checkpoint::before,
#roadmap .checkpoint::after { display: none; }
#roadmap .checkpoint:is(.is-roadmap-active, .is-roadmap-hit, :focus-within) {
  border-color: #cc6131;
  background: var(--tile-fill);
  box-shadow: 0 0 0 3px #ff794f33, 0 18px 36px -23px #a95028bb;
}

#roadmap #journey-step-1 {
  --tile-fill: radial-gradient(ellipse at 88% 0%, #793921, transparent 74%), #38231f;
  --tile-edge: #49251d;
  --tile-text: #fff6e9;
  --tile-body: #f0d7c5;
  --tile-accent: #ffc397;
  --glyph-accent: #ffad75;
  --tile-shape: 12px 12px 38px 12px;
}
#roadmap #journey-step-2 { --tile-shape: 42px 12px 12px 12px; }
#roadmap #journey-step-3 { --tile-fill: #ffecdb; --tile-shape: 23px 23px 23px 4px; }
#roadmap #journey-step-4 { --tile-fill: #fff9f0; --tile-shape: 12px 12px 25px 25px; }
#roadmap #journey-step-5 {
  --tile-fill: repeating-linear-gradient(to bottom, transparent 0 17px, #a6501f0b 17px 18px), #fff5e8;
  --tile-shape: 8px 20px 5px 5px;
}
#roadmap #journey-step-6 {
  --tile-fill: linear-gradient(110deg, #fff3e7, #ffc8a8);
  --tile-shape: 5px 30px 8px 8px;
  border-left: 4px solid #d46c43;
}
#roadmap #journey-step-7 { --tile-fill: #ffe2bd; --tile-shape: 32px 12px 32px 12px; }
#roadmap #journey-step-8 {
  --tile-fill: linear-gradient(120deg, #fff5ed, #fff8ed 58%, #ffdec5);
  --tile-shape: 12px 12px 12px 36px;
  border-bottom: 4px solid #be6039;
}

#roadmap .roadmap-stop {
  position: relative;
  display: block;
  padding: clamp(17px, 2.1vw, 30px);
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

#roadmap .roadmap-stop:focus-visible { outline: 2px solid #963f21; outline-offset: 4px; }

#roadmap .roadmap-stop-marker {
  position: absolute;
  z-index: 3;
  left: calc(-1 * var(--route-gutter) + 19px);
  top: 18px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0;
  border: 1px solid #b3775e;
  border-radius: 50%;
  background: #fff7ef;
  color: #693722;
  font: 500 .8rem/1 var(--mono-font);
  letter-spacing: 0;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

#roadmap .roadmap-stop-marker::after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
  left: 100%;
  width: calc(var(--route-gutter) - 34px);
  height: 1px;
  background: #bb846eb8;
  pointer-events: none;
}
#roadmap .is-roadmap-complete .roadmap-stop-marker { border-color: #b85e3e; background: #ffe9d5; }
#roadmap .is-roadmap-active .roadmap-stop-marker {
  border-color: #a74725;
  background: #ffcca9;
  color: #2f1914;
  box-shadow: 0 0 0 5px #de82452e;
}
#roadmap .is-roadmap-active .roadmap-stop-marker::after { background: #b75c38; }

#roadmap .checkpoint h3 {
  margin: 0;
  color: var(--tile-text);
  font-size: clamp(1.21rem, 2.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: pretty;
}

#roadmap .checkpoint p {
  max-width: 56ch;
  margin: .5rem 0 0;
  color: var(--tile-body);
  font-size: clamp(.94rem, 1.15vw, 1.06rem);
  line-height: 1.43;
  text-wrap: pretty;
}
#roadmap .checkpoint p b { color: var(--tile-accent); font-weight: 700; }
#roadmap .checkpoint p .roadmap-benefit { color: var(--tile-text); }

.roadmap-glyph {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  height: 28px;
  margin-bottom: .65rem;
  color: var(--glyph-accent);
  transform-origin: left center;
  transition: transform 270ms ease;
}
.roadmap-glyph i { display: block; background: currentColor; }
#roadmap .checkpoint:is(.is-roadmap-active, :focus-within) .roadmap-glyph { transform: scale(1.12); }

@media (hover: hover) {
  #roadmap .checkpoint:hover { border-color: #c6582e; }
  #roadmap .checkpoint:hover .roadmap-glyph { transform: scale(1.12); }
}

#journey-step-1 .roadmap-glyph i { width: 3px; height: 32%; border-radius: 2px; }
#journey-step-1 .roadmap-glyph i:nth-child(2n) { height: 55%; }
#journey-step-1 .roadmap-glyph i:nth-child(3n) { height: 78%; }
#journey-step-1 .roadmap-glyph i:nth-child(4) { height: 100%; }

#journey-step-2 .roadmap-glyph { gap: 0; }
#journey-step-2 .roadmap-glyph i {
  width: 17px;
  height: 17px;
  margin-right: -3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #f8b18165;
}
#journey-step-2 .roadmap-glyph i:last-child { background: currentColor; }

#journey-step-3 .roadmap-glyph i { width: 21px; height: 15px; border: 1px solid currentColor; border-radius: 6px 6px 6px 1px; }
#journey-step-3 .roadmap-glyph i + i { margin: 11px 0 0 -8px; background: #ffddc5; }

#journey-step-4 .roadmap-glyph {
  width: 29px;
  border: 1px solid currentColor;
  border-top-width: 6px;
  border-radius: 4px;
}
#journey-step-4 .roadmap-glyph i {
  width: 12px;
  height: 7px;
  margin: 0 auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: transparent;
  transform: rotate(-45deg);
}

#journey-step-5 .roadmap-glyph { flex-direction: column; align-items: start; justify-content: center; gap: 5px; }
#journey-step-5 .roadmap-glyph i { width: 34px; height: 2px; }
#journey-step-5 .roadmap-glyph i:nth-child(2) { width: 22px; }
#journey-step-5 .roadmap-glyph i:nth-child(3) { width: 28px; }

#journey-step-6 .roadmap-glyph { width: 33px; height: 24px; border: 1px solid currentColor; border-radius: 3px; }
#journey-step-6 .roadmap-glyph i {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 17px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  background: transparent;
  transform: rotate(37deg) skewX(-16deg);
}

#journey-step-7 .roadmap-glyph { width: 28px; border: 1px solid currentColor; border-radius: 50%; }
#journey-step-7 .roadmap-glyph i {
  width: 7px;
  height: 9px;
  margin: auto auto 12px 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background: transparent;
}

#journey-step-8 .roadmap-glyph { gap: 4px; align-items: end; }
#journey-step-8 .roadmap-glyph i { width: 7px; height: 42%; border-radius: 2px; }
#journey-step-8 .roadmap-glyph i:nth-child(2) { height: 66%; }
#journey-step-8 .roadmap-glyph i:nth-child(3) { height: 88%; }

@media (min-width: 690px) {
  #roadmap .checkpoint-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: clamp(10px, 1.3vw, 22px);
    row-gap: clamp(58px, 6vw, 82px);
    padding: 52px var(--route-gutter) clamp(32px, 3.2vw, 46px);
  }
  #roadmap .roadmap-stop-marker { left: 50%; top: -29px; }
  #roadmap .roadmap-stop-marker::after { left: 50%; top: 100%; width: 1px; height: 13px; }
  #journey-step-1 { grid-area: 1 / 1 / auto / span 4; }
  #journey-step-2 { grid-area: 1 / 6 / auto / -1; --step-drop: 18px; }
  #journey-step-3 { grid-area: 2 / 4 / auto / -1; }
  #journey-step-4 { grid-area: 3 / 1 / auto / span 3; --step-drop: 16px; }
  #journey-step-5 { grid-area: 3 / 5 / auto / -1; }
  #journey-step-6 { grid-area: 4 / 2 / auto / span 6; }
  #journey-step-7 { grid-area: 5 / 1 / auto / span 3; }
  #journey-step-8 { grid-area: 5 / 5 / auto / -1; --step-drop: 23px; }
}

@media (min-width: 960px) {
  #roadmap .checkpoint-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  #journey-step-1 { grid-area: 1 / 1 / auto / span 5; }
  #journey-step-2 { grid-area: 1 / 7 / auto / span 6; --step-drop: 26px; }
  #journey-step-3 { grid-area: 2 / 10 / auto / -1; --step-drop: 7px; }
  #journey-step-4 { grid-area: 2 / 5 / auto / span 4; --step-drop: 25px; }
  #journey-step-5 { grid-area: 2 / 1 / auto / span 3; --step-drop: 1px; }
  #journey-step-6 { grid-area: 3 / 4 / auto / span 7; }
  #journey-step-7 { grid-area: 4 / 9 / auto / -1; --step-drop: 5px; }
  #journey-step-8 { grid-area: 4 / 1 / auto / span 7; --step-drop: 25px; }
  #journey-step-6 .roadmap-stop { padding-right: 19%; }
  #journey-step-8 .roadmap-stop { padding-right: 16%; }
  #journey-step-6 .roadmap-glyph,
  #journey-step-8 .roadmap-glyph { position: absolute; right: 8%; top: 25%; }
}

@media (max-width: 689px) {
  #roadmap .checkpoint:nth-child(3n + 2) { --step-left: clamp(8px, 4vw, 24px); }
  #roadmap .checkpoint:nth-child(3n) { --step-left: 5px; --step-right: 9px; }
  #roadmap .checkpoint:nth-child(5) { --step-right: clamp(12px, 6vw, 32px); }
  #roadmap .roadmap-glyph { height: 24px; margin-bottom: .55rem; }
}

#roadmap .roadmap-end {
  margin-top: clamp(16px, 2vw, 27px);
  z-index: 2;
  font-weight: 700;
  transform: none;
}

#roadmap .roadmap-end.is-ignited { transform: none; text-shadow: none; }
#roadmap .roadmap-end.is-ignited::before {
  background: radial-gradient(ellipse at 45% 52%, #e9956455, #eab49225 46%, transparent 69%);
  mix-blend-mode: normal;
  animation: roadmap-impact-wash 1250ms ease-out both;
}
#roadmap .roadmap-end.is-ignited::after {
  background: linear-gradient(90deg, transparent, #c97c5380, transparent);
}
#roadmap .roadmap-end.is-ignited .roadmap-end-words { animation: roadmap-impact-lettering 1300ms ease-out both; }

@media (max-width: 689px) {
  #roadmap .roadmap-end { font-size: clamp(2.15rem, 9.1vw, 3.1rem); }
}

.roadmap-impact {
  position: absolute;
  z-index: 5;
  top: var(--impact-y, 0px);
  left: var(--impact-x, 0px);
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}
.roadmap-stage.is-launching .roadmap-impact { visibility: visible; }
.roadmap-impact-core,
.roadmap-impact-ring {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.roadmap-impact-core {
  width: clamp(110px, 23vw, 365px);
  aspect-ratio: 1.65;
  background: radial-gradient(ellipse, #ffeed5c7, #f2ad8070 25%, #e79f7129 47%, transparent 70%);
}
.roadmap-impact-ring {
  width: clamp(128px, 37vw, 460px);
  aspect-ratio: 2.8;
  border: 1px solid #bc775986;
  border-radius: 50%;
}
.roadmap-stage.is-launching .roadmap-impact-core { animation: roadmap-impact-core 900ms ease-out both; }
.roadmap-stage.is-launching .roadmap-impact-ring { animation: roadmap-impact-ring 1000ms ease-out both; }

.roadmap-impact-embers i {
  --reach: clamp(32px, 8vw, 114px);
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(7px, 2vw, 23px);
  height: 1px;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, #c5805d);
  opacity: 0;
  transform-origin: left center;
}
.roadmap-impact-embers i::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #b36e50;
}
.roadmap-impact-embers i:nth-child(1) { --ray: -165deg; }
.roadmap-impact-embers i:nth-child(2) { --ray: -145deg; }
.roadmap-impact-embers i:nth-child(3) { --ray: -117deg; }
.roadmap-impact-embers i:nth-child(4) { --ray: -84deg; }
.roadmap-impact-embers i:nth-child(5) { --ray: -59deg; }
.roadmap-impact-embers i:nth-child(6) { --ray: -35deg; }
.roadmap-impact-embers i:nth-child(7) { --ray: -10deg; }
.roadmap-impact-embers i:nth-child(8) { --ray: 12deg; }
.roadmap-impact-embers i:nth-child(9) { --ray: 38deg; }
.roadmap-impact-embers i:nth-child(10) { --ray: 70deg; }
.roadmap-impact-embers i:nth-child(11) { --ray: 142deg; }
.roadmap-impact-embers i:nth-child(12) { --ray: 169deg; }
.roadmap-impact-embers i:nth-child(2n) { --reach: clamp(25px, 5vw, 67px); }
.roadmap-stage.is-launching .roadmap-impact-embers i { animation: roadmap-impact-streak 850ms cubic-bezier(.13,.57,.2,1) both; }
.roadmap-stage.is-launching .roadmap-impact-embers i:nth-child(3n) { animation-delay: 65ms; }

@keyframes roadmap-impact-core {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  22% { opacity: .66; transform: translate(-50%, -50%) scale(.67); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.23); }
}
@keyframes roadmap-impact-ring {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  30% { opacity: .55; }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}
@keyframes roadmap-impact-streak {
  from { opacity: 0; transform: rotate(var(--ray)) translateX(3px) scaleX(.18); }
  27% { opacity: .7; }
  to { opacity: 0; transform: rotate(var(--ray)) translateX(var(--reach)) scaleX(.42); }
}
@keyframes roadmap-impact-lettering {
  from { color: inherit; text-shadow: 0 0 0 transparent; }
  27% { color: #7d4a34; text-shadow: 0 0 20px #e8a77870; }
  to { color: inherit; text-shadow: 0 0 0 transparent; }
}
@keyframes roadmap-impact-wash {
  from { opacity: .15; }
  29% { opacity: .66; }
  to { opacity: .27; }
}

/* Orange client result ribbon. */
.roadmap-result .roadmap-result-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(113deg, transparent 0 20px, #4e1b111a 20px 21px, transparent 21px 25px);
  mask-image: linear-gradient(90deg, #000 4%, transparent 32% 68%, #000 96%);
  pointer-events: none;
}
.roadmap-result .roadmap-result-ribbon {
  gap: clamp(12px, 2.7vw, 44px);
  background: radial-gradient(ellipse at 34% 95%, #ffb061, transparent 53%), linear-gradient(111deg, #ff8e48, #f55e1a 66%, #ff9651);
}
.roadmap-result .roadmap-result-ribbon strong {
  font-size: clamp(1.8rem, 4.1vw, 5rem);
  font-weight: 700;
  white-space: nowrap;
}
.roadmap-result .result-sync-value {
  display: inline;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-shadow: inherit;
}

@media (max-width: 689px) {
  .roadmap-result .roadmap-result-ribbon { flex-direction: column; gap: 14px; padding-block: 20px; }
  .roadmap-result .roadmap-result-ribbon strong { font-size: clamp(1.41rem, 5.8vw, 2.9rem); }
  .roadmap-result .roadmap-result-mark { display: none; }
  .roadmap-result .roadmap-result-ribbon small { display: block; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #roadmap .roadmap-stage.is-route-ready .roadmap-rocket,
  #roadmap .roadmap-impact,
  #roadmap #roadmapProgress,
  #roadmap #roadmapWake { display: none; }
  #roadmap .roadmap-end,
  #roadmap .roadmap-end::before,
  #roadmap .roadmap-end::after,
  #roadmap .roadmap-end-words,
  #roadmap .roadmap-glyph { animation: none; transition: none; }
}
