@import url("../arsenal/motif-window.css");
/* Who we help: places and sizes its parts, with system.css's tokens. */
.page-wwh section[id] { scroll-margin-top: 80px; }

/* ===== hero: the businesses seen through the site's peak arrow (motif-window's own look) ===== */
/* the stage sticks under the 72 px header and fills the screen below it, so the headline and its button sit inside the
   first screen on a phone */
.wwh-hero .motif-window__stage { top: 72px; height: calc(100vh - 72px); height: calc(100svh - 72px); }
.wwh-hero__stop { position: absolute; z-index: 8; top: 1rem; right: var(--gutter); }
.wwh-hero .motif-window__cta { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--c-brand-text); }

/* ===== command: the signature, on the designed ground ===== */
.wwh-command__board { position: relative; }
.wwh-command__stop { position: absolute; right: 0; bottom: calc(100% + 1rem); }
.wwh-command__scene.scene { width: 100%; height: 420px; }
@media (max-width: 600px) {
  .wwh-command__scene.scene { height: 440px; }
}
/* on the phone the stop icon stands on its own row above the scene, clear of the line over it */
@media (max-width: 760px) {
  .wwh-command__board, .wwh-buyers__board { padding-top: 3.5rem; }
  .wwh-command__stop, .wwh-buyers__stop { bottom: auto; top: 0; }
}

