/* who-we-help.css: the Who we help page (plan.md, Who we help). The breadth: three rising frames of three businesses
   each getting a booking, the trades found in their customers' words on a teal block, each kind at work in a tour,
   every way customers buy (risebuyers) on the sand, a way in for any other business, and the close. */

/* ---------- hero: the words on the paper, three tall frames rising like the logo's arrows ---------- */
.wwh { padding: clamp(2.5rem, 1rem + 4vw, 5rem) 0 clamp(3rem, 1.5rem + 4vw, 5.5rem); }
.wwh__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-5) clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.wwh__title { max-width: 12ch; margin: 0 0 var(--space-3); font: 800 var(--fs-h1)/1.02 var(--font-display); letter-spacing: -0.032em; text-wrap: balance; }
.wwh__line { max-width: 31em; margin: 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.wwh__cta { margin-top: var(--space-4); }
.wwh__stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; height: clamp(460px, 40vw, 580px); }
.wwh__frame { position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: var(--c-sand); box-shadow: var(--shadow-m); }
.wwh__frame--1 { height: 70%; }
.wwh__frame--2 { height: 85%; }
.wwh__frame--3 { height: 100%; }
/* each photo eases forward a touch as its booking lands */
.wwh__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: calc(1 + 0.05 * var(--kit-in, 1)); transform-origin: 50% 60%; }
.wwh__frame--1 .wwh__photo { object-position: 70% 50%; }
.wwh__frame--2 .wwh__photo { object-position: 88% 50%; }
.wwh__frame--3 .wwh__photo { object-position: 50% 50%; }
.wwh__card { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 8px; padding: 12px 13px 13px; border-radius: 18px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 14px 28px -14px rgb(11 36 33 / 0.55); opacity: var(--kit-in, 1); translate: 0 calc((1 - var(--kit-in, 1)) * 14px); }
.wwh__tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.wwh__tick svg { width: 15px; height: 15px; }
.wwh__card b { display: block; font: 800 1rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.wwh__card small { display: block; margin-top: 3px; font: 600 0.8125rem/1.3 var(--font-ui); color: var(--c-brand-text); }
/* the stop sits over the shortest frame, in the room above it */
.wwh__stop { position: absolute; top: 0; left: 0; }

/* ---------- every: the trades found in their customers' own words, on a teal block ---------- */
.wwe__block { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: center; padding: clamp(2.25rem, 1rem + 3.4vw, 4rem); border-radius: var(--radius-xl); background: var(--c-brand); color: var(--c-on-brand); }
/* the motif's ring arc at the block's edge */
.wwe__block::after { content: ""; position: absolute; z-index: -1; left: -150px; bottom: -190px; width: 480px; height: 480px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M268 70A150 150 0 1 0 330 140' fill='none' stroke='%23DDF3EF' stroke-opacity='.16' stroke-width='22' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.wwe__line { max-width: 26em; margin: var(--space-3) 0 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.5; color: var(--c-on-brand); text-wrap: pretty; }
.wwe__card { position: relative; padding: 14px; border-radius: 28px; background: var(--c-paper-alt); box-shadow: 0 30px 60px -30px rgb(8 64 62 / 0.75); }
.wwe__card .wwe__scene { width: 100%; height: 330px; }
.wwe__stop { position: absolute; top: -54px; right: 0; }

/* ---------- kinds: seven tabs beside one big photo stage (the kit's tour) ---------- */
.wwk__tour { display: grid; grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr); gap: var(--space-4); align-items: stretch; }
.wwk__tabs { display: flex; flex-direction: column; gap: 8px; }
.wwk__tab { position: relative; flex: 1; display: flex; align-items: center; min-height: 58px; padding: 12px 18px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-paper); color: var(--c-ink); font: 700 1.02rem/1.2 var(--font-display); letter-spacing: -0.01em; text-align: left; cursor: pointer; transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear; }
.wwk__tab:hover { background: var(--c-brand-light); }
.wwk__tab[aria-selected="true"] { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.wwk__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(var(--kit-fill, 0)); }
.wwk__tab:not([aria-selected="true"]) .wwk__fill { display: none; }
.wwk__stage { position: relative; min-height: clamp(520px, 44vw, 600px); overflow: hidden; border-radius: var(--radius-xl); background: var(--c-ink); box-shadow: var(--shadow-l); }
.wwk__panel { position: absolute; inset: 0; }
.wwk__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* each photo held on its people (they matter most where a tall phone stage crops the sides) */
.wwk__photo--home { object-position: 84% 50%; }
.wwk__photo--outdoor { object-position: 72% 50%; }
.wwk__photo--law { object-position: 68% 50%; }
.wwk__photo--health { object-position: 55% 40%; }
.wwk__photo--realestate { object-position: 70% 50%; }
.wwk__photo--events { object-position: 50% 50%; }
.wwk__card { position: absolute; left: 22px; top: 22px; width: min(360px, 46%); display: grid; gap: 8px; padding: 20px 22px; border-radius: 22px; background: color-mix(in srgb, var(--c-paper) 94%, transparent); color: var(--c-ink); text-decoration: none; box-shadow: var(--shadow-m); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wwk__card--low { top: auto; bottom: 22px; }
.wwk__name { font: 800 1.35rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.wwk__fields { font-size: 0.9375rem; line-height: 1.45; color: var(--c-ink-soft); }
.wwk__one { padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 1rem; line-height: 1.4; }
.wwk__one strong { color: var(--c-brand-text); }
.wwk__go { display: inline-flex; align-items: center; gap: 6px; font: 700 0.9375rem/1 var(--font-ui); color: var(--c-brand-text); }
.wwk__card:hover .button__arrow { transform: translateX(3px); }
.wwk__panel--more { background: var(--c-brand-deep); color: var(--c-on-ink); }
.wwk__ring { position: absolute; right: -90px; bottom: -130px; width: clamp(320px, 34vw, 460px); height: auto; color: color-mix(in srgb, var(--c-brand-light) 18%, transparent); }
.wwk__rise { stroke: color-mix(in srgb, var(--c-accent) 60%, transparent); }
.wwk__more { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: var(--space-3); padding: clamp(2rem, 1rem + 3vw, 3.5rem); }
.wwk__more-title { max-width: 11em; margin: 0; font: 800 clamp(2rem, 1.4rem + 2.4vw, 3.4rem)/1.02 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.wwk__more-line { max-width: 24em; margin: 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.5; }
.wwk__more-cta { margin-top: var(--space-2); }
.wwk__more-cta .cta-line__note { color: var(--c-on-ink); }
.wwk__stop { position: absolute; z-index: 3; top: 16px; right: 16px; }

/* ---------- buyers: the signature, on the sand ---------- */
.wwb { background: var(--c-sand); }
.wwb__head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 1rem + 3.4vw, 4rem); text-align: center; }
.wwb__head .lead { margin: var(--space-3) auto 0; }
.wwb__stage { position: relative; }
.wwb__stage .wwb__scene { width: 100%; max-width: 1160px; height: 700px; margin-inline: auto; }
.wwb__stop { position: absolute; top: -52px; right: 0; }

/* ---------- anyway: a groomer at work, her question answered in the chat over the photo's edge ---------- */
.wwa__head { max-width: 44rem; margin: 0 auto clamp(2rem, 1rem + 3vw, 3.5rem); text-align: center; }
.wwa__head .lead { margin: var(--space-3) auto 0; }
/* the frame keeps room on both sides for the chat that hangs off its right edge */
.wwa__frame { position: relative; max-width: min(960px, calc(100% - 300px)); margin: 0 auto; }
.wwa__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 40%; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.wwa__chat { box-sizing: border-box; position: absolute; top: 50%; right: -150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; width: 340px; height: 430px; padding: 0 14px 16px; overflow: hidden; translate: 0 -50%; border-radius: 30px; background: color-mix(in srgb, var(--c-paper-alt) 90%, transparent); border: 1px solid color-mix(in srgb, var(--c-paper) 70%, transparent); box-shadow: var(--shadow-l); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); color: var(--c-ink); opacity: calc(1 - var(--kit-out, 0)); }
.wwa__top { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.wwa__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.wwa__top b { display: block; font: 700 0.9375rem/1.2 var(--font-ui); }
.wwa__top small { display: block; font-size: 0.8125rem; color: var(--c-ink-soft); }
.wwa__chat [data-kit-msg] { flex: none; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.wwa__msg { max-width: 86%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.4; }
.wwa__msg--bot { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--c-paper); box-shadow: var(--shadow-s); }
.wwa__msg--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--c-brand); color: var(--c-on-brand); }
.wwa__typing { align-self: flex-start; display: flex; gap: 5px; margin: 0; padding: 13px 15px; border-radius: 18px 18px 18px 6px; background: var(--c-paper); box-shadow: var(--shadow-s); }
.wwa__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: wwa-dot 1s infinite ease-in-out; }
.wwa__typing i:nth-child(2) { animation-delay: 0.15s; }
.wwa__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wwa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.wwa__plan { align-self: stretch; display: grid; gap: 7px; padding: 14px 16px; border-radius: 18px; background: var(--c-paper); border: 2px solid var(--c-brand); font-size: 0.9375rem; }
.wwa__plan b { font: 800 1.05rem/1.2 var(--font-display); color: var(--c-brand-text); }
.wwa__plan span { display: flex; align-items: center; gap: 8px; }
.wwa__plan svg { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-text); }
.wwa__stop { position: absolute; top: 16px; left: 16px; }
.wwa__cta { margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem); }

