/* who-we-help.css: the Who we help page (design\components.md; the tokens of system.css only). Parts: hero (motif-window as
   it stands), wall, who, buyers, plan, anyway, close. */
@import url("../arsenal/motif-window.css");

/* =================== hero: footage through the red arrow =================== */
.whp-hero__stop { top: 92px; right: 22px; z-index: 4; }
.motif-window .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
#hero .motif-window__act .cta { justify-items: start; }
#hero .motif-window__view .motif-window__act { visibility: hidden; }

/* =================== wall: every kind of business, one ribbon =================== */
.wall { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: grid; place-items: center; background: radial-gradient(40% 60% at 12% 92%, color-mix(in srgb, var(--c-red) 26%, transparent), transparent 72%), radial-gradient(46% 70% at 90% 8%, color-mix(in srgb, var(--c-brand-light) 36%, transparent), transparent 72%), var(--c-night); }
.wall__stop { top: 22px; right: 22px; z-index: 3; }
.wall .wall__scene { grid-area: 1 / 1; height: clamp(480px, 44.4vw, 640px); }
.wall__card { grid-area: 1 / 1; z-index: 2; width: min(620px, 74vw); margin: 0; padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 46px); border-radius: var(--radius-l); background: var(--c-brand); box-shadow: 0 0 56px 30px color-mix(in srgb, var(--c-night) 92%, transparent), var(--shadow-l), inset 0 0 0 1.5px color-mix(in srgb, var(--c-on-ink) 16%, transparent); color: var(--c-on-ink); text-align: center; font: 900 clamp(30px, 3.4vw, 50px)/1.08 var(--font-display); font-stretch: var(--wide); letter-spacing: -.02em; text-wrap: balance; }
.wall__card .gold { display: block; }

