@import url("../arsenal/thread.css");
/* how-it-works.css: the page's parts inside `thread`, one lime wire down the navy page. Tokens of system.css only. */

.hiw { --lane: 76px; --thread-ink: var(--c-accent); --thread-w: 3px; --thread-radius: 18px; --thread-tail: 72px; --thread-bg: var(--c-ink); --thread-track-ink: color-mix(in srgb, var(--c-on-ink) 22%, transparent); background: var(--c-ink); color: var(--c-on-ink); }
/* the wire runs in its own lane on the page's left and over every ground */
.hiw .thread__svg { z-index: 2; }
.hiw :where([data-thread-anchor], [data-thread-light]) { z-index: 3; }
.hiw-wrap { max-width: var(--max-w); margin-inline: auto; padding-left: var(--lane); }
.hiw-part { position: relative; padding: var(--section-y) var(--gutter); }
.hiw-head { max-width: 760px; }
.hiw .head__title em { color: var(--c-accent); }
.hiw .head__line { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.hiw .cta-note { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.hiw .cta-note .icon-tick { background: var(--c-accent); color: var(--c-on-accent); }
.hiw :focus-visible { outline-color: var(--c-accent); }
.hiw-stop { top: 20px; right: 20px; }

/* a step's number is a terminal on the wire */
.hiw-num { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--c-accent); border-radius: 50%; background: var(--c-ink); color: var(--c-accent); font: 800 1.35rem/1 var(--font-display); transition: background var(--dur-fast), color var(--dur-fast); }
.hiw-num[data-lit] { background: var(--c-accent); color: var(--c-on-accent); }
.hiw-node { position: absolute; left: max(calc(var(--gutter) + 19px), calc((100vw - var(--max-w)) / 2 + 19px)); top: var(--section-y); width: 16px; height: 16px; margin-top: 10px; border: 3px solid var(--c-accent); border-radius: 50%; background: var(--c-ink); }
.hiw-node[data-lit] { background: var(--c-accent); }

/* ================= hero: the words, a framed phone lighting up, the bookings stacking over it ================= */
.hiw-hero { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(64px, 7vw, 96px); }
.hiw-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-left: 0; }
.hiw-hero__title { margin: 0 0 18px; font-size: min(4.7rem, 5.3vw); line-height: 1.02; letter-spacing: -0.025em; }
.hiw-hero__title em { font-style: normal; color: var(--c-accent); }
.hiw-hero__line { margin: 0 0 28px; max-width: 30em; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.hiw-hero__cta { flex-wrap: nowrap; }
.hiw-hero__cta .cta-note { flex: 1 1 auto; max-width: 230px; }
.hiw-hero__stage { position: relative; min-height: 600px; }
.hiw-hero__media { position: absolute; inset: 0 0 0 26px; }
/* the notifications and the chat stand side by side, so none lands on the chat's words */
.hiw-hero__stage .hiw-hero__wyw { position: absolute; left: 0; top: 18px; width: calc(100% - 282px); height: 340px; }
.hiw-hero__stage .hiw-hero__chat { position: absolute; right: -12px; bottom: -28px; width: 282px; overflow: visible; }
.hiw-hero__stop { top: 14px; right: 14px; }
/* where the two no longer fit side by side, the chat stands under the notifications */
@media (max-width: 1359px) {
  .hiw-hero__stage { min-height: 760px; }
  .hiw-hero__stage .hiw-hero__wyw { width: calc(100% - 26px); height: 310px; }
}
@media (max-width: 899px) {
  .hiw-hero__grid { grid-template-columns: 1fr; }
  .hiw-hero__title { font-size: min(3.4rem, 12vw); }
  .hiw-hero__cta { flex-wrap: wrap; }
  .hiw-hero__cta .cta-note { max-width: none; }
  .hiw-hero__stage { min-height: 760px; }
  .hiw-hero__media { inset: 0 0 130px 0; }
  .hiw-hero__stage .hiw-hero__wyw { left: 0; width: 100%; top: 14px; height: 170px; }
  .hiw-hero__stage .hiw-hero__chat { right: 50%; margin-right: -140px; bottom: 0; width: 280px; }
}

/* ================= yours and ours: rows on the wire ================= */
.hiw-rows { display: grid; gap: clamp(56px, 7vw, 96px); margin: 0; padding: 0; list-style: none; }
.hiw-row { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hiw-row .hiw-num { position: absolute; left: calc(var(--lane) * -1 + 8px); top: 0; }
.hiw-row__words h3 { margin: 0 0 10px; font-size: clamp(1.7rem, 1.25rem + 1.3vw, 2.5rem); line-height: 1.08; }
.hiw-row__words p { margin: 0; font-size: 1.15rem; color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.hiw-row__stop { top: 10px; right: 10px; }
.hiw-row__picture { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; min-height: 360px; padding: clamp(18px, 2.6vw, 36px); border-radius: var(--radius-l); background: var(--c-navy-2); border: 2px solid var(--c-navy-3); }
/* the chat keeps one height through its loop, so the words under it never move */
.hiw-row__picture .hiw-row__goal { width: 420px; max-width: 100%; align-self: end; min-height: 300px; }
.hiw-row__scan { width: 520px; max-width: 100%; }
.hiw-row__bars { width: 100%; height: 440px; }

/* the agency's steps: a photo per step, its scene over the side clear of faces */
.hiw-row__picture--photo { display: block; justify-items: normal; min-height: 0; padding: 0; border: 0; background: none; }
.hiw-row--flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.hiw-row--flip .hiw-row__words { order: 2; }
.hiw-photo { aspect-ratio: 1.42; }
.hiw-photo--4 video { object-position: 70% 50%; }
.hiw-row__picture .hiw-over { position: absolute; overflow: visible; }
.hiw-over--launch { left: 20px; top: 50%; width: 340px; height: 300px; margin-top: -150px; }
.hiw-over--leads { right: -18px; bottom: -24px; width: 360px; height: 290px; }
/* the board is tilted, which draws its small words smaller than their size */
.hiw-row__picture .hiw-over--leads :is(.ld-top span, .ld-av, .ld-who small, .ld-src) { font-size: 15px; }
.hiw-over--tune { left: 20px; top: 50%; width: 340px; min-height: 300px; margin-top: -160px; }
@media (max-width: 899px) {
  .hiw-row, .hiw-row--flip { grid-template-columns: minmax(0, 1fr); }
  .hiw-row--flip .hiw-row__words { order: 0; }
  .hiw-row__picture { min-height: 0; padding: 16px; }
  .hiw-row__bars { height: 420px; }
  .hiw-row__picture--photo { padding: 0; }
  /* on the phone each card stands on the foot of a taller photo, the face clear above it */
  .hiw-row__picture .hiw-over { position: relative; left: auto; right: auto; bottom: auto; top: auto; width: min(100%, 360px); margin: -165px auto 0; }
  .hiw-row__picture .hiw-over--tune { margin-top: -196px; }
  .hiw-photo { aspect-ratio: auto; height: 400px; }
  .hiw-photo--6 img { object-position: 82% 30%; }
}

/* ================= change: the to-do list rides the wire ================= */
.hiw-change__stage { position: relative; }
.hiw-change__stop { top: 6px; right: 6px; z-index: 2; }
.hiw-change__board { height: 520px; }
@media (max-width: 759px) { .hiw-change__board { height: 700px; } }

/* ================= inside: the plan, over the dentist's own screen ================= */
.hiw-inside__stage { position: relative; }
.hiw-inside__media { aspect-ratio: 2.05; }
.hiw-inside__media img { object-position: 40% 22%; }
.hiw-inside__plan[data-scene="plancards"] { position: absolute; right: 10px; top: 50%; width: 600px; margin-top: -235px; --pc-stage: transparent; --pc-tint: transparent; }
/* the cards stand straight on the photo: the scene's own stage, its tint and frame, are taken away */
.hiw-inside__stage .hiw-inside__plan .pc-stage { border: 0; box-shadow: none; }
.hiw-inside__stage .hiw-inside__plan .pc-stage::before { background: none; }
.hiw-inside__stop { top: 14px; left: 14px; right: auto; }
.hiw-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin: clamp(22px, 3vw, 32px) 0 0; padding: 0; list-style: none; }
.hiw-caps li { display: grid; gap: 4px; padding-top: 14px; border-top: 3px solid var(--c-accent); }
.hiw-caps b { font: 800 1.2rem/1.2 var(--font-display); }
.hiw-caps span { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
@media (max-width: 1099px) {
  .hiw-inside__media { aspect-ratio: auto; height: 500px; }
  .hiw-inside__plan[data-scene="plancards"] { position: relative; right: auto; top: auto; width: 100%; margin: -250px 0 0; }
}
@media (max-width: 759px) { .hiw-caps { grid-template-columns: 1fr; } }

/* ================= team: a person a tap away, the dashboard as a card beside her ================= */
.hiw-team__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(72px, 8vw, 112px); align-items: center; }
.hiw-team__words { margin: 0; }
.hiw-team__stage { position: relative; }
.hiw-team__media { aspect-ratio: 1.34; }
.hiw-team__media img { object-position: 100% 50%; }
.hiw-team__stage .hiw-team__card { position: absolute; left: -56px; top: 50%; width: 372px; height: 440px; margin-top: -220px; overflow: visible; }
.hiw-team__stop { top: 14px; right: 14px; }
@media (max-width: 899px) {
  .hiw-team__grid { grid-template-columns: 1fr; gap: 24px; }
  .hiw-team__media { aspect-ratio: auto; height: 470px; }
  .hiw-team__media img { object-position: 76% 20%; }
  .hiw-team__stage .hiw-team__card { position: relative; left: auto; top: auto; width: min(100%, 360px); height: 420px; margin: -225px auto 0; }
}

/* ================= faq: on the same navy, its cards solid ================= */
.hiw-faq { background: var(--c-ink); color: var(--c-on-ink); }
.hiw-faq .faq__grid { max-width: var(--max-w); margin-inline: auto; padding-left: var(--lane); }
.hiw-faq .faq__item { color: var(--c-ink); }
.hiw-faq .faq__head a { color: var(--c-accent); }

/* ================= close: the wire ends in the main button ================= */
.hiw-close { min-height: 620px; display: grid; align-items: center; }
/* the photo's own proportion is kept, so the rows stay on her wall sheet at every width: the box covers the band as the photo would */
.hiw-close .band__clip { container-type: size; }
.hiw-close__pic { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); container-type: inline-size; }
.hiw-close__sheet { position: absolute; left: 88.3%; right: .4%; top: 44%; bottom: 19.6%; display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; color: var(--c-ink); font: 700 max(12px, 1.02cqw)/1.1 var(--font-ui); }
.hiw-close__row { display: flex; align-items: center; gap: .45em; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.hiw-close__row .icon-tick { flex: none; width: 1.25em; height: 1.25em; padding: .18em; border-radius: 50%; background: var(--c-ink); color: var(--c-accent); }
.hiw-close__row--new span { padding: .24em .5em; border-radius: 999px; background: var(--c-accent); color: var(--c-on-accent); }
.hiw-close .hiw-wrap { width: 100%; }
.hiw-close .head { max-width: 560px; margin-bottom: 26px; }
.hiw-close__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 78%, transparent) 36%, transparent 62%); }
.hiw-close > .stop { top: auto; bottom: 12px; right: 20px; }
.hiw-close__cta { flex-wrap: wrap; }
.hiw-close__cta .btn[data-lit] { box-shadow: 4px 4px 0 var(--c-accent), 0 0 0 4px color-mix(in srgb, var(--c-accent) 55%, transparent); }

@media (max-width: 899px) {
  .hiw { --lane: 44px; }
  .hiw-row .hiw-num { left: calc(var(--lane) * -1); width: 36px; height: 36px; font-size: 1rem; border-width: 2.5px; }
  .hiw-node { left: calc(var(--gutter) + 10px); }
  /* on the phone the picture stands on top, her face and the sheet in view; the words on the navy under it */
  .hiw-close { min-height: 0; padding-top: 92vw; }
  .hiw-close .band__clip { bottom: auto; height: 96vw; }
  .hiw-close > .stop { top: 12px; bottom: auto; right: 12px; }
  .hiw-close__pic { left: auto; right: 0; top: -13.5vw; width: 200vw; transform: none; }
  .hiw-close__shade { background: linear-gradient(180deg, transparent 0, transparent 80vw, var(--c-ink) 96vw); }
}
