/* ============================================================
   How it works — Oz's October 2026 copy (seven steps, the learning
   loop, what is included, FAQ). Dark bands, white reading: the page
   sits on the homepage's near-black with one lifted band (#0A111C) for
   the loop and the FAQ, and every product view is drawn in HTML/SVG on
   the teal-to-ocean stage the homepage's Genly AI screen uses.

   Loaded by how-it-works.html only, after site.css and theme.css.
   Everything is scoped to body.hiw so nothing leaks if the file is
   ever linked elsewhere.
   ============================================================ */

/* Grid children may shrink below their content's width. */
.hiw .step > *, .hiw .hiw-hero > *, .hiw .step__copy > * { min-width: 0; }

/* The homepage's section rhythm. */
.hiw .steps, .hiw .outcome, .hiw .incl, .hiw .faqs { padding-block: clamp(64px, 7.5vw, 104px); }

/* Small shared parts of the product views. */
.hiw .ui svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hiw .chip {
  display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  border-radius: 64px; padding: 3px 10px;
  background: #E8F3FA; color: #0F5E8C; border: 1px solid #B5D9EE;
}
.hiw .chip--live { background: #EAF8F5; color: #0E6A61; border-color: #A6E3DA; }
.hiw .chip--wait { background: #FDF1D8; color: #7A5206; border-color: #F0D08F; }
.hiw .chip--no   { background: #FCEBE8; color: #9B2C1F; border-color: #F2B8AE; }
/* On the dark panels the chips go translucent, keeping their hue. */
.hiw .ui--dark .chip       { background: rgba(22,133,193,0.16); color: #8FC7ED; border-color: rgba(143,199,237,0.35); }
.hiw .ui--dark .chip--live { background: rgba(95,217,199,0.12); color: var(--sa-sky); border-color: rgba(95,217,199,0.35); }
.hiw .ui--dark .chip--wait { background: rgba(242,174,46,0.12); color: #F5C25E; border-color: rgba(242,174,46,0.4); }
.hiw .ui--dark .chip--no   { background: rgba(240,120,100,0.12); color: #F59E8E; border-color: rgba(240,120,100,0.4); }

/* ---------- product panels, as the homepage's app screen ---------- */
.hiw .ui {
  background: #FFFFFF; color: var(--sa-text); border: 0; border-radius: 10px;
  font-size: 15px; box-shadow: 0 30px 60px -30px rgba(0, 20, 70, 0.6);
}
.hiw .ui__bar {
  background: #FFFFFF; border-bottom: 1px solid #E6E8EB;
  padding: 12px 18px; font-weight: 600; color: var(--sa-text);
}
/* The panel's context reads as a chip, like the homepage's suggested actions. */
.hiw .ui__bar span {
  font-size: 13px; font-weight: 600; color: #0E6A61;
  background: #EAF8F5; border: 1px solid #A6E3DA; border-radius: 64px; padding: 3px 11px;
}
.hiw .ui--dark {
  background: #13203A; color: var(--sa-ink);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85); border: 1px solid #24344A;
}
.hiw .ui--dark .ui__bar { background: transparent; color: var(--sa-ink); border-color: #24344A; }
.hiw .ui--dark .ui__bar span { color: var(--sa-sky); background: rgba(95,217,199,0.12); border-color: rgba(95,217,199,0.35); }

/* ---------- hero: copy left, the program screen right ---------- */
.hiw .hiw-hero { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; position: relative; }
@media (min-width: 960px) { .hiw .hiw-hero { grid-template-columns: 1.05fr 0.95fr; } }
.theme.hiw .pagehero .h-section { max-width: 15ch; }
.hiw .hiw-hero .lede { color: var(--sa-ink); margin-top: 24px; max-width: 36rem; }
.hiw .hiw-hero__more { color: var(--sa-muted); margin-top: 16px; max-width: 36rem; }
.hiw .hiw-hero__viz {
  position: relative; border-radius: 12px; overflow: hidden;
  padding: clamp(18px, 3.5vw, 40px);
  background: radial-gradient(130% 120% at 0% 0%, #16A897 0%, #1685C1 42%, #0B3B74 100%);
}
.hiw .prog .ui__bar { display: flex; align-items: center; gap: 12px; }
.hiw .prog .ui__bar img { display: block; }
.hiw .prog__list { counter-reset: prog; padding: 8px 0; }
.hiw .prog__list li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 18px; font-weight: 600; color: var(--sa-text);
}
.hiw .prog__list li + li { border-top: 1px solid #EEF1F4; }
.hiw .prog__list li i { width: 22px; height: 22px; border-radius: 50%; background: var(--c, #1685C1); position: relative; }
.hiw .prog__list li i::after {
  counter-increment: prog; content: counter(prog);
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 11px/1 var(--sa-body); font-style: normal; color: #FFFFFF;
}
/* The logo's gold-green-ocean run across the seven parts. The two light
   stops get navy numerals; white on gold would fail. */
.hiw .prog__list li:nth-child(1) i { --c: #F2AE2E; }
.hiw .prog__list li:nth-child(2) i { --c: #B5AF3D; }
.hiw .prog__list li:nth-child(1) i::after, .hiw .prog__list li:nth-child(2) i::after { color: #062B59; }
.hiw .prog__list li:nth-child(3) i { --c: #3D7524; }
.hiw .prog__list li:nth-child(4) i { --c: #127A4A; }
.hiw .prog__list li:nth-child(5) i { --c: #0F7569; }
.hiw .prog__list li:nth-child(6) i { --c: #106C9E; }
.hiw .prog__list li:nth-child(7) i { --c: #0B3B74; }

/* ---------- the seven steps: the page's centrepiece ---------- */
.hiw .steps::before {
  background:
    radial-gradient(55% 45% at 10% 0%, rgba(22,133,193,0.16), transparent 70%),
    radial-gradient(45% 40% at 90% 45%, rgba(22,168,151,0.10), transparent 70%);
}
.hiw .steps .step { border-top: 0; padding-block: clamp(40px, 5vw, 72px); align-items: start; }
.hiw .steps .step:first-child { padding-top: 0; }
.hiw .steps .step:last-child { padding-bottom: 0; }

/* The step number reads like the homepage's journey cards: a small
   caps label, then a short line that fills with the logo's colours
   when the step is the one being read. */
.hiw .step__n {
  font-family: var(--sa-body); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sa-sky); gap: 14px;
}
.hiw .step__n::after { flex: 0 0 48px; height: 2px; border-radius: 2px; background: var(--sa-line); }
.hiw .step[data-step].is-active .step__n { color: var(--gold); }
.hiw .step[data-step].is-active .step__n::after { background: linear-gradient(90deg, #F2AE2E, #1CAF69 50%, #1685C1); }
.hiw .step h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em;
  color: var(--sa-ink); margin: 20px 0 20px; max-width: 22ch;
}
.hiw .step p { color: var(--sa-muted); font-size: 18px; max-width: 36rem; }
.hiw .step__copy > p + p, .hiw .step__copy p + .callout, .hiw .step__copy div > p + p { margin-top: 16px; }
/* The opening line of each step carries the step's claim in full white. */
.hiw .step p.step__lead { color: var(--sa-ink); font-size: 19px; }

/* Long reading copy stays at full strength; only the number and the
   panel's shadow mark the live step. (The previous page dimmed the copy
   of the other steps, which is wrong for four paragraphs of reading.) */
.js .hiw .step[data-step] { opacity: 1; }

/* The visual stays in view while its copy is read. */
@media (min-width: 900px) {
  .hiw .step:not(.step--wide) .step__viz { position: sticky; top: 112px; }
}

/* Wide steps (3 and 7): heading left, copy right, then the view across
   the full measure. */
.hiw .step--wide { grid-template-columns: 1fr; row-gap: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) {
  .hiw .step--wide .step__copy { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); }
  .hiw .step--wide .step__copy h2 { margin-bottom: 0; }
  .hiw .step--wide .step__after { padding-left: calc((100% - clamp(28px, 5vw, 64px)) * 0.85 / 2 + clamp(28px, 5vw, 64px)); }
}
@media (min-width: 900px) { .hiw .step--wide .step__copy > div:last-child { padding-top: 44px; } }

/* ---------- callouts: the doc's highlighted boxes ---------- */
.hiw .callout {
  position: relative; margin-top: 28px; max-width: 36rem;
  background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 10px;
  padding: 20px 22px 20px 26px; overflow: hidden;
}
.hiw .callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #F2AE2E, #1CAF69 50%, #1685C1);
}
.hiw .callout p.callout__label {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sa-sky); margin: 0 0 8px;
}
.hiw .callout p { color: var(--sa-ink); font-size: 19px; line-height: 1.45; }
.hiw .callout p + p:not(.callout__label) { margin-top: 10px; }
.hiw .callout p.callout__label + p { margin-top: 0; }

/* ---------- the stage ---------- */
/* The product panel sits on Genly's teal-to-ocean gradient with the
   demand wave drawn faintly across it, as on the homepage. */
.hiw .step__viz {
  position: relative; overflow: hidden; border-radius: 12px;
  padding: clamp(18px, 3.5vw, 44px);
  background: radial-gradient(130% 120% at 0% 0%, #16A897 0%, #1685C1 42%, #0B3B74 100%);
}
/* Even steps vary the run: a navy card with a corner of teal light, so
   the gradient stage doesn't repeat seven times. */
.hiw .step:nth-child(even) .step__viz {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(22,168,151,0.28), transparent 70%),
    var(--sa-card);
  border: 1px solid var(--sa-line);
}
.hiw .step__viz::before, .hiw .hiw-hero__viz::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M0 330 C160 340 230 120 600 90'/%3E%3Cpath d='M0 350 C170 352 250 150 600 130' opacity='.7'/%3E%3Cpath d='M0 370 C180 365 270 185 600 175' opacity='.45'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hiw .step:nth-child(even) .step__viz::before { opacity: 0.12; }
.hiw .step__viz > *, .hiw .hiw-hero__viz > * { position: relative; }
.hiw .step[data-step].is-active .ui { box-shadow: 0 30px 60px -26px rgba(0, 20, 70, 0.75); }

/* ---------- step 1: inputs flow into the memory, then Genly AI ---------- */
.hiw .mem__body { padding: 20px; background: #F7F8FA; border-radius: 0 0 10px 10px; display: grid; justify-items: center; }
.hiw .mem__inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.hiw .mem__inputs li {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 10px; padding: 14px 6px;
  font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--sa-text);
}
.hiw .mem__inputs svg { width: 24px; height: 24px; color: #1375AA; }
.hiw .mem__join { width: 100%; height: 40px; display: block; }
.hiw .mem__join path, .hiw .dash__join path { stroke: #1685C1; stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.hiw .mem__core {
  width: 100%; text-align: center; border-radius: 10px; padding: 18px 16px;
  background: linear-gradient(110deg, #0A4F5C 0%, #0B4C7E 50%, #0B3B74 100%); color: #FFFFFF;
}
.hiw .step p.mem__name {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sa-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; color: #FFFFFF; max-width: none;
}
/* The light logo on the teal card. */
.hiw .mem__name img { filter: brightness(0) invert(1); height: 19px; width: auto; }
.hiw .step p.mem__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; max-width: none; }
.hiw .mem__tags span {
  font-size: 12.5px; font-weight: 600; color: #FFFFFF;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: 64px; padding: 3px 10px;
}
.hiw .mem__arrow { width: 2px; height: 28px; background: #1685C1; position: relative; }
.hiw .mem__arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; margin-left: -4px;
  border-right: 2px solid #1685C1; border-bottom: 2px solid #1685C1; transform: rotate(45deg);
}
.hiw .step p.mem__ai {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: #FFFFFF; border: 1px solid #A6E3DA; border-radius: 64px; padding: 8px 18px;
  font-size: 16px; font-weight: 700; color: #0E6A61;
}
.hiw .mem__ai svg { width: 20px; height: 20px; }

/* ---------- step 2: current belief to new demand ---------- */
/* Two by two: the old belief pair above, the new pair below it. */
.hiw .shiftmap__path { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; padding: 26px 22px 28px; }
.hiw .shiftmap__path li {
  position: relative; display: grid; gap: 10px; align-content: start;
  border-radius: 10px; padding: 16px 14px; min-height: 104px;
  font-family: var(--sa-display); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em;
}
.hiw .shiftmap__path span { font: 700 12px/1 var(--sa-body); letter-spacing: 0.08em; }
/* The old state is dashed and muted; the new one is solid and lit. */
.hiw .shiftmap__path .is-old { border: 1px dashed #3A4C66; color: var(--sa-muted); }
.hiw .shiftmap__path .is-old span { color: var(--sa-muted); }
.hiw .shiftmap__path .is-new { background: rgba(95,217,199,0.10); border: 1px solid rgba(95,217,199,0.45); color: var(--sa-ink); }
.hiw .shiftmap__path .is-new span { color: var(--sa-sky); }
.hiw .shiftmap__path .is-win { background: linear-gradient(135deg, #0A4F5C, #0B3B74); border: 1px solid rgba(242,174,46,0.6); color: #FFFFFF; }
.hiw .shiftmap__path .is-win span { color: #F5C25E; }
.hiw .shiftmap__path li:nth-child(even)::before {
  content: ""; position: absolute; left: -23px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-right: 2px solid var(--sa-sky); border-top: 2px solid var(--sa-sky); transform: rotate(45deg);
}

/* ---------- step 3: the funnel blueprint ---------- */
.hiw .bp table { width: 100%; border-collapse: collapse; background: #FFFFFF; border-radius: 0 0 10px 10px; }
.hiw .bp th, .hiw .bp td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid #E6E8EB; }
.hiw .bp tr:last-child th, .hiw .bp tr:last-child td { border-bottom: 0; }
.hiw .bp thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sa-text2); background: #F7F8FA; padding-block: 12px; }
.hiw .bp tbody th { width: 34%; font-weight: 600; color: var(--sa-text); }
.hiw .bp td { color: var(--sa-text2); font-size: 16px; line-height: 1.5; }
.hiw .bp__stage { display: block; font-family: var(--sa-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; }
/* The funnel: each stage's bar narrows, in the logo's run. */
.hiw .bp__bar { display: block; height: 10px; width: var(--w); margin-top: 12px; border-radius: 5px; background: var(--c); }
.hiw .bp tbody tr:nth-child(1) { --c: #F2AE2E; }
.hiw .bp tbody tr:nth-child(2) { --c: #87AF4C; }
.hiw .bp tbody tr:nth-child(3) { --c: #1CAF69; }
.hiw .bp tbody tr:nth-child(4) { --c: #199A95; }
/* Nurture loops back rather than narrowing further. */
.hiw .bp .bp__nurture { --c: transparent; background: #F7FAFC; }
.hiw .bp .bp__nurture .bp__bar { border: 2px dashed #1685C1; }

/* ---------- step 4: the creative workspace ---------- */
.hiw .ws__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.hiw .ws__grid li { background: #0E1726; border: 1px solid #24344A; border-radius: 10px; padding: 10px; display: grid; gap: 8px; justify-items: start; }
.hiw .step .ws__grid p { font-size: 14px; font-weight: 600; color: var(--sa-ink); line-height: 1.3; }
.hiw .ws__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; position: relative; overflow: hidden; }
.hiw .ws__thumb::after { content: ""; position: absolute; left: 10%; bottom: 16%; width: 46%; height: 10%; border-radius: 3px; background: rgba(255,255,255,0.85); box-shadow: 0 -12px 0 -2px rgba(255,255,255,0.5); }
.hiw .ws__thumb--a { background: radial-gradient(120% 120% at 0% 0%, #16A897, #1685C1 50%, #0B3B74); }
.hiw .ws__thumb--b { background: linear-gradient(135deg, #33445A, #1E2A3A); opacity: 0.7; }
.hiw .ws__thumb--c { background: linear-gradient(135deg, #0B3B74, #0A4F5C); }
.hiw .ws__thumb--c::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-left: 14px solid #FFFFFF; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hiw .ws__thumb--d { background: linear-gradient(180deg, #F2F4F7 0 22%, #FFFFFF 22%); }
.hiw .ws__thumb--d::after { background: #F2AE2E; box-shadow: 0 -14px 0 -2px #C9D3E0; }
.hiw .ws__comment { display: flex; gap: 12px; margin: 0 18px; padding: 12px 14px; border-radius: 10px; background: rgba(95,217,199,0.08); border: 1px solid rgba(95,217,199,0.3); }
.hiw .ws__avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #F2AE2E, #1CAF69); }
.hiw .ws__comment div { flex: 1; display: grid; gap: 6px; }
.hiw .step .ws__comment p { font-size: 13px; font-weight: 700; color: var(--sa-sky); }
.hiw .ws__comment i { display: block; height: 7px; border-radius: 4px; background: #33445A; }
.hiw .ws__comment i:last-child { width: 62%; }
.hiw .step p.ws__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; max-width: none; }
.hiw .ws__actions span { font-size: 14px; font-weight: 600; border-radius: 64px; padding: 6px 14px; color: var(--sa-ink); border: 1px solid #3A4C66; }
.hiw .ws__actions .is-yes { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---------- step 5: one campaign view, media agents at work ---------- */
.hiw .dash__ch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 18px 0; }
.hiw .dash__ch li {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px;
  border: 1px solid #E3E8EF; border-radius: 10px; background: #F7F8FA;
  font-size: 13.5px; font-weight: 600; color: var(--sa-text);
}
.hiw .dash__ch svg { width: 22px; height: 22px; color: #1375AA; }
.hiw .dash__join { display: block; width: 100%; height: 24px; }
.hiw .dash__rows { margin: 0 18px; border: 1px solid #E3E8EF; border-radius: 10px; overflow: hidden; }
.hiw .step .dash__rows p {
  display: grid; grid-template-columns: 5.5rem 1fr 4.6rem; align-items: center; gap: 14px;
  padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--sa-text); max-width: none;
}
.hiw .dash__rows p > :last-child { justify-self: end; }
.hiw .dash__rows p + p { border-top: 1px solid #EEF1F4; }
.hiw .step .dash__rows p.dash__head { background: #F7F8FA; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sa-text2); }
.hiw .dash__rows i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #16A897, #1685C1) 0 0 / var(--w) 100% no-repeat, #E6EBF1; }
.hiw .dash__agent { display: grid; gap: 6px; padding: 14px 18px 0; }
.hiw .dash__agent li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--sa-text2);
  background: #F2FAF8; border: 1px solid #CDEDE7; border-radius: 8px; padding: 8px 12px;
}
.hiw .dash__agent b { color: var(--sa-text); font-weight: 600; margin-left: auto; }
.hiw .dash__bot { width: 10px; height: 10px; border-radius: 50%; background: #16A897; box-shadow: 0 0 0 3px rgba(22,168,151,0.2); }
.hiw .step p.dash__ctl { display: flex; gap: 8px; padding: 14px 18px 18px; max-width: none; }
.hiw .dash__ctl span { font-size: 14px; font-weight: 600; color: var(--sa-text); border: 1px solid #C9D3E0; border-radius: 64px; padding: 6px 14px; }

/* ---------- step 6: web analytics beside campaign performance ---------- */
.hiw .an__split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; padding: 18px; }
.hiw .an__web, .hiw .an__cmp { background: #0E1726; border: 1px solid #24344A; border-radius: 10px; padding: 14px; }
.hiw .step p.an__title { font-size: 14px; font-weight: 700; color: var(--sa-ink); margin-bottom: 10px; }
.hiw .step .an__web p:not(.an__title) {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--sa-ink); padding: 7px 0; max-width: none;
}
.hiw .an__web p + p:not(.an__title) { border-top: 1px solid #1E2A3A; }
.hiw .step .an__web p.an__head { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--sa-muted); align-items: end; }
.hiw .an__web i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #5FD9C7, #1685C1) 0 0 / var(--w) 100% no-repeat, #24344A; }
.hiw .an__chart { display: flex; align-items: flex-end; gap: 7px; height: 128px; padding-top: 6px; border-bottom: 1px solid #33445A; }
.hiw .an__chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5FD9C7, #1685C1); position: relative; }
.hiw .an__chart i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: rgba(242,174,46,0.85); }
.hiw .step p.an__key { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--sa-muted); }
.hiw .an__key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: #1685C1; }
.hiw .an__key .k2::before { background: #F2AE2E; }

/* ---------- step 7: the attribution path with CRM sync ---------- */
.hiw .path__steps { display: grid; grid-template-columns: repeat(6, 1fr); padding: 30px 22px 10px; position: relative; }
.hiw .path__steps li {
  position: relative; display: grid; justify-items: center; gap: 12px; text-align: center;
  font-family: var(--sa-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--sa-text); padding: 0 4px;
}
.hiw .path__steps span {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 var(--sa-body); color: #FFFFFF; background: #106C9E; box-shadow: 0 0 0 5px #FFFFFF;
}
/* The connecting line runs behind the dots. */
.hiw .path__steps li + li::before {
  content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: #B5D9EE;
}
.hiw .path__steps .is-win span { background: var(--gold); color: var(--navy); }
.hiw .path__crm {
  margin: 18px 22px 22px; padding: 14px 16px; border-radius: 10px;
  background: #F2FAF8; border: 1px solid #CDEDE7;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.hiw .step p.path__crmname { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: #0E6A61; max-width: none; }
.hiw .path__crmname svg { width: 20px; height: 20px; }
.hiw .step p.path__status { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.hiw .path__status span { font-size: 13.5px; font-weight: 600; color: var(--sa-text); background: #FFFFFF; border: 1px solid #C9D3E0; border-radius: 64px; padding: 4px 12px; }
.hiw .path__status .is-win { background: #FDF1D8; border-color: #F0D08F; color: #7A5206; }
.hiw .step__after p { color: var(--sa-muted); }

/* ---------- the rail: seven stops on the logo's run ---------- */
.hiw .rail { gap: 14px; padding: 12px 0; }
.hiw .rail::before {
  content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 2px; margin-left: -1px;
  border-radius: 2px; background: var(--sa-line);
}
.hiw .rail span { position: relative; width: 10px; height: 10px; opacity: 1; background: #33445A; box-shadow: 0 0 0 3px var(--sa-black); }
.hiw .rail span:nth-child(1) { --c: #F2AE2E; }
.hiw .rail span:nth-child(2) { --c: #B5AF3D; }
.hiw .rail span:nth-child(3) { --c: #6FB055; }
.hiw .rail span:nth-child(4) { --c: #1CAF69; }
.hiw .rail span:nth-child(5) { --c: #19A38A; }
.hiw .rail span:nth-child(6) { --c: #1894AA; }
.hiw .rail span:nth-child(7) { --c: #1685C1; }
.hiw .rail span:has(~ span.is-on), .hiw .rail span.is-on { background: var(--c); }
.hiw .rail span.is-on { transform: scale(1.5); box-shadow: 0 0 0 3px var(--sa-black), 0 0 14px var(--c); }

/* The rail lives inside the steps section and sticks within it, so it can
   never sit over the hero or the loop; site.js still lights the dot.
   It keeps its own 166px in the flow, so sticking stops at the section's
   end, and the steps are pulled back up over that space. */
.hiw .steps { overflow: clip; }   /* clip, not hidden: hidden would stop the sticking */
@media (min-width: 1180px) {
  .js .hiw .steps .rail {
    position: sticky; top: calc(50% - 83px); transform: none; right: auto;
    height: 166px; margin: 0 max(1rem, calc(50% - (var(--page) / 2) + 1.5rem)) 0 auto; width: 10px;
    align-items: center;
  }
  .js .hiw .steps > .wrap { margin-top: -166px; }
}

/* ---------- the band: the learning loop and the FAQ ----------
   The homepage's lifted near-black (#0A111C), a step up from the
   #05080F either side so the rhythm still has a change of ground. */
.hiw .hiw-band { background: #0A111C; color: var(--sa-ink); }
.hiw .hiw-band .label { color: var(--sa-sky); }
.hiw .hiw-band .h-section { color: var(--sa-ink); }
.hiw .outcome .h-section { max-width: 16ch; }
.hiw .outcome__copy p { color: var(--sa-muted); font-size: 18px; max-width: 38rem; }
.theme.hiw .outcome__copy .lede { color: var(--sa-ink); font-size: 19px; }
.hiw .outcome__copy > p + p { margin-top: 16px; }
.hiw .outcome__copy .callout { background: #121D30; }
.hiw .outcome__copy .callout p { color: var(--sa-ink); }
.hiw .outcome__copy .callout p.callout__label { color: var(--sa-sky); }
/* The loop sits on a raised dark card, like every other visual on the
   band: dark nodes, ink labels, the gold return path. */
.hiw .outcome .diagram--concept {
  margin-inline: 0; margin-top: clamp(48px, 6vw, 72px);
  background: #121D30; border: 1px solid var(--sa-line); border-radius: 12px;
  padding: clamp(20px, 4vw, 44px);
}
.hiw .diagram .diagram__stack { display: none; }
@media (max-width: 1023px) {
  .hiw .diagram--concept { overflow: visible; padding: 16px; }
  .hiw .diagram .diagram__wide { display: none; }
  .hiw .diagram .diagram__stack { display: block; min-width: 0; width: 100%; max-width: 420px; margin-inline: auto; }
}

/* ---------- what is included: nine cards ---------- */
/* Centred head on the homepage's 708px measure, so "demand-creation"
   stays on one line on desktop. */
.hiw .incl .intro { display: block; text-align: center; max-width: 708px; margin-inline: auto; }
.hiw .incl .h-section { max-width: none; margin-inline: auto; }
.theme.hiw .incl .intro .lede { margin: 20px auto 0; max-width: 60ch; }
.hiw .incl__grid {
  display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.hiw .incl__grid li {
  background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 12px;
  padding: 28px 26px 30px;
}
.hiw .incl__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(95,217,199,0.10); color: var(--sa-sky); margin-bottom: 20px;
}
.hiw .incl__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hiw .incl__grid h3 { font-size: 20px; color: var(--sa-ink); margin: 0 0 10px; }
.hiw .incl__grid p { color: var(--sa-muted); font-size: 17px; line-height: 1.5; }

/* ---------- FAQ: the shared accordion (theme.css), centred ---------- */
.hiw .faqs .label { justify-content: center; }
.hiw .faqs .intro { display: block; text-align: center; }
.hiw .faqs .h-section { margin-inline: auto; }
.hiw .faq { margin: clamp(48px, 6vw, 72px) auto 0; border-top: 0; }
.hiw .faqs .faq details { background: #121D30; }

/* ---------- the closing card: the shared .formcard (theme.css) ---------- */
.hiw .close { padding-block: clamp(64px, 7.5vw, 104px); }
.hiw .formcard__copy .close__alt { margin-top: 28px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hiw .shiftmap__path { gap: 14px 26px; padding: 18px 14px 20px; }
  .hiw .shiftmap__path li { font-size: 18px; min-height: 0; }
  .hiw .shiftmap__path li:nth-child(even)::before { left: -19px; }
  .hiw .path__steps { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px 6px; }
  .hiw .path__steps li { grid-template-columns: 40px 1fr; justify-items: start; align-items: center; text-align: left; gap: 14px; padding: 0; }
  .hiw .path__steps li + li::before { top: auto; bottom: 50%; right: auto; left: 19px; width: 3px; height: calc(100% + 18px); }
  .hiw .an__split { grid-template-columns: 1fr; }
  .hiw .bp tbody th { width: 38%; }
}
@media (max-width: 520px) {
  .hiw .step__viz, .hiw .hiw-hero__viz { padding: 12px; }
  .hiw .mem__inputs, .hiw .dash__ch { grid-template-columns: 1fr 1fr; }
  .hiw .mem__join, .hiw .dash__join { display: none; }
  .hiw .mem__inputs { margin-bottom: 14px; }
  .hiw .dash__ch { padding-bottom: 14px; }
  .hiw .mem__body { padding: 14px; }
  .hiw .bp th, .hiw .bp td { padding: 14px 12px; }
  .hiw .bp td { font-size: 15px; }
  .hiw .bp__stage { font-size: 17px; }
  .hiw .ws__grid { padding: 12px; gap: 10px; }
  .hiw .ws__comment { margin: 0 12px; }
  .hiw .step .dash__rows p { grid-template-columns: 4.5rem 1fr 4.4rem; gap: 10px; padding-inline: 10px; }
  .hiw .dash__rows, .hiw .path__crm { margin-inline: 12px; }
  .hiw .dash__agent, .hiw .step p.dash__ctl, .hiw .step p.ws__actions { padding-inline: 12px; }
  .hiw .prog__list li { padding-inline: 12px; gap: 10px; font-size: 15px; }
  .hiw .callout { padding: 16px 16px 16px 20px; }
  .hiw .callout p { font-size: 18px; }
}
