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

/* the kit's header CSS (kit\kit.md), as it is: the close band's two turns of its clip */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); } /* the kit gives the glide in whole device pixels */
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); } /* each clip reaches 1 px past its frame, so no still picture shows beside it; until it has shown its first frames, its first paint is cut 1 px inside the frame, so the first picture stays the largest paint */
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; } /* the kit marks a clip once it has shown its first frames */
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); } /* the picture that left goes once the new one covers it whole */

/* Chrome draws a card's backdrop blur over the whole clipping box: these scenes stand over a picture, so they do not clip. */
.who-hero__scene > .scene, .who-plan__scene > .scene { overflow: visible; }

/* ================= hero: the words on black, a ridge of three peaks at the right ================= */
.who-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(640px, calc(100svh - var(--header-h)), 860px); overflow: hidden; background: var(--c-paper); }
.who-hero__peaks { position: absolute; inset: 0 0 0 36%; z-index: 0; }
.who-peak { position: absolute; overflow: hidden; --on: 0; }
.who-peak video, .who-peak img.kit-first { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; filter: brightness(calc(.5 + .5 * var(--on))) saturate(calc(.7 + .3 * var(--on))); }
.who-peak--roof video, .who-peak--roof img.kit-first { object-position: 84% 0; }
.who-peak--law video { object-position: 62% 0; }
.who-peak--cafe video { object-position: 80% 0; }
.who-hero__scene { position: absolute; inset: 0; z-index: 5; }
.who-hero__peaks > .stop { top: var(--space-3); right: var(--space-3); z-index: 6; }
.who-hero__in { position: relative; z-index: 3; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.who-hero__copy { display: grid; gap: var(--space-3); max-width: min(560px, 40vw); }
.who-hero__copy h1 { font-size: var(--fs-h1); }
.who-hero__copy p:not(.cta__note) { max-width: 44ch; color: #DCDCDC; font-size: var(--fs-lead); }
.who-hero__copy .cta { margin-top: var(--space-1); }

/* ================= ridge: every trade's name drifting through the logo's A ================= */
.who-ridge { padding-block: clamp(.75rem, .5rem + .8vw, 1.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.who-ridge__scene { position: relative; height: clamp(420px, 45.5vw, 710px); } /* its eight rows of names, whole */
.who-ridge__scene > .scene { position: absolute; inset: 0; }
.who-ridge__scene > .stop { top: auto; bottom: var(--space-1); right: var(--gutter); z-index: 4; } /* in its faded foot, on no name you can read */
.who-ridge__line { position: relative; text-align: center; }
.who-ridge__line h2 { max-width: 22ch; margin-inline: auto; font-size: var(--fs-h1); }

/* ================= kinds: seven tabs beside one big photo ================= */
.who-kinds__in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: stretch; }
.who-kinds__tabs { display: flex; flex-direction: column; gap: 2px; }
.who-tab { position: relative; flex: 1 1 auto; display: grid; align-content: center; gap: .1rem; padding: .78rem 1rem .82rem; border: 0; border-left: 2px solid var(--c-line-strong); background: none; color: var(--c-ink-soft); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.who-tab:hover { background: rgb(255 255 255 / .04); }
.who-tab[aria-selected="true"] { background: var(--c-raised); }
.who-tab__name { color: var(--c-ink-soft); font-family: var(--font-ui); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1.1rem; line-height: 1.25; transition: color var(--dur-fast); }
.who-tab[aria-selected="true"] .who-tab__name { color: var(--c-ink); }
.who-tab__fields { display: none; color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.4; }
.who-tab[aria-selected="true"] .who-tab__fields { display: block; }
.who-tab__fill { position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--c-brand); transform: scaleY(0); transform-origin: top; }
.who-tab[aria-selected="true"] .who-tab__fill { transform: scaleY(var(--kit-fill, 1)); }
.who-kinds__tabs:not([data-kit-on]) .who-tab[aria-selected="true"] .who-tab__fill { transform: scaleY(1); }
.who-kinds__stage { position: relative; height: clamp(520px, 40vw, 580px); overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); }
.who-panel { position: absolute; inset: 0; }
.who-panel__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; filter: saturate(.96); }
.who-panel__card { position: absolute; bottom: var(--space-3); display: grid; justify-items: start; gap: .15rem; width: max-content; max-width: calc(100% - 2 * var(--space-3)); padding: .85rem 1.2rem .95rem; border-radius: var(--radius-m); box-shadow: var(--shadow-m); }
.who-panel__card--l { left: var(--space-3); }
.who-panel__card--r { right: var(--space-3); }
.who-panel__k { color: var(--c-ink-soft); font-family: var(--font-ui); font-weight: 600; font-size: .875rem; line-height: 1.25; }
.who-panel__card b { color: var(--c-ink); font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 1.45rem; line-height: 1.15; }
.who-panel__go { margin-top: var(--space-2); }
.who-kinds__stop { top: var(--space-2); right: var(--space-2); }
.who-kinds__stop .stop__play, .who-kinds__stop[aria-pressed="true"] .stop__pause { display: none; }
.who-kinds__stop[aria-pressed="true"] .stop__play { display: inline; }

/* ================= buyers: however their customers buy ================= */
.who-buyers__scene { position: relative; }
.who-buyers__scene > .stop { top: -56px; right: 0; }
/* in one column every card stands open, so nothing in or under the part moves as the focus walks */
@container (width < 760px) { .who-buyers__scene [data-scene="three-buyers"] .tb-pre { grid-template-rows: auto !important; } }

/* ================= plan: the free plan, for any business ================= */
.who-plan__in { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.25rem); align-items: center; }
.who-plan__frame { position: relative; height: clamp(600px, 46vw, 680px); }
.who-plan__photo { position: absolute; inset: 0; margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); }
.who-plan__photo img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 0 50%; filter: saturate(.9) brightness(.66); }
.who-plan__photo .screen { border-radius: 8.4% / 4.1%; overflow: hidden; }
.who-plan__scene { position: absolute; top: 50%; left: 12px; width: min(370px, 47%); height: 480px; transform: translateY(-50%); } /* between the frame's edge and the phone; its stamp hangs in the room it keeps at its right */
.who-plan__scene > .scene { position: absolute; inset: 0; display: grid; align-items: center; }
.who-plan__copy { display: grid; gap: var(--space-3); }
.who-plan__copy h2 { font-size: var(--fs-h2); }
.who-plan__copy > p { color: var(--c-ink-soft); font-size: var(--fs-lead); }
.who-plan__frame > .stop { top: var(--space-3); right: var(--space-3); }