/* =================== who: the kinds, one big photo =================== */
.who { background: var(--c-ink); }
.who__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 3vw, 44px); align-items: stretch; }
.who__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.who__tabs { display: grid; gap: 7px; }
.who__tab { position: relative; display: grid; gap: 3px; width: 100%; padding: 12px 16px 13px; overflow: hidden; border: 0; border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-on-ink) 7%, transparent); color: var(--c-on-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-fast) linear; }
.who__tab:hover { background: color-mix(in srgb, var(--c-brand) 45%, transparent); }
.who__tab[aria-selected="true"] { background: var(--c-brand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-on-ink) 18%, transparent), var(--shadow-glow); }
.who__tab:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.who__name { font: 820 clamp(17px, 1.4vw, 20px)/1.2 var(--font-display); font-stretch: var(--wide-ui); }
.who__fields { display: none; color: var(--c-accent); font: 600 clamp(15px, 1.1vw, 16px)/1.35 var(--font-text); }
.who__tab[aria-selected="true"] .who__fields { display: block; }
.who__fill { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-accent); }
.who__tab[aria-selected="false"] .who__fill { visibility: hidden; }
.who__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 640px; }
.who__stop { top: 16px; right: 16px; z-index: 3; }
.who__panel { position: relative; grid-area: 1 / 1; isolation: isolate; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); outline-offset: 3px; }
.who__panel[hidden] { display: none; }
.who__media { z-index: -2; animation: who-in .5s var(--ease-out) both; }
.who__media img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.who__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 42%, transparent) 0%, transparent 34%); }
.who__card { position: absolute; bottom: 24px; animation: who-card .5s .15s var(--ease-out) both; }
@keyframes who-in { from { opacity: .35; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes who-card { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .who__media, .who__card { animation: none; } }
.who__panel--home .who__media { --pos: 22% 40%; }
.who__panel--home .who__card { right: 24px; }
.who__panel--outdoor .who__media { --pos: 50% 60%; }
.who__panel--outdoor .who__card { right: 24px; }
.who__panel--law .who__media { --pos: 82% 30%; }
.who__panel--law .who__card { left: 24px; }
.who__panel--health .who__media { --pos: 20% 30%; }
.who__panel--health .who__card { right: 24px; }
.who__panel--real .who__media { --pos: 72% 30%; }
.who__panel--real .who__card { left: 24px; }
.who__panel--events .who__media { --pos: 50% 40%; }
.who__panel--events .who__card { left: 24px; bottom: auto; top: 24px; }
.who__panel--more .who__media { --pos: 56% 30%; }
.who__panel--more .who__card { left: 24px; }

/* =================== buyers: how their customers buy, on the designed ground =================== */
.buyers { position: relative; overflow: hidden; overflow: clip; background: radial-gradient(50% 60% at 50% 104%, color-mix(in srgb, var(--c-red) 24%, transparent), transparent 72%), radial-gradient(50% 60% at 88% 0%, color-mix(in srgb, var(--c-brand-light) 32%, transparent), transparent 72%), var(--c-night); }
.buyers__field { position: absolute; left: -12vw; bottom: -14vw; width: 74vw; opacity: .07; pointer-events: none; }
.buyers .wrap { position: relative; }
.buyers__head { margin-inline: auto; text-align: center; }
.buyers__head .sec-line { margin-inline: auto; }
.buyers__head .gold { display: block; }
.buyers__stage { position: relative; }
.buyers__stop { top: -48px; right: 0; }
.buyers__stage .buyers__scene { background: none; overflow: visible; min-height: 500px; }

/* =================== plan: the words at the left, the sheet on the photo's clear side =================== */
.plan { background: var(--c-ink); overflow: hidden; overflow: clip; }
.plan__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.plan__copy .sec-head { margin-bottom: 26px; }
.plan__frame { position: relative; min-height: 620px; border-radius: var(--radius-l); box-shadow: var(--shadow-l); background: var(--c-night); }
.plan__media { border-radius: inherit; --pos: 78% 40%; }
.plan__media img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.plan__stop { top: 18px; right: 18px; z-index: 3; }
.plan__frame .plan__scene { position: absolute; left: -46px; bottom: 34px; width: min(60%, 440px); overflow: visible; }

/* =================== anyway: the chat in our own phone, on the photo's clear side =================== */
.anyway { background: var(--c-ink); padding-top: 0; }
.anyway__head { margin-inline: auto; text-align: center; }
.anyway__head .sec-line { margin-inline: auto; }
.anyway__frame { position: relative; display: grid; justify-items: end; margin-block: 44px 0; padding-right: clamp(30px, 8%, 120px); border-radius: var(--radius-l); box-shadow: var(--shadow-l); background: var(--c-night); }
.anyway__media { border-radius: inherit; --pos: 34% 50%; }
.anyway__media img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.anyway__phone { position: relative; z-index: 1; margin-block: -30px; }
.anyway__stop { top: 40px; left: -58px; }
.anyway__cta { margin-top: 66px; }
/* the phone and its chat (the kit's chat), as on the home page */
.phone { position: relative; width: 322px; height: 660px; padding: 11px; border-radius: 48px; background: var(--c-phone); box-shadow: 0 0 0 2px var(--c-phone-edge), 0 44px 90px -34px rgba(0, 0, 0, .95), 0 0 110px -30px var(--c-glow-blue); }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; z-index: 3; width: 92px; height: 24px; border-radius: 14px; background: var(--c-phone); transform: translateX(-50%); }
.phone__bar { display: flex; align-items: center; gap: 10px; height: 98px; padding: 44px 18px 12px; border-radius: 38px 38px 0 0; background: var(--c-paper); box-shadow: inset 0 -1px 0 var(--c-line); }
.phone__bar img { width: 36px; height: 36px; padding: 5px; border-radius: 11px; background: var(--c-ink); }
.phone__bar b { display: block; font: 800 15px/1.15 var(--font-display); font-stretch: var(--wide-ui); color: var(--c-ink); }
.phone__bar span span { display: block; font: 500 13px/1.3 var(--font-text); color: var(--c-ink-soft); }
.phone__chat { display: flex; flex-direction: column; justify-content: flex-start; gap: 7px; height: calc(100% - 98px); padding: 12px 12px 14px; overflow: hidden; border-radius: 0 0 38px 38px; background: #F2F2FC; }
.msg { margin: 0; max-width: 86%; padding: 10px 13px; border-radius: 16px; font: 500 14.5px/1.4 var(--font-text); color: var(--c-ink); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.msg--in { align-self: flex-start; background: var(--c-paper); border-bottom-left-radius: 6px; box-shadow: 0 2px 8px color-mix(in srgb, var(--c-ink) 8%, transparent); }
.msg--out { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 6px; font-weight: 600; }
.msg--chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 0; background: none; }
.msg--chips span { padding: 8px 13px; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 800 14px/1 var(--font-display); font-stretch: var(--wide-ui); color: var(--c-ink); transition: background-color .25s linear, box-shadow .25s linear; }
.msg--chips span[data-kit-on] { background: var(--c-accent); box-shadow: inset 0 0 0 1.5px var(--c-accent); color: var(--c-on-gold); }
.msg--typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: any-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 any-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--check { display: grid; gap: 8px; font-weight: 600; }
.msg__bar { display: block; height: 6px; border-radius: 6px; background: var(--c-line); overflow: hidden; }
.msg__bar [data-kit-bar] { display: block; height: 100%; width: calc(var(--kit-fill, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--c-brand), var(--c-brand-light)); }
.msg--card { display: grid; gap: 2px; width: 100%; max-width: 100%; padding: 14px 14px 12px; background: var(--c-ink); color: var(--c-on-ink); }
.msg__k { font: 600 13px/1.35 var(--font-text); color: var(--c-soft-on-ink); }
.msg__big { font: 900 21px/1.1 var(--font-display); font-stretch: var(--wide-ui); color: var(--c-accent); }
.msg__bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 8px; }
.msg__bars i { flex: 1; height: calc(var(--v) * 100%); min-height: 4px; border-radius: 3px 3px 2px 2px; background: linear-gradient(180deg, var(--c-brand-light), var(--c-brand)); }
.msg__bars i.setup { background: color-mix(in srgb, var(--c-on-ink) 22%, transparent); height: 6px; }

/* =================== close =================== */
.whp-close .band__media { --pos: 70% 30%; }
.whp-close .pclose__title { max-width: 15ch; }
.whp-close .pclose__card { left: 44%; bottom: clamp(36px, 5vw, 74px); }

/* =================== narrower =================== */
@media (max-width: 1080px) {
  .who__in { grid-template-columns: minmax(0, 1fr); }
  .who__stage { order: -1; min-height: 520px; }
  .who__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan__in { grid-template-columns: minmax(0, 1fr); }
  .plan__frame .plan__scene { left: 24px; }
}
@media (max-width: 760px) {
  .wall .wall__scene { height: 640px; }
  .wall__card { width: min(100% - 2 * var(--gutter), 340px); }
  .wall__stop { top: 12px; right: 12px; }
  .who__tabs { display: flex; flex-wrap: wrap; }
  .who__tab { flex: 0 1 auto; width: auto; padding: 9px 13px; }
  .who__name { font-size: 15px; }
  .who__fields { display: none; }
  .who__tab[aria-selected="true"] .who__fields { display: none; }
  .who__stage { order: 0; min-height: 440px; }
  .who__side { order: -1; }
  .who__side .cta { order: 2; }
  .who__in { gap: 18px; }
  .who__card { left: 12px; right: 12px; bottom: 12px; top: auto; }
  .who__panel--home .who__card, .who__panel--outdoor .who__card, .who__panel--law .who__card, .who__panel--health .who__card, .who__panel--real .who__card, .who__panel--events .who__card, .who__panel--more .who__card { left: 12px; right: 12px; top: auto; bottom: 12px; }
  .buyers__stop { top: -44px; }
  .buyers__stage .buyers__scene { min-height: 800px; }
  /* the photo band, the sheet over its foot, the words under them */
  .plan__frame { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; background: none; box-shadow: none; }
  .plan__media { position: relative; inset: auto; grid-area: 1 / 1; height: 520px; border-radius: var(--radius-l); overflow: hidden; --pos: 72% 0%; }
  .plan__frame .plan__scene { position: relative; left: auto; bottom: auto; grid-area: 1 / 1; z-index: 1; width: min(100% - 48px, 420px); justify-self: start; margin: 250px 0 44px 8px; }
  .plan__frame .plan__scene .es-paper { padding-bottom: 44px; }
  .plan__copy { order: 2; }
  /* the photo band, the phone over its foot */
  .anyway__frame { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0; background: none; box-shadow: none; margin-top: 30px; }
  .anyway__media { position: relative; inset: auto; grid-area: 1 / 1; justify-self: stretch; height: 620px; border-radius: var(--radius-l); overflow: hidden; --pos: 39% 0%; }
  .anyway__media img { height: 130%; top: -28%; }
  .anyway__phone { grid-area: 1 / 1; margin: 240px 0 0; }
  .anyway__stop { top: -52px; left: auto; right: 0; }
  .anyway__cta { margin-top: 30px; }
  /* the clip over the upper part only, so both faces show above the card and the words */
  .whp-close .band__media { bottom: 34%; --pos: 76% 16%; -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent); }
  .whp-close .pclose__shade { background: linear-gradient(180deg, var(--c-ink) 0, transparent 40px, transparent 170px, color-mix(in srgb, var(--c-ink) 88%, transparent) 270px, color-mix(in srgb, var(--c-ink) 92%, transparent) 100%); }
  .whp-close .pclose__card { position: relative; left: auto; bottom: auto; margin: 0 auto 22px; }
  .whp-close { display: flex; flex-direction: column; align-items: center; }
  .pclose.whp-close { padding-top: 250px; }
}
@media (max-width: 400px) { .phone { width: 300px; height: 670px; } }
