/* Who we help (Part 2): plan.md "Who we help (Part 2)". Every part shows a booking landing for a business; the scenes
   sit in hosts sized with two classes (.scene.<cls>), and every card over a photo stays on it at every width. */

/* the designed ground: the cool gray, Alisa's ribbon faint across it */
.wh-ground { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- hero: three businesses far apart, a booking landing on each ---------- */
.wh-hero { padding: clamp(40px, 4.5vw, 64px) 0 var(--section-y); background: var(--c-paper); }
.wh-hero__copy { display: grid; justify-items: center; gap: 16px; text-align: center; }
.wh-hero__title { max-width: 17ch; font-size: clamp(2.5rem, 1.3rem + 3vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.wh-hero__line { max-width: 52ch; font-size: 1.1875rem; color: var(--c-ink-soft); }
.wh-hero__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 16px; margin-top: 6px; }
.wh-hero__stage { position: relative; margin-top: clamp(32px, 3vw, 44px); }
/* the three frames stand on one line, so their bookings land on one line too, all on the first screen */
.wh-hero__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 16px; align-items: end; }
.wh-hero__frame { position: relative; margin: 0; height: 400px; overflow: hidden; border-radius: 26px; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.wh-hero__frame--electric { height: 356px; }
.wh-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.wh-hero__frame--florist .wh-hero__photo { object-position: 70% 50%; }
.wh-hero__frame--electric .wh-hero__photo { object-position: 60% 50%; }
.wh-hero__frame--law .wh-hero__photo { object-position: 50% 22%; }
.wh-hero__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 34%, transparent) 0%, transparent 38%); }
.bookcard.wh-hero__card { position: absolute; z-index: 2; left: 14px; bottom: 14px; max-width: calc(100% - 28px); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.wh-hero__stop { top: -52px; right: 0; }
@media (max-width: 1100px) {
  .wh-hero__frame { height: 380px; }
  .wh-hero__frame--electric { height: 340px; }
}
@media (max-width: 899px) {
  .wh-hero__acts { width: 100%; }
  .wh-hero__acts .cta, .wh-hero__acts .btn { width: 100%; }
  .wh-hero__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wh-hero__frame, .wh-hero__frame--electric { height: 240px; border-radius: 20px; }
  .wh-hero__frame--law { height: 300px; }
  /* on the phone the buttons run full width: the icon sits on the first photo's top right corner, clear of them */
  .wh-hero__stop { top: 10px; right: 10px; width: 36px; height: 36px; }
}

/* ---------- every: "I run a ..." and the bookings climb, on the designed ground ---------- */
.wh-every { position: relative; isolation: isolate; overflow: hidden; padding: var(--section-y) 0; background: var(--c-paper-alt); }
.wh-every__in { display: grid; justify-items: center; gap: 44px; }
.wh-every__stage { position: relative; width: 100%; max-width: 1100px; }
.scene.wh-every__scene { width: 100%; height: 460px; }
.wh-every__stop { top: -48px; right: 0; }
@media (max-width: 899px) { .wh-every__in { gap: 32px; } }
@media (max-width: 699px) {
  .scene.wh-every__scene { height: 640px; }
  .wh-every__stop { top: -40px; width: 36px; height: 36px; }
}
/* ---------- kinds: the seven fields as chips over one wide stage, each with what one customer brings ---------- */
.wh-kinds { padding: var(--section-y) 0; background: var(--c-paper); }
.wh-kinds__grid { display: grid; gap: 28px; margin-top: 40px; }
.wh-kinds__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wh-kinds__tabs [role="tab"] { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 48px; padding: 0 17px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: inherit; cursor: pointer; transition: background var(--dur-med), border-color var(--dur-med), color var(--dur-med); }
.wh-kinds__tabs [role="tab"] b { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; }
.wh-kinds__tabs [role="tab"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wh-kinds__tabs [role="tab"]:hover { border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-line)); }
.wh-kinds__tabs [role="tab"][aria-selected="true"] { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.wh-kinds__fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--c-accent); }
.wh-kinds__tabs [aria-selected="true"] .wh-kinds__fill { width: calc(var(--kit-fill, 1) * 100%); }
.wh-kinds__stage { position: relative; height: clamp(480px, 41vw, 580px); overflow: hidden; border-radius: 28px; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.wh-kinds__panel { position: absolute; inset: 0; }
.wh-kinds__panel[hidden] { display: none; }
.wh-kinds__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 35%; }
.wh-kinds__cap { position: absolute; z-index: 2; left: 24px; bottom: 24px; display: grid; justify-items: start; gap: 6px; max-width: min(460px, calc(100% - 48px)); padding: 20px 24px 22px; border-radius: 20px; background: color-mix(in srgb, var(--c-paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-l); color: var(--c-ink); }
.wh-kinds__cap b { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.wh-kinds__cap span { color: var(--c-ink-soft); }
.wh-kinds__cap .btn { margin-top: 10px; }
/* clear of what each photo is about: the filters in the technician's hands, the terrier on the table */
.wh-kinds__panel--home .wh-kinds__cap { left: auto; right: 24px; }
.wh-kinds__panel--more .wh-kinds__cap { bottom: auto; top: 24px; }
.wh-kinds__stage > .stop { top: 16px; right: 16px; }
@media (max-width: 899px) {
  .wh-kinds__grid { gap: 20px; margin-top: 28px; }
  .wh-kinds__tabs { gap: 8px; }
  .wh-kinds__tabs [role="tab"] { min-height: 44px; padding: 0 14px; }
  .wh-kinds__tabs [role="tab"] b { font-size: 0.9375rem; }
  .wh-kinds__stage { height: 460px; border-radius: 20px; }
  .wh-kinds__panel--home .wh-kinds__photo { object-position: 46% 35%; }
  .wh-kinds__panel--outdoor .wh-kinds__photo { object-position: 70% 50%; }
  .wh-kinds__panel--law .wh-kinds__photo { object-position: 75% 50%; }
  .wh-kinds__panel--health .wh-kinds__photo { object-position: 78% 50%; }
  .wh-kinds__panel--realestate .wh-kinds__photo { object-position: 72% 50%; }
  .wh-kinds__panel--events .wh-kinds__photo { object-position: 38% 50%; }
  .wh-kinds__panel--more .wh-kinds__photo { object-position: 55% 40%; }
  .wh-kinds__cap, .wh-kinds__panel--home .wh-kinds__cap, .wh-kinds__panel--more .wh-kinds__cap { top: auto; left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px 18px 18px; }
  .wh-kinds__cap .btn { width: 100%; }
  .wh-kinds__stage > .stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ---------- buyers: three ways customers buy, on the designed ground ---------- */
.wh-buyers { position: relative; isolation: isolate; overflow: hidden; padding: var(--section-y) 0; background: var(--c-paper-alt); }
.wh-buyers__in { display: grid; justify-items: center; gap: 44px; }
.wh-buyers__stage { position: relative; width: 100%; max-width: 1100px; }
.scene.wh-buyers__scene { width: 100%; height: 500px; }
.wh-buyers__stop { top: -48px; right: 0; }
@media (max-width: 899px) { .wh-buyers__in { gap: 32px; } }
@media (max-width: 759px) {
  .scene.wh-buyers__scene { height: 820px; }
  .wh-buyers__stop { top: -40px; width: 36px; height: 36px; }
}

/* ---------- plan: the appointment book in the frame, the free plan building in glass over it ---------- */
.wh-plan { padding: var(--section-y) 0; background: var(--c-paper); }
.wh-plan__head { max-width: 640px; }
.wh-plan__frame { position: relative; margin-top: 40px; height: 760px; overflow: hidden; border-radius: 28px; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.wh-plan__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.wh-plan__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 36%, transparent) 0%, transparent 42%); }
.wh-plan__stage { position: absolute; z-index: 2; top: 30px; left: 30px; width: 360px; height: 700px; }
.scene.wh-plan__scene { width: 100%; height: 100%; }
.wh-plan__stop { top: 0; right: -52px; }
@media (max-width: 899px) {
  .wh-plan__frame { height: 1080px; margin-top: 28px; border-radius: 20px; }
  .wh-plan__photo { object-position: 56% 50%; }
  .wh-plan__frame::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 40%, transparent) 0%, transparent 60%); }
  .wh-plan__stage { top: 360px; left: 50%; width: min(360px, calc(100% - 24px)); transform: translateX(-50%); }
  .wh-plan__stop { top: -22px; right: -4px; width: 36px; height: 36px; }
}