/* ================= anyway: the chat reads what you run ================= */
.who-anyway .section__head { margin-bottom: clamp(1.25rem, .9rem + 1.2vw, 2rem); }
.who-anyway__frame { position: relative; height: 640px; }
.who-anyway__media { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); }
.who-anyway__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 24%; filter: saturate(.96); }
.who-anyway__frame > .stop { top: var(--space-3); right: auto; left: var(--space-3); }
.phone.who-anyway__phone { position: absolute; top: 50%; right: clamp(1.25rem, 5vw, 5rem); width: 300px; transform: translateY(-50%); }
.who-anyway__link { margin-top: var(--space-3); color: var(--c-ink-soft); font-size: var(--fs-lead); text-align: center; }
.who-anyway__link a { color: var(--c-brand-text); }

/* the phone and the chat, as on the home page */
.phone { justify-self: center; width: min(100%, 340px); aspect-ratio: 340 / 660; padding: 10px; border-radius: 46px; background: linear-gradient(160deg, #2c2c2c, #0d0d0d 42%, #1b1b1b); box-shadow: 0 0 0 1px #343434, var(--shadow-l), 0 0 90px rgb(255 153 0 / .14); }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 36px; background: #0A0A0A; }
.chat-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .7rem; padding: 1.35rem 1.1rem .9rem; border-bottom: 1px solid var(--c-line); }
.chat-head__mark { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--c-line-strong); }
.chat-head__name { font-family: var(--font-ui); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.chat-head__sub { color: var(--c-ink-soft); font-size: .8125rem; line-height: 1.3; }
.chat { flex: 1; min-height: 0; padding: 1rem .9rem 1.15rem; overflow: hidden; opacity: calc(1 - var(--kit-out, 0)); }
.chat__list { display: flex; flex-direction: column; gap: .55rem; transition: transform .5s var(--ease-out); }
.msg { flex: none; max-width: 86%; margin: 0; padding: .62rem .85rem; border-radius: 16px; font-size: .9375rem; line-height: 1.35; opacity: clamp(0, var(--kit-in, 1), 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.msg--bot { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--c-raised); color: var(--c-ink); }
.msg--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 600; }
.msg--chips { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: 100%; padding: 0; background: none; }
.msg--chips span { display: grid; place-items: center; min-width: 42px; height: 36px; padding: 0 .6rem; border: 1px solid var(--c-line-strong); border-radius: 999px; font-family: var(--font-ui); font-weight: 700; font-size: .95rem; transition: background-color .25s, border-color .25s, color .25s; }
.msg--chips span[data-kit-on] { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.msg--typing { display: flex; align-items: center; gap: 5px; background: var(--c-raised); }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: chat-dot 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--bar { display: grid; gap: .5rem; min-width: 72%; }
.msg__bar { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c-brand) calc(var(--kit-fill, 0) * 100%), var(--c-line-strong) 0); }
.msg--result { align-self: stretch; display: grid; gap: .2rem; max-width: none; padding: .95rem 1rem; border: 1px solid rgb(255 153 0 / .45); background: linear-gradient(180deg, #1C1306, #0F0F0F); }
.result__k { color: var(--c-brand-text); font-family: var(--font-ui); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.result__v { font-family: var(--font-ui); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.result__by { color: var(--c-ink-soft); font-size: .875rem; }

/* ================= close ================= */
.who-close { padding-block: clamp(20rem, 14rem + 14vw, 27rem) clamp(3.5rem, 2.5rem + 3vw, 5.5rem); } /* the words under the faces */
.who-close::before { background: linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .76) 38%, rgb(0 0 0 / .12) 60%, rgb(0 0 0 / 0) 72%); }
.who-close__slide video { object-position: 50% 0; filter: saturate(.94); }

/* ================= the phone ================= */
@media (max-width: 1100px) and (min-width: 761px) {
  .who-plan__in { grid-template-columns: minmax(0, 1fr); }
  .who-kinds__in { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .who-hero { display: block; min-height: 0; }
  .who-hero__peaks { position: relative; inset: auto; height: 370px; }
  .who-hero__scene { inset: 0; }
  .who-hero__peaks > .stop { top: var(--space-1); right: var(--space-1); }
  .who-hero__in { padding-block: var(--space-3) var(--space-5); }
  .who-hero__copy { max-width: none; }

  .who-ridge__scene { height: 420px; }

  .who-kinds__in { grid-template-columns: minmax(0, 1fr); }
  .who-kinds__tabs { flex-direction: row; gap: .4rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .who-tab { flex: none; padding: .55rem .9rem .6rem; border: 1px solid var(--c-line-strong); border-radius: 999px; }
  .who-tab[aria-selected="true"] { border-color: var(--c-brand); background: var(--c-raised); }
  .who-tab__name { font-size: .95rem; white-space: nowrap; }
  .who-tab[aria-selected="true"] .who-tab__fields, .who-tab__fill { display: none; }
  .who-kinds__stage { height: 480px; margin-inline: calc(var(--gutter) * -1); border: 0; border-radius: 0; }
  /* each photo's faces in the phone's narrow crop */
  #kind-p0 .who-panel__photo { object-position: 0 50%; }
  #kind-p1 .who-panel__photo, #kind-p2 .who-panel__photo, #kind-p3 .who-panel__photo { object-position: 100% 50%; }
  #kind-p4 .who-panel__photo { object-position: 10% 50%; }
  #kind-p5 .who-panel__photo { object-position: 46% 50%; }
  #kind-p6 .who-panel__photo { object-position: 14% 50%; }
  .who-panel__card { bottom: var(--space-2); }
  .who-panel__card--l { left: var(--gutter); }
  .who-panel__card--r { right: var(--gutter); }

  .who-buyers__scene > .stop { top: -38px; }

  .who-plan__in { grid-template-columns: minmax(0, 1fr); }
  .who-plan__frame { height: 770px; }
  .who-plan__photo { inset: 0 calc(var(--gutter) * -1) auto; height: 600px; border: 0; border-radius: 0; }
  .who-plan__photo img { object-position: 56% 50%; }
  .who-plan__scene { top: 410px; right: auto; bottom: auto; left: 50%; width: min(380px, calc(100vw - 16px)); height: 340px; transform: translateX(-50%); }
  .who-plan__scene > .scene { align-items: start; }
  .who-plan__frame > .stop { top: var(--space-2); right: 0; }

  .who-anyway__frame { height: 985px; }
  .who-anyway__media { inset: 0 calc(var(--gutter) * -1) auto; height: 720px; border: 0; border-radius: 0; }
  .who-anyway__media img { object-position: 41% 24%; }
  .phone.who-anyway__phone { top: 375px; right: auto; left: 50%; transform: translateX(-50%); }
  .who-anyway__frame > .stop { top: 325px; right: 0; left: auto; }

  .who-close { padding-block: clamp(17rem, 70vw, 22rem) clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
  .who-close__slide video { object-position: 56% 0; }
}
