/* Who we help (plan.md): the header (three far-apart businesses, a booking landing on each along the riser line), the
   signature `anykind`, the kinds of business as tabs over one big photo, the mix, the chat over a groomer at work and
   the close on a week filling up. Only places and sizes; the look is in design\components.css. */

/* ---- the small landing card: a lime tick and a booking ---- */
.lcard { display: flex; align-items: center; gap: 12px; padding: 13px 18px 14px 13px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.lcard__tick { flex: none; width: 28px; height: 28px; }
.lcard__tick circle { fill: var(--c-accent); }
.lcard__tick path { stroke: var(--c-on-brand); }
.lcard__words { display: grid; gap: 2px; text-align: left; }
.lcard__words b { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.lcard__words span { font-size: 0.875rem; line-height: 1.35; color: var(--c-ink-soft); }

/* ---- hero: the words on the paper, three businesses under them ---- */
.phead--whh { background: var(--c-paper); color: var(--c-ink); }
.phead--whh h1 { max-width: 26ch; font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); color: var(--c-ink); }
.phead--whh .phead__lead { max-width: 40rem; color: var(--c-ink-soft); }
.phead--whh .cta-line { color: var(--c-ink-soft); }
.phead--whh :focus-visible { outline-color: var(--c-brand-text); }
.whh-head { display: grid; gap: var(--space-3); justify-items: center; padding-block: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px); text-align: center; }
.whh-head .phead__cta { justify-items: center; }
.whh-strips { --line-y: calc(100% - 190px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: clamp(380px, 30vw, 420px); }
.whh-strip { position: relative; overflow: hidden; }
.whh-strip img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.whh-strip--roof img { object-position: 42% 30%; }
.whh-strip--law img { object-position: 84% 35%; }
.whh-strip--flowers img { object-position: 64% 30%; }
.whh-strips::before { content: ""; position: absolute; z-index: 1; inset: 42% 0 0; background: linear-gradient(color-mix(in srgb, var(--c-ink) 0%, transparent), color-mix(in srgb, var(--c-ink) 64%, transparent)); pointer-events: none; }
.whh-track { position: absolute; z-index: 2; left: 0; right: 0; top: var(--line-y); height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c-paper) 78%, transparent) 0 7px, transparent 7px 16px); }
.whh-step { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.whh-seg { position: absolute; top: var(--line-y); left: calc((var(--k) - 0.5) * 100% / 3); width: calc(100% / 3); height: var(--riser-w); margin-top: calc(var(--riser-w) / -2); border-radius: 2px; background: var(--c-accent); transform-origin: left center; transform: scaleX(var(--kit-in, 1)); }
.whh-step--1 .whh-seg { left: 0; width: calc(100% / 6); }
.whh-node { position: absolute; top: var(--line-y); left: calc((var(--k) + 0.5) * 100% / 3); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-color: var(--c-paper); }
.whh-node::after { content: ""; position: absolute; inset: -2.5px; border-radius: 50%; background: var(--c-accent); opacity: var(--kit-in, 1); }
.whh-card { position: absolute; top: calc(var(--line-y) + 24px); left: calc((var(--k) + 0.5) * 100% / 3); width: max-content; max-width: calc(100% / 3 - 32px); opacity: var(--kit-in, 1); transform: translate(-50%, calc((1 - var(--kit-in, 1)) * 14px)); }
.whh-strips__stop { top: 16px; right: 16px; }

/* ---- anykind: the signature, on the paper ---- */
.anykind__stage { position: relative; }
.scene.anykind__scene { height: 460px; }
.anykind__stop { top: 0; right: 0; }

/* ---- kinds: the tabs over one big photo ---- */
.cattabs { display: grid; gap: 18px; }
.cattabs__bar { overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.cattabs__bar::-webkit-scrollbar { display: none; }
.cattabs__tabs { display: flex; gap: 8px; width: max-content; }
.cattabs__tab { position: relative; overflow: hidden; min-height: 44px; padding: 10px 18px 12px; border: 0; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); font: 600 0.9375rem/1.2 var(--font-ui); color: var(--c-ink); white-space: nowrap; cursor: pointer; }
.cattabs__tab:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.cattabs__tab[aria-selected="true"] { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
.cattabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--c-accent); transform-origin: left center; transform: scaleX(var(--kit-fill, 1)); }
.cattabs__stage { position: relative; height: clamp(460px, 44vw, 580px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); }
.cattabs__panel { position: absolute; inset: 0; }
.cattabs__panel > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.cattabs__info { position: absolute; z-index: 2; top: 50%; display: grid; gap: 14px; justify-items: start; width: min(390px, 42%); padding: 22px 24px 24px; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); transform: translateY(-50%); }
.cattabs__panel--left .cattabs__info { left: 28px; }
.cattabs__panel--right .cattabs__info { right: 28px; }
.cattabs__name { font: 600 1.35rem/1.2 var(--font-display); }
.cattabs__fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cattabs__fields li { padding: 6px 12px; border-radius: 999px; background: var(--c-paper-alt); font-size: 0.875rem; font-weight: 600; }
.cattabs__card { width: 100%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-accent) 70%, var(--c-line)), var(--shadow-m); }
.cattabs__card .lcard__words b { font-size: 1.125rem; }
.cattabs__panel:not([hidden]) .cattabs__card { animation: cattabs-land 0.6s var(--ease-out) 0.2s both; }
@keyframes cattabs-land { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cattabs__more { font-size: 1.125rem; color: var(--c-ink-soft); }
.cattabs__stop { top: 16px; right: 16px; z-index: 3; }
.cattabs__panel--home > img { object-position: 30% 40%; }
.cattabs__panel--outdoor > img { object-position: 60% 50%; }
.cattabs__panel--law > img { object-position: 70% 40%; }
.cattabs__panel--health > img { object-position: 30% 40%; }
.cattabs__panel--realfin > img { object-position: 64% 40%; }
.cattabs__panel--events > img { object-position: 40% 45%; }
.cattabs__panel--more > img { object-position: 66% 40%; }

/* ---- mix: one analysis, three cuts ---- */
.whh-mix__stage { position: relative; max-width: 980px; margin-inline: auto; padding-top: 52px; }
.scene.whh-mix__scene { height: 520px; }
.whh-mix__stop { top: 0; right: 0; }

/* ---- anyway: the chat over a groomer at work ---- */
.anyway__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.anyway__head { margin-bottom: 0; }
.anyway__cta { display: grid; gap: var(--space-2); justify-items: start; margin-top: var(--space-3); }
.anyway__stage { position: relative; height: 600px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); }
.anyway__media { position: absolute; inset: 0; }
.anyway__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 100% 30%; }
.anyway__stop { top: 16px; left: 16px; }
.chatcard { position: absolute; z-index: 2; top: 50%; right: 24px; height: min(480px, calc(100% - 48px)); transform: translateY(-50%); display: grid; grid-template-rows: auto 1fr; width: min(340px, 54%); overflow: hidden; border-radius: 28px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.chatcard__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--c-line); font: 600 0.9375rem/1 var(--font-ui); }
.chatcard__head svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--c-ink); fill: var(--c-accent); }
.chatcard__msgs { display: grid; align-content: start; gap: 10px; padding: 16px; }
.msg { max-width: 88%; margin: 0; padding: 10px 14px 11px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.4; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.chatcard [data-kit-msg]:not(:first-child) { opacity: calc(var(--kit-in, 1) * (1 - var(--kit-out, 0))); }
.msg--bot { justify-self: start; border-bottom-left-radius: 6px; background: var(--c-paper-alt); color: var(--c-ink); }
.msg--me { justify-self: end; border-bottom-right-radius: 6px; background: var(--c-ink); color: var(--c-on-ink); }
.msg--typing { display: flex; gap: 5px; padding: 14px 15px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: msg-dot 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes msg-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.msg--choices { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 100%; padding: 0; }
.msg--choices span { min-width: 44px; padding: 8px 14px; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font-size: 0.9375rem; font-weight: 600; text-align: center; }
.msg--choices span[data-kit-on] { background: var(--c-accent); box-shadow: none; color: var(--c-on-brand); }

/* ---- close: the week filling up on the notebook's right page, the words on the left ---- */
.close--whh .close__media img { object-position: 50% 50%; }
.week { position: absolute; z-index: 1; top: 50%; left: 58%; display: grid; gap: 12px; width: 300px; transform: translateY(-50%); }
.week__card { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.week__stop { top: -56px; right: 0; }

/* ---- the tablet and the phone ---- */
@media (max-width: 1000px) {
  .anyway__in { grid-template-columns: minmax(0, 1fr); }
  .week { left: auto; right: var(--gutter); }
}
@media (max-width: 900px) {
  .week { display: none; }
}
@media (max-width: 760px) {
  .whh-strips { --line-x: 22px; height: auto; grid-template-rows: 300px; padding-bottom: 250px; }
  .whh-strips::before { inset: 0 0 auto; height: 300px; background: linear-gradient(color-mix(in srgb, var(--c-ink) 0%, transparent) 55%, color-mix(in srgb, var(--c-ink) 34%, transparent)); }
  .whh-track { top: 300px; left: var(--line-x); right: auto; width: 2px; height: 208px; margin: 0 0 0 -1px; background: repeating-linear-gradient(to bottom, var(--c-dash) 0 7px, transparent 7px 16px); }
  .whh-seg, .whh-step--1 .whh-seg { left: var(--line-x); width: var(--riser-w); margin: 0 0 0 calc(var(--riser-w) / -2); transform-origin: center top; transform: scaleY(var(--kit-in, 1)); }
  .whh-step--1 .whh-seg { top: 300px; height: 52px; }
  .whh-step--2 .whh-seg { top: 352px; height: 78px; }
  .whh-step--3 .whh-seg { top: 430px; height: 78px; }
  .whh-node { left: var(--line-x); top: calc(352px + var(--k) * 78px); border-color: var(--c-dash); }
  .whh-card { top: calc(352px + var(--k) * 78px); left: 48px; right: var(--gutter); width: auto; max-width: none; transform: translate(0, calc(-50% + (1 - var(--kit-in, 1)) * 12px)); }
  .scene.anykind__scene { height: 440px; }
  .cattabs__stage { height: 600px; }
  .cattabs__info { top: auto; bottom: 12px; width: auto; transform: none; padding: 18px; }
  .cattabs__panel--left .cattabs__info, .cattabs__panel--right .cattabs__info { left: 12px; right: 12px; }
  .scene.whh-mix__scene { height: 620px; }
  .anyway__stage { height: auto; display: grid; }
  .anyway__media img { object-position: 46% 18%; }
  .chatcard { position: relative; inset: auto; width: auto; height: 480px; margin: 230px 12px 12px; transform: none; }
}