/* ---------- anyway: the barber's own business, named by the chat ---------- */
.wh-anyway { padding: var(--section-y) 0; background: var(--c-paper-alt); }
.wh-anyway__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.wh-anyway__words { display: grid; gap: 28px; }
.wh-anyway__words .head p a { color: var(--c-brand-dark); font-weight: 600; }
.wh-anyway__frame { position: relative; height: 760px; overflow: hidden; border-radius: 28px; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.wh-anyway__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 25%; }
.wh-anyway__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 42%, transparent) 0%, transparent 46%); }
.wh-anyway__stop { top: 16px; right: 16px; }
/* the chat grows upward from the frame's foot as it fills, and keeps its newest messages once it is full */
.wh-chat { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; max-height: 330px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: color-mix(in srgb, var(--c-paper) 92%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-l); }
.wh-chat__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.wh-chat__head img { width: 30px; height: 30px; padding: 3px; border-radius: 9px; background: var(--c-paper-alt); }
.wh-chat__head p { display: grid; line-height: 1.2; }
.wh-chat__head b { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 800; color: var(--c-ink); }
.wh-chat__head span { font-size: 0.8125rem; color: var(--c-ink-soft); }
.wh-chat__log { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 14px 14px; overflow: hidden; opacity: calc(1 - var(--kit-out, 0)); }
.wh-chat .msg { margin: 0; max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 0.875rem; line-height: 1.4; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); flex: none; }
.wh-chat .msg--bot { align-self: flex-start; background: var(--c-paper-alt); color: var(--c-ink); border-bottom-left-radius: 6px; }
.wh-chat .msg--me { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 6px; }
.wh-chat .msg--chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 0; background: none; }
.wh-chat .msg--chips span { padding: 7px 12px; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 30%, var(--c-line)); font-weight: 700; color: var(--c-brand-dark); font-size: 0.875rem; transition: background .25s, color .25s; }
.wh-chat .msg--chips span[data-kit-on] { background: var(--c-brand); color: var(--c-on-brand); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.wh-chat .msg--typing { display: flex; gap: 5px; padding: 13px 14px; }
.wh-chat .msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: wh-dots 1s infinite ease-in-out; }
.wh-chat .msg--typing i:nth-child(2) { animation-delay: .15s; }
.wh-chat .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wh-dots { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.wh-chat .msg--check { display: grid; gap: 8px; width: 86%; }
.wh-chat .msg__bar { display: block; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--c-brand) 16%, var(--c-paper)); overflow: hidden; position: relative; }
.wh-chat .msg__bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--kit-fill, 0) * 100%); border-radius: 6px; background: linear-gradient(90deg, var(--c-teal), var(--c-brand)); }
.wh-chat .msg--card { align-self: stretch; max-width: none; padding: 14px; border-radius: 16px; background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.wh-chat .msg--card b { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--c-ink); }
.wh-chat .msg--card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wh-chat .msg--card li { display: flex; align-items: center; gap: 8px; color: var(--c-ink); }
.wh-chat .msg--card svg { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--c-cta); color: var(--c-on-cta); }
@media (prefers-reduced-motion: reduce) { .wh-chat .msg--typing i { animation: none; } }
@media (max-width: 899px) {
  .wh-anyway__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-anyway__frame { height: 640px; border-radius: 20px; }
  .wh-anyway__photo { object-position: 50% 20%; }
  .wh-chat { left: 12px; right: 12px; bottom: 12px; max-height: 300px; }
  .wh-anyway__stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ---------- close: the café opening, a catering order already booked ---------- */
.wh-close { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(640px, 50vw, 740px); background: var(--c-ink); color: var(--c-on-ink); }
.wh-close__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wh-close__video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.wh-close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 94%, transparent) 0%, color-mix(in srgb, var(--c-ink) 72%, transparent) 30%, transparent 62%); }
.bookcard.wh-close__card { position: absolute; z-index: 2; top: 12%; left: max(var(--gutter), calc(50% - var(--max-w) / 2)); }
.wh-close__in { display: grid; justify-items: center; gap: 16px; padding-top: 72px; padding-bottom: clamp(56px, 6vw, 88px); text-align: center; }
.wh-close__in h2 { max-width: 20ch; font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.wh-close__in > p { max-width: 46ch; font-size: 1.1875rem; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.wh-close__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 16px; margin-top: 10px; }
.wh-close__stop { top: 20px; right: 20px; }
@media (max-width: 899px) {
  .wh-close { display: block; min-height: 0; }
  .wh-close__media { position: relative; inset: auto; height: clamp(280px, 70vw, 460px); z-index: 0; }
  .wh-close__media::after { background: linear-gradient(180deg, transparent 60%, var(--c-ink) 100%); }
  .bookcard.wh-close__card { top: calc(clamp(280px, 70vw, 460px) - 116px); left: 12px; }
  .wh-close__in { padding-top: 12px; }
  .wh-close__acts { width: 100%; }
  .wh-close__acts .cta, .wh-close__acts .btn { width: 100%; }
  .wh-close__stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}
