@import url("../arsenal/thread.css");
/* How it works (plan.md, "How it works"): white and lime green (body.page-lime), the thread (arsenal composition).
   Grounds: hero night, yours white, ours night raised, inside lime tint, team night, faq white, close night.
   The parts are not positioned, so the line runs over their grounds; every picture it passes is opaque. Tokens only. */

.hiw-thread { --thread-ink: var(--c-lime); --thread-track-ink: rgb(37 211 102 / 0.32); --thread-bg: var(--c-night); --thread-w: 2px; }
.hiw-thread > .sec { position: static; }

/* the step numbers and the hand-over node: lime rings that fill as the line plugs in, one ripple each */
.hiw-num, .hiw-hand__node, .hiw-faq__node { position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--c-day); color: var(--c-lime-ink); border: 2px solid var(--c-lime); }
.hiw-num { width: 60px; height: 60px; font: var(--w-head) 1.45rem/1 var(--font-display); font-stretch: var(--stretch-display); }
.hiw-num::after, .hiw-hand__node::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c-lime); pointer-events: none;
  opacity: calc((1 - var(--lit-after, 0)) * var(--lit, 0)); transform: scale(calc(1 + var(--lit-after, 0) * 0.9)); }
.hiw-num[data-lit], .hiw-hand__node[data-lit], .hiw-faq__node[data-lit] { background: var(--c-lime-ink); color: var(--c-white); box-shadow: 0 0 22px -4px rgb(37 211 102 / 0.7); }
.g-raised .hiw-num, .g-night .hiw-num { background: var(--c-night-raised); color: var(--c-lime); }

/* ---------- hero: centered words, the planner clip, the chat phone over its right edge ---------- */
.hiwh { padding-block: clamp(40px, 5vw, 80px) clamp(80px, 9vw, 128px); overflow: hidden; }
.hiwh__copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hiwh__title { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); }
.hiwh__lede { max-width: 50ch; margin: var(--space-4) auto 0; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-on-night); }
.hiwh__go { display: grid; justify-items: center; gap: 10px; margin-top: var(--space-5); }
.hiwh__go .cta-note { margin: 0; }
.hiwh__pic { position: relative; max-width: 1000px; height: 520px; margin: clamp(56px, 6vw, 88px) auto 0; clip-path: inset(0 -400px -200px -400px); }
.hiwh__frame { position: absolute; left: 4%; top: 0; width: 68%; height: 100%; border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-raised);
  box-shadow: var(--shadow-l), 0 0 0 1px rgb(37 211 102 / calc(0.12 + 0.3 * var(--lit, 0))); }
.hiwh__media { position: absolute; inset: -14px; filter: saturate(calc(0.62 + 0.38 * var(--lit, 0))); }
.hiwh__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 45% 50%; }
.hiwh__shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgb(10 12 16 / 0.55)); }
.hiwh__phone { position: absolute; z-index: 2; right: 3%; bottom: -28px; width: 300px; }
.hiwh__phone .bolt { z-index: -1; }
.hiwh__stop { top: 12px; left: calc(4% + 12px); right: auto; }
@media (max-width: 760px) {
  .hiwh__pic { height: auto; margin-top: var(--space-6); }
  .hiwh__frame { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 4 / 3.4; }
  .hiwh__phone { position: relative; right: auto; bottom: auto; width: min(300px, 90%); margin: -90px auto 0; }
}

/* ---------- the rows: words | number in the center lane | picture ---------- */
.hiw-head { max-width: calc(50% - 64px); }
.hiw-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 80px); }
.hiw-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 0 clamp(16px, 2.6vw, 36px); align-items: center; }
.hiw-row__text { grid-column: 1; grid-row: 1; max-width: 460px; }
.hiw-num { grid-column: 2; grid-row: 1; justify-self: center; }
.hiw-row__stage, .hiw-photo { grid-column: 3; grid-row: 1; }
.hiw-row--flip .hiw-row__text { grid-column: 3; }
.hiw-row--flip .hiw-photo { grid-column: 1; }
.hiw-row__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-head); }
.hiw-row__line { margin: var(--space-3) 0 0; font-size: var(--fs-body); line-height: 1.55; color: var(--c-on-day-soft); }
.hiw-row__tag { margin: var(--space-3) 0 0; font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-lime-ink); }
.g-raised .hiw-row__line { color: var(--c-on-night); }
.g-raised .hiw-row__tag { color: var(--c-lime); }

