/* ------------------------------------------------------------------
   Sub-pages (services.html, industries.html): hero for the selected
   item, grouped picker, content blocks. Mobile-first stacking.
   ------------------------------------------------------------------ */
.sub-hero { height: auto; min-height: 0; background: radial-gradient(70% 60% at 88% 8%, color-mix(in srgb, var(--lettuce) 24%, transparent), transparent 60%), linear-gradient(160deg, var(--coach), var(--midnight)); }
.sub-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 132px 72px; }
.sub-hero__text { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.crumbs b { font-weight: 500; color: var(--on-dark); }
.sub-hero .chip { margin-bottom: 20px; }
.sub-h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.8px; }
.sub-hero .hero__lead { max-width: 560px; }
.sub-extra { margin-top: 20px; }
.sub-hero .finish, .sub-hero .finish-label { color: var(--on-dark-soft); }
.sub-hero .finish li { color: var(--on-dark); }
.sub-hero .finish li + li::before { color: var(--on-dark-soft); }
.sub-hero .reg-note { margin-top: 16px; background: color-mix(in srgb, var(--cream) 10%, transparent); color: var(--on-dark); }
.sub-hero .reg-note svg { color: var(--lettuce); }
.sub-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.sub-ctas .wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.sub-hero__visual { min-width: 0; }
.sub-hero__visual .ind-pic { min-height: 500px; box-shadow: 0 30px 70px rgb(0 0 0 / .32); }

/* Picker: every service / industry, grouped */
.picker { margin-top: 24px; padding: 24px; border-radius: var(--r-xl); background: var(--panel); }
.picker__toggle { display: none; }
.picker__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; }
.picker__group h6 { margin: 0 0 8px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--evergreen); }
.picker__group h6 span { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.picker__group a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--heading); transition: background-color .15s ease; }
.picker__group a svg { flex: none; width: 16px; height: 16px; color: var(--evergreen); }
.picker__group a:hover { background: var(--cream); }
.picker__group a.on { background: var(--coach); color: var(--cream); }
.picker__group a.on svg { color: var(--lettuce); }

/* Body */
.sub-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 84px; padding-block: 76px 30px; }
.feat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat-card { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--panel); }
.feat-card svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--lettuce); color: var(--coach); }
.feat-card p { font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--heading); }
.svc-two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.note-card { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-xl); background: var(--coach); color: var(--on-dark); }
.note-card .h5 { display: flex; align-items: center; gap: 10px; color: var(--on-dark); }
.note-card .h5 svg { width: 20px; height: 20px; color: var(--lettuce); }
.note-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.note-card li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--on-dark-soft); }
.note-card li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--lettuce); }
.fit-card { padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.fit-card .h5 { margin-bottom: 6px; }
.fit-card .sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .sub-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .feat-cards { grid-template-columns: 1fr 1fr; }
  .svc-two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sub-hero__grid { padding-block: 108px 40px; }
  .sub-h1 { font-size: 34px; }
  .sub-hero .hero__lead { font-size: 16px; }
  .picker { margin-top: 16px; padding: 0; background: none; }
  .picker__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border: 0; border-radius: 16px; background: var(--panel); font-size: 15px; font-weight: 600; color: var(--heading); cursor: pointer; }
  .picker__toggle span { display: flex; align-items: center; gap: 10px; }
  .picker__toggle span svg { width: 18px; height: 18px; color: var(--evergreen); }
  .picker__toggle > svg { width: 12px; height: 12px; transition: transform .2s ease; }
  .picker.open .picker__toggle > svg { transform: rotate(180deg); }
  .picker__groups { display: none; grid-template-columns: 1fr; margin-top: 8px; padding: 14px 10px; border-radius: 16px; background: var(--panel); }
  .picker.open .picker__groups { display: grid; }
  .sub-body { gap: 56px; padding-block: 48px 20px; }
}
@media (max-width: 640px) {
  .sub-h1 { font-size: 30px; }
  .sub-hero__visual .ind-pic { min-height: 400px; }
  .feat-cards { grid-template-columns: 1fr; }
  .feat-card { grid-template-columns: 28px 1fr; align-items: center; padding: 16px; }
  .feat-card p { font-size: 15px; }
  .note-card, .fit-card { padding: 22px; }
  .sub-body .steps .step { min-height: 0; padding: 14px 18px; }
  .sub-body .steps .step .n { padding-bottom: 0; border-bottom: 0; }
  .sub-body .steps .step .h5 { margin-top: 4px; }
  .sub-body .steps .step p { padding-top: 4px; }
  .sub-ctas { gap: 14px; }
}

/* /leak-audit/: what the week looks like */
.audit-card { width: 100%; max-width: 460px; margin-inline: auto; padding: 30px; border-radius: 24px; background: var(--cream); color: var(--heading); box-shadow: 0 40px 80px rgb(0 0 0 / .35); }
.audit-card h2 { margin: 0 0 18px; }
.audit-card ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.audit-card li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.audit-card li::before { content: "0" counter(s); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lettuce); color: var(--coach); font-weight: 600; font-size: 14px; }
.audit-card li b { font-weight: 600; }
.audit-card li span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.audit-card__note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--evergreen); }
.audit-form { padding-top: 70px; }

/* Sub-page headlines read as one sentence: no rule in the middle */
.sub-h1 span, .sub-h1 .tail-line { display: inline; }
.sub-h1 .tail-line::after { display: none; }

