



.funnel-stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      90% 640px at 50% -120px,
      color-mix(in srgb, var(--color-brand-100) 85%, transparent),
      color-mix(in srgb, var(--color-brand-50) 60%, transparent) 55%,
      transparent 100%
    ),
    var(--color-canvas);
  color: var(--color-text);
}

body:has(> .funnel-stage) {
  overflow-x: clip;
}


.funnel-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.6cqw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-brand-950);
  text-wrap: balance;
}
.funnel-title em {
  font-style: normal;
  color: var(--color-brand-600);
}
.funnel-title--hero {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 var(--space-4);
  
  padding-inline: max(0px, calc(50% - 360px));
  text-align: center;
}


.quiet {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  margin: 0;
  
  min-height: 44px;
  padding: var(--space-2);
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  text-decoration-color: color-mix(in srgb, var(--color-text-muted) 60%, transparent);
  transition:
    color var(--motion-base) var(--motion-ease-in),
    text-decoration-color var(--motion-base) var(--motion-ease-in);
}
.quiet:hover,
.quiet:focus-visible {
  color: var(--color-text);
  text-decoration-color: currentColor;
}
.quiet:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.quiet[hidden] {
  display: none;
}

.quiet--back {
  text-decoration: none;
}
.quiet--back svg {
  width: 16px;
  height: 16px;
  flex: none;
  scale: -1 1;
  transition: translate var(--motion-base) var(--motion-ease-in);
}
.quiet--back:hover svg,
.quiet--back:focus-visible svg {
  translate: -3px 0;
}
@media (prefers-reduced-motion: reduce) {
  .quiet--back svg {
    transition: none;
  }
  .quiet--back:hover svg,
  .quiet--back:focus-visible svg {
    translate: 0 0;
  }
}

@media (max-width: 700px) {
  .funnel-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }
}



.funnel-top {
  
  --funnel-top-row: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
}

.funnel-stage__top {
  min-height: calc(2 * var(--space-6) + 38px);
}

:root:has(.funnel-stage__top) {
  scroll-padding-top: calc(2 * var(--space-6) + 52px);
}
.funnel-stage__top {
  position: sticky;
  top: 0;
  z-index: 20;
  pointer-events: none;
}
.funnel-top__brand,
.funnel-top__account,
.funnel-top__links {
  pointer-events: auto;
}
.funnel-top__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-brand-900);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: translate var(--motion-fast) var(--motion-ease-in);
}
.funnel-top__brand:hover {
  translate: 0 -1px;
}
.funnel-top__brand img {
  width: 38px;
  height: 38px;
}
.funnel-top__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.funnel-top__line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.funnel-top__line[hidden] {
  display: none;
}

.funnel-top__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-brand-900);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.funnel-top__link:hover {
  color: var(--color-brand-600);
}
.funnel-top__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}


.funnel-top__account[hidden] {
  display: none;
}
.funnel-top__account {
  position: relative;
  margin-right: auto;
  padding-left: var(--space-5);
}
.funnel-top__account::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 28px;
  translate: 0 -50%;
  background: color-mix(in srgb, var(--color-on-panel) 28%, transparent);
}
.funnel-top__me {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--funnel-top-row);
  padding: 4px var(--space-2) 4px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-on-panel);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.funnel-top__me:focus-visible {
  outline: 2px solid var(--color-on-panel);
  outline-offset: 2px;
}
.funnel-top__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-on-panel) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-on-panel) 45%, transparent);
  color: var(--color-on-panel);
  transition:
    background-color var(--motion-base) var(--motion-ease-in),
    box-shadow var(--motion-base) var(--motion-ease-in),
    scale var(--motion-base) var(--motion-ease-in);
}

.funnel-top__me[aria-expanded='true'] .funnel-top__avatar {
  background: color-mix(in srgb, var(--color-on-panel) 26%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--color-on-panel);
  scale: 1.06;
}
@media (hover: hover) {
  .funnel-top__me:hover .funnel-top__avatar {
    background: color-mix(in srgb, var(--color-on-panel) 26%, transparent);
    box-shadow: inset 0 0 0 1.5px var(--color-on-panel);
    scale: 1.06;
  }
}
.funnel-top__avatar > svg {
  width: 22px;
  height: 22px;
}
.funnel-top__who {
  display: grid;
  justify-items: start;
  min-width: 0;
  line-height: 1.25;
}

