/* DFYWeb home — "How it works" demo (#build).
 * Uses the site tokens from site.css (with fallbacks so it also renders standalone).
 * Everything is scoped under .hiw / .hiw-* — nothing here touches the old .build-* demo styles.
 */

.hiw {
  --hiw-ink: var(--ink, #0a0a0c);
  --hiw-ink-2: var(--ink-2, #101013);
  --hiw-ink-3: var(--ink-3, #17171b);
  --hiw-ink-4: var(--ink-4, #212127);
  --hiw-line: var(--line-d, rgba(255, 255, 255, .085));
  --hiw-line-2: var(--line-d2, rgba(255, 255, 255, .16));
  --hiw-fg: var(--on-dark, #f6f3ee);
  --hiw-fg-2: var(--on-dark-2, #a9a8b0);
  --hiw-fg-3: var(--on-dark-3, #8b8a93);
  --hiw-or: var(--orange, #ff5b14);
  --hiw-or-hot: var(--orange-hot, #ff7a3d);
  --hiw-or-btn: var(--orange-btn, #d4430e);
  --hiw-ok: #6fd39a;
  --hiw-ok-bg: rgba(31, 157, 85, .17);
  --hiw-mono: var(--f-mono, "JetBrains Mono", ui-monospace, Consolas, monospace);
  --hiw-display: var(--f-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  --hiw-ease: var(--ease, cubic-bezier(.16, 1, .3, 1));
  --hiw-back: var(--ease-back, cubic-bezier(.34, 1.56, .64, 1));
}

/* ---------- Shell ---------- */
.hiw-demo {
  --hiw-dur: 4s;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 18px;
  border-radius: var(--r-xl, 32px);
  background: var(--hiw-ink-2);
  border: 1px solid var(--hiw-line);
  box-shadow: 0 60px 120px -48px rgba(255, 91, 20, .22);
  color: var(--hiw-fg);
  font-family: var(--f-sans, Inter, system-ui, sans-serif);
}

.hiw-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hiw-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 14px;
  background: var(--hiw-ink-3);
  border: 1px solid var(--hiw-line);
}
.hiw-tabs::-webkit-scrollbar { display: none; }

.hiw-tab {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hiw-fg-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--hiw-ease), color .25s var(--hiw-ease);
}
.hiw-tab:hover { color: var(--hiw-fg); }
.hiw-tab[aria-selected="true"] { background: var(--hiw-fg); color: var(--hiw-ink); font-weight: 600; }

.hiw-ctrls { display: flex; align-items: center; gap: 10px; }
.hiw-count { font-family: var(--hiw-mono); font-size: 13px; color: var(--hiw-fg-2); padding-right: 4px; font-variant-numeric: tabular-nums; }
.hiw-count b { color: var(--hiw-fg); font-weight: 500; }

.hiw-ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--hiw-line-2);
  background: transparent;
  color: var(--hiw-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.hiw-ctl:hover { background: var(--hiw-ink-3); }
.hiw-ctl svg { width: 15px; height: 15px; }
.hiw-pause { padding: 0; }
.hiw-pause svg { fill: currentColor; }
.hiw-pause .i-play, .hiw-pause[aria-pressed="true"] .i-pause { display: none; }
.hiw-pause[aria-pressed="true"] .i-play { display: block; }

.hiw-tab:focus-visible, .hiw-ctl:focus-visible, .hiw-step:focus-visible, .hiw-rail-cta a:focus-visible {
  outline: 2px solid var(--hiw-or-hot);
  outline-offset: 2px;
}

/* Before JS: tabs/controls can't do anything yet — keep their space, hide them. */
.hiw-demo:not(.is-ready) .hiw-tabs,
.hiw-demo:not(.is-ready) .hiw-ctrls { visibility: hidden; }

.hiw-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* ---------- Step rail ---------- */
.hiw-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 12px 14px;
  border-radius: 22px;
  background: var(--hiw-ink-3);
  border: 1px solid var(--hiw-line);
}

.hiw-biz {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px 12px;
  font-family: var(--hiw-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hiw-or-hot);
}
.hiw-biz i, .hiw-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--hiw-or); flex: none; }

.hiw-steps { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.hiw-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--hiw-fg-3);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--hiw-ease);
}
.hiw-step:hover .hiw-step-t { color: var(--hiw-fg); }

.hiw-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.5px solid var(--hiw-line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hiw-mono);
  font-size: 11px;
  color: var(--hiw-fg-3);
}
.hiw-num svg { display: none; width: 12px; height: 12px; }
.hiw-step-t { font-family: var(--hiw-display); letter-spacing: -.015em; font-size: 15px; font-weight: 500; color: var(--hiw-fg-3); transition: color .2s; }
.hiw-step-s { font-size: 12px; color: var(--hiw-fg-2); }
.hiw-step-b, .hiw-bar { display: none; }

.is-done .hiw-num { border: 0; background: var(--hiw-ok-bg); color: var(--hiw-ok); }
.is-done .hiw-num span { display: none; }
.is-done .hiw-num svg { display: block; }
.is-done .hiw-step-t { color: #d9d7d2; }

.is-active .hiw-step { background: var(--hiw-ink-4); padding: 16px 14px; row-gap: 8px; }
.is-active .hiw-num { border: 0; background: var(--hiw-or); color: var(--hiw-ink); font-weight: 700; }
.is-active .hiw-step-t { color: var(--hiw-fg); font-weight: 650; font-size: 17px; }
.is-active .hiw-step-s { display: none; }
.is-active .hiw-step-b { display: block; grid-column: 2 / -1; font-size: 14px; line-height: 1.55; color: var(--hiw-fg-2); }
.is-active .hiw-bar { display: block; grid-column: 2 / -1; height: 2px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.hiw-bar i { display: block; height: 100%; background: var(--hiw-or); transform: scaleX(0); transform-origin: left center; }
.hiw-demo.is-ready .is-active .hiw-bar i { animation: hiw-fill var(--hiw-dur) linear forwards; }
.hiw-demo.is-paused .is-active .hiw-bar i { animation-play-state: paused; }

.hiw-rail-cta { margin-top: auto; padding: 18px 12px 4px; }
.hiw-rail-cta .btn { gap: 8px; }

/* ---------- App window ---------- */
.hiw-app {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--hiw-line);
  background: #0d0d10;
}
.hiw-bar-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hiw-line); }
.hiw-dots { display: flex; gap: 7px; }
.hiw-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hiw-dots i:nth-child(2) { background: #febc2e; }
.hiw-dots i:nth-child(3) { background: #28c840; }
.hiw-url {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 auto; padding: 6px 16px; border-radius: 8px;
  background: var(--hiw-ink-3); color: var(--hiw-fg-2); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.hiw-url svg { width: 11px; height: 11px; flex: none; }
.hiw-badge { font-family: var(--hiw-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-fg-3); }

.hiw-app-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); flex: 1; min-height: 600px; }
.hiw-side { padding: 16px 10px; border-right: 1px solid var(--hiw-line); background: var(--hiw-ink-2); }
.hiw-side-logo { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 10px 16px; font-family: var(--hiw-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.hiw-side-logo svg { width: 20px; height: 20px; color: var(--hiw-or); }
.hiw-side-nav span { display: block; margin-bottom: 3px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--hiw-fg-3); transition: background .3s, color .3s; }
.hiw-side-nav .is-on { background: var(--hiw-ink-4); color: var(--hiw-fg); font-weight: 500; }

.hiw-stage { position: relative; min-width: 0; padding: 24px; background: #121215; overflow: hidden; }

/* ---------- Shared stage parts ---------- */
.hiw-stage p { margin: 0; }
.hiw-stage small { font-size: inherit; }
.hiw-p-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hiw-p-head b { font-size: 17px; font-weight: 600; }
.hiw-ok { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--hiw-ok-bg); color: var(--hiw-ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
.hiw-card { padding: 16px; border-radius: 14px; background: var(--hiw-ink-3); border: 1px solid var(--hiw-line); }
.hiw-card > small, .hiw-pages > small, .hiw-review-side > small {
  display: block; margin-bottom: 12px;
  font-family: var(--hiw-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--hiw-fg-3);
}
.hiw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-chips em { font-style: normal; font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hiw-line-2); color: var(--hiw-fg-2); }
.hiw-chips em.is-on { background: var(--hiw-fg); color: var(--hiw-ink); border-color: transparent; font-weight: 600; }
.hiw-chips em.is-on-dark { background: var(--hiw-ink-4); color: var(--hiw-fg); border-color: transparent; }
.hiw-chips.is-sm em { font-size: 12px; padding: 6px 11px; }
.hiw-num svg, .hiw-check svg, .hiw-approved svg, .hiw-ai svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 01 Brief */
.hiw-p-brief { max-width: 560px; }
.hiw-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--hiw-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hiw-or-hot); }
.hiw-field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.hiw-field > span { font-size: 13px; color: var(--hiw-fg-2); }
.hiw-field > div:not(.hiw-chips) { padding: 13px 15px; border-radius: 12px; background: #0d0d10; border: 1px solid rgba(255, 255, 255, .12); font-size: 15px; line-height: 1.55; }
.hiw-field.is-tall > div { min-height: 72px; }
.hiw-field.is-focus > div { border-color: var(--hiw-or); box-shadow: 0 0 0 3px rgba(255, 91, 20, .16); }
.hiw-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--hiw-or); animation: hiw-blink 1s steps(1) infinite; }
.hiw-fake-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--hiw-or-btn); color: #fff; font-size: 14px; font-weight: 600; }

/* 02 Brand */
.hiw-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hiw-brand-logo { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; background: var(--b-bg); color: var(--b-ink); border-color: transparent; }
.hiw-brand-logo > small { color: inherit; opacity: .7; }
.hiw-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hiw-swatches i { display: block; height: 58px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hiw-swatches code { display: block; margin-top: 6px; font-family: var(--hiw-mono); font-size: 10px; color: var(--hiw-fg-3); }
.hiw-type-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hiw-type-row + .hiw-type-row { margin-top: 12px; }
.hiw-type-row span { font-size: 32px; line-height: 1; }
.hiw-type-row span.is-sans { font-size: 26px; font-weight: 500; }
.hiw-type-row em { font-style: normal; font-size: 12px; color: var(--hiw-fg-2); text-align: right; }
.hiw-quote { margin-top: 12px !important; font-size: 13px; line-height: 1.5; color: var(--hiw-fg-2); }

/* Logos inside brand mockups */
.hiw-logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--b-ink); }
.hiw-logo img { display: block; height: 28px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.hiw-logo.is-xl img { height: 50px; max-width: 100%; }
.hiw-logo.is-word b { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 18px; letter-spacing: .02em; }
.hiw-logo.is-word b i { font-style: normal; color: var(--b-em); }
.hiw-logo.is-word small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.hiw-logo.is-word.is-xl b { font-size: 32px; }
.hiw-logo.is-word.is-xl small { font-size: 10px; }

/* 03 Copy */
.hiw-p-copy { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
.hiw-pages { display: flex; flex-direction: column; gap: 3px; }
.hiw-pages > small { padding: 0 10px; margin-bottom: 8px; }
.hiw-pages span { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--hiw-fg-3); }
.hiw-pages span.is-on { background: var(--hiw-ink-4); color: var(--hiw-fg); }
.hiw-copy-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hiw-doc { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 30px; border-radius: 14px; background: var(--b-bg); color: var(--b-ink); }
.hiw-ai { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--hiw-ink-3); border: 1px solid var(--hiw-line); }
.hiw-ai svg { width: 16px; height: 16px; flex: none; color: var(--hiw-or-hot); stroke-width: 1.6; }
.hiw-ai > span:not(.hiw-ok) { flex: 1; min-width: 0; font-size: 13px; color: var(--hiw-fg-2); }

