/* who-we-help.css: the Who we help page, with the tokens of system.css. */

/* ---------- #hero: the words on the navy, three businesses in staggered frames joined by one copper orbit ---------- */
.whero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); background: radial-gradient(60% 80% at 78% 50%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 70%), var(--c-navy-deep); color: var(--c-on-ink); }
.whero__in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; min-height: clamp(560px, calc(100svh - 76px - 12rem), 680px); }
.whero__title { font: 650 var(--fs-h1)/1.05 var(--font-display); letter-spacing: -.015em; color: var(--c-on-ink); text-wrap: balance; }
.whero__title em { font-style: italic; color: var(--c-accent-on-ink); }
.whero__line { margin-top: var(--space-4); max-width: 44ch; font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.6; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.whero .cta-row { margin-top: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.whero .cta-note { color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.whero .cta-note svg { color: var(--c-accent-on-ink); }
.whero__stage { position: relative; height: clamp(520px, 44vw, 600px); }
.whero__ring { position: absolute; z-index: 0; left: -6%; top: 14%; width: 112%; height: 74%; transform: rotate(-8deg); }
.whero__ring path { stroke-width: 3px; }
.whero__frame { position: absolute; z-index: 1; margin: 0; box-shadow: 0 24px 60px color-mix(in srgb, #000 38%, transparent); }
.whero__frame--florist { left: 0; top: 4%; width: 36%; height: 60%; }
.whero__frame--law { left: 32%; top: 36%; width: 34%; height: 56%; }
.whero__frame--roof { right: 0; top: 0; width: 32%; height: 58%; }
.whero__img--florist { object-position: 88% 100%; transform: scale(1.32); transform-origin: 86% 100%; }   /* the shop's sign stays out of the frame */
.whero__img--law { object-position: 66% 35%; }
.whero__img--roof { object-position: 62% 40%; }
/* the booking cards: the first one stays (the hold), each lands on its own business */
.whero__seq { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.whero__card { position: absolute; display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(300px, 70%); padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 18px 40px color-mix(in srgb, #000 34%, transparent); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)) scale(calc(.94 + .06 * var(--kit-in, 1))); }
.whero__card b { display: block; font: 700 .95rem/1.25 var(--font-ui); }
.whero__card small { display: block; margin-top: 2px; font: 500 .88rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
.whero__card .whero__from { color: var(--c-accent-text); font-weight: 600; }
.whero__ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--c-accent); color: var(--c-on-brand); }
.whero__ico svg { width: 20px; height: 20px; }
.whero__card--florist { left: 8%; top: 58%; }
.whero__card--law { left: 40%; bottom: 0; }
.whero__card--roof { right: 2%; top: 52%; }
.whero .stop--hero { top: 18px; right: 18px; }

/* ---------- #breadth: the signature on the navy ---------- */
.wbreadth { padding-block: var(--section-y) clamp(2rem, 1rem + 3vw, 4rem); }
.wbreadth__title { text-align: center; color: var(--c-on-ink); }
.wbreadth__stage { position: relative; height: clamp(460px, 38vw, 540px); margin-top: var(--space-5); }
.scene.wbreadth__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.wbreadth__stage .stop { top: 0; right: var(--gutter); bottom: auto; }

/* ---------- #kinds: six kinds, two by two ---------- */
.wkinds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 2.4vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 3rem); margin: 0; padding: 0; list-style: none; }
.wkind { display: grid; gap: var(--space-4); }
.wkind__frame { aspect-ratio: 16 / 10; margin: 0; }
.wkind__name { font: 650 clamp(1.4rem, 1.1rem + .9vw, 1.8rem)/1.15 var(--font-display); color: var(--c-ink); }
.wkind__fields { margin-top: var(--space-2); font: 500 .98rem/1.5 var(--font-ui); color: var(--c-ink-soft); }
.wkind__brings { margin-top: var(--space-3); font: 500 1.06rem/1.5 var(--font-ui); color: var(--c-ink); }
.wkind__brings span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-weight: 700; color: var(--c-accent-text); }
.wkind__brings svg { width: 16px; height: 16px; color: var(--c-accent); }
.wkinds__more { margin-top: clamp(2rem, 1rem + 2vw, 3rem); padding: 18px 22px; border-radius: var(--radius-l); background: var(--c-paper-alt); font: 500 1.02rem/1.5 var(--font-ui); color: var(--c-ink); }
.wkinds__more .link-arrow { margin-left: 6px; }

/* ---------- #buyers: three-buyers on the designed ground ---------- */
.wbuyers { padding-block: var(--section-y); }
.wbuyers__ring { left: -10%; top: 18%; width: 120%; height: 74%; opacity: .5; }
.wbuyers__ring path { stroke-width: 2.5px; }
.wbuyers__stage { position: relative; }
.scene.wbuyers__scene { position: relative; width: 100%; height: 460px; }
.wbuyers__stage .stop { top: -52px; right: 0; bottom: auto; }

/* ---------- #plan: plan-builder in glass over the handshake, the hands clear on the left ---------- */
.wplan__frame { height: calc(640px + 2 * clamp(16px, 2.4vw, 30px)); } /* plan-builder clean at 640 high: shorter, its open plan half-covers the last row */
.wplan__frame > .wplan__video { left: -38%; width: calc(138% + 2px); }
.wplan__frame::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-navy-deep) 40%, transparent), transparent 60%); }
.wplan__stage { position: absolute; z-index: 1; top: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px); right: clamp(16px, 2.4vw, 30px); width: min(720px, 62%); }
.scene.wplan__scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wplan__frame .stop { top: 14px; left: 14px; right: auto; bottom: auto; }

