/* The Who we help page (plan.md "Who we help", architecture 9, The breadth): three businesses in the header, every
   kind on the board, the six categories as tiles, the three ways customers decide (buyers), the plan written for one
   med spa, a way in for every other business, and the close. Only the tokens of system.css. */

/* ---- hero: three photos side by side, chrome seams between them, one booking card landing at a time (scene
   wwh-hero); the words on the sage band across their foot, centered. On the phone one frame, the photos in turn. ---- */
.wwhh { background: var(--c-sage); }
.wwhh::after { content: ""; display: block; height: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c-chrome) 60%, var(--c-paper)), var(--c-chrome) 40%, color-mix(in srgb, var(--c-chrome) 75%, var(--c-ink)) 70%, color-mix(in srgb, var(--c-chrome) 70%, var(--c-paper))); }
.wwhh__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: clamp(340px, 30vw, 440px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-chrome) 55%, var(--c-paper)), var(--c-chrome) 45%, color-mix(in srgb, var(--c-chrome) 75%, var(--c-ink))); }
.wwhh__shot { position: relative; margin: 0; overflow: hidden; background: var(--c-ink); }
.wwhh__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); transform-origin: var(--pos, 50% 40%); }
.wwhh__shot--cafe { --pos: 58% 35%; }
.wwhh__shot--law { --pos: 64% 30%; }
.wwhh__shot--roof { --pos: 70% 30%; }
/* each photo's booking card on its calm lower right (the apron and the cups, the desk, the shingles) */
.wwhh__card { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: max-content; max-width: min(268px, calc(100% - 40px)); padding: 13px 16px 14px 18px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: 0 20px 36px -18px color-mix(in srgb, var(--c-ink) 85%, transparent); }
@media (scripting: enabled) { .wwhh__card { opacity: 0; } }
.wwhh__card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-brand); }
.wwhh__card b { display: block; font: 700 13px/1.1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--c-brand-text); }
.wwhh__card strong { display: block; margin-top: 6px; font: 700 1.0625rem/1.2 var(--font-ui); }
.wwhh__card > span { display: block; margin-top: 4px; font: 500 .9375rem/1.3 var(--font-text); color: var(--c-ink-soft); }
.wwhh__ping { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 3px var(--c-paper); }
.wwhh__ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--c-brand);
  opacity: calc(min(var(--pp, 1) * 20, 1) * (1 - var(--pp, 1)) * 1.3); transform: scale(calc(1 + var(--pp, 1) * 2.2)); }
.wwhh__tag { top: 16px; left: 16px; }
.wwhh__stop { top: 14px; right: 14px; }
.wwhh__words { display: grid; justify-items: center; text-align: center; padding-block: clamp(2rem, 3.4vw, 2.75rem) clamp(2.25rem, 3.8vw, 3rem); }
.wwhh__words h1 { max-width: 22ch; margin: 0 0 .7rem; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); line-height: .98; text-wrap: balance; }
.wwhh__line { margin: 0 0 1.5rem; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.45; color: var(--c-ink-soft); }
.wwhh__cta { justify-items: center; }
@media (max-width: 760px) {
  .wwhh__strip { display: block; height: auto; aspect-ratio: 39 / 40; gap: 0; }
  .wwhh__shot { position: absolute; inset: 0; }
  .wwhh__shot:not(:first-child) { opacity: 0; }
  .wwhh__shot--cafe { --pos: 60% 35%; }
  .wwhh__shot--law { --pos: 72% 30%; }
  .wwhh__shot--roof { --pos: 74% 30%; }
  .wwhh__card { right: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 11px 13px 12px 15px; }
  .wwhh__card strong { font-size: 1rem; }
  .wwhh__stop { top: 12px; right: 12px; }
  .wwhh__tag { top: 14px; left: 14px; }
  .wwhh__words { justify-items: stretch; text-align: left; }
  .wwhh__cta { justify-items: start; }
}

/* ---- board: the lead-board on the designed ground (sage, the arcs in its lower-left corner) ---- */
.wwhb { padding-block: var(--section-y); }
.wwhb__head { max-width: 760px; margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; }
.wwhb__head h2 { margin: 0 0 .6rem; }
.wwhb__head .lede { margin: 0 auto; }
.wwhb__stage { position: relative; }
.wwhb__scene { width: 100%; }
.wwhb__stop { top: -50px; right: 0; }
@media (max-width: 760px) {
  .wwhb__head { margin-bottom: 3.75rem; text-align: left; }
}

/* ---- kinds: the head at the left, the six categories as photo tiles at the right, each a way into the chat; their
   new-client lines land one after another (the kit's sequence), each with its ping; the seventh tile on tangerine ---- */
