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

/* ================= hero: three businesses side by side, split by lime wires ================= */
.who-hero { position: relative; overflow: hidden; display: grid; background: var(--c-ink); color: var(--c-on-ink); }
.who-hero__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: clamp(640px, calc(100svh - 72px), 840px); }
.who-hero__clip { position: relative; overflow: hidden; margin: 0; }
.who-hero__clip + .who-hero__clip { border-left: 4px solid var(--c-accent); }
.who-hero__clip :is(video, img.kit-first) { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.who-hero__clip--mechanic :is(video, img) { object-position: 34% 50%; }
.who-hero__clip--cafe :is(video, img) { object-position: 60% 50%; }
.who-hero__clip--lawyer :is(video, img) { object-position: 63% 50%; }
.who-hero__card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; width: min(310px, calc(100% - 28px)); padding: 12px 16px 12px 12px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 16px)); }
.who-hero__clip--mechanic .who-hero__card { left: 18px; top: 24px; }
.who-hero__clip--cafe .who-hero__card { right: 14px; bottom: 26px; width: min(280px, calc(100% - 28px)); }
.who-hero__clip--lawyer .who-hero__card { left: 18px; bottom: 26px; }
.who-hero__tick { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--c-ink); color: var(--c-accent); }
.who-hero__tick .icon-tick { width: 20px; height: 20px; }
.who-hero__text { display: grid; gap: 1px; min-width: 0; }
.who-hero__text b { font: 800 1.05rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.who-hero__text span { font-size: .93rem; line-height: 1.25; color: var(--c-ink-soft); }
.who-hero__panel { position: absolute; z-index: 3; left: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); bottom: 32px; width: min(560px, 38vw); padding: 26px 28px 24px; border: 2px solid var(--c-accent); border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-pop-brand); }
.who-hero__title { margin: 0 0 12px; font-size: min(3.5rem, 4.1vw); line-height: 1.03; letter-spacing: -0.025em; }
.who-hero__title em { font-style: normal; color: var(--c-accent); }
.who-hero__line { margin: 0 0 18px; font-size: 1.14rem; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.who-hero__panel .cta-note { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.who-hero__panel .cta-note .icon-tick { background: var(--c-accent); color: var(--c-on-accent); }
.who-hero__panel :focus-visible { outline-color: var(--c-accent); }
.who-hero__stop { top: 16px; right: 16px; }
@media (max-width: 1099px) { .who-hero__clip--cafe .who-hero__card { display: none; } }
@media (max-width: 899px) {
  .who-hero__strip { min-height: 0; height: 56vw; min-height: 240px; }
  .who-hero__card { display: none; }
  .who-hero__panel { position: static; width: auto; margin: 0; padding: 26px var(--gutter) 34px; border: 0; border-top: 4px solid var(--c-accent); border-radius: 0; box-shadow: none; }
  .who-hero__title { font-size: min(2.9rem, 10.6vw); }
}

/* ================= wall: every kind of business on one wire ================= */
.wall__stage, .buyers__stage { position: relative; }
.wall__stop, .buyers__stop { top: 4px; right: 4px; z-index: 2; }
.wall__head { margin-bottom: clamp(24px, 3.4vw, 44px); }

/* ================= kinds: the reel ================= */
.kinds { padding-right: 0; overflow: hidden; }
.kinds__in { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: calc(var(--max-w) + (100vw - var(--max-w)) / 2); margin-left: max(0px, calc((100vw - var(--max-w)) / 2 - var(--gutter))); }
.kinds__head { position: sticky; top: 100px; margin: 0; }
.kinds__arrows { display: flex; gap: 10px; margin-top: 22px; }
.kinds__arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--c-ink); border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.kinds__arrow:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--c-ink); background: var(--c-accent); }
.kinds__arrow--back .icon-arrow { transform: rotate(180deg); }
.kinds__reel { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 18px; margin: 0; padding: 4px 28px 14px 2px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--c-brand) transparent; }
.kinds__reel:focus-visible { outline-offset: 2px; }
.kinds__item { scroll-snap-align: start; }
.kinds__card { display: grid; grid-template-rows: 280px 1fr; height: 100%; min-height: 540px; overflow: hidden; border: 2px solid var(--c-ink); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); text-decoration: none; box-shadow: 4px 4px 0 var(--c-ink); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.kinds__card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-brand); }
.kinds__pic { position: relative; overflow: hidden; border-bottom: 2px solid var(--c-ink); }
.kinds__pic img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.kinds__words { display: grid; align-content: start; gap: 8px; padding: 18px 18px 20px; }
.kinds__words b { font: 800 1.34rem/1.14 var(--font-display); letter-spacing: -0.01em; }
.kinds__fields { font-size: .98rem; line-height: 1.32; color: var(--c-ink-soft); }
.kinds__line { font: 700 1.08rem/1.28 var(--font-ui); color: var(--c-brand-text); }
.kinds__card--more { grid-template-rows: 1fr; align-items: end; background: var(--c-brand); color: var(--c-on-brand); }
.kinds__card--more .kinds__words b { font-size: 2.1rem; line-height: 1.04; }
.kinds__card--more .kinds__line { color: var(--c-on-brand); }
.kinds__go { display: inline-flex; align-items: center; gap: .5em; margin-top: 10px; font: 800 1.05rem/1.2 var(--font-ui); color: var(--c-accent); }
@media (max-width: 899px) {
  .kinds__in { grid-template-columns: 1fr; gap: 20px; margin-left: 0; }
  .kinds__head { position: static; padding-right: var(--gutter); }
  .kinds__arrows { display: none; }
  .kinds__reel { grid-auto-columns: min(280px, 78vw); padding-right: var(--gutter); }
  .kinds__card { min-height: 500px; grid-template-rows: 250px 1fr; }
}

