/* Salesforge rebuild: pricing page, block 7 ("Choose Your Path or Combine Both") and block 8 (the Outreach Layer
   price builder). New code written for this rebuild; design values (colours, sizes, breakpoints, timings) follow
   salesforge.ai/pricing. Needs site.css, home.css (.h3) and solutions.css (.tag) before it. */

/* ================================================================ block 7: two paths */
.paths { padding: 40px 0 80px; }
.paths__grid { display: flex; column-gap: 5%; row-gap: 5%; margin-top: 40px; }

/* left column: heading on top, then the task groups lined up with the boxes on the right */
.paths__left { position: relative; width: 30%; max-width: 20rem; padding-top: 12.5rem; }
.paths__head {
  position: absolute; top: 8px; left: 0; right: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
}
.paths__title { margin-top: 8px; }
.paths__tasks { display: flex; flex-direction: column; }
.paths__group {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: 20px 0; color: var(--ink);
}
.paths__group--tall { height: 14.9rem; }
.paths__rule { height: 24px; padding-top: 11px; }
.paths__rule::before { content: ""; display: block; height: 1px; background: var(--gray-300); }

/* right: the two cards */
.paths__cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paths__card {
  display: flex; flex-direction: column; gap: 48px; padding: 40px 20px;
  border-radius: 12px; background: var(--gray-50);
}
.paths__card--agent { background: var(--violet-50); }
.paths__card-head { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 20px; }
.paths__card-title { font-size: 1.5rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
.paths__sub { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; }
.paths__sub-text { font-size: 1.125rem; text-align: center; }
.paths__line { display: flex; justify-content: flex-start; align-items: center; gap: 6px; }
.paths__plan { font-weight: 600; color: var(--violet); }
.paths__icon24 { width: 24px; height: 24px; flex: none; }
.paths__icon24 svg { width: 100%; height: 100%; }

/* the small round photo in "Hire ... Agent Frank": a 16px holder so the 36px photo does not grow the line */
.paths__face { position: relative; width: 36px; height: 16px; }
.paths__face-img {
  position: relative; top: -.6rem; display: block; width: 36px; height: 36px; border-radius: 50%;
  background: url("../img/66e42f604fc13d94cd1d2a73_frank-avatar2x.jpg.avif") 0 0 / cover no-repeat;
}

/* the column of boxes in each card */
.paths__stack { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.paths__trio { display: flex; flex-direction: column; gap: 8px; }
.paths__box {
  display: flex; justify-content: center; align-items: center; gap: 12px; height: 72px;
  border: 1px dashed var(--gray-300); border-radius: 8px; background: var(--white);
}
.paths__box--144 { height: 9rem; }
.paths__box--362 { height: 22.6rem; }
/* product logos sit 2.7px above the middle of their box, as on salesforge.ai (inline-svg line gap) */
.paths__logo { margin-bottom: 5.4px; }
/* the "Pipeline" and "Close the Deal" boxes: not links, but they dim on hover as on salesforge.ai */
.paths__box--outcome { transition: opacity .3s; }
.paths__box--outcome:hover { opacity: .75; }
.paths__icon40 { width: 40px; height: 40px; flex: none; }
.paths__icon40 svg { width: 100%; height: auto; }
.paths__outcome { color: var(--violet); }

/* Agent Frank illustration: photo, turning spinner and growing ring; it sticks 80px below the window top */
.paths__illu {
  position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-start;
  padding: 56px 0 24px;
}
.paths__illu-sticky {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 48px;
}
.paths__orb {
  position: relative; flex: none; width: 5.75rem; height: 5.75rem; border-radius: 50%;
  background: url("../img/66e42f604fc13d94cd1d2a73_frank-avatar2x.jpg.avif") 50% / cover no-repeat;
}
.paths__spinner {
  position: absolute; z-index: 1; top: calc(50% - 5rem); left: calc(50% - 5rem);
  width: 10rem; height: 10rem; max-width: none;
  animation: paths-spin 8s linear infinite;
}
.paths__avatar {
  position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; max-width: 100%;
  border-radius: 50%; object-fit: cover; vertical-align: middle;
}
.paths__ring {
  position: absolute; inset: 0; width: 5.75rem; height: 5.75rem;
  border: 1px solid var(--violet-100); border-radius: 50%;
  animation: paths-ring-grow 2s cubic-bezier(0, 0, .58, 1) infinite, paths-ring-fade 2s linear infinite;
}
@keyframes paths-spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes paths-ring-grow { from { transform: scale(1); } to { transform: scale(3); } }
@keyframes paths-ring-fade { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .paths__spinner, .paths__ring { animation: none; } }

.paths__buttons { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.paths__btn {
  display: flex; flex: none; justify-content: center; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 1px solid var(--violet); border-radius: 8px;
  background: var(--violet); color: var(--white); font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: all .4s;
}
.paths__btn:hover { border-color: #6941c6; background: var(--violet-hover); color: var(--white); }
.paths__btn--light { border-color: var(--gray-300); background: var(--white); color: var(--body); }
.paths__btn--light:hover { border-color: var(--gray-300); background: var(--gray-200); color: var(--gray-700); }

@media (max-width: 991px) {
  .paths__grid { column-gap: 3%; row-gap: 3%; }
  .paths__left { width: 22%; }
  .paths__cards { gap: 8px; }
  .paths__card { padding-left: 12px; padding-right: 12px; }
  .paths__card-title { font-size: 1.35rem; }
  .paths__btn { height: 44px; }
}
/* round 6 fix: between 768 and 991 px the left column is too narrow for the heading placed in its top corner, so the
   heading ran into "Source the data". Here the column steps aside (display: contents): the heading becomes a row of
   its own across the whole width, and the task list keeps its offset, so it still lines up with the boxes. */
@media (min-width: 768px) and (max-width: 991px) {
  .paths__grid { flex-wrap: wrap; }
  .paths__left { display: contents; }
  .paths__head { position: static; flex: 0 0 100%; align-items: center; margin-bottom: 32px; text-align: center; }
  .paths__head .paths__title { text-wrap: balance; }   /* two even lines, no word left alone */
  .paths__tasks { width: 22%; padding-top: 12.5rem; }
}
/* salesforge.ai does not show this comparison on phones and small tablets */
@media (max-width: 767px) { .paths { display: none; } }


/* ================================================================ block 8: Outreach Layer price builder */
.olayer { padding-top: 50px; }
.olayer__grid {
  display: grid; grid-template-columns: 1fr minmax(20rem, .4fr); grid-template-rows: auto;
  column-gap: 56px; row-gap: 40px; align-items: start;
}
.olayer__left { display: flex; flex-direction: column; gap: 32px; }
.olayer__right { grid-row: span 2; position: sticky; top: 100px; padding-bottom: 44px; }

/* grey layer box with its label row */
.olayer__layer { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: var(--gray-100); }
.olayer__layer-top {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 8px;
  font-size: .8125rem; font-weight: 500;
}
.olayer__layer-name { font-weight: 600; }

/* white product card */
.olayer__card { overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.olayer__card-top {
  display: grid; grid-template-columns: .5fr 1fr .5fr; grid-template-rows: 36px; align-items: center;
  padding: 16px 20px;
}
.olayer__logo { line-height: 0; }
.olayer__tagline { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.olayer__divider { height: 1px; background: var(--gray-200); }
.olayer__row { display: grid; grid-template-columns: 1fr .75fr; }

/* left cell of a row: a plan name, or a slider block */
.olayer__plan { align-self: center; display: flex; justify-content: center; align-items: center; gap: 6px; }
.olayer__plan-name { font-size: .875rem; font-weight: 600; color: var(--ink); }
.olayer__icon20 { width: 20px; height: 20px; flex: none; }
.olayer__icon20 svg { width: 100%; height: 100%; }
.olayer__slide { align-self: center; display: flex; flex-direction: column; padding: 20px; }   /* flex: margins around the slider do not collapse */
.olayer__readout {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 0 4px;
}
.olayer__ends {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 4px;
  font-size: .75rem; color: var(--gray-500);
}

/* range slider: 4px grey track, 16px white thumb with a 3px violet ring; a painted fill sits under the track */
.olayer__range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin: 13px 0 5.4px;
  padding: 0; border: 0; border-radius: 100px; outline: none; background: var(--gray-200);
  cursor: default; transition: opacity .2s;
}
.olayer__range::-webkit-slider-runnable-track { height: 4px; border-radius: 100px; background: var(--gray-200); }
.olayer__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; position: relative; width: 16px; height: 16px;
  border: 3px solid var(--violet); border-radius: 50%; background: var(--white); cursor: pointer;
  transform: translateY(-6px);
}
.olayer__range::-moz-range-track { height: 8px; border-radius: 100px; background: var(--gray-200); }
.olayer__range::-moz-range-progress { height: 8px; border-radius: 100px; background: var(--violet); }
.olayer__range::-moz-range-thumb {
  position: relative; width: 16px; height: 16px; border: 3px solid var(--violet); border-radius: 50%;
  background-color: var(--white); cursor: pointer; transform: translateY(-4px);
}
/* keyboard users see where they are (salesforge.ai shows no focus mark here) */
.olayer__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--violet-100); }
.olayer__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--violet-100); }