.funnel-top__name {
  max-width: 12rem;
  overflow: hidden;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-size var(--motion-base) var(--motion-ease-in);
}
.funnel-top__me:is(:hover, :focus-visible, [aria-expanded='true']) .funnel-top__name {
  background-size: 100% 1.5px;
}
.funnel-top__saved {
  color: var(--color-on-panel-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.funnel-top__saved[hidden] {
  display: none;
}


.funnel-top__badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-canvas);
  color: var(--color-brand-600);
}
.funnel-top__badge svg {
  width: 16px;
  height: 16px;
}
.funnel-top__badge-ring,
.funnel-top__badge-tick {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.funnel-top__badge-ring {
  stroke-width: 1.6;
  stroke-dasharray: 41;
  transform-box: fill-box;
  transform-origin: center;
}
.funnel-top__badge-tick {
  stroke-width: 1.8;
  stroke-dasharray: 10;
}
.funnel-top__account[data-save='saving'] .funnel-top__badge-ring {
  stroke-dasharray: 12 29;
  animation: funnel-top-turn 0.8s linear infinite;
}
.funnel-top__account[data-save='saving'] .funnel-top__badge-tick {
  stroke-dashoffset: 10;
}
.funnel-top__account[data-save='saved'] .funnel-top__badge-ring {
  animation: funnel-top-close 0.35s ease-out both;
}
.funnel-top__account[data-save='saved'] .funnel-top__badge-tick {
  animation: funnel-top-tick 0.4s 0.15s ease-out both;
}
.funnel-top__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.funnel-top__account[data-save='saved'] .funnel-top__avatar::after {
  animation: funnel-top-glow 0.9s ease-out;
}
.funnel-top__account[data-save] .funnel-top__saved:not([hidden]) {
  animation: funnel-top-word 0.3s ease-out;
}
@keyframes funnel-top-turn {
  to {
    rotate: 1turn;
  }
}
@keyframes funnel-top-close {
  from {
    stroke-dasharray: 12 29;
  }
}
@keyframes funnel-top-tick {
  from {
    stroke-dashoffset: 10;
  }
}
@keyframes funnel-top-glow {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-on-panel) 45%, transparent);
  }
  to {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-on-panel) 0%, transparent);
  }
}
@keyframes funnel-top-word {
  from {
    opacity: 0;
    translate: 0 3px;
  }
}

@media (min-width: 1200px) {
  .funnel-top__line--help {
    position: fixed;
    left: var(--space-8);
    bottom: var(--space-6);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
  }
}

@media (max-width: 1199px) {
  [data-help-line] > .funnel-top__link {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1.5px solid color-mix(in srgb, var(--color-on-panel) 32%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-on-panel) 8%, transparent);
    color: transparent;
    font-size: 0;
    text-decoration: none;
  }
  
  [data-help-line] > .funnel-top__link::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: var(--color-on-panel);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.6 4-2.2 1.4a11 11 0 0 0 6.7 6.7l1.4-2.2 4 1.6V19a1.5 1.5 0 0 1-1.6 1.5C10.6 20 4 13.4 3.5 5.6A1.5 1.5 0 0 1 5 4Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.6 4-2.2 1.4a11 11 0 0 0 6.7 6.7l1.4-2.2 4 1.6V19a1.5 1.5 0 0 1-1.6 1.5C10.6 20 4 13.4 3.5 5.6A1.5 1.5 0 0 1 5 4Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
  [data-help-line] > span:first-child {
    display: none;
  }
}