/* ---------- #anyway: a trade the six kinds do not list, and the chat that takes it anyway ---------- */
.wanyway__head { margin-inline: auto; text-align: center; }
.wanyway__frame { height: clamp(460px, 40vw, 560px); }
.wanyway__img { object-position: 30% 22%; }
.wanyway__frame::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-navy-deep) 45%, transparent), transparent 55%); }
.wanyway__chat { position: absolute; z-index: 1; right: clamp(14px, 2.4vw, 30px); bottom: clamp(14px, 2.4vw, 30px); display: grid; gap: 8px; width: min(46%, 380px); padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--c-paper) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 18px 40px color-mix(in srgb, var(--c-navy-deep) 28%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--c-paper) 60%, transparent); }
.wanyway__head { display: block; }
.wanyway__chat .wanyway__head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; text-align: left; font: 700 .95rem/1.2 var(--font-ui); color: var(--c-ink); }
.wanyway__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.wanyway__msg { max-width: 88%; margin: 0; padding: 9px 13px; border-radius: 14px; font: 500 .95rem/1.4 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.wanyway__msg[hidden] { display: none; }
.wanyway__msg--bot { justify-self: start; border-bottom-left-radius: 4px; background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.wanyway__msg--you { justify-self: end; border-bottom-right-radius: 4px; background: var(--c-ink); color: var(--c-on-ink); }
.wanyway__msg--typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.wanyway__msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink-soft); animation: wanyway-dot 1s ease-in-out infinite; }
.wanyway__msg--typing i:nth-child(2) { animation-delay: .15s; }
.wanyway__msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wanyway-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wanyway__frame .stop { top: 14px; right: 14px; bottom: auto; }
.wanyway__go { display: flex; justify-content: center; margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem); }

/* ---------- #close: the shop owner welcoming a customer on the right; the words and the picker on the left ---------- */
.wclose__video { object-position: 70% 35%; }
.wclose .band__media::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c-navy-deep) 90%, transparent) 0%, color-mix(in srgb, var(--c-navy-deep) 70%, transparent) 40%, color-mix(in srgb, var(--c-navy-deep) 10%, transparent) 62%, transparent 75%); }
.wclose .pclose__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); row-gap: var(--space-5); }
.wclose .pclose__in > * { grid-column: 1; }
.wclose .picker { justify-self: start; }

@media (prefers-reduced-motion: reduce) { .wanyway__msg--typing i { animation: none; } }

@media (max-width: 899px) {
  .whero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .whero__stage { height: clamp(380px, 104vw, 470px); }
  .whero__frame--florist { left: 0; top: 0; width: 44%; height: 54%; }
  .whero__frame--law { left: 27%; top: 38%; width: 44%; height: 52%; }
  .whero__frame--roof { right: 0; top: 6%; width: 38%; height: 50%; }
  .whero__card { max-width: 64%; padding: 9px 12px 9px 9px; gap: 9px; }
  .whero__card b { font-size: .86rem; }
  .whero__card small { font-size: .8rem; }
  .whero__ico { width: 30px; height: 30px; }
  .whero__card--florist { left: 0; top: 40%; }
  .whero__card--roof { left: auto; right: 0; top: 0; }
  .whero__card--law { left: auto; right: 0; bottom: 0; }
  .whero .stop--hero { top: auto; bottom: 16px; right: 16px; }
  .wkinds__grid { grid-template-columns: minmax(0, 1fr); }
  .wbreadth__stage { height: 460px; }
  .scene.wbuyers__scene { height: auto; min-height: 520px; }
  /* the phone: the card (360 x 700 here) stays on the clip, the hands showing above it and through its glass */
  .wplan__frame { height: 830px; }
  .wplan__frame > .wplan__video { left: -1px; width: calc(100% + 2px); object-position: 50% 30%; }
  .wplan__frame::after { background: linear-gradient(180deg, transparent 8%, color-mix(in srgb, var(--c-navy-deep) 30%, transparent) 40%); }
  .wplan__stage { top: 112px; left: 10px; right: 10px; bottom: 10px; width: auto; height: auto; }
  .wclose .picker { justify-self: stretch; }
  .wanyway__frame { height: 560px; }
  .wanyway__chat { left: 14px; right: 14px; width: auto; }
  .wclose .pclose__in > * { grid-column: 1; }
  .wclose { padding-top: 0; }
  .wclose .band__media { bottom: auto; height: clamp(300px, 80vw, 440px); }
  .wclose .band__media::after { background: linear-gradient(180deg, transparent 35%, var(--c-navy-deep) 100%); }
  .wclose__video { object-position: 78% 30%; }
  .wclose .pclose__in { grid-template-columns: minmax(0, 1fr); padding-top: calc(clamp(300px, 80vw, 440px) - 72px); }
  .wclose .stop--band { top: 16px; bottom: auto; }
}
