/* who-we-help.css: places and sizes the Who we help page's parts, with the tokens of system.css only. */

/* ================= hero: the words top left, three tall clips rising like the logo's bars ================= */
.whh { position: relative; padding: calc(76px + clamp(2.25rem, 1rem + 3vw, 4rem)) 0 clamp(3.5rem, 2rem + 4vw, 6rem); background: var(--c-paper); }
.whh__grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.whh__title { max-width: 11em; margin: 0; font-size: var(--fs-h1); font-weight: 700; }
.whh__line { max-width: 30rem; margin: 1.2rem 0 0; color: var(--c-ink-soft); font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
/* the three bars, their feet on one line, rising to the right; each clip plays from its start on its turn (the kit's
   rotate) and fades back to its first frame after it, so none ever shows its loop seam */
.whh__bars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(.75rem, .4rem + 1vw, 1.25rem); height: clamp(440px, calc(100vh - 220px), 640px); }
.whh__bar { position: relative; height: calc(var(--rise) * 100%); margin: 0; }
.whh__clip { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--radius-l) * 1.4); background: var(--c-ink); box-shadow: var(--shadow-l); }
.whh__poster, .whh__clip video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.whh__clip video { opacity: 0; }
.whh__bar[data-kit-on] .whh__clip video { opacity: var(--kit-move, 1); }
.whh__bar[data-prev] .whh__clip video { opacity: calc(1 - var(--kit-move, 0)); }
.whh__clip::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(var(--c-shade), .55) 0%, rgba(var(--c-shade), 0) 42%); }
.whh__card {
  position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: .6rem;
  padding: .65rem .75rem; border: 1px solid var(--c-line-on-ink); border-radius: 14px; background: rgba(var(--c-shade), .66); color: var(--c-on-ink); box-shadow: var(--shadow-m);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 12px));
}
.whh__card b { display: block; font: 700 .95rem/1.25 var(--font-ui); }
.whh__card small { display: block; color: var(--c-soft-on-ink); font-size: .8125rem; }
.whh__tick { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.whh__tick svg { width: 16px; height: 16px; }
.whh__bars > .stop { top: 12px; right: 12px; z-index: 3; }
@media (max-width: 999px) {
  .whh__grid { grid-template-columns: minmax(0, 1fr); }
  .whh__bars { height: clamp(360px, 62vw, 520px); }
}
@media (max-width: 599px) {
  .whh__bars { height: 330px; gap: .5rem; }
  .whh__clip { border-radius: var(--radius-l); }
  .whh__card { left: 6px; right: 6px; bottom: 6px; padding: .5rem .55rem; border-radius: 10px; }
  .whh__tick { display: none; }
  .whh__card b { font-size: .8125rem; }
  .whh__card small { font-size: .75rem; }
  .whh__bars > .stop { top: 8px; right: 8px; }
}

/* ================= kinds: every kind of local business drifting past one steady card ================= */
.kinds { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); }
.kinds::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 30%; pointer-events: none; background: rgba(var(--c-shade), .04); clip-path: polygon(0 66%, 42% 66%, 42% 33%, 71% 33%, 71% 0, 100% 0, 100% 100%, 0 100%); }
.kinds__stage { position: relative; }
.scene.kinds__wall { width: 100%; height: 420px; }
.kinds__stop { top: 4px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); z-index: 3; }
@media (max-width: 599px) {
  .scene.kinds__wall { height: 400px; }
  .kinds__stop { top: -46px; }
}