@media (max-width: 700px) {
  
  .funnel-top.funnel-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: 'brand help account';
    align-items: center;
    gap: var(--space-3) 8px;
    padding: var(--space-3) var(--space-4) var(--space-3);
  }
  .funnel-top:has(.funnel-top__visit:not([hidden])) {
    grid-template-areas:
      'brand help account'
      'visit visit visit';
  }
  .funnel-top__brand {
    grid-area: brand;
    justify-self: start;
  }
  .funnel-top__links {
    display: contents;
  }
  .funnel-top__line--help {
    grid-area: help;
  }
  .funnel-top__account {
    grid-area: account;
  }
  .funnel-top__analysis {
    grid-area: visit;
    justify-self: center;
  }
  .funnel-stage__top {
    min-height: calc(2 * var(--space-3) + 44px);
  }
  :root:has(.funnel-stage__top) {
    scroll-padding-top: calc(2 * var(--space-3) + 56px);
  }
  :root:has(.funnel-top__visit:not([hidden])) {
    scroll-padding-top: calc(3 * var(--space-3) + 44px + 40px + 12px);
  }
  .funnel-top__brand span {
    display: none;
  }
  .funnel-top__brand img {
    width: 32px;
    height: 32px;
  }
  .funnel-top__line:not(.funnel-top__line--help) {
    display: none;
  }
  .funnel-top__line--help span {
    display: none;
  }
  .funnel-top__name {
    max-width: 4.5rem;
  }
  .funnel-top__saved {
    display: none;
  }
  .funnel-top__account {
    padding-left: 0;
  }
  .funnel-top__account::before {
    content: none;
  }
  .funnel-top__me {
    gap: var(--space-2);
    padding: 2px;
  }
  
  .funnel-top__avatar {
    width: 36px;
    height: 36px;
  }
  [data-help-line] > .funnel-top__link {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 374px) {
  .funnel-top.funnel-top {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 480px) {
  .funnel-top__who {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funnel-top__account[data-save] :is(.funnel-top__badge-ring, .funnel-top__badge-tick),
  .funnel-top__account[data-save] .funnel-top__saved,
  .funnel-top__account[data-save] .funnel-top__avatar::after {
    animation: none;
  }
  .funnel-top__avatar,
  .funnel-top__name {
    transition: none;
  }
}


.funnel-top__brand {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  html:not([data-mobile]) .funnel-top__line--help > span:first-child {
    display: none;
  }
}

@media (max-width: 560px) {
  .funnel-top__brand {
    flex: none;
  }
}



.funnel-top__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: var(--space-5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 21rem;
  padding: var(--space-2);
  border-radius: 22px;
  background: var(--color-canvas);
  box-shadow:
    0 2px 6px -2px color-mix(in srgb, var(--color-brand-900) 14%, transparent),
    0 28px 56px -24px color-mix(in srgb, var(--color-brand-900) 55%, transparent);
  text-align: left;
  transform-origin: top left;
  transition:
    opacity var(--motion-fast) var(--motion-ease-in),
    translate var(--motion-fast) var(--motion-ease-in),
    scale var(--motion-fast) var(--motion-ease-in);
}
.funnel-top__menu[hidden] {
  display: none;
}
@starting-style {
  .funnel-top__menu:not([hidden]) {
    opacity: 0;
    translate: 0 -6px;
    scale: 0.97;
  }
}


.funnel-top__menu-who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-brand-800), var(--color-brand-600));
  color: var(--color-on-panel);
}
.funnel-top__menu-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-on-panel);
  color: var(--color-brand-700);
  font-size: 1.1rem;
  font-weight: 700;
}
.funnel-top__menu-id {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.funnel-top__menu-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-top__menu-email {
  overflow: hidden;
  color: color-mix(in srgb, var(--color-on-panel) 80%, transparent);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.funnel-top__menu-kept,
.funnel-top__menu-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 14px;
}
.funnel-top__menu-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-canvas);
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--color-brand-900) 45%, transparent);
  color: var(--color-brand-600);
}
.funnel-top__menu-icon svg {
  width: 19px;
  height: 19px;
}
.funnel-top__menu-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.funnel-top__menu-text strong {
  color: var(--color-brand-900);
  font-size: 0.9rem;
  font-weight: 700;
}


.funnel-top__menu-kept {
  background: var(--color-brand-50);
}


