/* How it works. Scoped to .hv1. The previous page is at /obsoletehow-it-works.
   With no script both journeys show and each device rests on its last screen. */

/* ---------- Members / Retailers switch ---------- */
.hv1 .hv1-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-block-start: var(--s-5);
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
}
.hv1 .hv1-switch[hidden] { display: none; }
.hv1 .hv1-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-block-size: var(--tap);
  padding-inline: var(--s-5);
  color: var(--ink-2);
  font: inherit;
  font-weight: var(--weight-bold);
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--normal) var(--ease);
}
.hv1 .hv1-switch button[aria-selected="true"] { color: var(--on-accent); }
.hv1 .hv1-switch button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.hv1 .hv1-switch__pill {
  position: absolute;
  inset-block: 0.3rem;
  inset-inline-start: 0.3rem;
  inline-size: calc(50% - 0.3rem);
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.hv1 .hv1-switch[data-on="retailers"] .hv1-switch__pill { transform: translateX(100%); }

/* ---------- Journeys ---------- */
.hv1 .hv1-journey { display: grid; gap: var(--s-5); align-items: start; }
.hv1 .hv1-journeys.is-live { display: block; perspective: 1600px; }
.hv1 .hv1-journeys.is-live .hv1-journey { transform-origin: 50% 0; }
.hv1 .hv1-journeys.is-live .hv1-journey[hidden] { display: none; }
.hv1 .hv1-journeys.is-live .hv1-journey.is-entering { animation: hv1-turn-in 0.6s var(--ease) both; }

@media (min-width: 60rem) {
  .hv1 .hv1-journeys.is-live .hv1-journey { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .hv1 .hv1-journeys.is-live .hv1-stage { position: sticky; inset-block-start: calc(var(--home-header, 60px) + var(--s-5)); }
}

/* Timeline: a line that fills as the steps pass */
.hv1 .hv1-steps { position: relative; margin-block-start: var(--s-3); }
.hv1 .hv1-steps::before,
.hv1 .hv1-steps::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(0.9375rem - 1px);
  inset-block: calc(var(--s-3) + 1.9rem) var(--s-6);
  inline-size: 2px;
  background: var(--line);
  border-radius: var(--radius-full);
}
.hv1 .hv1-steps::after {
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(var(--hv1-fill, 1));
  transition: transform 0.5s var(--ease);
}
.hv1 .hv1-steps li {
  margin-block: var(--s-2);
  padding: var(--s-4) 3.75rem var(--s-4) 3.25rem;
  border-radius: var(--radius);
  transition: background var(--normal) var(--ease), box-shadow var(--normal) var(--ease), transform var(--normal) var(--ease);
}
.hv1 .hv1-steps li::before {
  z-index: 1;
  inset-inline-start: 0;
  inset-block-start: var(--s-4);
  color: var(--accent);
  font-weight: var(--weight-bold);
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: background var(--normal) var(--ease), color var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}
.hv1 .hv1-icon {
  position: absolute;
  inset-block-start: var(--s-4);
  inset-inline-end: var(--s-4);
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 0.8rem;
  transform: perspective(300px) rotateY(-18deg) rotateX(8deg);
  transition: transform 0.4s var(--ease), background var(--normal) var(--ease), color var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}
.hv1 .hv1-icon .icon { inline-size: 1.15rem; block-size: 1.15rem; }
.hv1 .hv1-journeys.is-live .hv1-steps li { cursor: pointer; }
.hv1 .hv1-journeys.is-live .hv1-steps li:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.hv1 .hv1-steps li:focus-visible { outline: var(--focus); outline-offset: 2px; }
.hv1 .hv1-steps li.is-on { background: var(--surface); box-shadow: var(--shadow-float); }
.hv1 .hv1-steps li.is-on::before { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.hv1 .hv1-steps li.is-on .hv1-icon { color: var(--on-accent); background: var(--accent); transform: perspective(300px) rotateY(0) rotateX(0) translateZ(12px); box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.hv1 .hv1-steps li.is-done::before { color: var(--on-accent); background: var(--accent); }

/* ---------- Device stage ---------- */
.hv1 .hv1-stage { position: relative; display: grid; place-items: center; padding: var(--s-6) var(--s-4); perspective: 1400px; isolation: isolate; }
.hv1 .hv1-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 15%, transparent), transparent);
  filter: blur(8px);
}
.hv1 .hv1-device {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: var(--text-sm);
  background: var(--surface);
  border: 0.6rem solid #16130f;
  box-shadow: 0 0 0 2px #3a342c, 0 44px 70px -30px rgb(28 25 23 / 0.55), 0 14px 28px -14px rgb(28 25 23 / 0.35);
  transform: rotateY(var(--hv1-ry, -14deg)) rotateX(var(--hv1-rx, 6deg));
  transition: transform 0.6s var(--ease);
}
.hv1 .hv1-device::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.3), transparent 32%);
  pointer-events: none;
}
.hv1 .hv1-device--phone { inline-size: min(16.5rem, 100%); aspect-ratio: 9 / 17.5; padding: 2.4rem 0.95rem 0.95rem; border-radius: 2.6rem; }
.hv1 .hv1-device--phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset-block-start: 0.55rem;
  inset-inline-start: 50%;
  inline-size: 4.5rem;
  block-size: 1.15rem;
  translate: -50% 0;
  background: #16130f;
  border-radius: var(--radius-full);
}
.hv1 .hv1-device--tablet { inline-size: min(26rem, 100%); aspect-ratio: 4 / 3.1; padding: 1.1rem; border-width: 0.75rem; border-radius: 1.6rem; --hv1-ry: 14deg; }
.hv1 .hv1-screens { position: relative; flex: 1; min-block-size: 0; }
.hv1 .hv1-screen { display: none; flex-direction: column; gap: var(--s-3); }
.hv1 .hv1-screen.is-on { display: flex; }
.hv1 .hv1-screens.is-live .hv1-screen {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem) scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.hv1 .hv1-screens.is-live .hv1-screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s; }
.hv1 .hv1-pager { display: flex; justify-content: center; gap: 0.35rem; padding-block-start: var(--s-3); }
.hv1 .hv1-pager i { inline-size: 0.4rem; block-size: 0.4rem; background: var(--line); border-radius: var(--radius-full); transition: inline-size var(--normal) var(--ease), background var(--normal) var(--ease); }
.hv1 .hv1-pager i.is-on { inline-size: 1.2rem; background: var(--accent); }