/* ===== kinds: the tour, seven tabs at the left, the kind's work framed at the right ===== */
.kinds { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.kinds__tabs { display: grid; gap: 0.5rem; align-content: start; }
.kinds__tab { position: relative; overflow: hidden; display: grid; gap: 0.15rem; padding: 0.75rem 1rem 0.8rem; border: 0; border-radius: var(--radius-m); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); color: var(--c-text-soft); text-align: left; font: inherit; cursor: pointer; }
.kinds__tab b { font: 700 1.0625rem/1.3 var(--font-ui); color: var(--c-text); }
.kinds__tab span { font-size: var(--fs-small); line-height: 1.4; }
.kinds__tab[aria-selected="true"] { background: color-mix(in srgb, var(--c-brand) 18%, var(--c-panel)); box-shadow: inset 0 0 0 1px var(--c-brand); }
.kinds__tab:hover { box-shadow: inset 0 0 0 1px var(--c-brand-on-ink); }
.kinds__fill { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-accent); }
.kinds__box { min-height: 580px; }
.kinds__panel { position: absolute; inset: 0; isolation: isolate; }
.kinds__panel > .kinds__photo { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.kinds__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 21, 0) 55%, rgba(13, 14, 21, 0.6) 100%); }
.kinds__panel:focus-visible { outline-offset: -4px; }
.kinds__card { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; }
.kinds__go { position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 2; }
.kinds__stop { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; }
[data-kit-tabs-stop] .tour__play { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .tour__pause { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .tour__play { display: block; }
@media (max-width: 900px) {
  .kinds { grid-template-columns: 1fr; }
  .kinds__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kinds__tab span { display: none; }
  .kinds__tab--more { grid-column: span 2; }
  .kinds__box { min-height: 0; aspect-ratio: 4 / 4.2; }
  .kinds__go { left: 1rem; right: auto; bottom: 6.25rem; }
  .kinds__card { left: 0.9rem; bottom: 0.9rem; }
}

/* ===== buyers: three ways customers choose, on the designed ground ===== */
.wwh-buyers__board { position: relative; }
.wwh-buyers__stop { position: absolute; right: 0; bottom: calc(100% + 1rem); }
.wwh-buyers__scene.scene { width: 100%; height: 480px; }
@media (max-width: 760px) {
  .wwh-buyers__scene.scene { height: auto; min-height: 820px; }
}

/* ===== anyone: the chat over the groomer, its steps lighting beside it ===== */
.wwh-anyone__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.wwh-steps { display: grid; gap: 0.5rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }
.wwh-steps li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-m); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); font: 600 1rem/1.3 var(--font-ui); color: var(--c-text-soft); transition: background-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast); }
.wwh-steps li[aria-current="step"] { color: var(--c-text); background: color-mix(in srgb, var(--c-brand) 16%, var(--c-panel)); box-shadow: inset 0 0 0 1px var(--c-brand); }
.wwh-steps__no { color: var(--c-text-meta); }
.wwh-steps li[aria-current="step"] .wwh-steps__no { color: var(--c-accent); }
.wwh-anyone__frame { height: clamp(560px, 46vw, 620px); }
.wwh-anyone__frame > img { object-position: 40% 40%; }
.wwh-anyone__stop { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; }
/* the chat: glass on the photo's free right side, the newest message at its foot */
/* no panel of its own: each bubble is its own glass, so the groomer and the dog stay in view around them */
.chat { position: absolute; z-index: 2; right: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: min(330px, 46%); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; overflow: hidden; }
.chat__msg { flex: none; margin: 0; max-width: 92%; padding: 0.6rem 0.85rem; border-radius: 14px; font: 500 0.9375rem/1.4 var(--font-ui); color: var(--c-text); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.chat__msg[hidden] { display: none; }
.chat__msg--bot { align-self: flex-start; border-bottom-left-radius: 4px; background: rgba(13, 14, 21, 0.78); box-shadow: inset 0 0 0 1px var(--c-rule-strong), inset 0 1px 0 rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chat__msg--me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--c-brand-text); color: var(--c-on-brand); }
.chat__msg b { font-weight: 700; }
.chat__picks { display: flex; gap: 0.35rem; margin-top: 0.5rem; }
.chat__picks span { padding: 0.25rem 0.65rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-rule-strong); font: 700 0.875rem/1.3 var(--font-ui); }
.chat__picks span[data-kit-on] { background: var(--c-brand-text); box-shadow: none; color: var(--c-on-brand); }
.chat__typing { display: flex; gap: 5px; padding: 0.75rem 0.9rem; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-text-soft); animation: chat-dot 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 100% { transform: translateY(0); opacity: 0.55; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat__typing i { animation: none; } }
.chat__done { display: grid; gap: 0.5rem; min-width: 70%; box-shadow: inset 4px 0 0 var(--c-green), inset 0 0 0 1px var(--c-rule); }
.chat__bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.chat__bar i { display: block; width: calc(var(--kit-fill, 0) * 100%); height: 100%; background: var(--c-green); }
@media (max-width: 900px) {
  .wwh-anyone__in { grid-template-columns: 1fr; }
  /* the groomer framed above, the chat over the photo's lower part, more than half of it on the photo */
  .wwh-anyone__frame { container-type: inline-size; height: auto; padding: min(56%, 360px) 0.6rem 0.6rem; }
  .wwh-anyone__frame > img { top: -1px; bottom: auto; height: calc(min(56cqw, 360px) + 440px * 0.6); object-position: 42% 30%; }
  .wwh-anyone__frame::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 0; height: calc(min(56cqw, 360px) + 440px * 0.6 + 2px); pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 21, 0) 40%, rgba(13, 14, 21, 0.5) 80%, var(--c-panel) 100%); }
  .chat { position: relative; inset: auto; width: auto; height: 440px; }
  .wwh-anyone__stop { left: auto; right: 0.9rem; top: calc(min(56cqw, 360px) - 3.25rem); }
}

/* ===== close ===== */
.wwh-close { padding-bottom: 0; }
.wwh-close__words { text-align: center; }
.wwh-close__title { max-width: 14em; margin: 0 auto; font-size: var(--fs-display); font-weight: var(--fw-display); line-height: 1; letter-spacing: -0.035em; color: var(--c-text); }
.wwh-close__line { max-width: 33rem; margin: 1rem auto 0; font-size: 1.125rem; color: var(--c-text-soft); }
.wwh-close__band { position: relative; overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); height: clamp(380px, 38vw, 560px); }
.wwh-close__band > .wwh-close__bg { position: absolute; inset: -1px; display: block; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 22%; }
.wwh-close__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--c-ink) 0%, rgba(13, 14, 21, 0) 20%); }
@media (max-width: 760px) {
  .wwh-close__band { height: 300px; }
  .wwh-close__band > .wwh-close__bg { object-position: 28% 20%; }
}