.funnel-top__menu-row {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease-in);
}
.funnel-top__menu-row:hover {
  background: var(--color-brand-50);
}
.funnel-top__menu-row:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: -2px;
}
.funnel-top__logout .funnel-top__menu-icon {
  box-shadow: none;
  background: var(--color-brand-50);
}
.funnel-top__logout .funnel-top__menu-text strong {
  color: var(--color-brand-700);
  font-weight: 600;
}


@media (max-width: 700px) {
  .funnel-top {
    position: relative;
  }
  .funnel-top__account {
    position: static;
  }
  .funnel-top__menu {
    top: calc(100% - var(--space-2));
    left: var(--space-4);
    width: min(21rem, calc(100vw - 2 * var(--space-4)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-top__menu {
    transition: none;
  }
}



.funnel-top__analysis {
  position: relative;
  flex: none;
}

.funnel-top__analysis:has(> .funnel-top__visit[hidden]) {
  display: none;
}
.funnel-top__visit[hidden] {
  display: none;
}
.funnel-top__visit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  
  min-height: var(--funnel-top-row);
  padding: 4px var(--space-5) 4px 6px;
  border: 1px solid color-mix(in srgb, var(--color-on-panel) 24%, transparent);
  border-radius: var(--funnel-corner, 12px);
  background: color-mix(in srgb, var(--color-on-panel) 11%, transparent);
  color: var(--color-on-panel);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--motion-ease-in),
    border-color var(--motion-fast) var(--motion-ease-in);
}
@media (hover: hover) {
  .funnel-top__visit:hover {
    border-color: color-mix(in srgb, var(--color-on-panel) 42%, transparent);
    background: color-mix(in srgb, var(--color-on-panel) 16%, transparent);
  }
}
.funnel-top__visit:focus-visible {
  outline: 2px solid var(--color-on-panel);
  outline-offset: 3px;
}

.funnel-top__visit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-on-panel) 14%, transparent);
  color: var(--color-on-panel);
}
.funnel-top__visit-icon svg {
  width: 22px;
  height: 22px;
}
.funnel-top__visit-words {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}
.funnel-top__visit-title {
  color: var(--color-on-panel);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.funnel-top__visit-rooms {
  color: color-mix(in srgb, var(--color-on-panel) 80%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.funnel-top__visit-rooms:empty {
  display: none;
}

.funnel-top__visit-go {
  display: none;
}

.funnel-top__visit .visit-fan {
  height: 40px;
  padding-inline: 2px 6px;
}
.funnel-top__visit .visit-fan__print {
  width: 40px;
  height: 30px;
  border-color: rgb(255 255 255 / 0.9);
  border-radius: 6px;
}
.funnel-top__visit .visit-fan__print + .visit-fan__print {
  margin-left: -22px;
}
.funnel-top__visit .visit-fan__more {
  top: -5px;
  right: -2px;
  border: 2px solid var(--color-brand-700);
  line-height: 16px;
}

.funnel-top__visit {
  --motion-call-ring: color-mix(in srgb, var(--color-on-panel) 70%, transparent);
  --motion-call-rest: 0 0 0 0 transparent;
}


.funnel-top__nudge[hidden] {
  display: none;
}
.funnel-top__nudge {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 55;
  width: 18rem;
  
  padding: var(--space-4) var(--space-4) 6px;
  border-radius: 20px;
  background: var(--color-canvas);
  box-shadow:
    0 2px 6px -2px color-mix(in srgb, var(--color-brand-900) 14%, transparent),
    0 28px 56px -24px color-mix(in srgb, var(--color-brand-900) 60%, transparent);
  color: var(--color-text);
  text-align: center;
  transform-origin: calc(100% - var(--nudge-point, 48px)) 0;
}
.funnel-top__nudge::before {
  content: '';
  position: absolute;
  top: -6px;
  right: calc(var(--nudge-point, 48px) - 7px);
  width: 14px;
  height: 14px;
  border-radius: 3px 0 0;
  background: var(--color-canvas);
  rotate: 45deg;
}
.funnel-top__nudge-title {
  margin: 0;
  color: var(--color-brand-900);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.funnel-top__nudge-text {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-wrap: balance;
}
.funnel-top__nudge-actions {
  display: grid;
  justify-items: center;
  margin-top: var(--space-2);
}
.funnel-top__nudge-actions .btn {
  width: 100%;
  font-size: 0.9rem;
}
.funnel-top__nudge-actions .quiet {
  font-size: 0.85rem;
}


@media (max-width: 1199px) {
  .funnel-top__nudge {
    width: 15rem;
  }
}
@media (max-width: 900px) {
  .funnel-top__visit-rooms {
    display: none;
  }
}

@media (max-width: 700px) {
  .funnel-top__visit {
    gap: 10px;
    min-height: 40px;
    padding: 3px 12px 3px 6px;
    border-color: color-mix(in srgb, var(--color-on-panel) 30%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-on-panel) 12%, transparent);
  }
  .funnel-top__visit-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  .funnel-top__visit-title {
    color: var(--color-on-panel);
    font-size: 0.86rem;
    font-weight: 600;
  }
  .funnel-top__visit-go {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--color-on-panel);
  }
  .funnel-top__visit .visit-fan {
    height: 30px;
    padding-inline: 0 2px;
  }
  .funnel-top__visit .visit-fan__print {
    width: 28px;
    height: 21px;
    border-radius: 5px;
  }
  .funnel-top__visit .visit-fan__print + .visit-fan__print {
    margin-left: -18px;
  }
  .funnel-top__visit .visit-fan__more {
    top: -6px;
    right: -6px;
    min-width: 18px;
    padding: 0 4px;
    font-size: 0.62rem;
    line-height: 14px;
  }
  .funnel-top__nudge {
    top: calc(100% + 12px);
    right: auto;
    left: 50%;
    width: min(19rem, calc(100vw - 2 * var(--space-4)));
    translate: -50% 0;
    transform-origin: 50% 0;
  }
  .funnel-top__nudge::before {
    right: auto;
    left: calc(50% - 7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-top__visit {
    transition: none;
  }
}


@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: funnel-page-out 160ms cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: funnel-page-in 420ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes funnel-page-out {
  to {
    opacity: 0;
    translate: 0 -8px;
  }
}
@keyframes funnel-page-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}


html[data-boot] .funnel-stage {
  opacity: 0;
  animation: boot-show 4s forwards;
}
@keyframes boot-show {
  0%,
  99% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


html[data-boot] .funnel-stage *,
html[data-boot] .funnel-stage *::before,
html[data-boot] .funnel-stage *::after {
  transition: none !important;
}


.funnel-sky {
  --sky-ink: var(--color-on-panel);
  --sky-soft: color-mix(in srgb, var(--color-on-panel) 76%, transparent);
  --sky-line: color-mix(in srgb, var(--color-on-panel) 28%, transparent);
  
  --float:
    inset 0 1px 0 rgb(255 255 255 / 0.9), 0 1px 2px rgb(0 10 40 / 0.12),
    0 14px 28px -10px rgb(0 10 40 / 0.32), 0 42px 80px -28px rgb(0 8 30 / 0.72);
  
  --float-high:
    inset 0 1px 0 rgb(255 255 255 / 0.9), 0 2px 4px rgb(0 10 40 / 0.14),
    0 22px 40px -12px rgb(0 10 40 / 0.4), 0 60px 110px -30px rgb(0 8 30 / 0.85);
  
  --float-lift:
    inset 0 1px 0 rgb(255 255 255 / 0.9), 0 3px 6px rgb(0 10 40 / 0.16),
    0 30px 50px -16px rgb(0 10 40 / 0.45), 0 84px 140px -36px rgb(0 6 26 / 0.92);
  
  background: var(--surface-logo-blue);
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
}

html:has(> body.funnel-sky) {
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.funnel-sky::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--surface-logo-blue);
  pointer-events: none;
}
.funnel-sky .funnel-stage {
  background: transparent;
  color: var(--sky-ink);
}


.funnel-sky .funnel-top__brand {
  color: var(--sky-ink);
}
.funnel-sky .funnel-top__brand img {
  content: url("https://client.ninjableu.ca/assets/images/brand/ninja-bleu-white.svg");
}
.funnel-sky .funnel-top__line {
  color: var(--sky-soft);
}
.funnel-sky .funnel-top__link {
  color: var(--sky-ink);
  text-decoration-color: var(--sky-soft);
}

.funnel-sky :is(.funnel-top__brand, .funnel-top__link):focus-visible {
  outline-color: var(--sky-ink);
}


.funnel-sky .funnel-stage > * > .funnel-title,
.funnel-sky .funnel-title--hero {
  color: var(--sky-ink);
}
.funnel-sky .funnel-title--hero em {
  color: var(--color-brand-300);
}
.funnel-sky .quote-hero__lead {
  color: var(--sky-soft);
}

.funnel-sky .hero-dots {
  color: var(--color-brand-300);
}



.journey {
  --journey-ink: var(--color-brand-700);
  --journey-blue: var(--color-brand-600);
  --journey-pale: color-mix(in srgb, var(--color-brand-600) 30%, var(--color-canvas));
  --journey-faint: color-mix(in srgb, var(--color-brand-600) 12%, var(--color-canvas));
  --journey-won: linear-gradient(135deg, #0050ff, #00a2ff);
  
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 40;
  translate: -50% 0;
  view-transition-name: journey;
}
.journey[hidden] {
  display: none;
}

:root:has([data-call-booked]:not([hidden])) .journey {
  z-index: 95;
}

.journey__box {
  position: relative;
  display: grid;
  justify-items: center;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  
  overflow: clip;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
  
  transform-origin: 50% 0;
  transition:
    scale 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 260ms ease,
    border-color 260ms ease;
}
.journey.is-open .journey__box {
  width: min(500px, calc(100vw - 24px));
  border-color: transparent;
  border-radius: 0 0 22px 22px;
  background: var(--color-canvas);
  box-shadow:
    0 14px 30px -12px rgb(0 20 80 / 0.4),
    0 2px 4px rgb(0 20 80 / 0.12);
}
@media (hover: hover) {
  .journey:not(.is-open) .journey__box:has(.journey__tab:hover) {
    scale: 1.05;
    background: rgb(255 255 255 / 0.16);
  }
}


.journey__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.journey.is-open .journey__tab {
  color: var(--journey-ink);
}
.journey__tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.journey__row {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.journey__chevron {
  flex: none;
  width: 14px;
  height: 14px;
  color: rgb(255 255 255 / 0.75);
  transition: rotate 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.journey.is-open .journey__chevron {
  rotate: 180deg;
  color: var(--journey-blue);
}

.journey__row .journey__mark {
  --mark: 20px;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.38);
  color: rgb(255 255 255 / 0.55);
}
.journey__row .journey__mark[data-state='current'] {
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
}
.journey__row .journey__mark .journey__disc {
  background: #fff;
  box-shadow: none;
}
.journey__row .journey__mark .journey__disc path {
  stroke: var(--color-brand-700);
}
.journey__row .journey__arc circle {
  stroke: #fff;
}
.journey.is-open .journey__row .journey__mark {
  box-shadow: inset 0 0 0 1.5px var(--journey-pale);
  color: var(--journey-pale);
}
.journey.is-open .journey__row .journey__mark[data-state='current'] {
  box-shadow: inset 0 0 0 2px var(--journey-blue);
  color: var(--journey-blue);
}
.journey.is-open .journey__row .journey__mark .journey__disc {
  background: var(--journey-won);
}
.journey.is-open .journey__row .journey__mark .journey__disc path {
  stroke: #fff;
}
.journey.is-open .journey__row .journey__arc circle {
  stroke: #0a6cff;
}

.journey__row .journey__link {
  position: relative;
  width: 12px;
  height: 2px;
  margin-inline: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.25);
}
.journey__row .journey__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  scale: 0 1;
}
.journey__row .journey__link.is-done::after {
  scale: 1 1;
}
.journey.is-open .journey__row .journey__link {
  background: var(--journey-faint);
}
.journey.is-open .journey__row .journey__link::after {
  background: var(--journey-won);
}


.journey__mark {
  --mark: 22px;
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--journey-blue);
  color: var(--journey-blue);
}

.journey__num {
  display: block;
  font-size: calc(var(--mark) * 0.5);
  font-weight: 800;
  line-height: 1;
  
}
.journey__disc {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--journey-won);
  box-shadow: 0 3px 8px -3px rgb(0 60 200 / 0.7);
  opacity: 0;
}
.journey__disc svg {
  width: 62%;
  height: 62%;
}
.journey__disc path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.journey__mark.is-done {
  box-shadow: none;
}
.journey__mark.is-done .journey__disc {
  opacity: 1;
}
.journey__mark.is-done .journey__num {
  opacity: 0;
}

.journey__arc {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  overflow: visible;
  rotate: -90deg;
  pointer-events: none;
}
.journey__arc circle {
  fill: none;
  stroke: #0a6cff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}


.journey__panel {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 16px 18px;
  
  cursor: pointer;
}
.journey__panel[hidden] {
  display: none;
}
.journey__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--journey-faint);
  list-style: none;
}
.journey__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 6px;
  text-align: center;
}
.journey__mark--big {
  --mark: 30px;
  background: var(--color-canvas);
}

