/* Who we help (plan.md "Who we help"): three trades rising like the swoosh, the names on the ribbon, the six kinds as
   a tour, the three buyers on the designed ground, the chat that reads any business's website, the close. */

/* ---------- a booking, as the owner's phone shows it: the header's three and the kinds' cards ---------- */
.bk { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ico tag" "ico job" "ico when"; column-gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 6%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--c-ink) 60%, transparent); }
.bk__ico { grid-area: ico; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-brand-text); font-size: 22px; }
.bk__tag { grid-area: tag; color: var(--c-brand-text); font: 600 12px/1.25 var(--font-ui); }
.bk__job { grid-area: job; font: 600 15px/1.25 var(--font-display); letter-spacing: -0.01em; }
.bk__when { grid-area: when; color: var(--c-ink-soft); font: 400 13px/1.3 var(--font-ui); }

/* ---------- hero: the words across the top, three trades under them, each a step higher, the ribbon behind ---------- */
.wh { position: relative; overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section-y); }
.wh__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-4) var(--space-5); }
.wh__words h1 { max-width: 13em; }
.wh__words .lede { max-width: 33em; margin-bottom: 0; }
.wh__act { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-bottom: 0.35rem; }
.wh__act .act-note { flex: 0 0 auto; }
.wh__stage { position: relative; margin-top: var(--space-4); }
.wh__ribbon { position: absolute; z-index: 0; left: -16%; width: 132%; top: 16%; height: 70%; pointer-events: none; }
.wh__row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.wh__shot { position: relative; margin: 0; aspect-ratio: 6 / 7; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.wh__shot--1 { margin-top: 72px; }
.wh__shot--2 { margin-top: 36px; }
.wh__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh__shot--1 > img { object-position: 72% 50%; }
.wh__shot--2 > img { object-position: 86% 50%; }
.wh__shot--3 > img { object-position: 62% 50%; }
/* each card lands on its photo (the kit's sequence with its hold: the florist's stays from the start) */
.wh__card { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 14px)); }
.wh__shot--1 .wh__card { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.wh__stop { z-index: 3; top: 12px; right: 12px; }

/* ---------- names: the signature on the designed ground, the main button under it ---------- */
.wn { background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand-light) 45%, var(--c-paper)) 0%, var(--c-brand-light) 55%, color-mix(in srgb, var(--c-brand-light) 45%, var(--c-paper)) 100%); }
.wn__head { text-align: center; }
.wn__head h2 { max-width: 16em; margin-inline: auto; }
.wn__head .lede { margin-inline: auto; margin-bottom: 0; }
.wn__stage { position: relative; margin-top: var(--space-4); }
.wn__scene.scene { display: block; width: 100%; height: 500px; }
.wn__stop { top: 4px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.wn__act { justify-content: center; margin-top: var(--space-4); }
.wn__act .act-note { flex: 0 1 auto; }

/* ---------- kinds: the kit's tour, the tabs in a column, the chosen one open, its photo and booking beside ---------- */
.wk__head { max-width: 46rem; }
.wk__head .lede { margin-bottom: 0; }
.wk__tour { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
.wk__tabs { display: grid; gap: 6px; }
.wk__tab { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ico name" "more more"; align-items: center; column-gap: 12px; width: 100%; margin: 0; padding: 10px 14px 10px 10px; overflow: hidden; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--c-ink); text-align: left; font: 600 var(--fs-ui)/1.25 var(--font-display); cursor: pointer; }
.wk__tab:hover { background: color-mix(in srgb, var(--c-paper) 70%, transparent); }
.wk__tab:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.wk__tab[aria-selected="true"] { background: var(--c-paper); box-shadow: var(--shadow-m); }
.wk__ico { grid-area: ico; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c-brand) 12%, var(--c-paper)); color: var(--c-brand-text); font-size: 22px; }
.wk__tab[aria-selected="true"] .wk__ico { background: var(--c-brand); color: var(--c-ink); }
.wk__name { grid-area: name; }
.wk__more { grid-area: more; display: none; padding: 8px 0 6px 52px; color: var(--c-ink-soft); font: 400 var(--fs-small)/1.45 var(--font-ui); }
.wk__more em { display: block; margin-top: 4px; color: var(--c-ink); font-style: normal; }
.wk__more b { color: var(--c-brand-text); font-weight: 600; }
/* the open tab keeps room for the longest kind's words (4 lines), so the list, and the words under the part, never
   move while the tabs turn */
.wk__tab[aria-selected="true"] .wk__more { display: block; box-sizing: border-box; min-height: calc(18px + 5.8em); }
.wk__bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--c-brand); opacity: 0; transform: scaleX(var(--kit-fill, 0)); transform-origin: left center; }
.wk__tabs[data-kit-on] .wk__tab[aria-selected="true"] .wk__bar { opacity: 1; }
.wk__panels { position: relative; }
.wk__panel { position: relative; }
.wk__panel:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 4px; border-radius: var(--radius-l); }
.wk__photo { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.wk__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk__photo--outdoor > img { object-position: 60% 50%; }
.wk__photo--law > img { object-position: 50% 12%; }
.wk__photo--health > img, .wk__photo--real > img { object-position: 70% 50%; }
/* the chosen kind's card lands as its panel opens */
.wk__card { position: absolute; z-index: 2; left: 24px; bottom: 24px; width: min(330px, calc(100% - 48px)); animation: wk-land 0.6s cubic-bezier(0.2, 0.8, 0.25, 1.1) 0.25s both; }
.wk__photo--law .wk__card { left: auto; right: 24px; }
.wk__info { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wk__cta { position: absolute; z-index: 2; left: 24px; bottom: 24px; width: min(360px, calc(100% - 48px)); box-sizing: border-box; padding: 18px 18px 20px; border-radius: 18px; background: var(--c-paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 6%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--c-ink) 60%, transparent); animation: wk-land 0.6s cubic-bezier(0.2, 0.8, 0.25, 1.1) 0.25s both; }
.wk__cta p { margin: 0 0 14px; color: var(--c-ink-soft); font: 400 var(--fs-small)/1.45 var(--font-ui); }
.wk__cta b { color: var(--c-ink); font-weight: 600; }
.wk__stop { z-index: 4; top: 14px; right: 14px; }
.wk__cta--out { display: none; } /* the phone's copy of the "more" box, under the panels (below) */
@keyframes wk-land { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wk__card, .wk__cta { animation: none; } }

/* ---------- buyers: the three buyers stacked at the right, on the designed ground ---------- */
.wb__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: var(--space-5); align-items: center; }
.wb__words .lede { max-width: 30em; margin-bottom: 0; }
.wb__stage { position: relative; min-height: 780px; }
.wb__scene.scene { display: block; width: 100%; }
.wb__stop { top: -48px; right: 0; }