/* Sample site (used in steps 3–5) */
.hiw-site { position: relative; overflow: hidden; border-radius: 14px; background: var(--b-bg); color: var(--b-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.hiw-site-nav { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--b-line); }
.hiw-site-links { display: flex; gap: 18px; margin-left: auto; font-size: 12px; color: var(--b-sub); }
.hiw-site-links i { font-style: normal; }
.hiw-site-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: center; padding: 24px 22px; }
.hiw-site-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.hiw-site-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--b-sub); }
.hiw-site-h { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 32px; line-height: 1.04; letter-spacing: -.01em; color: var(--b-ink); }
.hiw-site-h.is-xl { font-size: 42px; }
.hiw-site-h em { font-style: italic; font-weight: var(--b-ew, inherit); color: var(--b-em); }
.hiw-site-sub { max-width: 440px; font-size: 13px; line-height: 1.55; color: var(--b-sub); }
.hiw-doc .hiw-site-sub { font-size: 15px; }
.hiw-site-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--b-btn); color: var(--b-btn-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.hiw-site-btn.is-lg { padding: 10px 16px; font-size: 13px; }
.hiw-photo { position: relative; height: 220px; overflow: hidden; border-radius: 12px; background: var(--b-p1); }
.hiw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hiw-site-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; }
.hiw-site-feats div { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-radius: 10px; background: var(--b-card); border: 1px solid var(--b-line); }
.hiw-site-feats b { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 15px; }
.hiw-site-feats span { font-size: 11px; color: var(--b-sub); }