.journey__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 21px);
  right: calc(-50% + 21px);
  height: 2px;
  border-radius: 2px;
  background: var(--journey-faint);
}
.journey__step[data-state='done']:has(+ .journey__step:not([data-state='todo']))::before {
  background: var(--journey-won);
}
.journey__step[data-state='todo'] .journey__mark {
  box-shadow: inset 0 0 0 2px var(--journey-pale);
  color: var(--journey-pale);
}
.journey__title {
  color: var(--journey-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.journey__step[data-state='todo'] .journey__title {
  color: var(--journey-pale);
}


@media (prefers-reduced-motion: no-preference) {
  .journey__row .journey__mark[data-state='current']::after,
  .journey__step[data-state='current'] .journey__mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--journey-blue);
    animation: journey-halo 2.6s ease-out infinite;
    pointer-events: none;
  }
}
@keyframes journey-halo {
  from {
    opacity: 0.45;
    scale: 1;
  }
  70%,
  to {
    opacity: 0;
    
    scale: 1.32;
  }
}


.journey__fx {
  position: absolute;
  
  z-index: 0;
  pointer-events: none;
}
.journey__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #2a7bff;
  pointer-events: none;
}
.journey__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #00a2ff;
  pointer-events: none;
}
.journey__spark.is-1 {
  background: #0050ff;
}
.journey__spark.is-2 {
  background: #7cc4ff;
}
.journey__sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.journey__sheen::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    color-mix(in srgb, #00a2ff 24%, transparent),
    transparent
  );
}


