/* How it works — page styles.
   Hero split with a framed 16:10 screen · standard phone peeks · screen → rules → data flow · chips · fit lists. */

/* ---------- hero ---------- */
.hiw-hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); justify-items: center; }
.hiw-hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hiw-hero .display { max-width: 24ch; }
.hiw-hero .lede { max-width: 46ch; }
.hiw-hero .cta-row { margin-top: 32px; justify-content: center; }
.hiw-hero .cta-row .call-note { text-align: center; }
.hiw-hero-shot { width: min(100%, 1000px); }
.hiw-hero-shot .shot-frame { box-shadow: 0 30px 60px -36px rgba(39, 43, 46, .45); }
.hiw-hero-shot .cap { align-items: center; text-align: center; }

/* ---------- where you are now: standard phone screens in 4:3 peek tiles ---------- */
.hiw-peeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.hiw-peek { margin: 0; }
.hiw-peek-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.hiw-peek-phone {
  position: absolute; left: 50%; top: 10%; width: 52%; transform: translateX(-50%);
  aspect-ratio: 720 / 1520; border-radius: var(--r-phone); border: var(--phone-bezel) solid var(--charcoal);
  overflow: hidden; background: #fff; container-type: inline-size;
}
@media (max-width: 640px) {
  .hiw-peeks { grid-template-columns: 1fr; }
  .hiw-peek-phone { width: 46%; border-width: 8px; border-radius: 26px; }
}

/* ---------- a new screen, the same rules: flow diagram ---------- */
.hiw-center { text-align: center; margin-left: auto; margin-right: auto; }
.hiw-center .h2, .hiw-center .lede { margin-left: auto; margin-right: auto; }
.hiw-flow {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px);
  max-width: 1040px; margin: 0 auto; position: relative;
}
.hiw-node {
  position: relative; text-align: center; padding: clamp(24px, 3vw, 36px) 20px;
  border: 1px solid var(--line-strong); border-radius: var(--r-tile); background: var(--ivory);
}
.hiw-node h3 { margin: 16px 0 6px; }
.hiw-node p { color: var(--muted); font-size: var(--fs-small); }
.hiw-node .hiw-ico { margin: 0 auto; }
.hiw-node.is-core { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.hiw-node.is-core p { color: var(--muted-dark); }
.hiw-node.is-core .hiw-ico { background: rgba(246, 243, 239, .1); color: var(--mist); }
/* connectors: forward (copper, solid) and back (dashed) between neighbouring nodes */
.hiw-node + .hiw-node::before, .hiw-node + .hiw-node::after {
  content: ""; position: absolute; right: 100%; width: clamp(48px, 7vw, 96px); height: 10px;
  background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none;
}
.hiw-node + .hiw-node::before {
  top: calc(50% - 14px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M10 5h80' stroke='%23C58A65' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 1l6 4-6 4' fill='none' stroke='%23C58A65' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.hiw-node + .hiw-node::after {
  top: calc(50% + 4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M10 5h80' stroke='%23697379' stroke-width='1.5' stroke-dasharray='4 4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M16 1l-6 4 6 4' fill='none' stroke='%23697379' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.hiw-cta { margin-top: clamp(40px, 5vw, 56px); display: flex; justify-content: center; }
@media (max-width: 760px) {
  .hiw-flow { grid-template-columns: 1fr; gap: 56px; max-width: 420px; }
  .hiw-node { display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; text-align: left; align-items: center; padding: 20px; }
  .hiw-node .hiw-ico { grid-row: span 2; margin: 0; }
  .hiw-node h3 { margin: 0; }
  .hiw-node + .hiw-node::before, .hiw-node + .hiw-node::after { right: auto; top: auto; bottom: 100%; width: 10px; height: 56px; }
  .hiw-node + .hiw-node::before {
    left: calc(50% - 14px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M5 12v76' stroke='%23C58A65' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M1 80l4 8 4-8' fill='none' stroke='%23C58A65' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }
  .hiw-node + .hiw-node::after {
    left: calc(50% + 4px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M5 12v76' stroke='%23697379' stroke-width='1.5' stroke-dasharray='4 4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M1 20l4-8 4 8' fill='none' stroke='%23697379' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }
}

/* icon disc, shared by the flow and the chips */
.hiw-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--mist); color: var(--copper-text); flex: none;
}
.hiw-ico svg { width: 24px; height: 24px; }

/* ---------- nothing extra: three chips ---------- */
.hiw-chips { list-style: none; display: grid; gap: 14px; max-width: 520px; width: 100%; justify-self: end; }
.hiw-chips li {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px 18px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.012em; font-weight: 500;
}
@media (max-width: 900px) { .hiw-chips { justify-self: start; } }

/* ---------- the right tool for some jobs ---------- */
.hiw-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.hiw-fit-col { background: var(--ivory); border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 32px); }
.hiw-fit-col h3 { margin-bottom: 18px; }
.hiw-fit-cta { grid-column: 1 / -1; }
@media (max-width: 640px) { .hiw-fit { grid-template-columns: 1fr; } }

/* inline call links that may wrap: keep the arrow with the last word */
.hiw-cta .link-arrow, .hiw-fit-cta .link-arrow { display: inline-block; padding: 10px 0; }
.hiw-cta .link-arrow::after, .hiw-fit-cta .link-arrow::after { display: inline-block; margin-left: 8px; }
@media (max-width: 640px) { .hiw-fit-cta { max-width: none; } }
