/* Services (Personal CFO) page composition. Placement only: every block is a
   shared component from base.css on the shared grid, and every value comes
   from tokens.css. Order, after Stripe's Managed Payments page: the intro
   with two rows of area tags in place of Stripe's globe, the five main
   areas one to a section (alternating sides), the other six as cards, Our
   process, pricing, questions, the footer. */

/* ---- Intro: the heading on two even lines at every desktop width,
   "Boutique wealth management / for your unique household needs." (Luke,
   2026-11-04: in Inter Tight it fit on one line at 1440) --------------- */
.intro .display { max-width: 18em; }

/* ---- Personal CFO Services: the header over the five main areas (Matt,
   markup 2026-11-03, #39). Section space above, then the first area follows
   48px under it with no rule, so the header opens the whole run ---------- */
.svc-head__frame { padding-top: var(--section-y); }
.svc-head .h-two { grid-column: 1 / -1; }
.svc-head + .area .area__frame { padding-top: var(--space-7); }

/* ---- The five main areas ------------------------------------------------------
   Stripe's feature sections: the two-tone heading and three points over five
   columns, the photo panel over the other six, centered on each other. Every
   other section swaps sides. */
.area__frame { padding-block: var(--section-y); }
.area__text .points { margin-top: var(--space-6); }   /* 32 from the heading to the first rule (Luke, 2026-11-16: 48 read as too much) */
/* What do we cover? under Proactive Planning's points (Matt, round 8 #22: a
   link down to the 10 domains), the same gap under the list as above it,
   centered under the points (round 10 #28) */
.area__more { display: flex; width: fit-content; margin: var(--space-6) auto 0; }
@media (max-width: 639px) {
  .area__text .points { margin-top: var(--space-5); }
  .area__text .points li { padding-block: calc(var(--space-4) + var(--space-1)); }   /* 20: a little closer on a phone */
}
@media (min-width: 1024px) {
  .area__grid { align-items: center; }
  .area__text, .area__panel { grid-row: 1; }
  .area__text { grid-column: 1 / span 5; }
  .area__panel { grid-column: 7 / -1; }
  .area--flip .area__text { grid-column: 8 / -1; }
  .area--flip .area__panel { grid-column: 1 / span 6; }
}
/* Tablets from 768px: the text and the panel side by side, half and half,
   swapping sides as on desktop (2026-11-16, the mobile build: stacked, the
   points ran 700px lines over a full-width panel) */
@media (min-width: 768px) and (max-width: 1023px) {
  .area__grid { align-items: center; }
  .area__text, .area__panel { grid-row: 1; }
  .area__text { grid-column: 1 / span 4; padding-right: var(--space-5); }
  .area__panel { grid-column: 5 / -1; }
  .area--flip .area__text { grid-column: 5 / -1; padding-right: 0; padding-left: var(--space-5); }
  .area--flip .area__panel { grid-column: 1 / span 4; }
}
/* Stacked, the picture leads, then the heading and the points (Luke,
   2026-11-16: under the points it came last, after a long run of text) */
@media (max-width: 767px) {
  .area__text, .area__panel { grid-column: 1 / -1; }
  .area__panel { grid-row: 1; }
  .area__text { grid-row: 2; margin-top: var(--space-6); }
}

/* ---- How does it work (Matt, round 11 #53; Luke's pick B, 2026-12-01) -----
   Matt's four steps as one figure after his mockup, in place of the photo
   carousel: a navy circle with the step's number at each column's left
   edge, one 2px Mist line from the first circle to the last (the
   switcher's track), the name in the card-title style (Personal CFO,
   Corporate Leaders) and the line under it at body size. Four across from
   768px (three grid columns each on desktop, two on tablets); under that
   one step under another, the number on the left and the line running
   down through the circles. Static: nothing moves. */
