/* Who we help: plan.md, "Who we help". The header is the arsenal's motif-window (its CSS imported here, its script at
   the end of #hero), with data-side="right": the window (the site's rounded square) left, the headline right, as the
   three pictures' people stand on the left of their frames. Only the site's tokens. */
@import url("../arsenal/motif-window.css");

/* ---------- #hero: the headline in the site's display weight and size; the action in a solid white card, readable on
   the paper at first and on the footage's shade at the end; the stop icon by the window, under the page header ---------- */
.who-hero .motif-window__copy { width: min(44%, 600px); }
/* each picture 1 px past the stage on every side, so no line of the paper shows at its foot or side at any scale */
.who-hero .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.who-hero .motif-window__h { font-weight: var(--w-head); font-size: clamp(40px, calc(3.4cqi + 14px), 66px); line-height: 1.04; letter-spacing: var(--track-display); }
.who-hero__act { display: grid; gap: 4px; width: min(100%, 420px); padding: 16px 18px 14px; border-radius: var(--radius-l); background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-l); }
.who-hero__act .btn { width: 100%; white-space: normal; text-align: center; }
.who-hero .who-hero__stop { top: 86px; right: auto; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
@container motif-window (width < 760px) {
  /* the copy clears the phone's call bar, which comes up once the page scrolls */
  .who-hero.motif-window[data-side="right"] .motif-window__copy { bottom: 92px; }
  .who-hero .motif-window__h { font-size: clamp(36px, calc(7cqi + 12px), 52px); }
  .who-hero__act { width: 100%; padding: 14px 14px 12px; }
  .who-hero .who-hero__stop { top: 78px; left: var(--gutter); }
}

/* ---------- #every: the designed ground (the paper, a faint grid of rounded-square slots, the sunrise light low left),
   the scene full width under a centered head ---------- */
.who-every { overflow: hidden; overflow: clip; isolation: isolate; background: radial-gradient(55% 75% at 0% 100%, color-mix(in srgb, var(--c-brand) 12%, transparent), transparent 70%), radial-gradient(36% 50% at 4% 96%, color-mix(in srgb, var(--c-accent) 15%, transparent), transparent 70%), var(--c-paper); }
.who-every::before, .who-buyers__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--c-ink) 7%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='8.5' y='8.5' width='39' height='39' rx='10' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='8.5' y='8.5' width='39' height='39' rx='10' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat; }
.who-every .section-head { margin-bottom: 76px; }
.who-every__stage { position: relative; }
.scene.who-every__scene { display: block; width: 100%; height: 440px; max-width: 430px; margin-inline: auto; }
.who-every__stop { position: absolute; top: -58px; right: var(--gutter); }
@media (min-width: 600px) { .scene.who-every__scene { height: 460px; max-width: none; } }
@media (min-width: 1100px) { .who-every .section-head { margin-bottom: 64px; } }

/* ---------- #kinds: seven choices; on a computer one big photo left that the chosen choice takes (a cross-fade), on a
   phone or a tablet a row of photo cards to swipe ---------- */