/* yours: the scenes on the white ground */
.hiw-row__stage { position: relative; }
.hiw-row__stage--goal { height: 300px; display: flex; align-items: flex-end; }
.scene.hiw-scene--goal { width: min(420px, 100%); }
.scene.hiw-scene--scan { width: min(420px, 100%); min-height: 290px; }
.scene.hiw-scene--leadbars { width: 100%; height: 400px; }
.hiw-stop { top: -8px; right: 0; }
.hiw-row__stage--goal .hiw-stop { top: auto; bottom: 150px; } /* beside the chat's first panel, which grows from the box's foot */

/* the hand-over between your part and ours */
.hiw-hand { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 0 clamp(16px, 2.6vw, 36px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.hiw-hand__you { justify-self: end; text-align: right; }
.hiw-hand__you, .hiw-hand__us { font: var(--w-head) var(--fs-h3)/1.2 var(--font-display); font-stretch: var(--stretch-display); }
.hiw-hand__us { color: var(--c-lime-ink); }
.hiw-hand__node { justify-self: center; width: 52px; height: 52px; }

/* ours: framed photos, each with its step's scene in glass on the side clear of faces */
.hiw-photo { position: relative; height: 500px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-night); box-shadow: var(--shadow-l), 0 0 0 1px rgb(37 211 102 / calc(0.08 + 0.3 * var(--lit, 0))); }
.hiw-photo__media { position: absolute; inset: -12px; filter: saturate(calc(0.62 + 0.38 * var(--lit, 0))); }
.hiw-photo__img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* each step's scene stands under its words, on the night ground, beside its photo (over the photo it covered a face) */
.hiw-row__scene { position: relative; margin-top: var(--space-5); }
.scene.hiw-scene--launch { width: min(420px, 100%); height: 300px; }
.scene.hiw-scene--leads { width: min(380px, calc(100% / 1.14)); height: 280px; transform: scale(1.14); transform-origin: left top; margin-bottom: 40px; }
@media (max-width: 760px) { .scene.hiw-scene--leads { width: calc((100vw - 16px) / 1.14); margin-left: calc(8px - var(--gutter) - 66px); } } /* on a phone the board leaves the words' column (after the 52 px number and its 14 px gap) and takes the screen's width, 8 px from each side, so its names and sources fit */ /* its board is tilted in depth: drawn 14% larger, its 13 px words stay 13 px or more */
.scene.hiw-scene--tune { width: min(420px, 100%); height: 340px; }
.hiw-scene__stop { top: -48px; right: 0; } /* above the panel: its notification drops in at the top right */

@media (max-width: 900px) { .hiw-head { max-width: none; } }
@media (max-width: 760px) {
  .hiw-row, .hiw-row--flip { grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; }
  .hiw-num { grid-column: 1; width: 46px; height: 46px; font-size: 1.15rem; align-self: start; }
  .hiw-row__text, .hiw-row--flip .hiw-row__text { grid-column: 2; }
  .hiw-row__stage, .hiw-photo, .hiw-row--flip .hiw-photo { grid-column: 1 / -1; grid-row: 2; margin-top: var(--space-4); }
  .hiw-row__stage--goal { height: 320px; }
  .hiw-photo { height: 380px; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .scene.hiw-scene--launch { height: 360px; }
  .scene.hiw-scene--tune { height: 370px; }
  .hiw-hand { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
  .hiw-hand__you { justify-self: center; text-align: center; }
}

/* ---------- inside: the plan building, on the lime tint with a faint grid under the jag ---------- */
.hiw-inside { background-image: var(--edge-hair), var(--edge-fill), repeating-linear-gradient(90deg, rgb(14 122 62 / 0.07) 0 1px, transparent 1px 56px), repeating-linear-gradient(0deg, rgb(14 122 62 / 0.07) 0 1px, transparent 1px 56px);
  background-size: 1440px 48px, 1440px 48px, auto, auto; background-repeat: repeat-x, repeat-x, repeat, repeat;
  background-position: calc(var(--edge-at) + var(--edge-x, 0px)) 0, calc(var(--edge-at) + var(--edge-x, 0px)) 0, 0 0, 0 0; }
@media (max-width: 760px) { .hiw-inside { background-size: 960px 34px, 960px 34px, auto, auto; } }
.hiw-inside__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hiw-inside__copy { max-width: 440px; }
.hiw-pillars { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 14px; }
.hiw-pillars li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-body); line-height: 1.5; color: var(--c-on-day-soft); }
.hiw-pillars svg { width: 22px; height: 22px; margin-top: 2px; color: var(--c-lime-ink); }
.hiw-pillars b { color: var(--c-on-day); }
.hiw-inside__stage { position: relative; }
.scene.hiw-scene--plan { height: 580px; }
@media (max-width: 900px) { .hiw-inside__in { grid-template-columns: minmax(0, 1fr); } .hiw-inside__copy { max-width: none; } }
@media (max-width: 600px) { .scene.hiw-scene--plan { height: 700px; } }

/* ---------- team: the dashboard on the laptop, a reply from the crew ---------- */
.hiw-team__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hiw-team__pic { position: relative; }
.hiw-team__screen { margin: 0; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l), 0 0 0 1px rgb(37 211 102 / calc(0.1 + 0.3 * var(--lit, 0))); }
.hiw-team__screen img { display: block; width: 100%; height: auto; filter: saturate(calc(0.7 + 0.3 * var(--lit, 0))); }
.hiw-team__reply { position: absolute; right: -20px; bottom: 24px; width: min(300px, 56%); padding: 14px 16px; border-radius: var(--radius-m); background: var(--c-white); color: var(--c-on-day); box-shadow: var(--shadow-l); }
.hiw-team__reply p { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.45; }
.hiw-team__from { display: flex; align-items: center; gap: 8px; font: 700 var(--fs-small)/1.2 var(--font-ui); color: var(--c-lime-ink); }
.hiw-team__from svg { width: 18px; height: 18px; }
.hiw-team__copy .sec__lede { color: var(--c-on-night); }
@media (max-width: 900px) { .hiw-team__in { grid-template-columns: minmax(0, 1fr); } .hiw-team__reply { right: 12px; bottom: 12px; } }
@media (max-width: 760px) { .hiw-team__pic { margin-inline: calc(-1 * var(--gutter)); } .hiw-team__screen { border-radius: 0; } } /* full width, so the screen's words stay readable */
.dash { box-sizing: border-box; width: 300px; height: 190px; padding: 12px 16px; display: grid; grid-template-rows: auto 1fr auto; align-items: center; background: var(--c-night); color: var(--c-on-night); font-family: var(--font-ui); }
.dash__top { display: flex; align-items: center; gap: 8px; font: 600 30px/1 var(--font-ui); color: var(--c-on-night-soft); }
.dash__logo { display: grid; color: var(--c-lime); }
.dash__logo svg { width: 28px; height: 28px; }
.dash__big { display: flex; align-items: baseline; gap: 10px; }
.dash__big b { font: 800 66px/1 var(--font-display); color: var(--c-lime); }
.dash__big span { font: 600 30px/1.05 var(--font-ui); }
.dash__human { justify-self: start; padding: 6px 11px; border-radius: 999px; background: var(--c-lime-ink); color: var(--c-white); font: 700 26px/1 var(--font-ui); white-space: nowrap; box-shadow: 0 0 0 3px rgb(37 211 102 / 0.45); }