/* ================= buyers: however they buy ================= */
.buyers__head { margin-bottom: clamp(24px, 3vw, 40px); }
.buyers__board { height: 480px; }
/* on the phone the cards open in turn: the part keeps the height of its tallest moment, so the words under it never move */
@media (max-width: 759px) { .buyers__stage .buyers__board { height: auto; min-height: 800px; } }

/* ================= plan: the same free plan, built around your business ================= */
.who-plan__grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.who-plan__words { margin: 0; }
.who-plan__stage { position: relative; }
.who-plan__media { aspect-ratio: 1.38; }
.who-plan__stage .who-plan__builder { position: absolute; left: -32px; top: 50%; width: 600px; height: 612px; margin-top: -306px; overflow: visible; }
.who-plan__stop { top: 14px; right: 14px; }
@media (max-width: 1099px) {
  .who-plan__grid { grid-template-columns: 1fr; gap: 24px; }
  .who-plan__stage .who-plan__builder { left: 16px; }
}
@media (max-width: 759px) {
  /* on the phone the builder stands on the photo's foot, the coffee clear above it */
  .who-plan__media { aspect-ratio: auto; height: 560px; }
  .who-plan__media img { object-position: 100% 0; }
  .who-plan__stage .who-plan__builder { position: relative; left: auto; top: auto; width: 100%; height: 700px; margin: -364px 0 0; }
  .who-plan__stop { top: 206px; right: 10px; z-index: 2; }
}

/* ================= anyway: a way in for everyone else ================= */
.anyway__head { margin-bottom: clamp(22px, 3vw, 36px); }
.anyway__stage { position: relative; max-width: 1080px; margin-inline: auto; }
.anyway__media { aspect-ratio: 2.1; }
.anyway__media img { object-position: 50% 26%; }
.anyway__chat { position: absolute; left: 8%; top: 50%; width: 380px; min-height: 256px; margin-top: -128px; padding: 18px; background: var(--c-paper-alt); }
.anyway__log { display: flex; flex-direction: column; gap: 10px; color: var(--c-ink); opacity: calc(1 - var(--kit-out, 0)); }
.anyway__stop { top: 14px; right: 14px; }
.anyway__cta { margin-top: 28px; }
.anyway__cta .cta-row { justify-content: center; }
.msg { align-self: flex-start; max-width: 86%; margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--c-paper); box-shadow: var(--shadow-s); font: 600 1.08rem/1.32 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.msg--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; }
.msg--typing { display: flex; gap: 5px; padding: 15px 17px; }
.msg--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink-soft); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; } }
@media (max-width: 759px) {
  .anyway__media { aspect-ratio: .94; }
  .anyway__media img { object-position: 74% 20%; }
  .anyway__chat { position: relative; left: auto; top: auto; width: min(100%, 360px); margin: -150px auto 0; }
}

/* ================= close: the mirror of the home page's: the picker, then the words ================= */
.who-close { min-height: 640px; display: grid; align-items: center; }
.who-close__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.who-close__words { margin: 0; justify-self: end; max-width: 440px; }
.who-close__shade { background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 66%, transparent) 30%, transparent 56%); }
@media (max-width: 899px) {
  .who-close { min-height: 0; padding-top: 58vw; }
  .who-close .band__clip { bottom: auto; height: 66vw; }
  .who-close__grid { grid-template-columns: 1fr; }
  .who-close__words { justify-self: start; order: -1; }
  .who-close__shade { background: linear-gradient(180deg, transparent 0, transparent 40vw, var(--c-ink) 66vw); }
}