.who-kinds__list { list-style: none; margin: 0; padding: 0; }
.who-kind__link { color: inherit; text-decoration: none; }
.who-kind__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.who-kind__text { display: grid; align-content: start; gap: 6px; min-width: 0; }
.who-kind__head { display: flex; align-items: center; gap: 12px; }
.who-kind__sq { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--c-ink) 30%, transparent); background: transparent; }
.who-kind__name { font-size: clamp(20px, calc(0.5vw + 15px), 23px); line-height: 1.15; }
.who-kind__fields { margin: 0; font-size: 13px; line-height: 1.4; color: var(--c-ink-soft); }
.who-kind__line { margin: 0; font-size: 15px; line-height: 1.45; color: var(--c-ink); }
.who-kind__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--c-brand); color: var(--c-on-brand); }
.who-kind__link:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 1023.98px) {
  .who-kinds__list { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: thin; }
  .who-kind { display: grid; scroll-snap-align: start; }
  .who-kind__link { display: grid; grid-template-rows: auto 1fr; overflow: clip; border-radius: var(--radius-l); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); }
  .who-kind__pic { display: block; aspect-ratio: 4 / 3; background: var(--c-paper-alt); }
  .who-kind__text { padding: 18px 18px 20px; }
  .who-kind__sq { border: 0; background: var(--grad-sunrise); }
  .who-kind__go { display: none; }
}
@media (min-width: 1024px) {
  .who-kinds__list { position: relative; display: grid; align-content: center; gap: 2px; min-height: 620px; padding-left: calc(50% + clamp(24px, 3vw, 56px)); }
  .who-kind__text { gap: 4px; }
  .who-kind__pic { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; overflow: clip; border-radius: var(--radius-xl); background: var(--c-paper); opacity: 0; transition: opacity 700ms var(--ease-out); pointer-events: none; }
  .who-kind[data-on] .who-kind__pic { z-index: 1; opacity: 1; pointer-events: auto; }
  .who-kind__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 11px 18px; border-radius: var(--radius-l); transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
  .who-kind[data-on] .who-kind__link { background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line), 0 18px 36px -24px rgba(18, 18, 20, 0.35); }
  .who-kind__sq { transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
  .who-kind[data-on] .who-kind__sq { border-color: transparent; background: var(--grad-sunrise); }
  .who-kind__go { opacity: 0; transform: translateX(-6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
  .who-kind[data-on] .who-kind__go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .who-kind__pic, .who-kind__link, .who-kind__sq, .who-kind__go { transition: none; } }

/* ---------- #buyers: the scene on the designed ground, framed in a rounded panel ---------- */
.who-buyers__panel { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 64px 12px 16px; border-radius: var(--radius-xl);
  background: radial-gradient(50% 70% at 100% 0%, color-mix(in srgb, var(--c-brand) 12%, transparent), transparent 70%), radial-gradient(34% 46% at 96% 4%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 70%), var(--c-paper-alt);
  box-shadow: 0 0 0 1px var(--c-line); }
.scene.who-buyers__scene { display: block; width: 100%; max-width: 1100px; margin-inline: auto; min-height: 800px; }
.who-buyers__stop { position: absolute; top: 12px; right: 12px; }
/* one column (the scene under 760 px wide) grows and shrinks as its cards open: the box holds its tallest (798 px at 360,
   758 at 768, measured over the loop), so nothing under it moves; three columns from a 900 px screen */
@media (min-width: 760px) {
  .who-buyers__panel { padding: clamp(56px, 6vw, 72px) clamp(20px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px); }
  .scene.who-buyers__scene { min-height: 760px; }
  .who-buyers__stop { top: 16px; right: 16px; }
}
@media (min-width: 900px) { .scene.who-buyers__scene { min-height: 0; } }

/* ---------- #plan: the counter photo; plan-builder in glass over its cup side, straddling the photo's left edge on a
   computer, under it on a phone (the phone on the counter stays clear) ---------- */
.who-plan__stage { position: relative; display: grid; }
.who-plan__photo { margin: 0; height: max(300px, calc(min(100vw, var(--max-w)) / 1.6)); max-height: 520px; background: var(--c-paper); }
.who-plan__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 74% 55%; }
.scene.who-plan__scene { position: relative; z-index: 2; width: min(420px, calc(100% - 24px)); height: 640px; margin: -72px auto 0; }
/* the phone: the stop icon on the photo just above the scene, so the two fit in one view between the bars */
.who-plan .part-stop { top: auto; bottom: 84px; right: 14px; }
@media (min-width: 700px) {
  .scene.who-plan__scene { width: min(720px, calc(100% - 24px)); height: 560px; }
  .who-plan .part-stop { top: 14px; bottom: auto; }
}
@media (min-width: 1100px) {
  .who-plan__head { max-width: 40rem; }
  .who-plan__stage { height: clamp(560px, 46vw, 640px); }
  .who-plan__photo { position: absolute; right: 0; top: 0; bottom: 0; width: 70%; height: auto; max-height: none; }
  .who-plan__img { object-position: 64% 50%; }
  .scene.who-plan__scene { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: clamp(600px, 50%, 660px); height: 540px; margin: 0; }
}

/* ---------- #anyway: the groomer's photo, the chat's first moments in glass by its plain blue wall ---------- */
.who-any__stage { position: relative; display: grid; }
.who-any__photo { margin: 0; height: max(360px, calc(min(100vw, var(--max-w)) / 1.6)); max-height: 560px; background: var(--c-paper-alt); }
.who-any__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 40% 30%; }
.who-chat { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(360px, calc(100% - 24px)); height: 360px; margin: -64px auto 0; overflow: hidden; border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--c-white) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--c-white) 64%, transparent); box-shadow: var(--shadow-l); font-family: var(--font-ui); color: var(--c-ink); }
.who-chat__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent); font-size: 15px; }
.who-chat__bar b { font-weight: 600; }
.who-chat__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--grad-sunrise); }
.who-chat__mark svg { width: 13px; height: 13px; fill: var(--c-white); }
.who-chat__time { margin-left: auto; font-size: 13px; color: var(--c-ink-soft); white-space: nowrap; }
/* the chat runs from the top, as a chat just opened does (its whole story fits the card) */
.who-chat__log { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px; overflow: hidden; }
.who-msg { margin: 0; max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.who-chat [data-kit-msg]:not(:first-child) { opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); }
.who-msg--bot { align-self: flex-start; background: var(--c-paper-alt); border-bottom-left-radius: 6px; }
.who-msg--me { align-self: flex-end; background: var(--c-ink); color: var(--c-paper); border-bottom-right-radius: 6px; }
.who-msg--chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: none; padding: 0; }
.who-msg--chips span { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--c-ink) 22%, transparent); background: var(--c-white); font-weight: 600; }
.who-msg--chips span[data-kit-on] { border-color: transparent; background: var(--grad-sunrise); color: var(--c-ink); }
.who-msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--c-paper-alt); border-bottom-left-radius: 6px; }
.who-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: who-dot 1s infinite var(--ease-in-out); }
.who-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.who-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes who-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
.who-msg--go { align-self: flex-start; max-width: none; padding: 0; }
.who-chat__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-ink); font-size: 14px; font-weight: 600; }
.who-chat__btn[data-kit-on] { background: var(--c-ink); color: var(--c-paper); }
.who-any__cta { display: grid; justify-items: center; margin-top: var(--space-6); text-align: center; }
@media (prefers-reduced-motion: reduce) { .who-msg--typing i { animation: none; } }
@media (min-width: 1100px) {
  .who-any__stage { width: min(1080px, 100%); margin-inline: auto; }
  .who-any__photo { width: calc(100% - 190px); height: auto; max-height: none; aspect-ratio: 16 / 10; }
  .who-any__img { object-position: 50% 30%; }
  .who-chat { position: absolute; right: 0; top: 50%; translate: 0 -40%; width: 360px; margin: 0; }
}

/* ---------- #close: her (the owner, with the tablet) on a phone, both of them on a computer ---------- */
.who-close .close-frame__media > video { object-position: 74% 30%; }
@media (min-width: 760px) { .who-close .close-frame__media > video { object-position: 50% 26%; } }