/* ---------- close: a queue at a café counter, each customer tagged with where they found the business ---------- */
/* the photo zoomed toward the server's dark back on the right, which holds the words; the customers stay whole */
.close--queue { display: grid; align-content: center; box-sizing: border-box; min-height: clamp(600px, 46vw, 700px); }
.close--queue .close__photo { object-position: 50% 22%; transform: scale(1.2); transform-origin: 100% 8%; }
.close--queue .close__bg::after { background: linear-gradient(270deg, color-mix(in srgb, var(--c-brand-deep) 94%, transparent) 0%, color-mix(in srgb, var(--c-brand-deep) 84%, transparent) 30%, color-mix(in srgb, var(--c-brand-deep) 30%, transparent) 50%, color-mix(in srgb, var(--c-brand-deep) 8%, transparent) 66%, transparent 80%); }
.close--queue .close__motif { left: auto; right: -130px; bottom: -230px; }
.wwc__nb { white-space: nowrap; }
.wwc__inner { display: flex; justify-content: flex-end; }
.wwc__words { width: min(520px, 40vw); }
.close--queue .wwc__title { max-width: none; font-size: clamp(2.5rem, 1.4rem + 2.4vw, 3.6rem); }
.wwc__tags { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wwc__tag { position: absolute; display: flex; align-items: center; gap: 10px; width: max-content; margin: 0; padding: 9px 18px 9px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c-paper) 93%, transparent); color: var(--c-ink); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)) scale(calc(0.92 + 0.08 * var(--kit-in, 1))); }
.wwc__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.wwc__icon svg { width: 18px; height: 18px; }
.wwc__tag--reviews .wwc__icon { background: var(--c-accent); color: var(--c-ink); }
.wwc__tag small { display: block; font: 400 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.wwc__tag b { display: block; font: 700 15px/1.25 var(--font-ui); }
.wwc__tag--maps { left: 8%; top: 48%; }
.wwc__tag--reviews { left: 23%; top: 63%; }
.wwc__tag--site { left: 38%; top: 77%; }
.close--queue .wwc__stop { top: calc(48% - 58px); right: auto; left: 8%; }

/* ---------- tablet ---------- */
@media (max-width: 1099.98px) {
  .wwh__grid { grid-template-columns: minmax(0, 1fr); }
  .wwh__title { max-width: 14ch; }
  .wwh__stage { max-width: 640px; height: clamp(420px, 62vw, 520px); }
  .wwe__block { grid-template-columns: minmax(0, 1fr); }
  .wwe__stop { top: -52px; }
  .wwk__tour { grid-template-columns: minmax(0, 1fr); }
  .wwk__tabs { flex-direction: row; flex-wrap: wrap; }
  .wwk__tab { flex: 0 1 auto; min-height: 48px; padding: 10px 16px; font-size: 0.95rem; }
  .wwb__stage .wwb__scene { height: 700px; }

  /* the close: the photo as a band on top, whole; the words under it on the deep teal */
  .close--queue { display: block; min-height: 0; padding-top: calc(56.25vw + 2.5rem); }
  .close--queue .close__bg, .wwc__tags { bottom: auto; height: 56.25vw; }
  .close--queue .close__photo { transform: none; object-position: 50% 40%; }
  .close--queue .close__bg::after { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--c-brand-deep) 65%, transparent) 86%, var(--c-brand-deep) 100%); }
  .wwc__inner { display: block; }
  .wwc__words { width: auto; max-width: 640px; }
  .wwc__tag--maps { left: 9%; top: 52%; }
  .wwc__tag--reviews { left: 28%; top: 66%; }
  .wwc__tag--site { left: 47%; top: 80%; }
  .close--queue .wwc__stop { top: calc(29.25vw - 56px); left: 9%; }
}