/* Ember has no photo on the live site: a top-down latte illustration in the gallery's style */
.hiw-art-ember { background: #4a3226; }
.hiw-art-ember .e-sun { position: absolute; right: -30px; top: 50%; width: 210px; height: 210px; margin-top: -105px; border-radius: 50%; background: #f2b134; }
.hiw-art-ember .e-saucer { position: absolute; right: 22px; top: 50%; width: 150px; height: 150px; margin-top: -75px; display: grid; place-items: center; border-radius: 50%; background: #f6efe6; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); }
.hiw-art-ember .e-cup { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.hiw-art-ember .e-cup::after { content: ""; position: absolute; right: -20px; top: 50%; width: 26px; height: 16px; margin-top: -8px; border-radius: 8px; background: #fff; }
.hiw-art-ember .e-latte { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 50% 56%, #f3dfc4 0 18%, #8a5233 19% 25%, #f3dfc4 26% 33%, #8a5233 34% 40%, #f3dfc4 41% 47%, #6b3e26 48%); }
.hiw-art-ember .e-bean { position: absolute; width: 18px; height: 25px; border-radius: 50%; background: #5a3423; }
.hiw-art-ember .e-bean::after { content: ""; position: absolute; left: 50%; top: 15%; bottom: 15%; width: 1px; background: #2b1d16; transform: rotate(8deg); }
.hiw-art-ember .e-bean.b1 { left: 22px; bottom: 34px; transform: rotate(30deg); }
.hiw-art-ember .e-bean.b2 { left: 50px; bottom: 16px; transform: rotate(-20deg); }
.hiw-art-ember .e-bean.b3 { left: 78px; bottom: 40px; transform: rotate(70deg); }
.hiw-art-ember .e-bun { position: absolute; left: 34px; top: 40px; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #8a5233 0 10%, #e8b86b 11% 30%, #c98b5b 31% 36%, #e8b86b 37% 58%, #c98b5b 59% 64%, #e8b86b 65%); box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .5); }
.hiw-art-ember .e-sticker, .hiw-photo .e-sticker { position: absolute; left: 10px; top: 12px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e2673a; color: #fff; text-align: center; font: 800 8px/1.15 var(--hiw-display); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-14deg); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.hiw-site-kicker.is-chip { padding: 6px 11px; border-radius: 999px; background: rgba(242, 177, 52, .16); color: #f2b134; font-weight: 600; letter-spacing: .08em; text-transform: none; font-size: 11px; }

.hiw-pin {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50% 50% 50% 4px;
  background: var(--hiw-or); color: var(--hiw-ink); font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 5px rgba(255, 91, 20, .22);
}
.hiw-pin.is-inline { position: static; width: 20px; height: 20px; font-size: 10px; box-shadow: none; }

/* 04 Layout */
.hiw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hiw-tags em { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hiw-line-2); color: #d9d7d2; }

/* 04 Layout: a window that scrolls down the sample home page */
.hiw-scroll { --hiw-view: 478px; height: var(--hiw-view); overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.hiw-scroll .hiw-site { border-radius: 0; box-shadow: none; }
.hiw-demo.is-ready .hiw-scroll .hiw-site { animation: hiw-scroll var(--hiw-dur) cubic-bezier(.65, 0, .35, 1) both; }
.hiw-demo.is-paused .hiw-scroll .hiw-site { animation-play-state: paused; }
@keyframes hiw-scroll {
  0%, 22% { transform: none; }
  48%, 60% { transform: translateY(calc((var(--hiw-view) - 100%) * .5)); }
  86%, 100% { transform: translateY(calc(var(--hiw-view) - 100%)); }
}
.hiw-more { display: flex; flex-direction: column; gap: 30px; padding: 8px 22px 0; }
.hiw-more-h { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 26px; line-height: 1.05; letter-spacing: -.01em; color: var(--b-ink); }
.hiw-more-h em { font-style: italic; font-weight: var(--b-ew, inherit); color: var(--b-em); }
.hiw-more .hiw-site-kicker { margin-bottom: 10px; }
.hiw-more-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 0 20px; border-top: 1px solid var(--b-line); font-size: 11px; color: var(--b-sub); }
.hiw-more-foot > span:last-child { margin-left: auto; }

/* Juniper: editorial, centred, type-led */
.m-brow { gap: 34px; }
.mb-quote { padding: 26px 30px; text-align: center; border-top: 1px solid var(--b-line); border-bottom: 1px solid var(--b-line); }
.mb-quote .hiw-more-h { max-width: 460px; margin: 0 auto; font-size: 27px; line-height: 1.15; }
.mb-menu { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.mb-menu .hiw-more-h { font-size: 40px; line-height: .95; margin-bottom: 10px; }
.mb-menu ul { list-style: none; margin: 0; padding: 0; }
.mb-menu li { display: flex; align-items: baseline; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--b-line); font-family: var(--b-hf); font-size: 16px; }
.mb-menu li i { flex: 1; border-bottom: 1px dotted var(--b-sub); opacity: .5; transform: translateY(-4px); }
.mb-menu li b { font-weight: var(--b-hw); color: var(--b-em); }
.mb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mb-steps div { display: flex; flex-direction: column; gap: 4px; }
.mb-steps em { font-family: var(--b-hf); font-style: italic; font-size: 30px; line-height: 1; color: var(--b-em); }
.mb-steps b { font-size: 13px; font-weight: 600; }
.mb-steps span { font-size: 11px; color: var(--b-sub); }
.mb-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 20px 38px; margin: 0 -22px; background: var(--b-p1); text-align: center; }

/* Northline: cinematic, dark, project-led */
.mn-feature { position: relative; height: 230px; overflow: hidden; margin: 0 -22px; }
.mn-feature img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 20% 82%; transform: scale(1.25); transform-origin: 20% 82%; }
.mn-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 17, 14, .92) 8%, rgba(10, 17, 14, .2) 70%); }
.mn-feature > div { position: absolute; z-index: 1; left: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.mn-feature > div span { font-size: 12px; color: var(--b-sub); }
.mn-feature .hiw-more-h { font-size: 30px; }
.mn-feature em { position: absolute; z-index: 1; right: 22px; top: 18px; font-family: var(--hiw-mono); font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--b-em); }
.mn-proc ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.mn-proc ol::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--b-line); }
.mn-proc li { position: relative; display: flex; flex-direction: column; gap: 5px; }
.mn-proc li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--b-bg); border: 1px solid var(--b-em); color: var(--b-em); font: 500 9px var(--hiw-mono); font-style: normal; }
.mn-proc b { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 16px; }
.mn-proc span { font-size: 11px; line-height: 1.4; color: var(--b-sub); }
.mn-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mn-svc div { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--b-em); }
.mn-svc b { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 17px; }
.mn-svc span { font-size: 11px; color: var(--b-sub); }
.mn-svc i { font-style: normal; color: var(--b-em); margin-top: 6px; }
.mn-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px; border: 1px solid var(--b-em); }
.mn-cta .hiw-site-btn { border-radius: 0; }