/* ---------- anyway: the chat on the site's light phone, over the clear side of the groomer's photo ---------- */
.wa__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.wa__head .lede { margin-inline: auto; margin-bottom: 0; }
.wa__stage { position: relative; display: flex; align-items: center; justify-content: flex-end; height: clamp(560px, 46vw, 640px); margin-top: var(--space-5); padding-right: clamp(24px, 4vw, 56px); }
.wa__photo { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.wa__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.wa__stop { z-index: 3; top: 16px; left: 16px; right: auto; }
.wa__act { justify-content: center; margin-top: var(--space-5); }
.wa__act .act-note { flex: 0 1 auto; }
/* the phone and its chat (the home page's, home.css "how"; this page loads its own copy) */
.phone { position: relative; z-index: 2; width: min(100%, 332px); overflow: hidden; border-radius: 34px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-paper) 22%, transparent), 0 40px 80px -24px color-mix(in srgb, var(--c-ink) 60%, transparent); }
.phone__head { box-sizing: border-box; display: flex; align-items: center; gap: 0.65rem; height: 64px; padding: 0 1.1rem; border-bottom: 1px solid var(--c-line); }
.phone__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-size: 1.15rem; }
.phone__head b { display: block; font: 600 var(--fs-ui)/1.2 var(--font-display); }
.phone__head span span { color: var(--c-ink-soft); font-size: var(--fs-tiny); }
.phone__chat { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.55rem; height: clamp(380px, 32vw, 440px); padding: 1rem 0.95rem 1.1rem; overflow: hidden; background: linear-gradient(180deg, var(--c-paper), var(--c-paper-alt)); }
.phone__chat.is-full { justify-content: flex-end; }
.phone__chat [data-kit-wait="0"] { opacity: 1; transform: none; }
.msg { flex: none; max-width: 86%; margin: 0; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); font: 400 var(--fs-small)/1.4 var(--font-ui); }
.msg--bot { align-self: flex-start; padding: 0.65rem 0.85rem; border-radius: 16px 16px 16px 4px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.msg--day { align-self: center; padding: 0.2rem 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 6%, transparent); color: var(--c-ink-soft); font: 600 var(--fs-tiny)/1.4 var(--font-ui); }
.msg--me { align-self: flex-end; padding: 0.6rem 0.85rem; border-radius: 16px 16px 4px 16px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 600; }
.msg--chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.msg--chips span { padding: 0.45rem 0.8rem; border-radius: var(--btn-radius); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 45%, var(--c-line)); font-weight: 600; transition: background-color var(--dur-fast), color var(--dur-fast); }
.msg--chips span[data-kit-on] { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
.msg--typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 0.75rem 0.9rem; border-radius: 16px 16px 16px 4px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: dot 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; } .msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--check { display: grid; gap: 0.5rem; min-width: 70%; }
.msg__bar { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-brand) calc(var(--kit-fill, 1) * 100%), var(--c-line) 0); }
.msg__label { color: var(--c-brand-text); font: 600 var(--fs-tiny)/1.2 var(--font-ui); }
.msg--found, .msg--ask { display: grid; gap: 0.35rem; max-width: 94%; }
.msg--found > b { font: 600 var(--fs-small)/1.35 var(--font-ui); }
.msg--found .msg--chips, .msg--ask .msg--chips { margin-top: 0.3rem; }
.msg--result { align-self: stretch; max-width: none; display: grid; gap: 0.35rem; padding: 0.85rem 0.95rem; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--c-line); }
.msg--result > b { font: 600 1.25rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.msg__lines { display: grid; gap: 0.45rem; margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px solid var(--c-line); }
.msg__lines > span { display: grid; gap: 1px; }
.msg__lines > span > span { color: var(--c-ink-soft); font-size: var(--fs-tiny); line-height: 1.3; }
.msg__lines b { font: 600 var(--fs-small)/1.3 var(--font-ui); }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; } }