/* ============ /integrations/: a library filtered by category, like Wati's ============ */
.intlib { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 56px 0 96px; }
.intlib__side { position: sticky; top: 110px; align-self: start; }
.intlib__k { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--coach); }
.intlib__filters { display: grid; gap: 4px; }
.intlib__filters label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 15px; color: var(--body); cursor: pointer; transition: background-color .2s ease; }
.intlib__filters label:hover { background: var(--soft); }
.intlib__filters input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.intlib__note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.intlib__note a { color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.intlib__cat + .intlib__cat { margin-top: 56px; }
.intlib__h { margin: 0 0 20px; font: 400 32px/1.15 var(--serif); letter-spacing: -0.02em; color: var(--coach); }
.intlib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.intlib__card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s ease, translate .3s var(--ex); }
.intlib__card:hover { translate: 0 -3px; box-shadow: 0 18px 40px rgb(2 23 20 / .08), inset 0 0 0 1px var(--line); }
.intlib__name { display: flex; align-items: center; gap: 12px; margin: 0; font: 400 22px/1.2 var(--serif); color: var(--coach); }
.intlib__name .tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--coach); }
.intlib__name .tile svg { width: 22px; height: 22px; }
.intlib__text { flex: 1; margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.intlib__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.intlib__btns .btn { height: 40px; padding-inline: 16px; font-size: 14px; }
.intlib__btns .btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--coach); color: var(--coach); }
.intlib__btns .btn--line:hover { background: var(--soft); }
.intlib .swipe-dots { display: none; }
@media (max-width: 900px) {
  .intlib { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .intlib__side { position: static; }
  .intlib__filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .intlib__filters label { padding: 7px 12px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
}
/* phones: each category is a row you swipe (it also moves by itself), with a pill that slides from dot to dot */
@media (max-width: 640px) {
  .intlib__grid { display: flex; gap: 12px; margin-inline: -16px; padding: 4px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .intlib__grid::-webkit-scrollbar { display: none; }
  .intlib__card { flex: 0 0 84%; scroll-snap-align: start; }
  .intlib__h { font-size: 26px; }
  .intlib .swipe-dots { position: relative; display: flex; justify-content: center; gap: 6px; margin: 2px 0 0; }
  .intlib .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--coach) 20%, transparent); }
  .intlib .swipe-dots::after { content: ""; position: absolute; left: 50%; top: 0; width: 16px; height: 6px; border-radius: 100px; background: var(--teal); translate: calc(var(--at, 0) * 12px - var(--n, 1) * 6px - 2px) 0; transition: translate .45s var(--ex); }
}