@media (max-width: 700px) {
  
  .journey.journey {
    position: fixed;
    top: calc(var(--space-3) + 22px - 17px);
  }
  
  .journey__box {
    border-top: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 17px;
  }
  .journey.is-open .journey__box {
    border-radius: 22px;
  }
  .journey__tab {
    gap: 5px;
    height: 34px;
    padding: 0 8px 0 9px;
    border-radius: 17px;
  }
  .journey__mark {
    --mark: 19px;
  }
  .journey__mark--big {
    --mark: 26px;
  }
  
  .journey__row .journey__link {
    width: 6px;
    margin-inline: 3px;
  }
  .journey__panel {
    padding: 2px 8px 16px;
  }
  .journey__title {
    font-size: 0.74rem;
  }
}

@media (max-width: 374px) {
  .journey__row .journey__mark:not(.journey__mark--big) {
    --mark: 18px;
  }
}


@media (min-width: 701px) and (max-width: 1099px) {
  :root.has-journey .funnel-top:has(.funnel-top__account:not([hidden])) {
    padding-top: calc(var(--space-6) + 22px);
  }
}


html::view-transition-group(journey) {
  z-index: 9;
  animation: none;
}


.journey:not(.is-open) .journey__row .journey__mark[data-state='current']::after,
.journey:not(.is-open) .journey__ripple {
  box-shadow: 0 0 0 2px #fff;
}
.journey:not(.is-open) .journey__spark {
  background: #fff;
}