/* ================= who: the six kinds as numbered rows, the photo of the one shown ================= */
.who2__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: stretch; }
.who2__tabs { display: grid; border-top: 1px solid var(--c-line); }
.who2__tab, .who2__more {
  position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .9rem; align-items: start; width: 100%;
  padding: 1rem .25rem 1rem 0; border: 0; border-bottom: 1px solid var(--c-line); background: none; color: var(--c-ink-soft); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.who2__num { display: grid; place-items: center start; font: 700 .95rem/1.5 var(--font-display); letter-spacing: .06em; color: var(--c-ink-soft); }
.who2__txt b { display: block; color: var(--c-ink-soft); font: 700 1.15rem/1.3 var(--font-display); letter-spacing: -.01em; }
.who2__txt small { display: block; margin-top: .15rem; color: var(--c-ink-soft); font-size: .9375rem; }
.who2__txt em { display: none; margin-top: .4rem; color: var(--c-body); font-style: normal; }
.who2__tab[aria-selected="true"] .who2__num { color: var(--c-brand-text); }
.who2__tab[aria-selected="true"] .who2__txt b { color: var(--c-ink); }
.who2__tab[aria-selected="true"] .who2__txt em { display: block; }
.who2__tab:hover .who2__txt b, .who2__more:hover .who2__txt b { color: var(--c-ink); }
.who2__fill { position: absolute; left: 0; bottom: -1px; width: calc(var(--kit-fill, 0) * 100%); height: 2px; background: var(--c-brand-text); }
.who2__tab[aria-selected="true"]:not([style*="--kit-fill"]) .who2__fill { width: 100%; }
.who2__more .who2__txt b { color: var(--c-ink); }
.who2__mark { width: 22px; height: 22px; fill: var(--c-brand-text); }
.who2__go { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.who2__go .btn__arrow { margin: 0; }
.who2__stage { position: relative; min-height: 520px; overflow: hidden; border-radius: calc(var(--radius-l) * 1.4); background: var(--c-ink); box-shadow: var(--shadow-l); }
.who2__panel { position: absolute; inset: 0; }
.who2__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.who2__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(var(--c-shade), .5) 0%, rgba(var(--c-shade), 0) 40%); }
.who2__card {
  position: absolute; z-index: 1; left: 20px; bottom: 20px; display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem;
  border: 1px solid var(--c-line-on-ink); border-radius: 16px; background: rgba(var(--c-shade), .66); color: var(--c-on-ink); box-shadow: var(--shadow-l);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.who2__card b { display: block; font: 700 1rem/1.3 var(--font-ui); }
.who2__card small { display: block; color: var(--c-soft-on-ink); font-size: .875rem; }
.who2__tick { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.who2__stop { top: 14px; right: 14px; z-index: 2; }
@media (max-width: 999px) {
  .who2__grid { grid-template-columns: minmax(0, 1fr); }
  .who2__stage { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .who2__card { left: 12px; bottom: 12px; padding: .65rem .8rem; }
  .who2__tab, .who2__more { grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .6rem; }
}

/* ================= buyers: the signature, three cards standing as three rising steps ================= */
.buyers__stage { position: relative; }
.scene.buyers__scene { width: 100%; min-height: 560px; }
.buyers__stage > .stop { top: -6px; right: 0; z-index: 3; }
@media (max-width: 759px) {
  .scene.buyers__scene { min-height: 820px; }
}
/* in one column every card stays open to its whole story (its steps still light in turn), so no card folds and
   the cards under it never jump while they are read */
@container (width < 760px) {
  .buyers__scene .tb-pre { grid-template-rows: minmax(0, 1fr) !important; }
}

/* ================= anyway: the chat learning a bakery's business from its website ================= */
.anyway__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.anyway__frame { position: relative; margin: 0; }
.anyway__pic { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: calc(var(--radius-l) * 1.4); background: var(--c-ink); box-shadow: var(--shadow-l); }
.anyway__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 62% 30%; }
.anyway__pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--c-shade), .5) 0%, rgba(var(--c-shade), 0) 50%); }
.anyway__frame > .stop { top: 14px; right: 14px; z-index: 3; }
.anyway__chat { position: absolute; z-index: 2; left: clamp(.9rem, 3%, 1.5rem); bottom: clamp(.9rem, 3%, 1.5rem); width: min(46%, 300px); display: flex; flex-direction: column; gap: .4rem; }
.ac {
  margin: 0; padding: .55rem .75rem; border: 1px solid var(--c-line-on-ink); border-radius: 14px; background: rgba(var(--c-shade), .82); color: var(--c-on-ink); font-size: .875rem; line-height: 1.35;
  box-shadow: var(--shadow-m); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px));
}
.ac--bot { align-self: flex-start; max-width: 94%; border-bottom-left-radius: 4px; }
.ac--me { align-self: flex-end; border-color: transparent; background: var(--c-paper); color: var(--c-ink); border-bottom-right-radius: 4px; font-weight: 600; }
.ac--check { display: flex; align-items: center; gap: .5rem; color: var(--c-soft-on-ink); }
.ac__spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--c-brand); border-right-color: transparent; }
.ac__chips { display: flex; gap: .35rem; margin-top: .5rem; }
.ac__chips span { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 .55rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-line-on-ink); font: 700 .875rem/1 var(--font-display); }
.ac__chips span[data-kit-on] { background: var(--c-brand); box-shadow: none; color: var(--c-on-brand); }
@media (max-width: 999px) {
  .anyway__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  /* a tall crop, her face near its top: the chat grows up from the photo's foot, over the photo, so nothing
     around it moves as it plays */
  .anyway__pic { aspect-ratio: 2 / 3; }
  .anyway__photo { object-position: 58% 50%; }
  .anyway__pic::after { background: linear-gradient(0deg, rgba(var(--c-shade), .55) 0%, rgba(var(--c-shade), 0) 60%); }
  .anyway__chat { left: .75rem; right: .75rem; bottom: .75rem; width: auto; gap: .35rem; }
  .ac { padding: .5rem .7rem; }
  .ac__chips { margin-top: .4rem; }
}

/* ================= close ================= */
.who-close__media { object-position: 60% 35%; }
