/* Wealth management page (/wealth/). Only what the homepage lacks:
   the hero's two-bar timeline, the three-step scale, the five-step flow, the
   five-card team grid, the value legs, the proof table, the stack diagram,
   the questions and the assessment band with its form. Type from --type-*. */

.wm-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wm-ivory { background: var(--color-ivory-tint); }
.section-intro .section-body > p { margin: 0; }
.section-intro .section-body > p + p { margin-top: 12px; }
.wm-more { color: var(--kit-text-strong) !important; }
.frame-grid h3.wm-nonum { margin-top: 0; }
.frame-grid li > p + p { margin: 10px 0 0; font-size: var(--type-small); line-height: var(--type-body-lh); }

/* ---------- Hero: two bars on one time scale ---------- */

.wm-hero .hero-content { max-width: 900px; }
.wm-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.wm-bars {
  margin: 56px 0 0;
  padding: 24px;
  border: 1px solid rgba(201, 254, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
@media (min-width: 1024px) { .wm-bars { padding: 32px; } }
.wm-bars-title {
  margin: 0 0 24px;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: rgba(255, 255, 255, .78);
}
.wm-bar-row + .wm-bar-row { margin-top: 24px; }
.wm-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 8px;
  font-size: var(--type-small);
  line-height: 1.4;
  color: #ffffff;
}
.wm-bar-head span { font-weight: 500; }
.wm-bar-head strong {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--kit-citron-highlight);
  white-space: nowrap;
}
.wm-bar { display: flex; gap: 3px; }
.wm-bar-row--fast { width: 42%; min-width: 560px; }
.wm-seg {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
  font-size: var(--type-caption);
  line-height: 1.3;
  color: #ffffff;
  background: var(--color-teal-medium);
}
.wm-seg b { display: block; font-weight: 600; }
.wm-seg:first-child { border-radius: 6px 0 0 6px; }
.wm-seg:last-child { border-radius: 0 6px 6px 0; }
.wm-bar--fast .wm-seg--soft { background: var(--color-teal-highlight); color: #201F1D; }
.wm-bar--slow .wm-seg { background: rgba(255, 255, 255, .16); color: #ffffff; }
.wm-bar--slow .wm-seg--soft {
  background: repeating-linear-gradient(135deg, rgba(201, 254, 255, .06) 0 10px, rgba(201, 254, 255, .12) 10px 20px);
  color: #C9FEFF;
}
.wm-bars-note {
  margin: 24px 0 0;
  font-size: var(--type-caption);
  line-height: var(--type-body-lh);
  color: rgba(255, 255, 255, .64);
}
/* Phones and tablets: each bar keeps its proportion; the segments stack
   their text, and the fast bar no longer has a fixed minimum width. */
@media (max-width: 1023.98px) {
  .wm-bar-row--fast { min-width: 0; width: 100%; }
}
@media (max-width: 599.98px) {
  .wm-bars { margin-top: 40px; padding: 20px 16px; }
  .wm-bar { flex-direction: column; gap: 2px; }
  .wm-seg { flex-grow: 0 !important; }
  .wm-seg:first-child { border-radius: 6px 6px 0 0; }
  .wm-seg:last-child { border-radius: 0 0 6px 6px; }
  .wm-seg b { display: inline; margin-right: 6px; }
  .wm-bar--slow .wm-seg--soft { padding-top: 28px; padding-bottom: 28px; }
}

/* ---------- Problem: the three choices and the quote ---------- */

.wm-choices > li { display: flex; flex-direction: column; }
.wm-cost {
  margin: auto 0 0 !important;
  padding-top: 20px;
  font-size: var(--type-small) !important;
  font-weight: 500;
  line-height: var(--type-body-lh);
  color: var(--color-teal-shade) !important;
}
.wm-cost span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--kit-text-subtle);
}