@media (max-width: 900px) {
  /* the chat under the photo, half on it */
  .wwa__frame { max-width: none; }
  .wwa__photo { aspect-ratio: 3 / 2; }
  .wwa__chat { position: relative; top: auto; right: auto; width: 100%; max-width: 380px; height: 430px; margin: -215px auto 0; translate: none; }
}

/* ---------- the phone ---------- */
@media (max-width: 760px) {
  /* the three frames in a row, smaller; their cards one under another below them */
  .wwh__stage { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; gap: 8px 10px; padding-top: 0; }
  .wwh__frame { display: contents; }
  .wwh__photo { position: relative; inset: auto; grid-row: 1; align-self: end; height: 150px; border-radius: 18px; scale: none; box-shadow: var(--shadow-s); }
  .wwh__frame--2 .wwh__photo { grid-column: 2; height: 180px; }
  .wwh__frame--3 .wwh__photo { grid-column: 3; height: 210px; }
  .wwh__frame--1 .wwh__photo { grid-column: 1; }
  .wwh__card { position: relative; left: auto; right: auto; bottom: auto; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--c-line); box-shadow: var(--shadow-s); }
  .wwh__frame--1 .wwh__card { grid-row: 2; }
  .wwh__frame--2 .wwh__card { grid-row: 3; }
  .wwh__frame--3 .wwh__card { grid-row: 4; }

  .wwe__card { padding: 10px; border-radius: 22px; }
  .wwe__card .wwe__scene { height: 320px; }

  .wwk__tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .wwk__tab { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .wwk__stage { min-height: 600px; }
  .wwk__card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 16px 18px; }
  .wwk__name { font-size: 1.2rem; }

  .wwb__stage .wwb__scene { height: auto; min-height: 750px; } /* its tallest moment is 742 px (360 to 760 px wide) */

  .wwa__photo { aspect-ratio: 4 / 5; object-position: 45% 30%; }
  .wwa__stop { top: 12px; left: 12px; }

  /* the close: a square photo on top, the three customers in it, the tags smaller */
  .close--queue { padding-top: calc(100vw + 2rem); }
  .close--queue .close__bg, .wwc__tags { height: 100vw; }
  .close--queue .close__photo { object-position: 45% 40%; }
  .wwc__tag { gap: 8px; padding: 6px 13px 6px 6px; }
  .wwc__icon { width: 28px; height: 28px; }
  .wwc__icon svg { width: 15px; height: 15px; }
  .wwc__tag b { font-size: 14px; }
  .wwc__tag--maps { left: 3%; top: 50%; }
  .wwc__tag--reviews { left: 25%; top: 65%; }
  .wwc__tag--site { left: auto; right: 3%; top: 80%; }
  .close--queue .wwc__stop { top: calc(50vw - 52px); left: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  .wwa__typing i { animation: none; }
}