.process__frame { padding-block: var(--section-y); }
.process__head { grid-column: 1 / span 8; }
@media (max-width: 1023px) { .process__head { grid-column: 1 / -1; } }
.steps {
  --dot: 40px;            /* the circle: the feature icon's size */
  --track: 2px;           /* the line: the switcher's track */
  --steps-gap: var(--space-6);   /* between stacked steps */
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: var(--space-7);
}
.steps::before {   /* from the first circle's center to the last's */
  content: "";
  position: absolute;
  top: calc((var(--dot) - var(--track)) / 2);
  left: calc(var(--dot) / 2);
  right: calc((100% - 3 * var(--gutter)) / 4 - var(--dot) / 2);
  height: var(--track);
  background: var(--mist-300);
}
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.step__num {
  position: relative;
  z-index: 1;             /* over the line */
  display: grid;
  place-items: center;
  flex: none;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  text-box: trim-both cap alphabetic;   /* the figure's own height, centered in the circle */
}
.step__name { margin-top: var(--space-5); font-size: var(--text-xl); font-weight: var(--weight-book); line-height: 1.2; letter-spacing: var(--tracking-heading); color: var(--text-strong); }
.step__text { margin-top: var(--space-3); padding-right: var(--space-4); font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-muted); }
@media (max-width: 767px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--steps-gap); margin-top: var(--space-6); }
  .steps::before { content: none; }
  .step { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: var(--space-4); align-items: start; max-width: 36rem; }
  .step__num { grid-row: 1 / span 2; }
  .step__name { margin-top: 0; line-height: var(--dot); }   /* one line, centered on the circle */
  .step__text { margin-top: 0; padding-right: 0; }
  .step:not(:last-child)::after {   /* the line down through the circles' centers */
    content: "";
    position: absolute;
    left: calc((var(--dot) - var(--track)) / 2);
    top: calc(var(--dot) / 2);
    bottom: calc(-1 * (var(--steps-gap) + var(--dot) / 2));
    width: var(--track);
    background: var(--mist-300);
  }
}

/* ---- Pricing: the heading, then the price card across the grid ------------- */
.pricing__frame { padding-block: var(--section-y); }
.pricing__head { margin-bottom: var(--space-7); }
.pricing__faq { display: flex; justify-content: center; margin-top: var(--space-7); }   /* Frequently Asked Questions, centered under the cards (Matt, round 11 #61) */
.pricing__head .h-two { grid-column: 1 / span 8; }
.pricing__card { grid-column: 1 / -1; }
.pricing__card + .pricing__card { margin-top: var(--space-7); }   /* Project-Based Engagements under Personal CFO, as far as Personal CFO is under the heading (Luke, 2026-10-26; it was 24px) */
@media (max-width: 1023px) { .pricing__head .h-two { grid-column: 1 / -1; } }

/* ---- What We Cover -------------------------------------------------------
   (The FAQ moved to About in round 8, #39; its layout is base.css "FAQ".)
   What We Cover (Areas of Expertise until Matt's #16; #29): the heading
   over the list. Since round 9 (#16) the rows don't open: ten ruled rows
   (base.css "A row named by an area"), two to a row from 768px, read row by
   row (round 10 #42; the halves are the grid's own: 6 columns each on
   desktop, 4 on tablets, a gutter between). The two
   columns share their rows, so a name that wraps keeps every rule level
   with the one beside it, and each column closes with a rule. One list
   below 768px. ---------------------------------------------------------- */
.aoe__frame { padding-block: var(--section-y); }
.aoe__head { grid-column: 1 / -1; }
.aoe__list { grid-column: 1 / -1; margin-top: var(--space-7); border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) {
  .aoe__head { grid-column: 1 / span 8; }
}
@media (min-width: 768px) {
  .aoe__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); border-bottom: 0; }   /* row by row, in Matt's order (round 10 #42) */
  .aoe__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }   /* each column closes with a rule */
}
@media (max-width: 1023px) {
  .aoe__list { margin-top: var(--space-6); }
}