.hv1 .hv1-chip {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  color: var(--on-accent);
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 1rem;
  box-shadow: 0 16px 30px -12px rgb(28 25 23 / 0.5);
  translate: var(--hv1-cx, 0px) var(--hv1-cy, 0px);
  transition: translate 0.5s var(--ease);
}
.hv1 .hv1-chip--a { inset-block-start: 12%; inset-inline-start: 4%; rotate: -8deg; }
.hv1 .hv1-chip--b { inset-block-end: 14%; inset-inline-end: 4%; rotate: 9deg; background: #b4233c; }
.hv1 .hv1-stage.is-shown .hv1-chip { animation: hv1-bob 4.2s ease-in-out infinite; }
.hv1 .hv1-stage.is-shown .hv1-chip--b { animation-delay: 1.2s; }

/* Shared screen pieces */
.hv1 .hv1-skel { display: block; flex: 1; block-size: 0.55rem; max-inline-size: 7rem; background: var(--surface-2); border-radius: var(--radius-full); }
.hv1 .hv1-skel--short { max-inline-size: 3.5rem; }
.hv1 .hv1-skel--grow { max-inline-size: none; }
.hv1 .hv1-avatar { display: grid; place-items: center; flex: none; inline-size: 1.9rem; block-size: 1.9rem; color: var(--on-accent); background: var(--accent); border-radius: var(--radius-full); }
.hv1 .hv1-avatar .icon { inline-size: 0.95rem; block-size: 0.95rem; }
.hv1 .hv1-row { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hv1 .hv1-row.is-hit { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.hv1 .hv1-row__end { margin-inline-start: auto; color: var(--accent); }
.hv1 .hv1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.hv1 .hv1-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hv1 .hv1-grid img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-sm); }

/* Members 1: mobile number and code */
.hv1 .hv1-field { display: flex; align-items: center; gap: var(--s-2); margin-block-start: var(--s-4); padding: 0.6rem 0.75rem; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); }
.hv1 .hv1-field__cc { font-weight: var(--weight-bold); }
.hv1 .hv1-dots9 { display: flex; gap: 0.3rem; }
.hv1 .hv1-dots9 i { inline-size: 0.4rem; block-size: 0.4rem; background: var(--ink); border-radius: var(--radius-full); }
.hv1 .hv1-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35rem; }
.hv1 .hv1-code b { position: relative; aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hv1 .hv1-code b::after { content: ""; position: absolute; inset: 40%; background: var(--ink); border-radius: var(--radius-full); }
.hv1 .hv1-btn, .hv1 .hv1-send { display: grid; place-items: center; padding: 0.6rem; color: var(--on-accent); background: var(--accent); border-radius: var(--radius-full); }
.hv1 .hv1-lock { display: grid; place-items: center; align-self: center; inline-size: 3rem; block-size: 3rem; margin-block-start: var(--s-3); color: var(--accent); background: var(--surface-2); border-radius: var(--radius-full); }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i { animation: hv1-pop 0.3s var(--ease) both; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(2) { animation-delay: 0.07s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(3) { animation-delay: 0.14s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(4) { animation-delay: 0.21s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(5) { animation-delay: 0.28s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(6) { animation-delay: 0.35s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(7) { animation-delay: 0.42s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(8) { animation-delay: 0.49s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(9) { animation-delay: 0.56s; }
.hv1 .is-on.hv1-screen--otp .hv1-dots9 i:nth-child(10) { animation-delay: 0.63s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b::after { animation: hv1-pop 0.3s var(--ease) both; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(1)::after { animation-delay: 0.9s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(2)::after { animation-delay: 1.05s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(3)::after { animation-delay: 1.2s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(4)::after { animation-delay: 1.35s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(5)::after { animation-delay: 1.5s; }
.hv1 .is-on.hv1-screen--otp .hv1-code b:nth-child(6)::after { animation-delay: 1.65s; }
.hv1 .is-on.hv1-screen--otp .hv1-btn { animation: hv1-press 0.5s var(--ease) 2s both; }
.hv1 .is-on.hv1-screen--otp .hv1-lock { animation: hv1-unlock 0.6s var(--ease) 2.3s both; }

/* Members 2: scan or search */
.hv1 .hv1-search { display: flex; align-items: center; gap: var(--s-2); padding: 0.55rem 0.75rem; color: var(--ink-3); background: var(--surface-2); border-radius: var(--radius-full); }
.hv1 .hv1-search .hv1-skel { background: var(--line); }
.hv1 .hv1-scan { position: relative; display: grid; place-items: center; padding: var(--s-4); background: #16130f; border-radius: var(--radius); overflow: hidden; }
.hv1 .hv1-qr { display: grid; grid-template-columns: repeat(7, 0.8rem); gap: 0.18rem; padding: 0.6rem; background: #fff; border-radius: var(--radius-sm); }
.hv1 .hv1-qr span { aspect-ratio: 1; background: #fff; border-radius: 1px; }
.hv1 .hv1-qr span:nth-child(-n + 3), .hv1 .hv1-qr span:nth-child(n + 5):nth-child(-n + 7),
.hv1 .hv1-qr span:nth-child(8), .hv1 .hv1-qr span:nth-child(10), .hv1 .hv1-qr span:nth-child(12), .hv1 .hv1-qr span:nth-child(14),
.hv1 .hv1-qr span:nth-child(15), .hv1 .hv1-qr span:nth-child(16), .hv1 .hv1-qr span:nth-child(17), .hv1 .hv1-qr span:nth-child(19), .hv1 .hv1-qr span:nth-child(20), .hv1 .hv1-qr span:nth-child(21),
.hv1 .hv1-qr span:nth-child(24), .hv1 .hv1-qr span:nth-child(25), .hv1 .hv1-qr span:nth-child(27),
.hv1 .hv1-qr span:nth-child(29), .hv1 .hv1-qr span:nth-child(30), .hv1 .hv1-qr span:nth-child(31), .hv1 .hv1-qr span:nth-child(33), .hv1 .hv1-qr span:nth-child(35),
.hv1 .hv1-qr span:nth-child(36), .hv1 .hv1-qr span:nth-child(38), .hv1 .hv1-qr span:nth-child(40), .hv1 .hv1-qr span:nth-child(41),
.hv1 .hv1-qr span:nth-child(n + 43):nth-child(-n + 45), .hv1 .hv1-qr span:nth-child(47), .hv1 .hv1-qr span:nth-child(49) { background: #16130f; }
.hv1 .hv1-scan__line { position: absolute; inset-inline: 22%; inset-block-start: 22%; block-size: 2px; background: #4ade80; box-shadow: 0 0 12px 3px rgb(74 222 128 / 0.7); opacity: 0; }
.hv1 .is-on.hv1-screen--scan .hv1-scan__line { animation: hv1-scanline 2.2s ease-in-out infinite; }
.hv1 .is-on.hv1-screen--scan .hv1-row { animation: hv1-in 0.5s var(--ease) 1.2s both; }

/* Members 3: shop */
.hv1 .hv1-cart { position: relative; display: grid; place-items: center; align-self: flex-end; inline-size: 2.8rem; block-size: 2.8rem; color: var(--on-accent); background: var(--accent); border-radius: var(--radius-full); box-shadow: var(--shadow-float); }
.hv1 .hv1-cart__n { position: absolute; inset-block-start: -0.3rem; inset-inline-end: -0.3rem; display: grid; place-items: center; inline-size: 1.2rem; block-size: 1.2rem; font-size: 0.7rem; background: #b4233c; border: 2px solid var(--surface); border-radius: var(--radius-full); }
.hv1 .is-on.hv1-screen--shop .hv1-grid span { animation: hv1-rise 0.5s var(--ease) both; }
.hv1 .is-on.hv1-screen--shop .hv1-grid span:nth-child(2) { animation-delay: 0.1s; }
.hv1 .is-on.hv1-screen--shop .hv1-grid span:nth-child(3) { animation-delay: 0.2s; }
.hv1 .is-on.hv1-screen--shop .hv1-grid span:nth-child(4) { animation-delay: 0.3s; }
.hv1 .is-on.hv1-screen--shop .hv1-cart__n { animation: hv1-pop 0.4s var(--ease) 1.2s both; }

/* Retailers 1: the enquiry */
.hv1 .hv1-input { display: flex; align-items: center; gap: var(--s-2); padding: 0.6rem 0.75rem; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hv1 .hv1-type { transform-origin: left center; background: var(--ink-3); opacity: 0.55; }
.hv1 .hv1-send { align-self: flex-end; padding-inline: var(--s-5); }
.hv1 .is-on.hv1-screen--form .hv1-type { animation: hv1-typein 0.7s steps(8) both; }
.hv1 .is-on.hv1-screen--form .hv1-type--2 { animation-delay: 0.7s; }
.hv1 .is-on.hv1-screen--form .hv1-type--3 { animation-delay: 1.4s; }
.hv1 .is-on.hv1-screen--form .hv1-send { animation: hv1-fly 0.9s var(--ease) 2.2s both; }

/* Retailers 2: speak with the team */
.hv1 .hv1-bubble { display: flex; align-items: center; gap: var(--s-2); max-inline-size: 80%; padding: 0.55rem 0.7rem; border-radius: 1rem; }
.hv1 .hv1-bubble--them { background: var(--surface-2); border-end-start-radius: 0.3rem; }
.hv1 .hv1-bubble--me { align-self: flex-end; justify-content: flex-end; min-inline-size: 40%; background: var(--accent); border-end-end-radius: 0.3rem; }
.hv1 .hv1-bubble--me .hv1-skel { background: rgb(255 255 255 / 0.55); }
.hv1 .hv1-bubble .hv1-skel { min-inline-size: 4rem; }
.hv1 .hv1-typing { display: flex; gap: 0.25rem; padding: 0.6rem 0.8rem; inline-size: fit-content; background: var(--surface-2); border-radius: 1rem; }
.hv1 .hv1-typing i { inline-size: 0.4rem; block-size: 0.4rem; background: var(--ink-3); border-radius: var(--radius-full); }
.hv1 .is-on.hv1-screen--chat .hv1-bubble { animation: hv1-in 0.45s var(--ease) both; }
.hv1 .is-on.hv1-screen--chat .hv1-bubble:nth-child(2) { animation-delay: 0.6s; }
.hv1 .is-on.hv1-screen--chat .hv1-bubble:nth-child(3) { animation-delay: 1.2s; }
.hv1 .is-on.hv1-screen--chat .hv1-typing { animation: hv1-in 0.45s var(--ease) 1.8s both; }
.hv1 .is-on.hv1-screen--chat .hv1-typing i { animation: hv1-dot 1s ease-in-out infinite; }
.hv1 .is-on.hv1-screen--chat .hv1-typing i:nth-child(2) { animation-delay: 0.15s; }
.hv1 .is-on.hv1-screen--chat .hv1-typing i:nth-child(3) { animation-delay: 0.3s; }

/* Retailers 3: onboarding */
.hv1 .hv1-checks { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.hv1 .hv1-checks li { display: flex; align-items: center; gap: var(--s-2); padding: 0.55rem 0.7rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hv1 .hv1-check { display: grid; place-items: center; flex: none; inline-size: 1.4rem; block-size: 1.4rem; color: var(--on-accent); background: var(--ok); border-radius: var(--radius-full); }
.hv1 .hv1-meter { block-size: 0.5rem; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-full); }
.hv1 .hv1-meter i { display: block; block-size: 100%; background: var(--accent); border-radius: inherit; transform-origin: left center; }
.hv1 .is-on.hv1-screen--setup .hv1-check { animation: hv1-pop 0.4s var(--ease) both; }
.hv1 .is-on.hv1-screen--setup .hv1-checks li:nth-child(1) .hv1-check { animation-delay: 0.5s; }
.hv1 .is-on.hv1-screen--setup .hv1-checks li:nth-child(2) .hv1-check { animation-delay: 1.1s; }
.hv1 .is-on.hv1-screen--setup .hv1-checks li:nth-child(3) .hv1-check { animation-delay: 1.7s; }
.hv1 .is-on.hv1-screen--setup .hv1-meter i { animation: hv1-meter 1.9s var(--ease) 0.3s both; }

/* Retailers 4: published */
.hv1 .hv1-store { display: grid; gap: var(--s-3); padding: var(--s-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.hv1 .hv1-store__head { display: flex; align-items: center; gap: var(--s-2); }
.hv1 .hv1-live { display: grid; place-items: center; margin-inline-start: auto; inline-size: 1.8rem; block-size: 1.8rem; color: var(--on-accent); background: var(--ok); border-radius: var(--radius-full); }
.hv1 .is-on.hv1-screen--live .hv1-store { animation: hv1-publish 0.8s var(--ease) both; }
.hv1 .is-on.hv1-screen--live .hv1-live { animation: hv1-ping 1.8s ease-out 0.8s infinite; }

/* CTA sheen */
.hv1 .hv1-shine { position: relative; overflow: hidden; isolation: isolate; }
.hv1 .hv1-shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%); transform: translateX(-120%); }
.hv1 .hv1-shine:hover::after, .hv1 .hv1-shine:focus-visible::after { animation: hv1-sheen 0.9s var(--ease); }

@media (max-width: 59.99rem) {
  .hv1 .hv1-device--phone { --hv1-ry: -8deg; --hv1-rx: 4deg; }
  .hv1 .hv1-device--tablet { --hv1-ry: 8deg; --hv1-rx: 4deg; }
  .hv1 .hv1-chip { inline-size: 2.5rem; block-size: 2.5rem; }
  .hv1 .hv1-switch { display: grid; inline-size: 100%; box-sizing: border-box; }
  .hv1 .hv1-switch[hidden] { display: none; }
  .hv1 .hv1-switch button { padding-inline: var(--s-3); }
}

@media (prefers-reduced-motion: reduce) {
  .hv1 *, .hv1 *::before, .hv1 *::after { animation: none !important; transition: none !important; }
  .hv1 .hv1-device, .hv1 .hv1-icon { transform: none !important; }
  .hv1 .hv1-screens.is-live .hv1-screen { transform: none !important; }
}

@keyframes hv1-turn-in { from { opacity: 0; transform: rotateX(-14deg) translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes hv1-in { from { opacity: 0; translate: 0 0.6rem; } to { opacity: 1; translate: 0 0; } }
@keyframes hv1-rise { from { opacity: 0; transform: translateY(0.8rem) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes hv1-pop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }
@keyframes hv1-press { 0% { transform: none; } 40% { transform: scale(0.92); } 100% { transform: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } }
@keyframes hv1-unlock { from { opacity: 0.3; transform: scale(0.8) rotate(-10deg); } to { opacity: 1; transform: none; color: var(--on-accent); background: var(--ok); } }
@keyframes hv1-bob { 0%, 100% { translate: var(--hv1-cx, 0px) var(--hv1-cy, 0px); } 50% { translate: var(--hv1-cx, 0px) calc(var(--hv1-cy, 0px) - 0.6rem); } }
@keyframes hv1-scanline { 0%, 100% { inset-block-start: 22%; opacity: 1; } 50% { inset-block-start: 76%; opacity: 1; } }
@keyframes hv1-typein { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hv1-fly { 0% { transform: none; } 30% { transform: scale(0.94); } 100% { transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); } }
@keyframes hv1-dot { 0%, 100% { translate: 0 0; opacity: 0.5; } 50% { translate: 0 -0.25rem; opacity: 1; } }
@keyframes hv1-meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hv1-publish { from { opacity: 0; transform: perspective(600px) rotateX(25deg) translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes hv1-ping { 0% { box-shadow: 0 0 0 0 rgb(23 102 63 / 0.55); } 100% { box-shadow: 0 0 0 0.7rem rgb(23 102 63 / 0); } }
@keyframes hv1-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.hv1 .hv1-stage:has(.hv1-device--tablet) .hv1-chip--a { inset-block-start: 0; inset-inline-start: 0; }
.hv1 .hv1-stage:has(.hv1-device--tablet) .hv1-chip--b { inset-block-end: 0; inset-inline-end: 0; }