.wwhk { padding-block: var(--section-y); }
.wwhk__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.wwhk__head { position: sticky; top: 112px; }
.wwhk__head h2 { margin: 0 0 .6rem; }
.wwhk__head .lede { margin: 0; }
.wwhk__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wwhk__stop { top: -50px; right: 0; }
.wwhk-tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); text-decoration: none; box-shadow: 0 1px 2px color-mix(in srgb, var(--c-ink) 8%, transparent), 0 18px 34px -26px color-mix(in srgb, var(--c-ink) 55%, transparent); }
.wwhk-tile__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-ink); }
.wwhk-tile__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); }
.wwhk-tile__body { display: grid; align-content: start; gap: .4rem; padding: 14px 16px 16px; }
.wwhk-tile__name { margin: 0; font: 800 1.5rem/1 var(--font-display); letter-spacing: .01em; }
.wwhk-tile__fields { font: 500 .875rem/1.4 var(--font-ui); color: var(--c-ink-soft); }
.wwhk-tile__one { display: flex; align-items: center; gap: 10px; margin-top: .45rem; padding-top: .7rem; border-top: 1px solid color-mix(in srgb, var(--c-ink) 10%, transparent); font: 500 .9375rem/1.3 var(--font-ui);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
@media (scripting: enabled) {
  .wwhk-tile__one { opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 8px)); }
  .wwhk-tile:first-of-type .wwhk-tile__one { opacity: var(--kit-in, 1); transform: none; }
}
.wwhk-tile__one b { color: var(--c-brand-text); }
.wwhk-tile__ping { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 20%, transparent); }
.wwhk-tile__ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c-brand); opacity: calc((1 - var(--kit-in, 1)) * 1.4); transform: scale(calc(1 + var(--kit-in, 1) * 1.8)); }
.wwhk-more { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius-l); background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; }
.wwhk-more__mark { width: 40px; height: 40px; fill: var(--c-on-brand); }
.wwhk-more__words { display: grid; gap: .25rem; }
.wwhk-more__name { margin: 0; font: 800 1.75rem/1 var(--font-display); color: var(--c-on-brand); }
.wwhk-more__line { font: 500 1rem/1.4 var(--font-ui); }
.wwhk-more__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-on-brand); color: var(--c-brand); font-size: 20px; }
@media (max-width: 1100px) {
  .wwhk__in { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2.5rem, 5vw, 3.5rem); }
  .wwhk__head { position: static; max-width: 640px; }
}
@media (max-width: 760px) {
  .wwhk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wwhk-tile__name { font-size: 1.25rem; }
  .wwhk-tile__body { padding: 12px 12px 14px; }
  .wwhk-more { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
  .wwhk-more__mark { display: none; }
}
@media (max-width: 560px) {
  .wwhk__grid { grid-template-columns: minmax(0, 1fr); }
  .wwhk-tile { grid-template-rows: none; grid-template-columns: 38% minmax(0, 1fr); }
  .wwhk-tile__pic { aspect-ratio: auto; min-height: 150px; }
}

/* ---- buyers: the unique element on the sage, the head centered over it ---- */
.wwhy { padding-block: var(--section-y); }
.wwhy__head { max-width: 780px; margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; }
.wwhy__head h2 { margin: 0 0 .6rem; }
.wwhy__head .lede { margin: 0 auto; }
.wwhy__stage { position: relative; }
.wwhy__scene { width: 100%; }
.wwhy__stop { top: -50px; right: 0; }
@media (max-width: 760px) {
  .wwhy__head { margin-bottom: 3.75rem; text-align: left; }
}

/* ---- plan: the head at the left, the med spa owner's framed photo at the right, the estimate in glass on its right
   side, clear of her face ---- */
.wwhp { padding-block: var(--section-y); }
.wwhp__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem; align-items: center; }
.wwhp__head { grid-column: 1 / span 4; }
.wwhp__head h2 { margin: 0 0 .6rem; }
.wwhp__head .lede { margin: 0; }
.wwhp__pic { position: relative; grid-column: 5 / -1; }
.wwhp__frame { aspect-ratio: 16 / 10; }
.wwhp__demo { position: absolute; z-index: 2; top: 50%; right: 18px; translate: 0 -50%; width: min(372px, 46%); }
.wwhp__scene { width: 100%; }
.wwhp__tag { top: -2px; left: 22px; }
.wwhp__stop { top: -46px; right: 0; }
@media (max-width: 1100px) {
  .wwhp__in { grid-template-columns: minmax(0, 1fr); }
  .wwhp__head { grid-column: 1; max-width: 640px; }
  .wwhp__pic { grid-column: 1; }
}
@media (max-width: 760px) {
  /* her face sits at 30 to 36% of the photo's height: the frame is tall enough that the estimate (357 px at 390,
     376 at 360) starts below it */
  .wwhp__frame { width: 100%; aspect-ratio: 3 / 5; min-height: 650px; }
  .wwhp__demo { top: auto; bottom: 12px; left: 12px; right: 12px; translate: none; width: auto; }
}