/* Bloom: friendly, rounded, booking-led */
.mw-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 22px; padding: 22px; border-radius: 22px; background: var(--b-card); box-shadow: 0 18px 40px -26px rgba(38, 55, 47, .45); }
.mw-book .hiw-more-h { font-size: 22px; }
.mw-slots { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mw-slots span { text-align: center; }
.mw-slots span { padding: 9px 13px; border-radius: 12px; border: 1px solid var(--b-line); font-size: 12px; font-weight: 600; }
.mw-slots .is-on { background: var(--b-btn); color: var(--b-btn-ink); border-color: transparent; }
.mw-help { padding: 26px 24px; border-radius: 26px; background: var(--b-p1); }
.mw-help .hiw-more-h { margin-bottom: 14px; }
.mw-help > div { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-help span { padding: 8px 14px; border-radius: 999px; background: var(--b-card); font-size: 12px; }
.mw-team > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mw-team > div > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: 20px; border: 1px solid var(--b-line); text-align: center; }
.mw-team i { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--b-hf); font-style: normal; color: var(--b-ink); }
.mw-team b { font-size: 13px; }
.mw-team span { font-size: 11px; color: var(--b-sub); }

/* Harbor & Co.: formal, ruled, list-led */
.ml-areas > div { display: grid; grid-template-columns: 34px 1fr auto 20px; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--b-line); }
.ml-areas > div:first-of-type { border-top: 1px solid var(--b-ink); }
.ml-areas i { font: 500 10px var(--hiw-mono); font-style: normal; color: var(--b-em); }
.ml-areas b { font-family: var(--b-hf); font-weight: var(--b-hw); font-size: 20px; }
.ml-areas span { font-size: 11px; color: var(--b-sub); }
.ml-areas div > i:last-child { font-family: inherit; font-size: 14px; color: var(--b-ink); }
.ml-way { margin: 0 -22px; padding: 26px 22px; background: var(--b-btn); color: var(--b-btn-ink); }
.ml-way .hiw-site-kicker { color: var(--b-btn-ink); opacity: .75; }
.ml-way > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ml-way > div > div { display: flex; flex-direction: column; gap: 5px; }
.ml-way em { font: italic 600 24px var(--b-hf); color: #c9a86a; }
.ml-way b { font-family: var(--b-hf); font-size: 17px; font-weight: var(--b-hw); }
.ml-way span { font-size: 11px; line-height: 1.45; opacity: .78; }
.ml-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: center; }
.ml-form .hiw-more-h { margin-bottom: 8px; }
.ml-fields { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--b-card); border: 1px solid var(--b-line); }
.ml-fields > span:not(.hiw-site-btn) { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--b-line); font-size: 12px; color: var(--b-sub); }
.ml-fields i { font-style: normal; color: var(--b-ink); }
.ml-fields .hiw-site-btn { justify-content: center; border-radius: 0; }

