/* Email harness page (/platform/harness). Builds on the homepage classes
   (hero-section--sandbox, section-intro, frame, frame-grid, StoryGrid,
   LogoStrip, DemoBand), the Email Builder page's feature scenes and logo
   tiles (platform.css .fa-*, product-page.css .pp-*), the governed panel
   (deck-govern-panel.css) and faq.css. Only what those lack is here. */

.hz-ivory { background: var(--kit-ivory-tint); }
.hz-page .section-intro + .frame { margin-top: var(--l-section-gap, 48px); }


/* ---------- Steps: one numbered rail, top to bottom. Each step pairs the
   agent's work (light card) with what the harness holds it to (teal card),
   joined by an arrow. Phones and tablet stack the two cards; desktop puts
   them side by side. ---------- */
.hz-flow {
  list-style: none;
  margin: var(--l-section-gap, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 40px;
}
.hz-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}
/* the rail: from each number down to the next one */
.hz-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -36px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--kit-teal-medium) 0 6px, transparent 6px 12px);
  opacity: .5;
}
.hz-flow-num {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kit-teal-shade);
  color: var(--kit-white);
  font-family: var(--font-mono);
  font-size: var(--type-small);
  font-weight: 500;
}
.hz-flow-name {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: var(--type-h4);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
}
.hz-flow-agent, .hz-flow-rules { grid-column: 2; }
.hz-flow-agent, .hz-flow-rules {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
}
.hz-flow-agent { background: var(--kit-white); box-shadow: 0 0 0 1px var(--color-neutrals-ivory-medium); }
.hz-flow-rules { background: var(--kit-teal-shade); color: var(--kit-white); }
.hz-flow-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--kit-text-medium);
}
.hz-flow-label .icon { width: 18px; height: 18px; }
.hz-flow-rules .hz-flow-label { color: var(--kit-teal-highlight); }
.hz-flow-art { padding: 12px; border-radius: 8px; background: var(--kit-ivory-tint); }
/* the scene at its own 16:10 shape, so pins placed in its units land on it */
.hz-flow-canvas { position: relative; aspect-ratio: 320 / 200; }
.hz-flow-canvas .fa { display: block; width: 100%; height: 100%; }
.hz-flow-text {
  margin: 14px 0 0;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--kit-text-strong);
}
.hz-flow-logos { margin-top: auto; padding-top: 16px; }
.hz-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hz-rules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
}
.hz-rules .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--kit-citron-tint, #FFFA66); }
.hz-rules li.is-soon { color: var(--kit-text-on-dark-medium); }
.hz-rules .hz-tag { margin-right: 8px; }
.hz-flow-rules .pp-logos li { background: var(--kit-white); }
@media (min-width: 1024px) {
  .hz-flow { gap: 56px; }
  .hz-flow-step {
    grid-template-columns: 48px minmax(0, 7fr) 40px minmax(0, 4fr);
    column-gap: 20px;
  }
  .hz-flow-step:not(:last-child)::before { left: 23px; top: 52px; bottom: -52px; }
  .hz-flow-num { width: 48px; height: 48px; font-size: var(--type-body); }
  .hz-flow-name { grid-column: 2 / -1; }
  .hz-flow-agent { grid-column: 2; grid-row: 2; padding: 24px; }
  .hz-flow-rules { grid-column: 4; grid-row: 2; padding: 24px; align-self: center; }
  .hz-flow-agent { align-self: stretch; }
  .hz-rules { gap: 20px; }
}

/* ---------- Pins: a number on the scene, the same number on the rule ---------- */
.hz-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-citron-citron-tint, #FFFA66);
  color: var(--kit-teal-shade);
  box-shadow: 0 0 0 2px var(--kit-teal-shade), 0 2px 6px rgba(13, 40, 40, .25);
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease;
}
.hz-flow-canvas .hz-pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.hz-flow-canvas .hz-pin.is-lit { transform: translate(-50%, -50%) scale(1.25); }
.hz-pin--rule { position: relative; z-index: 2; margin-top: 1px; box-shadow: 0 0 0 2px var(--kit-teal-shade); }
.hz-pin--rule.is-lit, .hz-rules li.is-lit .hz-pin--rule { transform: scale(1.2); }
.hz-rules li { grid-template-columns: 24px minmax(0, 1fr); }

/* ---------- Wires (desktop): drawn by the page script ---------- */
.hz-wires { display: none; }
@media (min-width: 1024px) {
  .hz-wires {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
  }
}
.hz-wire-halo { fill: none; stroke: #fff; stroke-width: 5; stroke-linejoin: round; opacity: .9; }
.hz-wire { fill: none; stroke: var(--kit-teal-shade); stroke-width: 1.75; stroke-dasharray: 4 4; stroke-linejoin: round; transition: stroke .15s ease, stroke-width .15s ease; }
.hz-wire-end { fill: var(--kit-teal-shade); }
.hz-wire.is-lit { stroke: var(--kit-teal-medium); stroke-width: 2.5; stroke-dasharray: none; }
.hz-soon { margin-top: 10px !important; font-size: var(--type-small) !important; }
.hz-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-citron-citron-tint);
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-citron-citron-dark);
  vertical-align: 1px;
}

/* ---------- Teams ---------- */
.hz-teams .icon { --ic-line: currentColor; }
.hz-teams h3 { margin-top: 20px !important; }

/* ---------- Links under a figure ---------- */
.hz-more { margin: 24px 0 0; }
.hz-link {
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--kit-teal-medium);
  text-decoration: none;
}
.hz-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.hz-faq { margin-top: var(--l-section-gap, 48px); }
.hz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