/* tool initials in the tile, and the closing "Don't see the tool you use?" panel */
.intlib__name .tile b { font: 700 13px/1 var(--font); letter-spacing: .02em; color: var(--coach); }
.intlib__more { margin-top: 64px; padding: 36px; border-radius: 24px; background: var(--midnight); color: #fff; }
.intlib__more .intlib__h { color: #fff; }
.intlib__more p { max-width: 560px; margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--on-dark-soft); }
@media (max-width: 640px) { .intlib__more { margin-top: 44px; padding: 26px 22px; } }

/* ============ HUB PAGES (/services/, /industries/): in the homepage's style, like parallelhq.com/work ============
   A centred serif headline that rises in, filter pills, a featured card, then a two-column grid of photo cards
   that rise in as they arrive, zoom gently on hover and glide into place when the filter changes. */
.hub-page { background: #fff; }
.hub { padding: 168px 0 120px; }
.hub__head { display: grid; justify-items: center; text-align: center; }
.hub__title { max-width: 1000px; margin: 0; font: 400 76px/1.06 var(--serif); letter-spacing: -0.035em; color: var(--coach); text-wrap: balance; }
.hub__title em { font-style: italic; font-weight: 700; color: var(--teal-ink); }
.hub__lead { max-width: 640px; margin: 24px 0 0; font-size: 20px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.hub__pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 72px 0 36px; }
.hub-pill { height: 46px; padding: 0 22px; border: 0; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1 var(--font); color: var(--coach); cursor: pointer; transition: background-color .3s var(--ex), color .3s var(--ex), box-shadow .3s ease; }
.hub-pill:hover { box-shadow: inset 0 0 0 1px var(--coach); }
.hub-pill.is-on { background: var(--coach); box-shadow: none; color: #fff; }
.hub-pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.hub__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 40px; }
.hub-card { display: block; color: inherit; }
.hub-card[hidden] { display: none; }
.hub-card--big { grid-column: 1 / -1; }
.hub-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 660 / 500; border-radius: 6px; background: var(--soft); }
.hub-card--big .hub-card__media { aspect-ratio: 2.15; }
.hub-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ex); }
.hub-card:hover .hub-card__media img { transform: scale(1.04); }
.hub-card__chip { position: absolute; top: 22px; left: 22px; padding: 9px 16px; border-radius: 100px; background: rgb(2 23 20 / .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 12.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
/* what the card is about, laid over the photo: a two-line chat, or the industry's finish line */
.hub-card__chat { position: absolute; left: 22px; bottom: 22px; display: grid; gap: 6px; width: min(330px, calc(100% - 44px)); padding: 12px; border-radius: 16px; background: #efeae2; box-shadow: 0 18px 40px rgb(0 0 0 / .25); font-size: 13.5px; line-height: 1.35; color: #111b21; transition: translate .8s var(--ex); }
.hub-card__chat .in { justify-self: end; max-width: 86%; padding: 7px 10px; border-radius: 10px 3px 10px 10px; background: #d9fdd3; }
.hub-card__chat .out { justify-self: start; max-width: 86%; padding: 7px 10px; border-radius: 3px 10px 10px 10px; background: #fff; }
.hub-card__pill { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 100px; background: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / .18); font-size: 14px; font-weight: 600; color: var(--coach); transition: translate .8s var(--ex); }
.hub-card__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 30%, transparent); }
.hub-card:hover :is(.hub-card__chat, .hub-card__pill) { translate: 0 -6px; }
.hub-card__title { display: flex; align-items: center; gap: 10px; margin-top: 20px; font: 600 22px/1.25 var(--font); color: var(--coach); }
.hub-card__title svg { flex: none; width: 16px; height: 16px; opacity: 0; translate: -6px 0; transition: opacity .3s ease, translate .4s var(--ex); }
.hub-card:hover .hub-card__title svg, .hub-card:focus-visible .hub-card__title svg { opacity: 1; translate: 0 0; }
.hub-card__sub { display: block; margin-top: 6px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.hub-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 8px; }

/* the headline, the line under it and the pills rise in on load; the cards rise in as they arrive */
.js .hub__title, .js .hub__lead, .js .hub__pills { animation: hub-rise 1.2s var(--ex) both; }
.js .hub__lead { animation-delay: .12s; }
.js .hub__pills { animation-delay: .24s; }
@keyframes hub-rise { from { opacity: 0; translate: 0 34px; filter: blur(8px); } }
.js .hub-card { transition: opacity 1.1s var(--ex) var(--d, 0s), translate 1.4s var(--ex) var(--d, 0s), filter 1.1s var(--ex) var(--d, 0s); }
.js .hub-card:not(.in) { opacity: 0; translate: 0 56px; filter: blur(8px); }
/* the filter: cards glide to their new places (View Transitions where the browser has them) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

/* closing band */
.hub-cta { padding: 110px 0; background: linear-gradient(160deg, var(--deep), var(--midnight) 70%); color: #fff; text-align: center; }
.hub-cta__in { display: grid; justify-items: center; }
.hub-cta__title { max-width: 860px; margin: 0; font: 400 52px/1.1 var(--serif); letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.hub-cta__title em { font-style: italic; font-weight: 700; color: var(--lettuce); }
.hub-cta p { max-width: 560px; margin: 20px 0 30px; font-size: 18px; line-height: 1.5; color: var(--on-dark-soft); }

@media (max-width: 960px) {
  .hub__title { font-size: 58px; }
  .hub__grid { gap: 56px 24px; }
  .hub-cta__title { font-size: 42px; }
}
/* phones: two small cards per row, so the page stays short; the pills wrap instead of sliding */
@media (max-width: 640px) {
  .hub { padding: 128px 0 80px; }
  .hub__title { font-size: 42px; line-height: 1.08; }
  .hub__lead { margin-top: 16px; font-size: 17px; }
  .hub__pills { gap: 8px; margin: 40px 0 26px; }
  .hub-pill { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .hub-card__media { aspect-ratio: 1; }
  .hub-card--big .hub-card__media { aspect-ratio: 1.35; }
  .hub-card__chip { top: 10px; left: 10px; padding: 6px 9px; font-size: 9.5px; letter-spacing: .06em; }
  .hub-card:not(.hub-card--big) :is(.hub-card__chat, .hub-card__pill) { display: none; }
  .hub-card--big :is(.hub-card__chat, .hub-card__pill) { left: 12px; bottom: 12px; }
  .hub-card__title { gap: 6px; margin-top: 10px; font-size: 15px; }
  .hub-card__sub { display: -webkit-box; margin-top: 4px; overflow: hidden; font-size: 13px; line-height: 1.4; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .hub-cta { padding: 80px 0; }
  .hub-cta__title { font-size: 34px; }
  .hub-cta p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hub__title, .js .hub__lead, .js .hub__pills { animation: none; }
  .js .hub-card, .js .hub-card:not(.in) { opacity: 1; translate: none; filter: none; transition: none; }
  .hub-card__media img, .hub-card__chat, .hub-card__pill { transition: none; }
}

/* ============ INDUSTRY PAGES (/industries/<slug>/): minimal, in the homepage's style ============
   Hero with the industry's own first message and stages; its four problems; its steps to the finish line;
   the rules that stay with a person. Everything rises in; the stage tracker and the steps line move. */
.ip-page { background: #fff; }
.ip-hero { padding: 150px 0 110px; }
.ip-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
/* back to the page one level up (no breadcrumb trail) */
.ip-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .3s ease; }
.ip-back svg { width: 13px; height: 13px; transform: rotate(-135deg); transition: translate .4s var(--ex); }
.ip-back:hover { color: var(--coach); }
.ip-back:hover svg { translate: -3px 0; }
/* pages without a photo story show a card beside the headline (Leak Audit, Integrations) */
.ip-card { display: grid; place-items: center; }
.ip-card .audit-card { box-shadow: 0 30px 70px rgb(2 23 20 / .14), inset 0 0 0 1px var(--line); }
.js .ip-card { animation: hub-rise 1.2s var(--ex) .2s both; }
.ip-title { margin: 22px 0 0; font: 400 62px/1.06 var(--serif); letter-spacing: -0.03em; color: var(--coach); text-wrap: balance; }
.ip-lead { max-width: 520px; margin: 22px 0 0; font-size: 20px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.ip-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.ip-ctas .btn { height: 52px; padding-inline: 26px; font-size: 16px; }
.js .ip-hero__text > * { animation: hub-rise 1.2s var(--ex) both; }
.js .ip-title { animation-delay: .08s; }
.js .ip-lead { animation-delay: .16s; }
.js .ip-ctas { animation-delay: .24s; }

/* the photo tells this industry's story: its first message, then its stages to the finish line */
.ip-shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 4.6; border-radius: 24px; background: var(--soft); }
.ip-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .ip-shot { animation: ip-open 1.4s var(--ex) .1s both; }
@keyframes ip-open { from { clip-path: inset(8% 6% 10% 6% round 24px); } to { clip-path: inset(0 round 24px); } }
.ip-shot__msg { position: absolute; top: 9%; right: 6%; max-width: 74%; margin: 0; padding: 11px 14px; border-radius: 14px 4px 14px 14px; background: #d9fdd3; box-shadow: 0 16px 34px rgb(0 0 0 / .22); font-size: 15.5px; line-height: 1.4; color: #111b21; }
.js .ip-shot__msg { animation: ip-pop .8s var(--ex) .8s both; }
@keyframes ip-pop { from { opacity: 0; translate: 0 14px; scale: .94; } }
.ip-shot__track { position: absolute; left: 5%; right: 5%; bottom: 5%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 18px 18px 16px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgb(0 0 0 / .2); list-style: none; }
.ip-shot__track::before, .ip-shot__track::after { content: ""; position: absolute; top: 27px; left: calc(18px + (100% - 36px) / var(--n, 3) / 2); right: calc(18px + (100% - 36px) / var(--n, 3) / 2); height: 2px; border-radius: 2px; background: var(--line); }
.ip-shot__track::after { background: var(--teal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .9s var(--ex); }
.ip-shot__track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--muted); transition: color .5s ease; }
.ip-shot__track li i { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: background-color .5s var(--ex), box-shadow .5s var(--ex), scale .5s var(--ex); }
.ip-shot__track li.is-done { color: var(--coach); }
.ip-shot__track li.is-done i { background: var(--neon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--neon) 28%, transparent); scale: 1.08; }

/* section headings and reveals */
.ip-h2 { max-width: 780px; margin: 0; font: 400 52px/1.1 var(--serif); letter-spacing: -0.03em; color: var(--coach); text-wrap: balance; }
.ip-h2 em { font-style: italic; font-weight: 700; color: var(--teal-ink); }
.js [data-ip], .js .ip-prob, .js .ip-seg li { transition: opacity 1.1s var(--ex) var(--d, 0s), translate 1.4s var(--ex) var(--d, 0s), filter 1.1s var(--ex) var(--d, 0s); }
.js [data-ip]:not(.in), .js .ip-prob:not(.in), .js .ip-seg li:not(.in) { opacity: 0; translate: 0 48px; filter: blur(8px); }

/* the four problems */
.ip-probs { padding: 110px 0 120px; }
.ip-probs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.ip-prob { padding: 32px 34px 34px; border-radius: 22px; background: var(--soft); }
.ip-prob__n { font: 600 13px/1 var(--font); letter-spacing: .14em; color: var(--teal-ink); }
.ip-prob h3 { margin: 18px 0 0; font: 400 28px/1.15 var(--serif); letter-spacing: -0.02em; color: var(--coach); }
.ip-prob p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--body); }

/* the steps to the finish line: the line draws with scrolling (--run) and lights each step */
.ip-run { padding: 30px 0 130px; }
.ip-steps { --run: 0; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; margin: 60px 0 0; padding: 0; list-style: none; }
.ip-steps::before, .ip-steps::after { content: ""; position: absolute; top: 10px; left: 10px; right: calc((100% - 20px * 5) / 6 - 10px); height: 2px; border-radius: 2px; background: var(--line); }
.ip-steps::after { background: var(--teal); transform: scaleX(var(--run)); transform-origin: 0 50%; }
.ip-step { position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; }
.ip-step__dot { width: 22px; height: 22px; margin-bottom: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: background-color .5s var(--ex), box-shadow .5s var(--ex), scale .5s var(--ex); }
.ip-step b { font-size: 18px; font-weight: 600; color: var(--muted); transition: color .5s ease; }
.ip-step span:not(.ip-step__dot) { font-size: 15px; line-height: 1.5; color: var(--muted); transition: color .5s ease; }
.ip-step.is-on .ip-step__dot { background: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 18%, transparent); }
.ip-step.is-on b { color: var(--coach); }
.ip-step.is-on span:not(.ip-step__dot) { color: var(--body); }
.ip-step--end .ip-step__dot { width: 22px; height: 22px; }
.ip-step--end.is-on .ip-step__dot { background: var(--neon); box-shadow: 0 0 0 6px color-mix(in srgb, var(--neon) 30%, transparent); scale: 1.15; }
.ip-step--end.is-on b { color: var(--teal-ink); }

/* what always stays with a person */
.ip-human { padding: 110px 0; background: var(--midnight); color: #fff; }
.ip-human .ip-h2 { color: #fff; }
.ip-human .ip-h2 em { color: var(--lettuce); }
.ip-human__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin: 48px 0 0; padding: 0; list-style: none; }
.ip-human__list li { display: flex; gap: 14px; font-size: 17px; line-height: 1.55; color: var(--on-dark-soft); }
.ip-human__list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--lettuce); color: var(--coach); }

/* who it is for (only industries that have types) */
.ip-seg { padding: 110px 0 120px; }
.ip-seg__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
.ip-seg__list li { display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.ip-seg__list b { font-size: 18px; font-weight: 600; color: var(--coach); }
.ip-seg__list span { font-size: 14px; color: var(--muted); }
.ip-page .swipe-dots { display: none; }

@media (max-width: 960px) {
  .ip-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .ip-title { font-size: 50px; }
  .ip-h2 { font-size: 42px; }
  .ip-seg__list { grid-template-columns: 1fr 1fr; }
}
/* phones: the problems swipe (and move by themselves), the steps run down the page */
@media (max-width: 640px) {
  .ip-hero { padding: 120px 0 70px; }
  .ip-title { font-size: 38px; line-height: 1.08; }
  .ip-lead { font-size: 17px; }
  .ip-ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .ip-ctas .btn { justify-content: center; }
  .ip-ctas .u-link { align-self: center; }
  .ip-shot { aspect-ratio: 4 / 4.4; border-radius: 20px; }
  .ip-shot__msg { font-size: 14px; }
  .ip-shot__track { padding: 14px 10px 12px; }
  .ip-shot__track li { font-size: 11.5px; }
  .ip-h2 { font-size: 34px; line-height: 1.12; }
  .ip-probs { padding: 80px 0 70px; }
  .ip-probs__grid { display: flex; gap: 12px; margin: 32px -16px 0; padding: 4px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ip-probs__grid::-webkit-scrollbar { display: none; }
  .ip-prob { flex: 0 0 84%; padding: 26px 24px; scroll-snap-align: start; }
  .ip-prob h3 { font-size: 24px; }
  .ip-page .swipe-dots { position: relative; display: flex; justify-content: center; gap: 6px; margin: 2px 0 0; }
  .ip-page .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--coach) 20%, transparent); }
  .ip-page .swipe-dots::after { content: ""; position: absolute; left: 50%; top: 0; width: 16px; height: 6px; border-radius: 100px; background: var(--teal); translate: calc(var(--at, 0) * 12px - var(--n, 1) * 6px - 2px) 0; transition: translate .45s var(--ex); }
  .ip-run { padding: 10px 0 90px; }
  .ip-steps { grid-auto-flow: row; gap: 22px; margin-top: 36px; padding-left: 40px; }
  .ip-steps::before, .ip-steps::after { top: 10px; bottom: 10px; left: 10px; right: auto; width: 2px; height: auto; }
  .ip-steps::after { transform: scaleY(var(--run)); transform-origin: 50% 0; }
  .ip-step__dot { position: absolute; left: -40px; top: 0; margin: 0; }
  .ip-human { padding: 80px 0; }
  .ip-human__list { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .ip-human__list li { font-size: 16px; }
  .ip-seg { padding: 80px 0 90px; }
  .ip-seg__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ip-seg__list li { padding: 16px; }
  .ip-seg__list b { font-size: 15px; }
  .ip-seg__list span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ip-hero__text > *, .js .ip-shot, .js .ip-shot__msg { animation: none; }
  .js [data-ip], .js .ip-prob, .js .ip-seg li, .js [data-ip]:not(.in), .js .ip-prob:not(.in), .js .ip-seg li:not(.in) { opacity: 1; translate: none; filter: none; transition: none; }
}

.ip-kick { margin: 0 0 16px; font: 600 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }

/* ============ SERVICE PAGES (/whatsapp-assistant/, /whatsapp-marketing/ and their options) ============
   The same frame as the industry pages; the hero photo plays the page's own chat. */
/* the steps line fits any number of steps (--n) */
.ip-steps::before, .ip-steps::after { right: calc((100% - 20px * (var(--n, 6) - 1)) / var(--n, 6) - 10px); }

.sp-tags { position: absolute; top: 5%; left: 5%; right: 5%; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-tags li { padding: 7px 12px; border-radius: 100px; background: rgb(255 255 255 / .9); font-size: 12.5px; font-weight: 600; color: var(--coach); }

/* the option's four features */
.sp-feats-sec { padding: 110px 0 100px; }
.sp-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 48px 0 0; padding: 0; list-style: none; }
.sp-feats li { display: grid; align-content: space-between; gap: 40px; min-height: 170px; padding: 24px; border-radius: 20px; background: var(--soft); }
.sp-feats span { font: 600 13px/1 var(--font); letter-spacing: .14em; color: var(--teal-ink); }
.sp-feats b { font: 400 24px/1.2 var(--serif); letter-spacing: -0.015em; color: var(--coach); }

/* the industries that use it */
.sp-used { padding: 40px 0 110px; }
.sp-used__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 44px; }
.sp-ind { display: grid; gap: 4px; color: inherit; }
.sp-ind__pic { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 8px; background: var(--soft); }
.sp-ind__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ex); }
.sp-ind:hover .sp-ind__pic img { transform: scale(1.05); }
.sp-ind b { font-size: 18px; font-weight: 600; color: var(--coach); }
.sp-ind small { font-size: 14px; color: var(--muted); }

