/* Home page, "How it goes live": one product shot per step inside the framed window.
   Install and Set your rules show the real Account Editor screens in the Shopify admin (slim
   icon rail, one card in focus); Go live shows the customer's order page. Each step has one
   callout that sits half outside the window, on the gradient frame. Markup: tools/hw_shots.py */
.hws, .hp-calls { --hp-blue: #005bd3; --hp-sub: #616161; --hp-brand: var(--brand, #7d40ff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #303030; -webkit-font-smoothing: antialiased; }
.hws { display: grid; grid-template-columns: minmax(0, 1fr); height: 440px; min-height: 0 !important; }
.hws b, .hp-calls b { font-weight: 600; }
:where(.hws, .hp-calls) :is(p, ul, ol) { margin: 0; padding: 0; list-style: none; }
.hws svg, .hp-calls svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hws .wfv__view { position: relative; align-self: stretch; padding: 0; overflow: hidden; }

/* ---------------------------------------------------------------- admin shell */
.hp-admin { display: grid; grid-template-columns: 52px minmax(0, 1fr); height: 100%; background: #1a1a1a; }
.hp-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.hp-rail > b { display: grid; margin-bottom: 10px; } .hp-rail > b img { width: 20px; height: 20px; }
.hp-rail > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #a6a6a6; } .hp-rail svg { width: 16px; height: 16px; }
.hp-rail__app { display: grid; width: 30px; height: 30px; margin-top: 10px; padding: 5px; border-radius: 8px; background: #3a3a3a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hp-rail__app img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.hp-main { display: flex; flex-direction: column; margin-top: 8px; border-radius: 14px 0 0 0; background: #f1f1f1; overflow: hidden; }
.hp-top { display: flex; align-items: center; gap: 9px; flex: none; height: 46px; padding: 0 20px; background: #fff; border-bottom: 1px solid #e8e8e8; font-size: 13px; }
.hp-top i { display: grid; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; } .hp-top img { width: 100%; height: 100%; object-fit: cover; }
.hp-top span { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px #e3e3e3; font-size: 10px; letter-spacing: 1px; color: #616161; }
.hp-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }

/* cards, type, buttons (Polaris) */
.hp-card { padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.05); }
.hp-h1 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: #1a1a1a; }
.hp-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.hp-d { margin-top: 6px !important; max-width: 58ch; font-size: 12.5px; line-height: 1.55; color: var(--hp-sub); }
.hp-d strong { color: #1a1a1a; font-weight: 600; }
.hp-badge { display: inline-block; margin-bottom: 10px !important; padding: 3px 9px; border-radius: 7px; background: #affebf; color: #014b40; font-size: 11.5px; font-weight: 550; }
.hp-step { padding: 2px 8px; border-radius: 6px; background: #ebebeb; font-style: normal; font-size: 11px; font-weight: 500; color: #616161; }
.hp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px !important; }
.hp-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 9px; background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px #d4d4d4, 0 1px 0 rgba(0, 0, 0, 0.06); font-size: 12.5px; font-weight: 600; color: #303030; white-space: nowrap; }
.hp-btn--dark { background: #303030; color: #fff; box-shadow: inset 0 -1.5px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.25); }
.hp-link { padding-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--hp-blue); }

/* Install: Get started runs its setup, Need help */
.hp-hero { padding: 22px 24px; }
.hp-go { min-width: 108px; }
.hp-go__fill { position: absolute; inset: 0; background: #0c7a43; transform: scaleX(0); transform-origin: left; }
.hp-go__a, .hp-go__c { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.hp-go__c { position: absolute; opacity: 0; } .hp-go__c svg { width: 13px; height: 13px; stroke-width: 2.6; }
.hp-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hp-mini { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e6e6e6; font-size: 12.5px; }
.hp-mini i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #f1f1f1; } .hp-mini svg { width: 14px; height: 14px; }

/* Set your rules: editing window */
.hp-row-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-row-card .hp-acts { margin-top: 0 !important; flex-wrap: nowrap; }
.hp-ew-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hp-ew { padding: 16px 16px 18px; border-radius: 10px; background: #f4f4f4; }
.hp-ew > b { font-size: 13px; }
.hp-tl { display: flex; align-items: flex-start; margin-top: 18px; }
.hp-tl > span:not(.hp-tl__line) { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; font-size: 11.5px; }
.hp-tl i { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 3px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #dcdcdc; }
.hp-tl i.is-key { background: #303030; color: #fff; box-shadow: none; }
.hp-tl svg { width: 14px; height: 14px; }
.hp-tl em { font-style: normal; font-size: 11px; color: var(--hp-sub); }
.hp-tl__line { flex: 1; height: 0; margin: 13px 6px 0; border-top: 2px solid #303030; transform-origin: left; }
.hp-tl__line--dash { border-top-style: dashed; border-top-color: #a3a3a3; }
.hp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hp-opt { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #e1e1e1; font-size: 12.5px; white-space: nowrap; }
.hp-opt i { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px #8a8a8a; }
.hp-opt.is-on { box-shadow: inset 0 0 0 1.6px #303030; font-weight: 600; } .hp-opt.is-on i { box-shadow: inset 0 0 0 4.5px #303030; }

/* ---------------------------------------------------------------- order status page */
.hp-os { display: flex; flex-direction: column; height: 100%; background: #fafafa; color: #000; }
.hp-os__ban { position: relative; display: flex; align-items: center; justify-content: center; flex: none; height: 34px; background: linear-gradient(180deg, #0a63d8, #0055c4); color: #fff; font-size: 12.5px; }
.hp-os__ban b { font-variant-numeric: tabular-nums; }
.hp-os__ban svg { position: absolute; right: 16px; width: 14px; height: 14px; }
.hp-os__head { display: flex; align-items: center; gap: 26px; flex: none; height: 54px; padding: 0 32px; background: #fff; border-bottom: 1px solid #eee; }
.hp-os__head > b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.hp-os__nav { display: flex; gap: 18px; font-size: 12.5px; color: #707070; } .hp-os__nav span:nth-child(2) { color: #000; font-weight: 600; }
.hp-os__me { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hp-os__me em { padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px #dedede; font-style: normal; font-size: 11.5px; }
.hp-os__me i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f1; box-shadow: inset 0 0 0 1px #dedede; font-style: normal; font-size: 12px; }
.hp-os__in { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 22px 32px 0; }
.hp-os__side li { padding: 4px 0; font-size: 15px; font-weight: 500; color: #8a8a8a; letter-spacing: -0.01em; }
.hp-os__side li.is-on { color: #000; font-weight: 600; }
.hp-os__card { padding: 4px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ececec, 0 10px 24px -14px rgba(0, 0, 0, 0.18); }
.hp-os__t { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 12px; border-bottom: 1px solid #e6e6e6; }
.hp-os__t > span { display: flex; flex-direction: column; gap: 2px; } .hp-os__t b { font-size: 14px; } .hp-os__t > span em { font-style: normal; font-size: 11.5px; color: var(--hp-sub); }
.hp-os__pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #eaf2ff; color: var(--hp-blue); font-style: normal; font-size: 11px; font-weight: 600; }
.hp-os__pill svg { width: 12px; height: 12px; stroke-width: 2; }
.hp-row { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 4px; border-bottom: 1px solid #efefef; font-size: 12.5px; font-weight: 600; }
.hp-row svg { width: 15px; height: 15px; stroke-width: 1.8; }

/* ---------------------------------------------------------------- callouts (on the frame) */
.hp-calls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hp-call { position: absolute; width: 268px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.97); color: #111; opacity: 0; translate: 0 14px;
  box-shadow: 0 0 0 1px rgba(17, 17, 26, 0.06), 0 2px 6px rgba(17, 17, 26, 0.06), 0 30px 60px -20px rgba(30, 16, 70, 0.55);
  transition: opacity 0.4s ease, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.hp-call--0 { right: -22px; bottom: 26px; }
.hp-call--1 { right: -22px; bottom: 6px; width: 282px; }
.hp-call--2 { left: -26px; bottom: 30px; width: 286px; }
.hw__frame:has([data-wf-view="0"].is-on) .hp-call--0,
.hw__frame:has([data-wf-view="1"].is-on) .hp-call--1,
.hw__frame:has([data-wf-view="2"].is-on) .hp-call--2 { opacity: 1; translate: 0 0; transition-delay: 0.3s; }
.hp-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; color: #5b2fd6; }
.hp-tag span { display: grid; width: 20px; height: 20px; border-radius: 6px; overflow: hidden; } .hp-tag img { width: 100%; height: 100%; object-fit: cover; }
/* install checklist */
.hp-setup { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; } .hp-setup span { font-size: 11.5px; color: var(--hp-sub); }
.hp-bar { height: 5px; margin: 9px 0 12px !important; border-radius: 5px; background: #ece7fb; overflow: hidden; }
.hp-bar i { display: block; width: 33.4%; height: 100%; border-radius: 5px; background: var(--hp-brand); transform-origin: left; }
.hp-steps { display: flex; flex-direction: column; gap: 9px; }
.hp-steps li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--hp-sub); }
.hp-steps li i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px #cfcfcf; }
.hp-steps li.is-done { color: #111; font-weight: 600; }
.hp-steps li.is-done i { background: #0c7a43; box-shadow: none; color: #fff; } .hp-steps svg { width: 11px; height: 11px; stroke-width: 2.8; }
/* rules: feature switches */
.hp-feat { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12.5px; }
.hp-feat + .hp-feat { border-top: 1px solid #f0f0f0; }
.hp-feat i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #f3f0fe; color: #5b2fd6; } .hp-feat svg { width: 14px; height: 14px; }
.hp-feat b { flex: 1; }
.hp-sw { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--hp-brand); }
.hp-sw::after { content: ""; position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
/* live: edits feed */
.hp-live { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.hp-live + .hp-live { border-top: 1px solid #f0f0f0; }
.hp-th { position: relative; display: grid; flex: none; width: 38px; height: 38px; border-radius: 9px; background: #f5f5f5; box-shadow: inset 0 0 0 1px #e8e8e8; }
.hp-th img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.hp-live > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12.5px; white-space: nowrap; }
.hp-live > span:nth-child(2) > * { overflow: hidden; text-overflow: ellipsis; }
.hp-live em { font-style: normal; font-size: 11px; color: var(--hp-sub); }
.hp-ok { flex: none; padding: 3px 7px; border-radius: 6px; background: #e6f4ec; color: #0c7a43 !important; font-size: 11px !important; font-weight: 600; }

/* ---------------------------------------------------------------- motion: each screen plays as its step opens */
@media (prefers-reduced-motion: no-preference) {
  .hp-go__fill { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
  .hp-go__a, .hp-go__c { transition: opacity 0.3s ease; }
  .is-on .hp-go__fill { transform: none; transition-delay: 0.6s; }
  .is-on .hp-go__a { opacity: 0; transition-delay: 0.7s; }
  .is-on .hp-go__c { opacity: 1; transition-delay: 1.4s; }
  .hp-bar i { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  .hw__frame:has([data-wf-view="0"].is-on) .hp-bar i { transform: none; transition-delay: 1.5s; }
  .hp-sw { background: #d4d4d4; transition: background 0.3s ease; } .hp-sw::after { left: 2px; transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
  .hw__frame:has([data-wf-view="1"].is-on) .hp-sw { background: var(--hp-brand); transition-delay: calc(0.8s + var(--i) * 0.3s); }
  .hw__frame:has([data-wf-view="1"].is-on) .hp-sw::after { left: 14px; transition-delay: calc(0.8s + var(--i) * 0.3s); }
  .hp-tl__line { transform: scaleX(0); transition: transform 0.7s ease; }
  .is-on .hp-tl__line { transform: none; transition-delay: 0.25s; } .is-on .hp-tl__line--dash { transition-delay: 0.6s; }
  .hp-row { opacity: 0; translate: 0 6px; transition: opacity 0.35s ease, translate 0.5s ease; }
  .is-on .hp-row { opacity: 1; translate: 0 0; transition-delay: calc(0.1s + var(--i) * 0.05s); }
  .hp-live { opacity: 0; translate: 0 6px; transition: opacity 0.35s ease, translate 0.5s ease; }
  .hw__frame:has([data-wf-view="2"].is-on) .hp-live { opacity: 1; translate: 0 0; transition-delay: calc(0.7s + var(--i) * 0.35s); }
}
@media (prefers-reduced-motion: reduce) { .hp-go__a { opacity: 0; } .hp-go__c { opacity: 1; } .hp-go__fill { transform: none; } }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) { .hws { height: 400px; } .hp-admin, .hp-os { zoom: 0.86; } .hp-call { zoom: 0.88; } }
@media (max-width: 900px) {
  .hws { height: 420px; } .hp-admin, .hp-os { zoom: 0.9; }
  .hp-call { zoom: 0.9; } .hp-call--0, .hp-call--1 { right: 18px; bottom: 18px; } .hp-call--2 { left: 18px; bottom: 18px; }
}
@media (max-width: 600px) {
  .hws { height: 380px; }
  .hp-admin { grid-template-columns: minmax(0, 1fr); } .hp-rail { display: none; } .hp-main { margin: 0; border-radius: 0; }
  .hp-admin, .hp-os { zoom: 0.8; }
  .hp-ew-card { grid-template-columns: minmax(0, 1fr); } .hp-help { grid-template-columns: minmax(0, 1fr); }
  .hp-os__nav { display: none; } .hp-os__head, .hp-os__in { padding-left: 18px; padding-right: 18px; }
  .hp-os__in { grid-template-columns: minmax(0, 1fr); } .hp-os__side { display: none; }
  .hp-call { zoom: 0.78; } .hp-call--0, .hp-call--1, .hp-call--2 { left: auto; right: 14px; bottom: 14px; }
}
@media (max-width: 900px) { .hw__frame { position: relative !important; left: auto !important; top: auto !important; } }
