/* Salesforge rebuild, version 2: "Pick your path".
   The homepage hero lets the visitor choose the Human Path (Salesforge, your team runs it) or the Agent Path
   (Agent Frank runs it). The hero picture then plays that path, the words and the button follow the choice,
   and a dock follows the visitor through all six pages with the matching button. The choice is remembered on
   this device and can be set from a link with ?path=human or ?path=agent. Forms stay in demo mode. */

/* ---------------------------------------------------------------- hero: the picker */
.pick { width: 480px; max-width: 100%; min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.pick__legend {
  display: block; padding: 0; margin: 0 0 10px;
  font-size: 13px; line-height: 18px; font-weight: 600; color: rgba(255, 255, 255, .6);
}
.pick__options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick__opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06);
  color: var(--white); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s, transform .2s;
}
.pick__opt:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.pick__opt:active { transform: scale(.985); }
.pick__opt.is-on {
  background: var(--white); border-color: var(--white); color: var(--ink);
  box-shadow: 0 10px 30px -6px rgba(110, 64, 215, .55);
}
.pick__opt:has(.pick__input:focus-visible) { outline: 2px solid #b692f6; outline-offset: 3px; }
.pick__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pick__opt::after {                                   /* the radio dot */
  content: ""; position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4); transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.pick__opt.is-on::after { border-color: var(--violet); background: var(--violet); box-shadow: inset 0 0 0 2.5px var(--white); }
.pick__icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); transition: background-color .3s, color .3s;
}
.pick__icon svg { width: 20px; height: 20px; }
.pick__icon img { width: 100%; height: 100%; object-fit: cover; }
.pick__opt.is-on .pick__icon--human { background: var(--violet-100); color: var(--violet); }
.pick__text { display: flex; flex-direction: column; min-width: 0; }
.pick__title { padding-right: 18px; font-size: 15px; line-height: 20px; font-weight: 600; }
.pick__who { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .65); transition: color .3s; }
.pick__price { font-size: 12px; line-height: 16px; font-weight: 600; color: #d6bbfb; transition: color .3s; }
.pick__opt.is-on .pick__who { color: var(--gray-500); }
.pick__opt.is-on .pick__price { color: var(--violet); }
.pick + .hero__cta { margin-top: 16px; }

.pick-note { margin-top: 12px; font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .65); }
.pick-note[hidden] { display: none; }
.pick-note a {
  color: var(--white); font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}
.pick-note a:hover { text-decoration-color: var(--white); }
.hero__lead { transition: opacity .22s; }
.hero__lead.is-swapping { opacity: 0; }

@media (max-width: 991px) {
  .pick__legend, .pick-note { text-align: center; }
}
@media (max-width: 479px) {
  .pick { width: 100%; margin-top: 28px; }
  .pick__opt { gap: 8px; padding: 10px 10px 10px 8px; }
  .pick__icon { width: 32px; height: 32px; }
  .pick__title { font-size: 14px; }
  .pick__who { font-size: 11.5px; letter-spacing: -.1px; }
}