/* right cell of a row: grey price panel */
.olayer__price {
  align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 20px;
  border-left: 1px solid var(--gray-200); background: var(--gray-50);
}
.olayer__col { align-self: center; }
.olayer__lbl { font-size: .875rem; font-weight: 500; }
.olayer__val { font-size: .875rem; font-weight: 500; color: var(--ink); }
.olayer__mb4 { margin-bottom: 4px; }
.olayer__mb16 { margin-bottom: 16px; }

/* dark "Selected products" card */
.olayer__summary {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 20px;
  padding: 16px 24px 24px; border-radius: 12px; color: var(--white);
  background: var(--ink) url("../img/outbound-bg-133.avif") 50% / cover no-repeat;
}
.olayer__list { display: flex; flex-direction: column; gap: .875rem; }
.olayer__list-title { font-size: .8125rem; font-weight: 500; }
.olayer__item {
  display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px;
  padding-top: .875rem; border-top: 1px solid rgba(255, 255, 255, .15);
}
.olayer__item[hidden] { display: none; }
.olayer__item-main { flex: 1; }
.olayer__item-name { display: flex; justify-content: flex-start; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .875rem; font-weight: 600; }
.olayer__item-desc, .olayer__item-unit, .olayer__est-unit { font-size: .75rem; }
.olayer__item-side { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-end; }
.olayer__item-price { font-weight: 500; }
.olayer__est { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 12px 0; }
.olayer__est-label { margin-bottom: 4px; font-size: .875rem; }
.olayer__total { font-size: 3rem; line-height: 1.3; font-weight: 500; letter-spacing: -.8px; color: var(--white); }
.olayer__cta {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  margin: 0 -1.125rem -1.125rem; padding: 16px; border-radius: 8px; background: var(--white);
}
.olayer__cta-text { font-weight: 500; color: var(--ink); }

@media (max-width: 991px) {
  .olayer__grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, .4fr); column-gap: 12px; }
  .olayer__total { font-size: 2.5rem; }
}
@media (max-width: 767px) {
  .olayer__grid { grid-template-columns: minmax(0, 1fr); }
  .olayer__total { font-size: 2rem; }
}
@media (max-width: 479px) {
  .olayer__grid { row-gap: 0; }
  .olayer__right { position: static; padding-top: 40px; }
  .olayer__layer-top { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 4px; }
  .olayer__card-top { grid-template-columns: 1fr 1fr; grid-template-rows: 36px auto; row-gap: 8px; padding: 12px 12px 16px; }
  .olayer__tagline { grid-column: 1 / -1; grid-row: 2; }
  .olayer__divider--wide { display: none; }
  .olayer__row { display: flex; flex-direction: column; }
  .olayer__plan { padding: 12px 0; }
  .olayer__slide { width: 100%; }
  .olayer__price { border-left-width: 0; border-top: 1px solid var(--gray-200); }
  .olayer__summary { padding-left: 16px; padding-right: 16px; }
  .olayer__item { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .olayer__cta { margin-left: -.5rem; margin-right: -.5rem; }
}