/* Ember: warm, playful, menu-led */
.me-menu-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.me-menu-h span { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--b-card); }
.me-menu-h em { padding: 6px 12px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--b-sub); }
.me-menu-h em:first-child { background: var(--b-em); color: var(--b-btn-ink); }
.me-menu > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.me-menu ul { list-style: none; margin: 0; padding: 0; }
.me-menu li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--b-line); }
.me-menu li > i { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .14); }
.me-menu li span { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; }
.me-menu li small { font-size: 10px; font-weight: 400; color: var(--b-sub); }
.me-menu li b { margin-left: auto; font: 900 15px var(--b-hf); color: var(--b-em); }
.me-tick { margin: 0 -22px; padding: 11px 0; overflow: hidden; white-space: nowrap; background: #e2673a; color: #fff; transform: rotate(-1.5deg); }
.me-tick span { display: inline-block; font: 900 13px var(--b-hf); letter-spacing: .08em; text-transform: uppercase; }
.hiw-demo.is-ready .me-tick span { animation: hiw-tick 9s linear infinite; }
@keyframes hiw-tick { to { transform: translateX(-40%); } }
.me-beans .hiw-more-h { margin-bottom: 14px; }
.me-beans > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.me-beans > div > div { display: flex; flex-direction: column; gap: 3px; }
.me-beans i { position: relative; display: grid; place-items: center; height: 120px; margin-bottom: 8px; border-radius: 14px; background: var(--b-card); }
.me-beans i::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 12px; width: 62px; margin-left: -31px; border-radius: 6px 6px 10px 10px; background: var(--c); box-shadow: inset 0 6px 0 rgba(0, 0, 0, .18), 0 10px 18px -10px rgba(0, 0, 0, .6); }
.me-beans i b { position: relative; padding: 4px 6px; background: #f6e7d8; color: #2b1d16; font: 900 11px var(--b-hf); }
.me-beans > div > div > b { font-size: 13px; }
.me-beans span { font-size: 11px; color: var(--b-sub); }
.me-beans em { font-style: normal; font: 900 14px var(--b-hf); color: var(--b-em); }
.me-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.me-visit dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 12px; }
.me-visit dt { color: var(--b-sub); }
.me-visit dd { margin: 0; font-weight: 600; }
.me-map { position: relative; min-height: 150px; overflow: hidden; border-radius: 16px; background: #3b2a20; }
.me-map i { position: absolute; background: #4d382b; }
.me-map .r1 { left: 0; right: 0; top: 38%; height: 12px; }
.me-map .r2 { top: 0; bottom: 0; left: 30%; width: 10px; }
.me-map .r3 { top: 0; bottom: 0; left: 72%; width: 8px; transform: rotate(12deg); }
.me-map .park { left: 36%; top: 54%; width: 30%; height: 34%; border-radius: 10px; background: #4f5a35; }
.me-map b { position: absolute; left: 44%; top: 18%; padding: 5px 9px; border-radius: 999px 999px 999px 2px; background: #e2673a; color: #fff; font: 900 11px var(--b-hf); }

/* 05 Review */
.hiw-p-review { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 14px; align-items: start; }
.hiw-p-review .hiw-photo { height: 180px; }
.hiw-p-review .hiw-site-links { display: none; }
.hiw-p-review .hiw-site-nav { justify-content: space-between; }
.hiw-p-review .hiw-site-h { font-size: 27px; }
.hiw-review-side { display: flex; flex-direction: column; gap: 10px; }
.hiw-review-side > small { margin-bottom: 0; }
.hiw-comment { padding: 13px; }
.hiw-comment p:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hiw-comment p:nth-child(2) { margin: 8px 0 !important; font-size: 13px; line-height: 1.45; color: #d9d7d2; }
.hiw-comment .is-ok { font-size: 11px; color: var(--hiw-ok); }
.hiw-approved { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; background: var(--hiw-ok-bg); color: var(--hiw-ok); font-size: 14px; font-weight: 600; }
.hiw-approved svg { width: 16px; height: 16px; stroke-width: 2; }

/* 06 Launch */
.hiw-p-launch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hiw-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hiw-col-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px !important; font-size: 17px; font-weight: 600; }
.hiw-col-h small { font-size: 12px; font-weight: 400; color: var(--hiw-fg-3); }
.hiw-check { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; background: var(--hiw-ink-3); border: 1px solid var(--hiw-line); font-size: 13px; color: #d9d7d2; }
.hiw-check i { display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--hiw-ok-bg); color: var(--hiw-ok); }
.hiw-check svg { width: 11px; height: 11px; stroke-width: 2.6; }
.hiw-live-url { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px; background: var(--hiw-or-btn); color: #fff; font-size: 14px; font-weight: 600; }
.hiw-live-url i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); flex: none; }
.hiw-lead { padding: 13px 14px; }
.hiw-lead p:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hiw-lead p:first-child small { font-size: 11px; color: var(--hiw-fg-3); }
.hiw-lead p:nth-child(2) { margin: 5px 0 8px !important; font-size: 13px; line-height: 1.45; color: var(--hiw-fg-2); }
.hiw-lead em { display: inline-block; font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hiw-line-2); color: #d9d7d2; }

.hiw-note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--hiw-fg-3); }
.hiw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Motion (only once JS is running) ---------- */
.hiw-demo.is-ready .hiw-stage .a-rise { animation: hiw-rise .6s var(--hiw-ease) both; }
.hiw-demo.is-ready .hiw-stage .a-fade { animation: hiw-fade .6s ease both; }
.hiw-demo.is-ready .hiw-stage .a-pop { animation: hiw-pop .55s var(--hiw-back) both; }
.hiw-demo.is-ready .hiw-stage .a-slide { animation: hiw-slide .55s var(--hiw-ease) both; }
.hiw-demo.is-ready .hiw-stage .hiw-type { animation: hiw-type 1s steps(var(--n, 20)) .2s both; }
.hiw-stage .d1 { animation-delay: 0.1s !important; }
.hiw-stage .d2 { animation-delay: 0.21s !important; }
.hiw-stage .d3 { animation-delay: 0.32s !important; }
.hiw-stage .d4 { animation-delay: 0.43s !important; }
.hiw-stage .d5 { animation-delay: 0.54s !important; }
.hiw-stage .d6 { animation-delay: 0.66s !important; }
.hiw-stage .d7 { animation-delay: 0.8s !important; }
.hiw-type { display: inline-block; white-space: nowrap; }

@keyframes hiw-fill { to { transform: scaleX(1); } }
@keyframes hiw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hiw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hiw-pop { 0% { opacity: 0; transform: scale(.86); } 100% { opacity: 1; transform: none; } }
@keyframes hiw-slide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hiw-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hiw-blink { 50% { opacity: 0; } }

/* Reduced motion: no entrance animation; progress bar still shows time if the visitor presses Play. */
@media (prefers-reduced-motion: reduce) {
  .hiw-stage *, .hiw-stage *::after { animation: none !important; transition: none !important; }
  .hiw-tab, .hiw-step, .hiw-side-nav span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hiw-grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-rail { padding: 10px; border-radius: 18px; }
  .hiw-biz { display: none; }
  .hiw-steps { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .hiw-steps::-webkit-scrollbar { display: none; }
  .hiw-steps li { flex: none; scroll-snap-align: start; }
  .hiw-step, .is-active .hiw-step { grid-template-columns: 24px auto; padding: 10px 14px 12px; column-gap: 10px; }
  .hiw-num { width: 24px; height: 24px; }
  .hiw-step-t, .is-active .hiw-step-t { font-size: 14px; white-space: nowrap; }
  .hiw-step-s, .is-active .hiw-step-b { display: none; }
  .is-active .hiw-bar { position: absolute; left: 14px; right: 14px; bottom: 4px; margin: 0; }
  .hiw-rail-cta { display: none; }
}

@media (max-width: 860px) {
  .hiw-demo { padding: 12px; border-radius: 24px; }
  .hiw-app-body { grid-template-columns: minmax(0, 1fr); min-height: 560px; }
  .hiw-side { display: none; }
  .hiw-stage { padding: 16px; }
  .hiw-badge { display: none; }
  .hiw-url { max-width: 80%; }
}

@media (max-width: 640px) {
  .hiw-top { flex-direction: column; align-items: stretch; }
  .hiw-ctrls { justify-content: flex-end; }
  .hiw-brand-grid, .hiw-p-review, .hiw-p-launch { grid-template-columns: minmax(0, 1fr); }
  .hiw-brand-logo { min-height: 110px; }
  .hiw-p-copy { grid-template-columns: minmax(0, 1fr); }
  .hiw-pages { display: none; }
  .hiw-doc { padding: 22px; }
  .hiw-site-h.is-xl { font-size: 32px; }
  .hiw-site-links { display: none; }
  .hiw-site-nav { justify-content: space-between; padding: 12px 16px; }
  .hiw-site-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .hiw-photo, .hiw-p-review .hiw-photo { height: 150px; }
  .hiw-scroll { --hiw-view: 430px; }
  .hiw-more { padding: 4px 16px 0; gap: 24px; }
  .mb-quote, .mw-help { padding: 20px 16px; }
  .mb-menu, .ml-form, .me-visit { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mb-cta, .mn-feature, .ml-way, .me-tick { margin: 0 -16px; }
  .mb-steps, .mn-svc, .ml-way > div, .mw-team > div, .me-beans > div { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mn-proc ol, .me-menu > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-proc ol::before { display: none; }
  .ml-areas > div { grid-template-columns: 28px 1fr 20px; }
  .ml-areas span { display: none; }
  .mw-book { grid-template-columns: minmax(0, 1fr); }
  .me-beans > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .me-beans i { height: 84px; }
  .me-beans i::before { width: 40px; margin-left: -20px; top: 10px; bottom: 8px; }
  .me-beans i b { font-size: 8px; padding: 3px 4px; }
  .me-beans span { display: none; }
  .mw-slots { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-menu > div:last-child { grid-template-columns: minmax(0, 1fr); }
  .hiw-site-feats { padding: 0 16px 16px; gap: 6px; }
  .hiw-site-feats div { padding: 10px; }
  .hiw-site-feats b { font-size: 13px; }
  .hiw-site-feats span { display: none; }
  .hiw-ai > span:not(.hiw-ok) { display: none; }
  .hiw-ai { justify-content: space-between; }
}

@media (forced-colors: active) {
  .hiw-tab[aria-selected="true"], .is-active .hiw-step { outline: 2px solid CanvasText; }
  .hiw-bar i { background: Highlight; }
}

@media print {
  .hiw-ctrls, .hiw-tabs { display: none; }
}
