/* The Who We Help page's own CSS: the header's three portrait windows stepping down, the wall, the six kinds, the
   three buyers, the plan, the close. Tokens of design\system.css only. */

/* the header: on the navy band, the words and the picker on the left, three rounded portrait windows stepping down */
.hero--windows { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
/* the windows carry no z-index of their own, so every chip stands in front of every window */
.windows { position: relative; aspect-ratio: 4 / 3; max-height: 600px; margin: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; }
.windows__win { position: absolute; width: 40%; aspect-ratio: 3 / 4.3; margin: 0; overflow: visible; }
.windows__win > img { width: 100%; height: 100%; object-fit: cover; border-radius: 160px 160px var(--radius-l) var(--radius-l); box-shadow: var(--shadow-l); border: 3px solid color-mix(in srgb, var(--c-brand-on-ink) 40%, transparent); box-sizing: border-box; }
.windows__win--1 { left: 0; top: 0; } .windows__win--1 > img { object-position: 26% 50%; }
.windows__win--2 { left: 30%; top: 11.5%; } .windows__win--2 > img { object-position: 72% 50%; }
.windows__win--3 { left: 60%; top: 23%; } .windows__win--3 > img { object-position: 50% 40%; }
.windows__chip { position: absolute; left: 50%; bottom: 14px; z-index: 4; width: min(264px, 120%); translate: -50% 0; }
.page-wwh .head__title { text-wrap: balance; }
.windows__chipscene { position: relative; width: 100%; }
.windows > .windows__stop { position: absolute; top: 0; right: 0; bottom: auto; left: auto; z-index: 5; }
/* on the phone and the tablet: the florist's window wide on top with her chip, the painter's and the groomer's side by
   side under it */
@media (max-width: 899px) {
  .hero--windows { grid-template-columns: minmax(0, 1fr); }
  .windows { grid-row: 1; height: auto; aspect-ratio: auto; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 16px 0; }
  .windows__win { position: relative; left: auto !important; top: auto !important; width: auto; aspect-ratio: auto; }
  .windows__win--1 { grid-column: 1 / -1; height: clamp(240px, 60vw, 420px); }
  .windows__win--2, .windows__win--3 { height: clamp(150px, 36vw, 280px); }
  .windows__win--1 > img { border-radius: 50% 50% var(--radius-m) var(--radius-m) / 90px 90px var(--radius-m) var(--radius-m); object-position: 30% 50%; }
  .windows__win--2 > img, .windows__win--3 > img { border-radius: 50% 50% var(--radius-m) var(--radius-m) / 64px 64px var(--radius-m) var(--radius-m); }
  .windows__chip { display: none; }
  .windows__win--1 .windows__chip { display: block; left: 10px; bottom: 10px; translate: none; width: min(300px, calc(100% - 20px)); }
  .windows > .windows__stop { top: 6px; right: 6px; }
}

/* the wall: a little shorter on the phone */
@media (max-width: 719px) { .wall .sig__stage { aspect-ratio: auto; min-height: 480px; } }

/* the six kinds: three by two, two columns on the phone */
.kinds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.kind { display: grid; align-content: start; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); overflow: hidden; }
.kind__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-ink-2); }
.kind__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 40%; }
.kind__chip { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; max-width: 280px; }
.kind__chipscene { position: relative; width: 100%; }
.kind__body { padding: 18px 20px 22px; }
.kind__name { font: var(--fw-black) clamp(20px, 1.8vw, 23px)/1.15 var(--font-display); color: var(--c-ink); }
.kind__fields { margin-top: 4px; font: var(--fw-semi) 14px/1.35 var(--font-ui); color: var(--c-brand-text); }
.kind__line { margin-top: 8px; color: var(--c-ink-soft); }
.kind--home { --pos: 30%; } .kind--outdoor { --pos: 50%; } .kind--law { --pos: 55%; } .kind--health { --pos: 50%; } .kind--property { --pos: 60%; } .kind--events { --pos: 40%; }
.kind__media > .stop { top: 10px; right: 10px; bottom: auto; }
@media (max-width: 899px) { .kinds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* on the phone, one card a row, so every chip reads whole */
@media (max-width: 599px) {
  .kinds__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kind__media { aspect-ratio: 16 / 10; }
  .kind__chip { left: 10px; right: auto; bottom: 10px; width: min(300px, calc(100% - 20px)); }
  .kind__body { padding: 14px 16px 18px; }
}

/* the three buyers, on the designed ground */
.buyers__stage { position: relative; width: min(1100px, 100%); margin-inline: auto; }
.buyers__scene { position: relative; }
/* the site's heading color (components.css h1-h3) would win over the scene's dark ink: its titles take the scene's own */
.buyers__scene .tb-title { color: var(--tb-ink); }
.buyers__stage { margin-top: 56px; }
.buyers__stage > .stop { position: absolute; right: 0; top: -48px; bottom: auto; }
/* on a phone the compare rows are about 255-270 wide: "Your business" keeps whole beside its stars, rating and count */
@media (max-width: 759px) {
  .page-wwh .buyers__scene .tb-biz { gap: 6px; padding: 0 8px 0 10px; }
  .page-wwh .buyers__scene .tb-biz b { font-size: 14px; }
  .page-wwh .buyers__scene .tb-rt { gap: 4px; }
  .page-wwh .buyers__scene .tb-st0 svg, .page-wwh .buyers__scene .tb-st2 svg { width: 11px; height: 11px; }
}

/* the plan: the hand writing the booking at the photo's middle and right, the plan building over the book's left page */
.plan__media { aspect-ratio: auto; height: clamp(560px, 48vw, 620px); --pos: 50%; }
.plan__media > .feature__scene--side { left: 0; right: auto; width: 46%; }
.plan__media > .stop { top: 14px; right: 14px; bottom: auto; }
@media (max-width: 1099px) { .plan__media > .feature__scene--side { width: 56%; } }
/* on the phone the plan stands at the top, the photo's lower half under it: the pen writing the booking */
@media (max-width: 759px) {
  .plan__media { height: 1035px; }
  .plan__media > img { top: auto; bottom: 0; height: 700px; object-position: 58% 50%; }
  .plan__media > .feature__scene--side { top: 0; bottom: auto; width: 100%; height: 690px; }
}

/* the close: the owner and his customer at the photo's two sides, their faces in its upper half; the words centered
   under them, on a shade that rises from the band's foot (as on the Call Answering page) */
.close--low { padding-top: clamp(330px, 32vw, 430px); }
.close--low .band__bg img { object-position: 50% 0%; }
.close--low .band__bg::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 96%, transparent) 0%, color-mix(in srgb, var(--c-ink) 90%, transparent) 46%, color-mix(in srgb, var(--c-ink) 40%, transparent) 64%, transparent 80%); }
.close--low .wrap { display: flex; justify-content: center; }
.close--low .close__text { max-width: 640px; text-align: center; }
.close--low .close__text .picker { margin-inline: auto; text-align: left; }
.page-wwh .close { --chip-x: 33%; --chip-y: 72%; --pos-m: 30%; }
.page-wwh .close__chip { width: min(300px, 25%); }
@media (max-width: 899px) {
  .close--low { padding-top: 0; }
  .close--low .band__bg::after { background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c-ink) 55%, transparent)); }
  .page-wwh .close__chip { width: min(300px, calc(100% - 70px)); }
}