/* ---------- close: the salon owner's smile at the left, the picker in its panel at the right ---------- */
.wc .endband__media video { object-position: 40% 50%; }

/* ---------- narrower ---------- */
@media (max-width: 1179px) {
  /* the groomer's photo whole across, the phone over its lower right corner, half its chat on the photo */
  .wa__stage { display: block; height: auto; padding: 0; container-type: inline-size; }
  .wa__photo { position: relative; inset: auto; aspect-ratio: 3 / 2; }
  .wa__phone { margin: calc(-64px - 192px) 24px 0 auto; }
  .wa__phone .phone__chat { height: 330px; }
  /* the stop over the photo, just above the phone, so the two stand in one view */
  .wa__stop { top: calc(100cqi * 2 / 3 - 256px - 52px); left: auto; right: 24px; }
}
@media (max-width: 960px) {
  .wb__in { grid-template-columns: minmax(0, 1fr); }
  .wb__stop { top: 8px; }
}
@media (max-width: 860px) {
  .wh__top { grid-template-columns: minmax(0, 1fr); }
  .wh__act { flex-direction: row; flex-wrap: wrap; align-items: center; }
  /* one frame: the three trades take turns in it, each with its booking */
  .wh__row { display: block; aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; }
  .wh__shot { position: absolute; inset: 0; aspect-ratio: auto; opacity: var(--kit-in, 0); }
  .wh__shot--1 { opacity: 1; }
  .wh__shot--1, .wh__shot--2 { margin-top: 0; }
  .wh__card, .wh__shot--1 .wh__card { opacity: 1; transform: none; }
  .wh__ribbon { top: 46%; height: 44%; }
  .wh__stop { right: max(12px, calc((100% - 520px) / 2 + 12px)); }
  /* the kinds as chips over the photo, the chosen one's words under it */
  .wk__tour { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .wk__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .wk__tab { width: auto; grid-template-columns: auto auto; grid-template-areas: "ico name"; column-gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--fs-small); }
  .wk__tab[aria-selected="true"] { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
  .wk__ico { width: 30px; height: 30px; border-radius: 50%; font-size: 17px; }
  .wk__tab[aria-selected="true"] .wk__more { display: none; }
  .wk__bar { left: 14px; right: 14px; bottom: 2px; height: 2px; }
  .wk__photo { aspect-ratio: 4 / 3; }
  .wk__card, .wk__photo--law .wk__card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .wk__info { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-top: var(--space-3); }
  .wk__info h3 { margin: 0 0 4px; font-size: var(--fs-h3); }
  .wk__info p { margin: 0; color: var(--c-ink-soft); }
  .wk__info b { color: var(--c-brand-text); font-weight: 600; }
  .wk__cta { position: relative; left: auto; bottom: auto; width: auto; margin-top: var(--space-3); }
  /* the panels share one place, so the part keeps one height while its tabs turn (the words under it never move);
     the box with the main button stands under them, for every kind */
  .wk__panels { display: grid; }
  .wk__panel { grid-area: 1 / 1; }
  .wk__panels > .wk__panel[hidden] { display: block !important; visibility: hidden; }
  .wk__panel[hidden] .wk__card { animation: none; }
  .wk__panel .wk__cta { display: none; }
  .wk__cta--out { display: block; margin-top: 0; }
}
@media (max-width: 700px) {
  .wa__photo { aspect-ratio: 9 / 17; }
  .wa__photo > img { object-position: 48% 50%; }
  .wa__phone { width: min(100% - 16px, 332px); margin: calc(-64px - 166px) auto 0; }
  .wa__phone .phone__chat { height: 280px; }
  .wa__stop { top: calc(100cqi * 17 / 9 - 230px - 52px); right: max(8px, calc((100cqi - 332px) / 2)); }
}
@media (max-width: 599px) {
  .wn__scene.scene { height: 460px; }
}