/* ---------- faq: the line runs down its left margin, through a node beside the head ---------- */
.hiw-faq .faq__head { position: relative; }
.hiw-faq__node { position: absolute; left: calc(-0.5 * var(--gutter) - 20px); top: 2px; width: 40px; height: 40px; }
.hiw-faq__node svg { width: 18px; height: 18px; }
.hiw-faq .faq__icon { background: var(--c-lime-ink); }
@media (max-width: 760px) { .hiw-faq__node { position: relative; left: auto; top: auto; margin-bottom: var(--space-3); } }

/* ---------- close: the words, and the line ending in the button under the owner's photo ---------- */
.hiw-close__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hiw-close__copy .sec__title { font-size: clamp(2.2rem, 1rem + 3.2vw, 3.5rem); line-height: 1.05; }
.hiw-close__copy .sec__lede { color: var(--c-on-night); }
.hiw-close__go { display: grid; justify-items: center; gap: 12px; }
.hiw-close__go .cta-note { margin: 0; }
.hiw-close__pic { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-raised);
  box-shadow: var(--shadow-l), 0 0 0 1px rgb(37 211 102 / calc(0.1 + 0.3 * var(--lit, 0))); }
.hiw-close__media { position: absolute; inset: -40px 0; filter: saturate(calc(0.62 + 0.38 * var(--lit, 0))); }
.hiw-close__img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 40%; }
.hiw-close__btn { margin-top: var(--space-4); }
.hiw-close__btn[data-lit] { box-shadow: 0 0 0 4px rgb(37 211 102 / 0.35), var(--p-glow); }
@media (max-width: 900px) { .hiw-close__in { grid-template-columns: minmax(0, 1fr); } }