.wm-quote {
  margin: 48px 0 0;
  padding: 32px 24px;
  border-left: 3px solid var(--color-teal-shade);
  background: var(--color-ivory-tint);
  border-radius: 0 12px 12px 0;
}
@media (min-width: 1024px) { .wm-quote { padding: 48px 56px; } }
.wm-quote blockquote {
  max-width: 900px;
  margin: 0;
  font-size: var(--type-h4);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
  color: var(--color-teal-shade);
}
.wm-quote figcaption {
  margin-top: 16px;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* ---------- How: the three-step scale ---------- */

.wm-scale { margin: 0; }
.wm-scale-frame { position: relative; }
.wm-scale ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .wm-scale ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wm-scale-step {
  position: relative;
  padding: 28px 24px;
  background: var(--kit-white);
  border: 1px solid rgba(32, 31, 29, .12);
}
@media (min-width: 1024px) {
  .wm-scale-step { padding: 32px 40px 32px 32px; }
  .wm-scale-step--1 { border-radius: 12px 0 0 12px; border-right: 0; }
  .wm-scale-step--3 { border-radius: 0 12px 12px 0; }
  /* Chevrons between the steps */
  .wm-scale-step--1::after,
  .wm-scale-step--2::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    z-index: 2;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    background: inherit;
    border-top: inherit;
    border-right: inherit;
    border-color: rgba(32, 31, 29, .12);
    border-style: solid;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
  }
  .wm-scale-step--2::after { border-color: var(--color-teal-shade); }
}
@media (max-width: 1023.98px) {
  .wm-scale-step--1 { border-radius: 12px 12px 0 0; border-bottom: 0; }
  .wm-scale-step--3 { border-radius: 0 0 12px 12px; }
}
.wm-scale-step--2 { background: var(--color-teal-shade); border-color: var(--color-teal-shade); color: #ffffff; }
.wm-scale-step--3 { background: var(--color-teal-dark); border-color: var(--color-teal-dark); color: #ffffff; }
.wm-scale-where {
  margin: 0;
  font-size: var(--type-small);
  line-height: 1.4;
  color: var(--kit-text-medium);
}
.wm-scale-where span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--kit-teal-medium);
}
.wm-scale-step h3 {
  margin: 20px 0 0;
  font-size: var(--type-h3);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h3-lh);
  letter-spacing: var(--type-h3-ls);
}
.wm-scale-step h3 + p {
  margin: 12px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}
.wm-scale-step:not(.wm-scale-step--1) :is(.wm-scale-where, h3 + p) { color: rgba(255, 255, 255, .8); }
.wm-scale-step:not(.wm-scale-step--1) h3 { color: #ffffff; }
.wm-scale-step:not(.wm-scale-step--1) .wm-scale-where span { color: #C9FEFF; }
.wm-scale-step--2 .wm-scale-where span { color: var(--kit-citron-highlight); }
.wm-scale figcaption {
  margin-top: 20px;
  font-size: var(--type-body);
  font-weight: 600;
  line-height: var(--type-body-lh);
  color: var(--kit-text-strong);
}

/* ---------- How: the five-step flow ---------- */

.wm-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .wm-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
}
.wm-steps > li { position: relative; padding: 0 0 32px 64px; }
@media (min-width: 1024px) { .wm-steps > li { padding: 0; } }
/* The line that runs through the step marks */
.wm-steps > li::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: var(--color-teal-shade);
  opacity: .3;
}
.wm-steps > li:last-child::before { content: none; }
@media (min-width: 1024px) {
  .wm-steps > li::before { top: 21px; bottom: auto; left: 52px; right: -24px; width: auto; height: 2px; }
}
.wm-step-mark { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .wm-step-mark { position: relative; } }
.wm-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-teal-shade);
  color: #ffffff;
}
.wm-step-num {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  color: var(--kit-teal-medium);
}
@media (max-width: 1023.98px) { .wm-step-num { display: none; } }
.wm-steps h3 {
  margin: 10px 0 0;
  font-size: var(--type-h5);
  font-weight: var(--type-subhead-weight);
  line-height: var(--type-h5-lh);
  color: var(--kit-text-strong);
}
@media (min-width: 1024px) { .wm-steps h3 { margin-top: 20px; } }
.wm-steps h3 + p {
  margin: 8px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}
.wm-step-tag {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: #201F1D;
  background: var(--kit-citron-highlight);
}

/* ---------- People: five cards, three then two from desktop ---------- */

@media (min-width: 600px) {
  .wm-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-people > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .wm-people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wm-people > li { grid-column: span 2; }
  .wm-people > li:nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Value: three legs with a direction mark ---------- */

.wm-dir {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px !important;
  font-size: var(--type-h4) !important;
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh) !important;
  letter-spacing: var(--type-h4-ls);
  color: var(--kit-text-strong) !important;
}
.wm-dir span {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-teal-shade);
}
.wm-dir--down .icon { transform: rotate(90deg); }
.wm-dir--up span { color: #201F1D; background: var(--kit-citron-highlight); }
.wm-dir--up .icon { transform: rotate(-90deg); }
.wm-value > li > p:nth-child(2) {
  margin: 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* ---------- Proof table ---------- */

.wm-proof { display: block; width: 100%; border-collapse: collapse; }
.wm-proof tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(32, 31, 29, .12);
}
@media (min-width: 600px) { .wm-proof tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wm-proof tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wm-proof tr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--kit-white);
}
@media (min-width: 1024px) { .wm-proof tr { padding: 32px; } }
.wm-proof td {
  order: -1;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 400;
  font-synthesis-weight: none;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-teal-shade);
  white-space: nowrap;
}
@media (min-width: 1024px) { .wm-proof td { font-size: 44px; } }
.wm-proof th {
  padding: 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--kit-teal-medium);
}