/* ---- anyway: the head centered, the groomer's framed photo, the chat on a glass phone over the calm blue wall ---- */
.wwha { padding-block: var(--section-y); }
.wwha__head { max-width: 760px; margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; }
.wwha__head h2 { margin: 0 0 .6rem; }
.wwha__head .lede { margin: 0 auto; }
.wwha__pic { position: relative; }
/* width: 100% keeps a box with an aspect ratio and a min-height from growing sideways (it widens to keep its ratio) */
.wwha__frame { width: 100%; aspect-ratio: 16 / 9; min-height: 600px; }
.wwha__demo { position: absolute; z-index: 2; top: 50%; right: clamp(24px, 6%, 96px); translate: 0 -50%; }
.wwha__stop { top: 0; right: -54px; }
.wwha-phone { position: relative; box-sizing: border-box; width: 330px; height: 560px; padding: 0 0 12px; overflow: hidden; border-radius: 32px; color: var(--c-ink);
  background: color-mix(in srgb, var(--c-paper) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 0 7px var(--c-ink-deep), 0 0 0 9px var(--c-chrome), 0 40px 70px -30px color-mix(in srgb, var(--c-ink) 90%, transparent); }
.wwha-phone__head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 10%, transparent); }
.wwha-phone__mark { flex: none; box-sizing: border-box; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--c-brand); fill: var(--c-on-brand); }
.wwha-phone__head p { margin: 0; display: grid; font: 700 1rem/1.2 var(--font-ui); }
.wwha-phone__head p span { font: 500 13px/1.3 var(--font-text); color: var(--c-ink-soft); }
.wwha-phone__head .tag-example { position: static; margin-left: auto; padding: 5px 8px; background: var(--c-ground); }
.wwha-phone__msgs { display: grid; align-content: start; gap: 9px; padding: 14px 14px 0; }
.wmsg { margin: 0; max-width: 86%; padding: 10px 13px; border-radius: 16px; font: 500 15px/1.35 var(--font-text); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
@media (scripting: enabled) { .wmsg { opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 10px)); } .wmsg:first-child { opacity: var(--kit-in, 1); transform: none; } }
.wmsg--them { justify-self: start; border-bottom-left-radius: 5px; background: var(--c-ground); }
.wmsg--me { justify-self: end; border-bottom-right-radius: 5px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; }
.wmsg--chips { display: flex; gap: 6px; padding: 0; max-width: 100%; justify-self: start; }
.wmsg--chips span { display: grid; place-items: center; min-width: 46px; height: 38px; border-radius: var(--radius-s); border: 2px solid color-mix(in srgb, var(--c-ink) 24%, transparent); background: var(--c-paper); font: 700 15px/1 var(--font-ui); }
.wmsg--chips span[data-kit-on] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.wmsg--typing { display: flex; gap: 5px; padding: 13px 15px; }
.wmsg--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink-soft); animation: wdots 1s infinite both; }
.wmsg--typing i:nth-child(2) { animation-delay: .15s; }
.wmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wdots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wmsg--typing i { animation: none; } }
.wmsg--check { display: grid; gap: 9px; width: 86%; box-sizing: border-box; }
.wmsg--check b { font: 700 14px/1.3 var(--font-ui); }
.wmsg__bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c-ink) 12%, transparent); overflow: hidden; }
.wmsg__bar i { display: block; height: 100%; background: var(--c-brand); transform-origin: left; transform: scaleX(var(--kit-fill, 0)); }
.wmsg--result { display: grid; gap: 3px; width: 100%; max-width: 100%; box-sizing: border-box; border-radius: var(--radius-m); background: var(--c-ink); color: var(--c-paper); }
.wmsg__lab { font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-on-ink, var(--c-accent)); }
.wmsg--result strong { font: 800 1.5rem/1.1 var(--font-display); }
.wmsg--result > span:not(.wmsg__lab) { font: 500 13px/1.35 var(--font-text); color: color-mix(in srgb, var(--c-paper) 85%, transparent); }
@media (max-width: 1100px) {
  .wwha__frame { min-height: 0; }
  .wwha-phone { width: 300px; height: 540px; }
  .wwha__stop { top: -50px; right: 0; }
}
@media (max-width: 760px) {
  .wwha__head { text-align: left; }
  /* a tall crop on the groomer and the Yorkie (her face at 15%, the dog's at 45% of the photo's height); the phone
     overlaps the photo's foot by 280 px (just over half of it) and hangs below, both faces clear above it */
  .wwha__pic { padding-bottom: 250px; }
  .wwha__frame { aspect-ratio: 7 / 12; }
  .wwha__frame .frame__in > img { --pos: 37% 25%; }
  .wwha__demo { top: auto; bottom: 0; right: 50%; translate: 50% 0; }
  .wwha-phone { width: 290px; height: 530px; }
  .wwha__stop { top: -50px; right: 0; }
}

/* ---- close: the trainer's photo full-bleed, the plate at its lower right, both faces clear of it ---- */
.wwhc .endband__in { align-items: end; }
