/* who-we-help.css: Who we help. Places and sizes the page's parts (plan.md, "Who we help"); the look comes from
   system.css and components.css. */

/* ---------- the header: the words on the ink; three businesses taking turns in the ring's round window ---------- */
.who-hero { position: relative; overflow: hidden; padding: 140px 0 var(--space-6); background: radial-gradient(46% 60% at 76% 50%, color-mix(in srgb, var(--c-brand) 24%, transparent), transparent 70%), var(--c-ink); color: var(--c-on-ink); }
.who-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.who-hero__words { display: grid; gap: var(--space-3); }
.who-hero__words h1 { max-width: 640px; font-size: var(--fs-h1); }
.who-hero__words p { max-width: 520px; font-size: 19px; color: var(--c-on-ink-soft); }
.who-hero__words .cta-block { margin-top: var(--space-2); }
.who-hero__stage { position: relative; justify-self: end; width: min(100%, 620px); aspect-ratio: 1; }
.who-hero__ring { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; color: var(--c-accent); transform: rotate(135deg); pointer-events: none; }
.who-hero__window { position: absolute; inset: 18%; }
.who-hero__stop { position: absolute; top: 6%; right: 6%; z-index: 5; }

/* the kit's rotation (kit\kit.md, "The header that changes its field"), kept as it is */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
/* each slide's card hangs out of the round window, so the slide does not clip: its clip sits in a round wrapper */
.who-hero [data-kit-slide] { overflow: visible; border-radius: 50%; } /* the kit lays the poster on the slide itself: round it too */
.who-hero__clip { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; clip-path: circle(50% at 50% 50%); background: var(--c-panel); }
.who-hero__window::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-panel-line), 0 30px 80px -30px rgba(0, 0, 0, .7); }
.who-hero__slide--1 video, .who-hero__slide--1 .kit-first { object-position: 88% 50%; transform: scale(1.2); transform-origin: 80% 100%; }
.who-hero__slide--2 video { object-position: 30% 40%; }
.who-hero__slide--3 video { object-position: 40% 50%; }
.who-hero__card { position: absolute; left: -22%; bottom: 2%; z-index: 4; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px 12px 12px; border-radius: var(--radius-m); background: rgba(10, 16, 42, .82); border: 1px solid var(--c-panel-line); box-shadow: var(--shadow-l); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--c-on-ink); white-space: nowrap; }
.who-hero__mark { flex: none; box-sizing: border-box; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--c-brand); color: #fff; }
.who-hero__card > span { display: grid; gap: 2px; }
.who-hero__card strong { font: 700 15px/1.2 var(--font-ui); }
.who-hero__card > span > span { font: 500 15px/1.3 var(--font-ui); color: var(--c-on-ink-soft); }
@media (max-width: 900px) {
  .who-hero { padding-top: 116px; }
  .who-hero__in { grid-template-columns: minmax(0, 1fr); }
  .who-hero__stage { justify-self: center; width: min(100%, 440px); margin-top: var(--space-3); }
  .who-hero__card { left: -2%; bottom: -4%; }
}

/* ---------- the signature: the kinds of business around one business ---------- */
.every__stage { position: relative; }
.every__scene { position: relative; width: 100%; height: 560px; }
.every__stop { position: absolute; top: 0; right: 0; z-index: 2; }
@media (max-width: 640px) { .every__scene { height: 520px; } }

/* ---------- the kinds: the tabs in a column, one big photo beside them ---------- */
.kinds .section-head p { color: var(--c-on-ink-soft); }
.kinds__in { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.kinds__tabs { display: grid; gap: 6px; }
.kinds__tab { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 16px 20px; border: 1px solid transparent; border-radius: var(--radius-m); background: transparent; color: var(--c-on-ink-soft); text-align: left; cursor: pointer; }
.kinds__tab:hover { color: var(--c-on-ink); }
.kinds__tab[aria-selected="true"] { background: var(--c-panel); border-color: var(--c-panel-line); color: var(--c-on-ink); }
.kinds__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-accent); }
.kinds__name { font: 600 19px/1.25 var(--font-ui); }
.kinds__more { display: none; gap: 6px; font: 400 15px/1.45 var(--font-ui); color: var(--c-on-ink-soft); }
.kinds__tab[aria-selected="true"] .kinds__more { display: grid; }
.kinds__more strong { font-weight: 600; color: var(--c-brand-on-ink); }
.kinds__panels { position: relative; }
.kinds__panel { aspect-ratio: 4 / 3; }
.kinds__panel[hidden] { display: none; }
.kinds__panel--more { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: var(--radius-l); background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--c-brand) 30%, transparent), transparent 70%), var(--c-panel); }
.kinds__ring { position: absolute; left: 50%; top: 50%; height: 92%; width: auto; aspect-ratio: 1; color: var(--c-accent); transform: translate(-50%, -50%) rotate(-30deg); }
.kinds__more-in { position: relative; display: grid; justify-items: center; gap: var(--space-2); max-width: 380px; padding: var(--space-3); text-align: center; }
.kinds__mark { width: 44px; height: 44px; color: var(--c-accent); }
.kinds__more-line { font: 600 26px/1.2 var(--font-display); }
.kinds__more-in p:not(.kinds__more-line) { color: var(--c-on-ink-soft); }
.kinds__stop { position: absolute; top: 12px; right: 12px; z-index: 3; }
@media (max-width: 900px) {
  .kinds__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .kinds__panels { order: -1; }
  .kinds__name { font-size: 17px; }
}