/* honest limits */
.sp-limits { padding: 0 0 100px; }
.sp-limits__box { max-width: 760px; padding: 28px 32px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.sp-limits__box h3 { margin: 0 0 12px; font: 600 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.sp-limits__box ul { display: grid; gap: 8px; margin: 0; padding: 0 0 0 18px; }
.sp-limits__box li { font-size: 16.5px; line-height: 1.55; color: var(--body); }

/* next option */
.sp-next { padding: 0 0 110px; }
.sp-next__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--coach); }
.sp-next__link small { grid-column: 1; font-size: 14px; color: var(--muted); }
.sp-next__link b { grid-column: 1; font: 400 36px/1.15 var(--serif); letter-spacing: -0.02em; }
.sp-next__link svg { grid-column: 2; grid-row: 1 / 3; width: 26px; height: 26px; transition: transform .5s var(--ex); }
.sp-next__link:hover svg { transform: translate(4px, -4px); }

/* service pages: what it includes, how it compares, what you approve and provide */
.sp-caps { padding: 40px 0 120px; }
.sp-caps__grid { margin-top: 48px; }
.sp-compare { padding: 0 0 110px; }
.sp-table { margin-top: 40px; overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.sp-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.sp-table th, .sp-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: start; color: var(--body); }
.sp-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.sp-table tbody th { font-weight: 600; color: var(--coach); }
.sp-table tr:last-child > * { border-bottom: 0; }
.sp-table .is-us { background: color-mix(in srgb, var(--asparagus) 45%, #fff); font-weight: 600; color: var(--coach); }
.sp-yours { padding: 100px 0; background: var(--soft); }
.sp-yours__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.sp-yours h3 { margin: 0 0 14px; font: 400 32px/1.15 var(--serif); letter-spacing: -0.02em; color: var(--coach); }
.sp-yours ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-yours li { display: flex; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--body); }
.sp-yours li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--lettuce); color: var(--coach); }
.sp-yours__note { grid-column: 1 / -1; margin: 14px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 17px; color: var(--muted); }