/* ---------------------------------------------------------------- hero: the picture plays the chosen path */
/* Positions are fractions of the picture (1216 x 1166 px), measured from its pixels, so they hold at every width. */
.hero__art { container-type: inline-size; }
.story { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.story__card {
  position: absolute; top: 20.93%; width: 47.37%; height: 79.07%; border-radius: 1.32cqw;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .5s, box-shadow .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.story__card--human { left: 0; }
.story__card--agent { left: 52.63%; }
@media (hover: hover) {
  .story__card:hover { box-shadow: 0 0 0 max(2px, .3cqw) rgba(182, 146, 246, .85); }
}
[data-path="agent"] .story__card--human,
[data-path="human"] .story__card--agent {
  background: rgba(16, 24, 40, .62); -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
}
@media (hover: hover) {
  [data-path="agent"] .story__card--human:hover,
  [data-path="human"] .story__card--agent:hover { background: rgba(16, 24, 40, .45); }
}
[data-path="human"] .story__card--human,
[data-path="agent"] .story__card--agent {
  box-shadow: 0 0 0 max(2px, .33cqw) var(--violet), 0 1.6cqw 5cqw rgba(110, 64, 215, .5);
}

.story__row {
  position: absolute; left: 3.04%; width: 41.28%; border-radius: .7cqw; opacity: 0;
  box-shadow: 0 0 0 max(1.5px, .25cqw) var(--violet), 0 .5cqw 1.8cqw rgba(110, 64, 215, .4);
  transition: opacity .35s, box-shadow .35s;
}
.story__row--1 { top: 34.65%; height: 6%; }
.story__row--2 { top: 42.11%; height: 5.66%; }
.story__row--3 { top: 49.83%; height: 6%; }
.story__row.is-now { opacity: 1; }
.story__row.is-done { opacity: 1; box-shadow: none; }
.story__check {
  position: absolute; right: 4.5%; top: 50%; display: grid; place-items: center;
  width: 2.6cqw; height: 2.6cqw; margin-top: -1.3cqw; border-radius: 50%; background: #17b26a;
  box-shadow: 0 0 0 .25cqw #eaf3fb; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.story__check svg { width: 64%; height: 64%; }
.story__row.is-now .story__check, .story__row.is-done .story__check { transform: scale(1); }

.story__end {                                         /* grows out of the "End" step */
  position: absolute; left: 32.98%; top: 68.44%; display: flex; align-items: center; gap: .9cqw;
  padding: .85cqw 1.2cqw .85cqw 2cqw; border-radius: 9999px; background: #e2f8e9; white-space: nowrap;
  box-shadow: 0 .5cqw 2cqw rgba(9, 146, 80, .28), 0 0 0 .25cqw #fff;
  font-size: 12px; font-size: clamp(9px, 2.3cqw, 16px); line-height: 1.25; font-weight: 600; color: #099250;
  opacity: 0; transform: translate(-50%, -50%) scale(.35);
  transition: opacity .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.story__end svg { width: 1.45em; height: 1.45em; flex: none; }
.story__end.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.story__agent {                                       /* covers the picture's "Hunting" label and tells what he is doing */
  position: absolute; left: 76.4%; top: 72.26%; display: flex; align-items: center; justify-content: center;
  min-width: 9.2%; height: 3.6%; padding: 0 1.1cqw; border-radius: 9999px; background: #f4f5f7; white-space: nowrap;
  font-size: 10px; font-size: clamp(7px, 1.6cqw, 12px); font-weight: 500; color: #475467;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s;
}
[data-path="agent"] .story__agent { opacity: 1; }
.story__agent-text { transition: opacity .2s; }
.story__agent-text.is-out { opacity: 0; }

/* ---------------------------------------------------------------- the dock that follows the visitor */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; width: min(680px, calc(100% - 32px));
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s .45s;
}
.dock.is-shown {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s;
}
.nav-locked .dock { visibility: hidden; opacity: 0; }
.dock__inner {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; color: var(--white);
  background: rgba(16, 24, 40, .94); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .5), 0 0 0 1px rgba(110, 64, 215, .18);
}
.dock button, .dock input { font-family: inherit; }
.dock__pane { display: none; flex: 1; min-width: 0; align-items: center; gap: 10px; margin: 0; }
.dock[data-state="choose"] .dock__pane--choose,
.dock[data-state="chosen"] .dock__pane--chosen,
.dock[data-state="form"] .dock__pane--form,
.dock[data-state="done"] .dock__pane--done { display: flex; }
.dock__label { margin-right: auto; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.dock__chip {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 8px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .06);
  color: var(--white); text-align: left; transition: background-color .25s, border-color .25s;
}
.dock__chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .36); }
.dock__chip-text { display: flex; flex-direction: column; }
.dock__chip-title { font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.dock__chip-price { font-size: 12px; line-height: 16px; font-weight: 600; color: #d6bbfb; white-space: nowrap; }
.dock__avatar {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden;
  border-radius: 50%; background: var(--violet-100); color: var(--violet);
}
.dock__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dock__avatar svg { width: 18px; height: 18px; }
.dock__info { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.dock__title { overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dock__meta { font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.dock__switch {
  padding: 0; color: #d6bbfb; font-size: 12px; line-height: 18px; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(214, 187, 251, .4); text-underline-offset: 2px;
}
.dock__switch:hover { color: var(--white); text-decoration-color: var(--white); }
.dock__cta {
  flex: none; height: 48px; padding: 0 46px 0 18px; border-radius: 10px;
  background: var(--violet) url("../img/hubspot-button-arrow.svg") calc(100% - 4px) 50% no-repeat;
  color: var(--white); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .3s;
}
.dock__cta:hover { background-color: var(--violet-hover); }
.dock__cta:disabled { opacity: .8; cursor: progress; }
.dock__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #ccc; border-radius: 10px;
  background: var(--white); color: var(--ink); font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.dock__input::placeholder { color: #999; }
.dock__input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110, 64, 215, .35); }
.dock__pane--done { min-height: 48px; font-size: 14px; line-height: 20px; font-weight: 600; }
.dock__ok { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #17b26a; }
.dock__ok svg { width: 16px; height: 16px; }
.dock__close {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  color: rgba(255, 255, 255, .55); transition: color .25s, background-color .25s;
}
.dock__close:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.dock__close svg { width: 16px; height: 16px; }
.dock :focus-visible { outline: 2px solid #b692f6; outline-offset: 2px; }

@media (max-width: 640px) {
  .dock { left: 0; bottom: 0; width: 100%; transform: translateY(110%); }
  .dock.is-shown { transform: translateY(0); }
  .dock__inner {
    gap: 8px; min-height: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)) 10px;
    border-width: 1px 0 0; border-radius: 16px 16px 0 0;
  }
  .dock__label, .dock__pre, .dock__long { display: none; }
  .dock__pane--choose { gap: 8px; }
  .dock__chip { flex: 1 1 0; min-width: 0; padding: 0 8px 0 6px; }
  .dock__chip-text { min-width: 0; }
  .dock__chip-title, .dock__chip-price { overflow: hidden; text-overflow: ellipsis; }
  .dock__cta { padding: 0 14px; background-image: none; font-size: 14px; }
  /* round 6 fix: the arrow picture is 40 x 20 with its circle in the left half, so the picture is placed 10 px right
     of centre to put the circle in the middle of the round button */
  .dock__submit { width: 48px; padding: 0; background-image: url("../img/hubspot-button-arrow.svg"); background-position: calc(50% + 10px) 50%; }
  .dock__submit .dock__submit-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
/* round 6 fix: below about 380 px "from $499/mo · Switch" slid under the button. The small avatar now leaves at
   379 px (was 359), which gives the words room down to 360 px; below that, price and Switch go on two lines. */
@media (max-width: 379px) {
  .dock__avatar { display: none; }
}
@media (max-width: 359px) {
  .dock__meta { display: flex; flex-wrap: wrap; column-gap: 6px; }
  .dock__sep { display: none; }
}

/* ---------------------------------------------------------------- pricing: the plans of the chosen path stand out */
.path-tag {
  display: none; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 9999px; vertical-align: 1px;
  background: var(--violet-100); color: var(--violet); font-size: 12px; line-height: 18px; font-weight: 600;
}
.path-tag--agent { background: var(--white); }
html[data-path="human"] .path-tag--human, html[data-path="agent"] .path-tag--agent { display: inline-flex; }
.plans__card, .plans__ai-box { transition: box-shadow .4s; }
html[data-path="human"] .plans__human .plans__card {
  box-shadow: 0 0 0 2px var(--violet), 0 18px 40px -16px rgba(110, 64, 215, .45);
}
html[data-path="agent"] .plans__ai-box {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 8px rgba(255, 255, 255, .25), 0 24px 48px -16px rgba(16, 24, 40, .5);
}

/* ---------------------------------------------------------------- calm modes */
@media (prefers-reduced-motion: reduce) {
  .dock, .dock.is-shown { transition: none; }
  .story__end, .story__check, .story__row, .story__card, .hero__lead { transition: none; }
}
.shot .dock { display: none; }
