/* who-we-help.css: the Who we help page's own placing and sizing (plan.md, Who we help), with design\system.css's
   tokens, design\components.css's components and parts.css's shared patterns. The header is the arsenal's
   motif-window as it stands; only its stop icon and its action box are placed here. */
@import url("../arsenal/motif-window.css");
@import url("parts.css");

/* ---------- hero: the motif-window ---------- */
/* the stage stands under the sticky header (76 px, 64 px below 1080 px), so on a phone the headline and its button fit
   the first screen (at its full 100svh the button sat under the fold) */
.motif-window__stage { top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); }
@media (max-width: 1079px) { .motif-window__stage { top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); } }
.wwh-hero__stop { top: 16px; right: var(--gutter); }
/* the clip 1 px past its window on every side, so no line of the cream shows at its edge at any width (kit.md, Video) */
.motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.motif-window__act .cta-row { margin-top: 0; }
/* the button's line sits under the button as text of the copy, so the window draws it twice like the headline: in ink
   on the paper, light inside the shape over the footage's shade; it reads at every moment of the scroll (the action box
   is drawn once, on top, in its paper colors). Without the script it rests on the end state, light on the shade. */
.wwh-hero__note { margin: 14px 0 0; color: var(--mw-on); }
.motif-window[data-ready] .motif-window__copy .wwh-hero__note { color: var(--c-ink-soft); }
.motif-window[data-ready] .motif-window__view .wwh-hero__note {
  color: var(--mw-on);
  text-shadow: 0 1px 14px color-mix(in srgb, var(--mw-shade) 55%, transparent);
}

/* ---------- every: the signature, on the pastel aqua ground ---------- */
main > .every { padding-block: clamp(4.5rem, 3rem + 4vw, 7rem); }
.every__head { margin-bottom: var(--space-6); }
.every__stage { position: relative; }
.every__stop { top: -6px; right: 0; }

/* ---------- kinds: the six kinds and many more, the words beside them ---------- */
.kinds__in { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.kinds__head { position: sticky; top: 112px; margin-bottom: 0; }
.kinds__head .cta-row { margin-top: var(--space-3); }
.kinds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.kinds__more { grid-column: 1 / -1; }
.kind .tile__media { aspect-ratio: 16 / 10; }
.kind .tile__photo { object-position: var(--pos, 50% 50%); }
.kind__means { display: block; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 2px dashed var(--c-line); font: 700 0.98rem/1.35 var(--font-ui); color: var(--c-ink); }
.kind__label { color: var(--c-brand-text); }
.kinds__more .tile--more .tile__body { padding: 1.4rem 1.5rem; }
@media (max-width: 960px) {
  .kinds__in { grid-template-columns: minmax(0, 1fr); }
  .kinds__head { position: static; }
}
@media (max-width: 560px) { .kinds__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* ---------- buyers: three ways customers choose, on the sage ground ---------- */
main > .buyers { padding-block: clamp(4.5rem, 3rem + 4vw, 7rem); }
.buyers__stage { position: relative; }
.buyers__scene { min-height: 460px; }
.buyers__stop { top: -54px; right: 0; }

/* ---------- plan: the free plan over the general shot (the words above, the builder over the frame's left edge) ---------- */
.wplan__grid { display: grid; gap: var(--space-6); }
.wplan__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-6); align-items: end; }
.wplan__copy h2 { max-width: 34rem; }
.wplan__line { grid-column: 1; max-width: 36rem; font-size: calc(var(--fs-body) * 1.12); color: var(--c-ink-soft); }
.wplan__copy .cta-row { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.wplan__stage { position: relative; min-height: 600px; display: grid; align-items: center; }
.wplan__frame { width: 60%; margin: 0 0 0 auto; aspect-ratio: 16 / 11; }
.wplan__frame .frame__media { object-position: 60% 62%; }
.wplan__builder { position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%); width: min(660px, 54%); }
.wplan__scene { height: 560px; }
.wplan__stop { top: 10px; right: 10px; }
@media (max-width: 1100px) {
  .wplan__builder { width: 600px; }
}
@media (max-width: 960px) {
  .wplan__copy { grid-template-columns: minmax(0, 1fr); }
  .wplan__copy .cta-row { grid-column: 1; grid-row: auto; }
  .wplan__stage { min-height: 0; display: block; }
  .wplan__frame { width: 100%; aspect-ratio: 16 / 9; }
  .wplan__builder { position: relative; left: auto; top: auto; transform: none; width: auto; margin-top: -72px; }
}
@media (max-width: 599px) { .wplan__scene { height: 700px; } }

/* ---------- anyway: the chat over a dog groomer at work ---------- */
.anyway__stage { margin: 0 auto; max-width: 1000px; aspect-ratio: 16 / 9.6; }
.anyway__stage .frame__media { object-position: 50% 35%; }
.anyway__chat {
  position: absolute; z-index: 2; right: 3.5%; bottom: 5%; width: min(340px, 40%); max-height: 64%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.anyway__chat > * { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.bubble { box-sizing: border-box; max-width: 92%; margin: 0; padding: 0.65rem 0.9rem; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); font: 600 0.95rem/1.35 var(--font-ui); }
.bubble--them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--me { align-self: flex-end; min-width: 3rem; text-align: center; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 4px; font-family: var(--font-display); font-weight: 800; }
.bubble--typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 0.8rem 0.95rem; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); }
.bubble--plan { align-self: stretch; max-width: none; display: grid; gap: 0.15rem; background: var(--c-brand-light); }
.bubble--plan b { font: 800 1.05rem/1.2 var(--font-display); }
.bubble--plan span { font: 600 0.9rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.anyway__choices { display: flex; gap: 0.4rem; margin: 0; }
.anyway__choices span { display: grid; place-items: center; min-width: 2.6rem; height: 2.2rem; padding: 0 0.6rem; border-radius: var(--radius-s); background: var(--c-paper); box-shadow: 0 0 0 2px var(--c-ink); font: 800 1rem/1 var(--font-display); }
.anyway__choices [data-kit-pick][data-kit-on] { background: var(--c-brand); color: var(--c-on-brand); }
.anyway__stop { top: 12px; right: 12px; }
.anyway .cta-row { margin-top: var(--space-6); }
@media (max-width: 760px) {
  .anyway__stage { aspect-ratio: 3 / 4.4; }
  .anyway__stage .frame__media { object-position: 45% 20%; }
  .anyway__chat { left: 4%; right: 4%; width: auto; max-height: 58%; }
}