@media (max-width: 960px) {
  .sp-feats { grid-template-columns: 1fr 1fr; }
  .sp-used__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sp-tags li { padding: 5px 9px; font-size: 11px; }
  .sp-feats-sec { padding: 80px 0 70px; }
  .sp-feats { gap: 10px; margin-top: 30px; }
  .sp-feats li { min-height: 130px; gap: 24px; padding: 18px; }
  .sp-feats b { font-size: 19px; }
  .sp-used { padding: 20px 0 80px; }
  .sp-used__grid { display: flex; gap: 12px; margin: 30px -16px 0; padding: 4px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sp-used__grid::-webkit-scrollbar { display: none; }
  .sp-ind { flex: 0 0 72%; scroll-snap-align: start; }
  .sp-limits { padding-bottom: 70px; }
  .sp-limits__box { padding: 22px; }
  .sp-next { padding-bottom: 80px; }
  .sp-next__link b { font-size: 28px; }
  .sp-caps { padding: 20px 0 80px; }
  .sp-compare { padding-bottom: 80px; }
  .sp-yours { padding: 70px 0; }
  .sp-yours__in { grid-template-columns: 1fr; }
  .sp-yours h3 { font-size: 26px; }
}

/* ============ DRAWN SERVICE SCENES (.mk, from build_mocks.py): what each service looks like in WhatsApp ============
   Sizes are in em off the scene's own height, so one scene works as a card and as a hero.
   Steps (.mk-s) appear in order (assets/mk.js), all the way to the finish, on repeat while on screen. */
.mk { position: absolute; inset: 0; display: grid; place-items: center; padding: 6% 8%; overflow: hidden; container-type: size; background: var(--mk-bg); }
.mk--mint { --mk-bg: radial-gradient(120% 90% at 18% 0%, #dcf6e8, #f1f6f4 62%); }
.mk--sky { --mk-bg: radial-gradient(120% 90% at 82% 0%, #d6f3f3, #eef4f6 62%); }
.mk--stone { --mk-bg: radial-gradient(120% 90% at 50% 0%, #e9eeec, #f6f7f6 62%); }
.mk-phone, .mk-panel { font-size: clamp(10px, 3.2cqh, 15px); transition: translate .8s var(--ex); }
.hub-card:hover .mk > * { translate: 0 -.4em; }

/* the phone */
.mk-phone { display: flex; flex-direction: column; height: 100%; aspect-ratio: .6; max-width: 100%; overflow: hidden; border-radius: 1.6em; background: #efeae2; box-shadow: 0 1.4em 3em rgb(2 23 20 / .18), 0 0 0 1px rgb(2 23 20 / .06); line-height: 1.35; color: #111b21; }
.mk-head { display: flex; align-items: center; gap: .6em; padding: .7em .8em; background: #fff; }
.mk-head i { display: grid; place-items: center; flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--asparagus); font-style: normal; font-weight: 600; color: var(--coach); }
.mk-head b { display: block; font-size: .95em; }
.mk-head small { display: block; font-size: .75em; color: #00a884; }
.mk-body { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: .45em; min-height: 0; padding: .7em; overflow: hidden; }
.mk-in, .mk-out { flex: none; max-width: 86%; margin: 0; padding: .5em .7em; border-radius: .7em; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.mk-in { align-self: flex-end; border-top-right-radius: .2em; background: #d9fdd3; }
.mk-out { align-self: flex-start; border-top-left-radius: .2em; background: #fff; }
.mk-btns { flex: none; align-self: flex-start; display: grid; gap: .22em; width: 78%; margin: -.15em 0 0; }
.mk-btns span { padding: .45em; border-radius: .55em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); text-align: center; font-weight: 600; color: #027eb5; }
.mk-chip { flex: none; align-self: center; margin: .2em 0 0; padding: .35em .8em; border-radius: 100px; font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.mk-chip--ok { background: #dff7e9; color: #0b6b3c; }
/* an opted-in template message with its picture */
.mk-tpl { flex: none; align-self: flex-start; width: 84%; overflow: hidden; border-radius: .7em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.mk-tpl__pic { display: flex; align-items: flex-end; height: 4.4em; padding: .5em .7em; background: linear-gradient(135deg, var(--teal), var(--neon)); font: 400 1.25em/1.1 var(--serif); color: #fff; }
.mk-tpl p { margin: 0; padding: .55em .7em .15em; }
.mk-tpl small { display: block; padding: 0 .7em .55em; font-size: .72em; color: #667781; }
/* product cards from the catalog */
.mk-cards { flex: none; display: flex; gap: .4em; width: 112%; margin: 0; padding: 0; list-style: none; }
.mk-cards li { display: grid; flex: 0 0 40%; overflow: hidden; border-radius: .6em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); font-size: .8em; }
.mk-cards b { padding: .45em .55em 0; }
.mk-cards small { padding: 0 .55em .35em; color: #667781; }
.mk-cards span { padding: .4em; border-top: 1px solid #eef1f0; text-align: center; font-weight: 600; color: #027eb5; }
.mk-sw { display: block; height: 3.8em; }
.mk-sw--a { background: repeating-linear-gradient(45deg, #f3c4b4 0 6px, #f8ddd2 6px 12px); }
.mk-sw--b { background: radial-gradient(circle, #fff 22%, transparent 24%) 0 0 / 12px 12px, #2f7f86; }
.mk-sw--c { background: linear-gradient(160deg, #e9d8b8, #c9a978); }
/* a WhatsApp form sliding up */
.mk-form { flex: none; display: grid; gap: .45em; margin: .2em -.7em -.7em; padding: .8em .8em 1em; border-radius: 1em 1em 0 0; background: #fff; box-shadow: 0 -.6em 1.6em rgb(0 0 0 / .14); font-size: .86em; }
.mk-form p { margin: 0; }
.mk-form__h b { font-size: 1.05em; }
.mk-form__f { display: grid; grid-template-columns: 4.2em 1fr; align-items: center; gap: .4em; }
.mk-form__f > span { font-size: .85em; color: #667781; }
.mk-form__f > b { font-weight: 500; }
.mk-sel { padding: .35em .5em; border-radius: .4em; box-shadow: inset 0 0 0 1px #d5dcda; }
.mk-opts { display: flex; gap: .3em; }
.mk-opts em { padding: .22em .55em; border-radius: 100px; box-shadow: inset 0 0 0 1px #d5dcda; font-style: normal; }
.mk-opts em.on { background: #e7f8ef; box-shadow: inset 0 0 0 1.5px #25a55f; font-weight: 600; color: #0b6b3c; }
.mk-form .mk-form__go { margin-top: .15em; padding: .55em; border-radius: 100px; background: #1fa855; text-align: center; font-weight: 600; color: #fff; }
/* the referral card when a chat starts from an ad */
.mk-ad { flex: none; display: grid; overflow: hidden; border-radius: .7em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); font-size: .82em; }
.mk-ad__pic { display: flex; align-items: flex-end; height: 3.8em; padding: .4em .6em; background: linear-gradient(135deg, #0064e0, #22c1ee); font-weight: 700; color: #fff; }
.mk-ad b { padding: .45em .6em 0; }
.mk-ad small { padding: 0 .6em .45em; color: #667781; }
.mk-ad__cta { padding: .45em; border-top: 1px solid #eef1f0; text-align: center; font-weight: 600; color: #027eb5; }

/* panels: the inbox, the plan, the platform, the profile, the sync, the dashboard */
.mk-panel { display: grid; align-content: start; gap: .55em; width: min(100%, 26em); max-height: 100%; overflow: hidden; padding: 1em; border-radius: 1.1em; background: #fff; box-shadow: 0 1.4em 3em rgb(2 23 20 / .16), 0 0 0 1px rgb(2 23 20 / .05); line-height: 1.35; color: #111b21; }
.mk-panel p { margin: 0; }
.mk-panel__h { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.mk-panel__h b { font-size: 1.05em; }
.mk-panel__h small { font-size: .74em; color: #667781; }
.mk-panel .mk-out { justify-self: start; background: var(--soft); box-shadow: none; }
.mk-inbox ul { display: grid; gap: .35em; margin: 0; padding: 0; list-style: none; }
.mk-inbox li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center; gap: .1em .6em; padding: .5em .6em; border-radius: .7em; background: var(--soft); }
.mk-inbox li > i { grid-row: span 2; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #fff; font-style: normal; font-weight: 600; color: var(--coach); }
.mk-inbox li > span { grid-row: span 2; min-width: 0; }
.mk-inbox li b { display: block; font-size: .86em; }
.mk-inbox li small { display: block; overflow: hidden; font-size: .72em; color: #667781; white-space: nowrap; text-overflow: ellipsis; }
.mk-inbox em { justify-self: end; padding: .15em .55em; border-radius: 100px; background: #dff7e9; font-style: normal; font-size: .66em; font-weight: 700; color: #0b6b3c; }
.mk-inbox u { justify-self: end; font-size: .68em; color: #667781; text-decoration: none; }
.mk-inbox li.is-need { background: color-mix(in srgb, var(--asparagus) 55%, #fff); }
.mk-inbox li.is-need em { background: #fff1d6; color: #8a5300; }
.mk-inbox li.is-done em { background: #eef1f0; color: #667781; }
.mk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25em; }
.mk-cal i { display: grid; place-items: center; aspect-ratio: 1.3; border-radius: .35em; background: var(--soft); font-style: normal; font-size: .7em; color: #667781; }
.mk-cal i.r { background: #d5efea; font-weight: 600; color: var(--teal-ink); }
.mk-cal i.e { background: color-mix(in srgb, var(--neon) 45%, #fff); font-weight: 700; color: var(--coach); }
.mk-cal i.w { background: #fff1d6; color: #8a5300; }
.mk-draft { display: grid; gap: .25em; padding: .7em; border-radius: .7em; box-shadow: inset 0 0 0 1px var(--line); }
.mk-draft b { font-size: .88em; }
.mk-draft span { font-size: .75em; color: #667781; }
.mk-draft p { display: flex; gap: .4em; margin-top: .35em; }
.mk-draft em { padding: .3em .85em; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); font-style: normal; font-size: .75em; font-weight: 600; color: var(--coach); }
.mk-row { display: flex; justify-content: space-between; gap: 1em; padding: .55em .7em; border-radius: .55em; background: var(--soft); font-size: .82em; }
.mk-row span { color: #667781; }
.mk-row b { color: var(--coach); }
.mk-row--sync b::before { content: "✓ "; color: #1fa855; }
.mk-profile { justify-items: center; text-align: center; }
.mk-profile__logo { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--grad); font-size: 1.3em; font-weight: 700; color: #fff; }
.mk-profile__name { display: flex; align-items: center; gap: .3em; }
.mk-profile__name b { font-size: 1.1em; }
.mk-profile__name svg { width: 1.15em; height: 1.15em; padding: .18em; border-radius: 50%; background: #1d9bf0; color: #fff; }
.mk-profile > small { margin-top: -.3em; font-size: .78em; color: #667781; }
.mk-profile .mk-row { width: 100%; }
.mk-profile .mk-btns { grid-template-columns: 1fr 1fr; width: 100%; margin: .2em 0 0; }
.mk-profile .mk-btns span { box-shadow: inset 0 0 0 1px var(--line); }
.mk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.mk-kpis p { padding: .5em .6em; border-radius: .6em; background: var(--soft); }
.mk-kpis small { display: block; font-size: .68em; color: #667781; }
.mk-kpis b { font: 400 1.45em/1.1 var(--serif); }
.mk-dash__k { font-size: .7em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #667781; }
.mk-bars { display: grid; gap: .5em; margin: 0; padding: 0; list-style: none; }
.mk-bars li { display: grid; grid-template-columns: 1fr auto; gap: .25em .6em; font-size: .8em; }
.mk-bars i { position: relative; grid-column: 1 / -1; height: .45em; overflow: hidden; border-radius: 100px; background: var(--soft); }
.mk-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--teal); }

/* the scene plays (assets/mk.js): each step appears in turn at the bottom, the tapped button lights up */
.js .mk .mk-s:not(.is-shown) { display: none; }
.js .mk .mk-s.is-shown { animation: mk-in .55s var(--ex) both; }
.js .mk .mk-s.is-shown .is-tap { animation: mk-tap .4s ease var(--t, .55s) both; }
.js .mk .mk-draft.is-shown em.is-tap { animation-name: mk-approve; }
@keyframes mk-in { from { opacity: 0; translate: 0 .8em; } }
@keyframes mk-tap { to { background: #d4ecfa; scale: .97; } }
@keyframes mk-approve { to { background: var(--coach); box-shadow: none; color: #fff; } }
/* a finger press: a soft ripple from the middle of whatever is tapped */
.mk .is-tap { position: relative; overflow: hidden; }
.js .mk .mk-s.is-shown .is-tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2em; height: 2em; margin: -1em; border-radius: 50%; background: rgb(2 23 20 / .16); animation: mk-ripple .65s ease-out var(--t, .55s) both; pointer-events: none; }
@keyframes mk-ripple { from { scale: 0; opacity: 1; } to { scale: 4; opacity: 0; } }

/* the chat comes alive: the message bar the customer types into, "typing…" before HumAI answers, ticks turning blue */
.mk-bar { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: .4em; padding: .1em .55em .6em; }
.mk-bar__text { flex: 1; min-width: 0; height: 2.3em; padding: 0 .9em; overflow: hidden; border-radius: 100px; background: #fff; line-height: 2.3em; white-space: nowrap; color: #111b21; }
.mk-bar__text:empty::before { content: "Message"; color: #8696a0; }
.mk-bar__text.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 1px; vertical-align: -.2em; background: #00a884; animation: mk-caret 1s steps(1) infinite; }
.mk-bar__send { position: relative; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: #00a884; transition: scale .2s ease; }
.mk-bar__send::after { content: ""; position: absolute; inset: 0; width: .85em; height: .85em; margin: auto; translate: .08em 0; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%); }
.mk-bar__send.is-send { scale: .86; }
@keyframes mk-caret { 50% { opacity: 0; } }
.mk-typing { flex: none; align-self: flex-start; display: flex; gap: .28em; margin: 0; padding: .7em .85em; border-radius: .7em; border-top-left-radius: .2em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); animation: mk-in .35s var(--ex) both; }
.mk-typing i { width: .45em; height: .45em; border-radius: 50%; background: #8696a0; animation: mk-dot 1s ease-in-out infinite; }
.mk-typing i:nth-child(2) { animation-delay: .15s; }
.mk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mk-dot { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -.28em; } }
.mk-in::after { content: "✓✓"; margin-inline-start: .55em; font-size: .68em; letter-spacing: -.32em; color: #8696a0; }
.js .mk .mk-in.is-shown::after { animation: mk-read .3s ease 1s both; }
@keyframes mk-read { to { color: #53bdeb; } }

/* each panel shows its own work */
/* setup and sync rows: a spinner, then the tick */
.mk-row--sync { position: relative; }
.js .mk .mk-row--sync.is-shown b { animation: mk-late .3s ease .7s both; }
.js .mk .mk-row--sync.is-shown::after { content: ""; position: absolute; right: .8em; top: 50%; width: .85em; height: .85em; margin-top: -.5em; border: 2px solid #cfe9dc; border-top-color: #1fa855; border-radius: 50%; animation: mk-spin .7s linear, mk-gone .01s linear .7s forwards; }
@keyframes mk-late { from { opacity: 0; scale: .85; } }
@keyframes mk-spin { to { rotate: 1turn; } }
@keyframes mk-gone { to { opacity: 0; visibility: hidden; } }
/* the inbox: Mona's request turns to Done once Sara has handled it */
.mk-inbox li { transition: background-color .5s ease; }
.mk-inbox em { transition: background-color .5s ease, color .5s ease; }
.mk-inbox .mk-b { display: none; }
.mk-inbox:has(> .mk-chip.is-shown) li.is-flip { background: var(--soft); }
.mk-inbox:has(> .mk-chip.is-shown) li.is-flip em { background: #eef1f0; color: #667781; }
.mk-inbox:has(> .mk-chip.is-shown) li.is-flip .mk-a { display: none; }
.mk-inbox:has(> .mk-chip.is-shown) li.is-flip .mk-b { display: inline; }
/* the season plan: its days are marked one after another */
.js .mk .mk-cal.is-shown i[style] { animation: mk-mark .45s var(--ex) both; animation-delay: calc(.3s + var(--i) * .15s); }
@keyframes mk-mark { from { background: var(--soft); color: #667781; scale: .7; } }
/* the form: service, branch and day are picked in turn, then the booking is confirmed */
.js .mk .mk-form.is-shown .mk-sel { animation: mk-fill .3s ease var(--t) both; }
.js .mk .mk-form.is-shown em.on { animation: mk-pick .35s ease var(--t) both; }
.js .mk .mk-form.is-shown .mk-form__go.is-tap { animation-name: mk-press; }
@keyframes mk-fill { from { color: transparent; } }
@keyframes mk-pick { from { background: transparent; box-shadow: inset 0 0 0 1px #d5dcda; color: inherit; font-weight: 400; } }
@keyframes mk-press { 50% { scale: .95; filter: brightness(.88); } }
/* product cards slide in one after another */
.js .mk .mk-cards.is-shown li { animation: mk-slide .55s var(--ex) both; }
.js .mk .mk-cards.is-shown li:nth-child(2) { animation-delay: .15s; }
.js .mk .mk-cards.is-shown li:nth-child(3) { animation-delay: .3s; }
@keyframes mk-slide { from { opacity: 0; translate: 2em 0; } }
/* the verified badge pops in */
.js .mk .mk-profile__name.is-shown svg { animation: mk-badge .55s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
@keyframes mk-badge { from { scale: 0; rotate: -120deg; } }
/* dashboard bars grow from zero */
.js .mk .mk-bars.is-shown i::after { animation: mk-grow 1.1s var(--ex) both; }
.js .mk .mk-bars.is-shown li:nth-child(2) i::after { animation-delay: .12s; }
.js .mk .mk-bars.is-shown li:nth-child(3) i::after { animation-delay: .24s; }
@keyframes mk-grow { from { width: 0; } }
/* the booking summary, and a step that waits on the team */
.mk-sum { flex: none; align-self: flex-start; display: grid; gap: .3em; width: 88%; padding: .7em .8em; border-radius: .7em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); font-size: .88em; }
.mk-sum > b { margin-bottom: .1em; }
.mk-sum p { display: grid; grid-template-columns: 4.6em 1fr; gap: .4em; margin: 0; }
.mk-sum p span { color: #667781; }
.mk-sum .mk-sum__btns { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .35em; padding-top: .45em; border-top: 1px solid #eef1f0; }
.mk-sum__btns span { padding: .3em; border-radius: .45em; text-align: center; font-weight: 600; color: #027eb5; }
.mk-chip--wait { background: #fff1d6; color: #8a5300; }
/* a day passing, like WhatsApp's date pill */
.mk-day { flex: none; align-self: center; margin: .3em 0; padding: .25em .7em; border-radius: .5em; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .1); font-size: .72em; color: #667781; }
/* a form sheet closes once it is sent */
.js .mk .mk-form.is-shown:has(~ .is-shown) { display: none; }
/* between plays the chat fades out, then starts again */
.mk-body, .mk-panel .mk-s { transition: opacity .4s ease; }
.mk.is-fading :is(.mk-body, .mk-panel .mk-s) { opacity: 0; }

/* in the hero the scene fills the frame */
.sp-mock { background: none; }
.sp-mock .mk { border-radius: inherit; }
@media (prefers-reduced-motion: reduce) {
  .js .mk .mk-s.is-shown, .js .mk .mk-s.is-shown .is-tap, .js .mk .mk-s.is-shown *, .js .mk .mk-s.is-shown::after, .js .mk .mk-s.is-shown *::after { animation: none; }
  .js .mk .mk-row--sync.is-shown::after, .js .mk .mk-s.is-shown .is-tap::after { display: none; }
  .mk-in::after { color: #53bdeb; }
  .mk .is-tap { background: #d4ecfa; }
}
/* room for the corner label (cards) and the highlights (service heroes) above the scene */
.hub-card .mk, .sp-mock:has(.sp-tags) .mk { padding-top: 64px; }
@media (max-width: 640px) {
  .hub-card .mk { padding: 38px 6% 6%; }
  /* phones: small cards give the whole square to the messages (no chat header, no repeated service label) */
  .hub-card :is(.mk-head, .mk-bar) { display: none; }
  .hub-card .mk-phone { width: 100%; aspect-ratio: auto; border-radius: 10px; font-size: 11px; }
  .hub-card .mk-panel { font-size: 11px; }
  .hub-card:not(.hub-card--big) .mk { padding: 8px; }
  .hub-card:not(.hub-card--big) .hub-card__chip { display: none; }
}
.sp-mock:has(.sp-tags) .mk { padding-top: 108px; }
@media (max-width: 640px) { .sp-mock:has(.sp-tags) .mk { padding-top: 96px; } }

/* ============ ISOMETRIC DRAWINGS (.iso, from build_iso.py): hatched blocks that assemble on arrival ============ */
.iso { --iso-line: rgb(255 255 255 / .78); --iso-top: #06302b; --iso-hatch: rgb(255 255 255 / .34); --iso-accent: var(--neon); position: relative; display: block; }
.iso svg { display: block; width: 100%; height: 100%; overflow: visible; }
.iso .e { stroke: var(--iso-line); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso .g { stroke: rgb(255 255 255 / .28); }
.iso .hl-n { stroke: var(--iso-hatch); stroke-width: 1; }
.iso .hl-a { stroke: color-mix(in srgb, var(--iso-accent) 70%, transparent); stroke-width: 1; }
.iso .is-accent .e { stroke: var(--iso-accent); }
.iso .is-accent .t { fill: color-mix(in srgb, var(--iso-accent) 22%, var(--iso-top)); }
.iso .iso-l { stroke: var(--iso-accent); stroke-dasharray: 4 5; }
/* it assembles: blocks drop in one after another, edges draw, hatching fades in; the accent then floats */
.iso .iso-b { transition: opacity .6s var(--ex), transform 1.1s var(--ex); transition-delay: calc(.1s + var(--k) * .13s); }
.iso .e:not(.iso-l) { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ex) calc(.1s + var(--k) * .13s), fill-opacity .8s ease calc(.5s + var(--k) * .13s); }
.js .iso:not(.in) .iso-b { opacity: 0; transform: translateY(-44px); }
.js .iso:not(.in) .e:not(.iso-l) { stroke-dashoffset: 1; fill-opacity: 0; }
.iso.in .iso-bob { animation: iso-bob 6s ease-in-out 2s infinite; }
@keyframes iso-bob { 50% { transform: translateY(-7px); } }
/* the dark grid behind them */
/* the industry stairs: light (on white), each block lights up when its step does */
.iso--stairs { --iso-line: rgb(2 23 20 / .55); --iso-top: #fff; --iso-hatch: rgb(2 23 20 / .2); --iso-accent: var(--teal); width: min(460px, 70%); margin: 34px 0 0 auto; }
.iso--stairs .g { stroke: rgb(2 23 20 / .18); }
.iso--stairs .iso-b .t { transition: fill .5s var(--ex); }
.iso--stairs .iso-b.is-lit .t { fill: color-mix(in srgb, var(--neon) 55%, #fff); }
.iso--stairs .iso-b.is-accent.is-lit .t { fill: var(--neon); }
.ip-run .container { position: relative; }
@media (min-width: 961px) { .iso--stairs { position: absolute; top: -10px; right: 0; width: 380px; margin: 0; } .ip-run .ip-h2 { max-width: 640px; } }
@media (max-width: 640px) {
  .iso--stairs { width: 78%; margin: 24px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .iso .iso-b, .iso .e { transition: none; }
  .iso.in .iso-bob { animation: none; }
}