/* ---------- however they buy: three cards in turn, on the designed ground ---------- */
.buyers__stage { position: relative; }
.buyers__scene { position: relative; width: 100%; }
.buyers__stop { position: absolute; top: -52px; right: 0; z-index: 2; }
@media (min-width: 760px) { .buyers__scene { height: 460px; } }

/* ---------- the sample plan: the tablet's calendar filling up, the plan building itself over the desk's left ---------- */
.sample__stage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.sample__pic { grid-column: 5 / -1; grid-row: 1; }
.sample__photo { aspect-ratio: 3 / 2; margin: 0; }
.sample__scene { position: relative; z-index: 2; grid-column: 1 / 7; grid-row: 1; height: 560px; }
.sample__stop { position: absolute; top: 12px; right: 12px; z-index: 3; }
@media (max-width: 900px) {
  .sample__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .sample__pic, .sample__scene { grid-column: 1; grid-row: auto; }
  .sample__scene { height: 560px; }
}
@media (max-width: 600px) { .sample__scene { height: 700px; } }

/* the tablet's calendar (designed at 400 x 305): the week's bookings landing one by one, no words */
.cal { box-sizing: border-box; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 14px; background: #F7F8FC; }
.cal__head { display: grid; grid-template-columns: 28px repeat(5, 1fr); align-items: center; gap: 6px; }
.cal__mark { width: 26px; height: 26px; color: var(--c-brand); }
.cal__head span { justify-self: center; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C9D3EE; }
.cal__grid { position: relative; margin-left: 34px; border-radius: 8px; background-color: #fff; background-image: linear-gradient(#E3E8F4 1px, transparent 1px), linear-gradient(90deg, #E3E8F4 1px, transparent 1px); background-size: 20% 16.666%; box-shadow: inset 0 0 0 1px #E3E8F4; }
.cal__b { position: absolute; left: calc((var(--c) - 1) * 20% + 3px); top: calc((var(--r) - 1) * 16.666% + 3px); width: calc(20% - 6px); height: calc(var(--n) * 16.666% - 6px); border-radius: 6px; background: linear-gradient(180deg, var(--c-brand), var(--c-brand-dark)); opacity: var(--kit-in, 1); transform: scale(calc(.85 + .15 * var(--kit-in, 1))); }

/* ---------- not on the list: the chat in a phone over the groomer at work ---------- */
.anyway .section-head p { color: var(--c-on-ink-soft); }
.anyway__frame { aspect-ratio: 3 / 2; }
.anyway__frame > img { object-position: 40% 50%; }
.anyway__stop { position: absolute; top: 16px; left: 16px; z-index: 3; }
.anyway__phone { position: absolute; top: 50%; right: 4%; z-index: 2; display: flex; flex-direction: column; width: 310px; height: min(580px, 90%); padding: 12px; border-radius: 34px; background: rgba(10, 16, 42, .8); border: 1px solid var(--c-panel-line); box-shadow: var(--shadow-l); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); transform: translateY(-50%); color: var(--c-on-ink); }
.anyway__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; border-bottom: 1px solid var(--c-panel-line); font: 600 15px/1.2 var(--font-ui); }
.anyway__mark { width: 22px; height: 22px; color: var(--c-accent); }
.anyway__chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 6px; overflow: hidden; }
.msg { max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 16px; font: 500 15px/1.35 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.msg--in { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--c-panel); border: 1px solid var(--c-panel-line); }
.msg--out { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--c-brand); color: #fff; }
.msg--done { border-color: var(--c-accent); }
.msg--chips { display: flex; gap: 6px; padding: 0; max-width: none; }
.msg--chips span { display: grid; place-items: center; min-width: 50px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-panel-line); background: var(--c-panel); font: 600 15px/1 var(--font-ui); }
.msg--chips span[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.msg--typing { display: flex; gap: 5px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-on-ink-soft); }
@media (max-width: 900px) {
  .anyway__frame { --top: min(56vw, 420px); aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) 520px; }
  .anyway__frame > img { position: relative; inset: auto; grid-row: 1 / 3; grid-column: 1; align-self: start; width: 100%; height: calc(100% - 208px); border-radius: var(--radius-l); }
  .anyway__phone { position: relative; top: auto; right: auto; grid-row: 2; grid-column: 1; justify-self: center; width: min(310px, calc(100% - 20px)); height: 520px; transform: none; }
  .anyway__stop { top: 12px; left: 12px; }
}

/* ---------- the close: a new client's first handshake, the picker beside it ---------- */
.who-close { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(620px, 52vw, 800px); display: flex; align-items: center; background: var(--c-ink); color: var(--c-on-ink); }
.who-close__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.who-close__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.who-close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, .92) 0%, rgba(7, 11, 28, .78) 34%, rgba(7, 11, 28, .1) 62%), linear-gradient(0deg, rgba(7, 11, 28, .5), rgba(7, 11, 28, 0) 40%); }
.who-close__stop { position: absolute; top: 20px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); z-index: 2; }
.who-close__in { width: 100%; padding-block: var(--space-6); }
.who-close__words { display: grid; gap: var(--space-3); max-width: 560px; }
.who-close__words h2 { font-size: var(--fs-h2); }
.who-close__words p { font-size: 19px; color: var(--c-on-ink-soft); }
@media (max-width: 900px) {
  .who-close { display: block; min-height: 0; }
  .who-close__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .who-close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(7, 11, 28, 0) 35%); }
  .who-close__stop { top: 12px; }
  .who-close__in { padding-top: var(--space-3); }
  .who-close__words { max-width: none; }
}
