/* "How it works" scene, ported from the Bidli sales board (openHow). Drawn on a 1440 x 1300 stage and scaled to fit its box. */
.hw {
  --ink: #060c26; --ink2: #494f68; --hair: #d5dbe8; --hwhead: var(--display, "Anton", "Impact", sans-serif);
  position: absolute; inset: 0; overflow: hidden; cursor: default; background: #fff; color: var(--ink);
  animation: hwIn .3s ease both; font-family: var(--body, "Inter", system-ui, sans-serif);
}
.hw svg.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hwIn { from { opacity: 0; } to { opacity: 1; } }
.hw-in { position: absolute; left: 50%; top: 50%; width: 1440px; height: 1300px; transform-origin: 50% 50%; color: var(--ink); }
.hw-h { position: absolute; left: 110px; right: 110px; top: 80px; text-align: center; font-family: var(--hwhead); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; animation: hwUp .7s ease both; }
.hw-conn { position: absolute; left: 0; top: 0; width: 1440px; height: 1300px; overflow: visible; }
.hw-conn .base { fill: none; stroke: var(--hair); stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; }
.hw-conn .glow { fill: none; stroke: var(--c, var(--blue)); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hwDraw .7s ease forwards; animation-delay: var(--d); }
.hw-conn .dot { fill: var(--c, var(--blue)); opacity: 0; animation: hwShow .1s forwards; animation-delay: calc(var(--d) + .7s); }
.hw-step { position: absolute; top: 330px; margin-left: calc(var(--w) / -2); width: var(--w); text-align: center; animation: hwUp .6s ease both; animation-delay: var(--d); }
.hw-c { position: relative; width: 190px; height: 190px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 11%, #fff); border: 4px solid var(--c, var(--blue)); animation: hwPop .7s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.hw-c > svg.ic { width: 96px; height: 96px; stroke-width: 1.7; }
.hw-c > svg.ic * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hwDraw 1s ease forwards; animation-delay: calc(var(--d) + .3s); }
.hw-t { margin-top: 28px; font-size: 32px; font-weight: 600; line-height: 1.22; }
.hw-ring { position: absolute; left: -26px; top: -26px; width: 234px; height: 234px; overflow: visible; opacity: 0; animation: hwShow .4s forwards, hwSpin 3.2s linear infinite; animation-delay: calc(var(--d) + .9s), calc(var(--d) + .9s); }
.hw-ring path { fill: none; stroke: var(--c, var(--blue)); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hw-b { position: absolute; top: -78px; padding: 10px 16px; border-radius: 18px; font-size: 22px; font-weight: 700; white-space: nowrap; opacity: 0; animation: hwChat 2.6s ease-in-out infinite; animation-delay: calc(var(--d) + 1s + var(--o)); }
.hw-b.o { right: 128px; background: var(--c, var(--blue)); color: #fff; border-bottom-right-radius: 4px; }
.hw-b.i { left: 128px; background: #e9edf5; color: var(--ink); border-bottom-left-radius: 4px; }
@keyframes hwChat { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 12%, 42% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-10px); } }
.hw-card { position: absolute; left: 190px; right: 190px; top: 800px; height: 400px; border-radius: 22px; background: var(--c, var(--blue)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 60px; animation: hwPop .8s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.hw-card .n { font-family: var(--hwhead); font-weight: 400; line-height: 1; white-space: nowrap; padding-bottom: 8px; }
.hw-card .l { font-size: 38px; font-weight: 700; line-height: 1.2; margin-top: 10px; }
.hw-card .s { font-size: 24px; font-weight: 500; opacity: .85; margin-top: 14px; }
@keyframes hwPop { 0% { opacity: 0; transform: scale(.35); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hwUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hwDraw { to { stroke-dashoffset: 0; } }
@keyframes hwShow { to { opacity: 1; } }
@keyframes hwSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hw, .hw * { animation: none !important; }
  .hw-conn .glow, .hw-c > svg.ic * { stroke-dashoffset: 0; }
  .hw-conn .dot, .hw-ring { opacity: 1; }
  .hw-b.o { opacity: 1; }
}

/* ===== Phone (under 640px): the same scene, top to bottom (class hwv set by how.js) ===== */
.tb-scene.hwv-box { aspect-ratio: auto; height: auto; }
.hw.hwv { position: relative; inset: auto; overflow: visible; display: flex; flex-direction: column; gap: 26px; padding: 26px 16px 22px; }
.hwv-h { text-align: center; font-family: var(--hwhead); font-weight: 400; line-height: 1.12; text-wrap: balance; animation: hwUp .7s ease both; }
.hwv-steps { display: flex; flex-direction: column; }
.hwv-step { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; align-items: start; padding-bottom: 38px; animation: hwUp .6s ease both; animation-delay: var(--d); }
.hwv-step:last-child { padding-bottom: 0; }
.hwv-c { position: relative; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 11%, #fff); border: 3px solid var(--c, var(--blue)); animation: hwPop .7s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.hwv-c > svg.ic { width: 40px; height: 40px; stroke-width: 1.7; }
.hwv-c > svg.ic * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hwDraw 1s ease forwards; animation-delay: calc(var(--d) + .3s); }
.hwv-ring { position: absolute; left: -13.7%; top: -13.7%; width: 127.4%; height: 127.4%; overflow: visible; opacity: 0; animation: hwShow .4s forwards, hwSpin 3.2s linear infinite; animation-delay: calc(var(--d) + .9s), calc(var(--d) + .9s); pointer-events: none; }
.hwv-ring path { fill: none; stroke: var(--c, var(--blue)); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hwv-body { min-width: 0; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
.hwv-t { font-size: 18px; font-weight: 600; line-height: 1.3; }
.hwv-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hwv-b { max-width: 100%; padding: 8px 14px; border-radius: 16px; font-size: 16px; font-weight: 700; opacity: 0; animation: hwChat 2.6s ease-in-out infinite; animation-delay: calc(var(--d) + 1s + var(--o)); }
.hwv-b.o { align-self: flex-end; background: var(--c, var(--blue)); color: #fff; border-bottom-right-radius: 4px; }
.hwv-b.i { align-self: flex-start; background: #e9edf5; color: var(--ink); border-bottom-left-radius: 4px; }
/* vertical connector: dotted base, glow draws down, a dot runs down it */
.hwv-line { position: absolute; left: 38.5px; top: 88px; bottom: -8px; width: 3px; background: radial-gradient(circle, var(--hair) 1.5px, transparent 1.8px) 50% 0 / 3px 10px repeat-y; }
.hwv-line .g { position: absolute; left: -1px; top: 0; bottom: 0; width: 5px; border-radius: 3px; background: var(--c, var(--blue)); transform: scaleY(0); transform-origin: top; animation: hwvDraw .7s ease forwards; animation-delay: var(--d); }
.hwv-line .d { position: absolute; left: -4.5px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--blue)); opacity: 0; animation: hwShow .1s forwards, hwvRun 1.6s linear infinite; animation-delay: calc(var(--d) + .7s), calc(var(--d) + .7s); }
.hwv-card { border-radius: 20px; background: var(--c, var(--blue)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 18px 24px; animation: hwPop .8s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.hwv-card .n { font-family: var(--hwhead); font-weight: 400; line-height: 1; white-space: nowrap; padding-bottom: 6px; }
.hwv-card .l { font-size: 19px; font-weight: 700; line-height: 1.25; margin-top: 8px; }
.hwv-card .s { font-size: 14px; font-weight: 500; opacity: .85; margin-top: 10px; }
@keyframes hwvDraw { to { transform: scaleY(1); } }
@keyframes hwvRun { from { top: 0; } to { top: calc(100% - 12px); } }
@media (prefers-reduced-motion: reduce) {
  .hwv-line .g { transform: scaleY(1); }
  .hwv-c > svg.ic * { stroke-dashoffset: 0; }
  .hwv-ring, .hwv-line .d { opacity: 1; }
  .hwv-b.o { opacity: 1; }
}