/* ---------- Stack diagram: idea -> Stensul -> send ---------- */

.wm-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin: 0;
}
@media (min-width: 1024px) {
  .wm-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
}
.wm-stack-col {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(32, 31, 29, .12);
  border-radius: 12px;
  background: var(--kit-white);
}
@media (min-width: 1024px) { .wm-stack-col { padding: 28px; } }
/* Arrows between the columns: down on phones, right from desktop. */
.wm-stack-col:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-right: 2px solid var(--color-teal-shade);
  border-bottom: 2px solid var(--color-teal-shade);
  transform: rotate(45deg);
}
.wm-stack-col:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 2px;
  height: 36px;
  margin-left: -1px;
  background: var(--color-teal-shade);
}
@media (min-width: 1024px) {
  .wm-stack-col:not(:last-child)::before { left: auto; bottom: auto; top: 50%; right: -47px; width: 44px; height: 2px; margin: -1px 0 0; }
  .wm-stack-col:not(:last-child)::after { left: auto; bottom: auto; top: 50%; right: -45px; margin: -6px 0 0; transform: rotate(-45deg); }
}
.wm-stack-col--stensul {
  padding: 28px 24px;
  border-color: var(--color-teal-shade);
  background: var(--color-teal-shade);
  box-shadow: var(--kit-elevation-1);
}
@media (min-width: 1024px) { .wm-stack-col--stensul { padding: 40px 32px; } }
.wm-stack-col--stensul .frame-num { color: var(--kit-citron-highlight); }
.wm-choices .frame-num,
.wm-stack .frame-num { text-transform: uppercase; }

.wm-tools,
.wm-rules {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.wm-tools li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 31, 29, .12);
  border-radius: 8px;
  font-size: var(--type-small);
  line-height: 1.35;
  color: var(--kit-text-strong);
}
.wm-tool-marks { display: flex; flex: none; gap: 4px; color: var(--color-teal-shade); }
.wm-tool-marks img { width: 20px; height: 20px; }
.wm-rules li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: var(--type-small);
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}
.wm-rules b { display: block; font-weight: 600; color: #ffffff; }
.wm-rules li::before {
  content: "";
  position: absolute;
  top: 1.2em;
  left: 16px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--kit-citron-highlight);
  border-bottom: 2px solid var(--kit-citron-highlight);
  transform: rotate(-45deg);
}

/* ---------- Why now (dark band) ---------- */

.wm-darklink { color: var(--kit-citron-highlight); text-underline-offset: 3px; }
.wm-fine { font-size: var(--type-caption) !important; color: rgba(255, 255, 255, .6) !important; }

/* ---------- Questions ---------- */

.wm-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 64px;
  margin: 0;
}
@media (min-width: 1024px) { .wm-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm-faq > div { padding-top: 20px; border-top: 1px solid rgba(32, 31, 29, .12); }
.wm-faq dt {
  font-size: var(--type-h5);
  font-weight: var(--type-subhead-weight);
  line-height: var(--type-h5-lh);
  color: var(--kit-text-strong);
}
.wm-faq dd {
  margin: 8px 0 0;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* ---------- Assessment: the teal close, with the form beside the copy ---------- */

.wm-assess-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .wm-assess-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: 64px;
    align-items: start;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
.wm-assess .demo-desc { margin: 20px 0 0; }
.wm-assess-steps {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: wm;
}
.wm-assess-steps li {
  position: relative;
  padding-left: 40px;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: rgba(255, 255, 255, .86);
  counter-increment: wm;
}
.wm-assess-steps li::before {
  content: counter(wm);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  color: #201F1D;
  background: var(--kit-citron-highlight);
}
.wm-assess-steps b { color: #ffffff; font-weight: 600; }
.wm-assess-close {
  margin: 28px 0 0;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: #C9FEFF;
}

/* Form card keeps its size while Marketo loads (company email and role). */
.wm-form-wrap { --form-min-height: 210px; margin-top: 0; }
/* Role: the page's dropdown stands in for Marketo's text field (js/wealth.js),
   drawn like the shared form fields. */
.wm-form-wrap .mkto-form input.mktoField.wm-role-source { display: none; }
.wm-role-select {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 36px 0 12px;
  border: 1px solid var(--kit-stroke-light);
  border-radius: 4px;
  background: var(--kit-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23201F1D'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px;
  appearance: none;
  font: 400 14px/1.2 var(--font-sans);
  color: var(--kit-text-strong);
}
.wm-role-select:focus-visible { outline: 2px solid var(--kit-teal-medium); outline-offset: 1px; }
