/* How it works: a step rail, then one step at a time (text beside a phone). Phone screens use the app's own colours
   (navy text, sky buttons) because they show the app; the page around them stays charcoal. */

.hw-hero { padding-top: 140px; padding-bottom: 30px }
.hw-hero .h-xl { max-width: 15ch }

/* rail: numbered stops on one line, done stops filled */
.hw-rail { scroll-margin-top: 96px; list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative }
.hw-rail::before { content: ""; position: absolute; left: 4%; right: 4%; top: 19px; height: 2px; background: var(--border) }
.hw-rail button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px 6px; text-align: center }
.hw-rail i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--border); font: 700 15px/1 var(--font); font-style: normal; color: var(--muted); transition: background .2s, border-color .2s, color .2s }
.hw-rail span { font-size: 14px; font-weight: 600; color: var(--faint); line-height: 1.25 }
.hw-rail .done i { background: var(--sky-light); border-color: var(--sky); color: var(--link) }
.hw-rail [aria-current="step"] i { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(56,189,248,.25) }
.hw-rail [aria-current="step"] span { color: var(--ink) }
.hw-rail button:hover span { color: var(--ink) }
.hw-rail button:focus-visible i { outline: 3px solid var(--sky-dark); outline-offset: 3px }

/* a step: text left, phone right */
.hw-step { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px 8vw; align-items: center; padding: clamp(40px, 6vh, 70px) 0 }
.js-tour .hw-step { min-height: 700px }
.js-tour .hw-step:not([hidden]) .hw-text { animation: hw-in .35s cubic-bezier(.2,.7,.2,1) }
.js-tour .hw-step:not([hidden]) .hw-scr > :not(.hw-status) { animation: hw-in .45s cubic-bezier(.2,.7,.2,1) both }
@keyframes hw-in { from { opacity: 0; transform: translateY(10px) } }
.hw-step[hidden], .hw-rail[hidden], .hw-ctl[hidden] { display: none }
.hw-step + .hw-step { border-top: 1px solid var(--border) } .js-tour .hw-step + .hw-step { border-top: 0 }
.hw-n { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--link) }
.hw-text .h-l { max-width: 16ch }
.hw-p { margin: 18px 0 0; max-width: 30em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--muted) }
.hw-more { margin: 18px 0 0; font-size: 17px }

/* the phone */
.hw-phone { width: 300px; height: 624px; padding: 12px; border-radius: 46px; background: var(--ink); box-shadow: inset 0 0 0 2px #3A4048, 0 50px 90px -50px rgba(31,35,40,.65); justify-self: center }
.hw-scr { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: #F8FAFF; color: #001C38; padding: 0 20px; font-size: 14px }
.hw-status { display: flex; justify-content: space-between; padding: 14px 6px 18px; font-size: 12.5px; font-weight: 600 }
.m-h { margin: 14px 0 4px; font: 800 21px/1.2 var(--font); letter-spacing: -0.02em } .m-h.c, .m-sub.c { text-align: center }
.m-sub { margin: 0 0 18px; color: #5B6B7F; font-size: 13.5px }
.m-f { display: block; margin: 0 0 11px } .m-f span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: #5B6B7F }
.m-f b { display: block; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1.5px solid #DCE9FF; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-f b.ph { color: #9AA7B8 }
.m-agree { display: flex; gap: 9px; align-items: flex-start; margin: 6px 0 16px; font-size: 12.5px; line-height: 1.4; font-weight: 600 }
.m-box { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #0284C7; color: #fff; font-size: 12px }
.m-btn { position: absolute; left: 20px; right: 20px; bottom: 26px; padding: 14px; border-radius: 14px; background: #38BDF8; color: #001C38; font-weight: 800; text-align: center; font-size: 15px }
.m-l { margin: 4px 0 6px; font-size: 12px; font-weight: 700; color: #5B6B7F }

/* download: a browser page with the APK in the downloads bar */
.b-url { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 99px; background: #EEF2F7; font-size: 13px; color: #4A5A6E }
.b-page { margin: 40px 0 0; text-align: center }
.b-logo { display: block; font: 800 30px/1 var(--font); letter-spacing: .02em; color: #0D3B66 }
.b-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 12px 22px; border-radius: 99px; background: #38BDF8; font-weight: 800; color: #001C38 }
.b-note { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px -12px rgba(0,28,56,.35) }
.b-file { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #E6F7F1; color: #0B6B50; font-size: 11px; font-weight: 800 }
.b-note div { min-width: 0; flex: 1 } .b-note b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .b-note small { color: #5B6B7F; font-size: 12px }
.b-note em { font-style: normal; font-weight: 800; color: #0369A1 }

/* allow install: Android settings, the switch turning on */
.hw-allow { background: #fff } .a-bar { font-size: 19px; font-weight: 600; padding: 6px 0 22px }
.a-app { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #E6EAF0 } .a-ic { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#EA4335 0 33%, #FBBC05 0 66%, #34A853 0) }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; font-size: 15.5px }
.a-sw { flex: none; position: relative; width: 46px; height: 26px; border-radius: 99px; background: #0284C7 }
.a-sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff }
.js-tour .hw-step:not([hidden]) .a-sw { animation: sw-bg 1.2s ease both } .js-tour .hw-step:not([hidden]) .a-sw::after { animation: sw-dot 1.2s ease both }
@keyframes sw-bg { 0%, 45% { background: #B8C2CE } } @keyframes sw-dot { 0%, 45% { transform: translateX(-20px) } }
.a-warn { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #5B6B7F }

/* OTP */
.hw-otp .m-h { margin-top: 70px }
.o-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 26px 0 0 }
.o-code span { display: grid; place-items: center; height: 46px; border-radius: 11px; background: #fff; border: 1.5px solid #38BDF8; font: 800 20px/1 var(--font) }
.js-tour .hw-step:not([hidden]) .o-code span { animation: hw-in .3s ease both } .o-code span:nth-child(2) { animation-delay: .15s !important } .o-code span:nth-child(3) { animation-delay: .3s !important }
.o-code span:nth-child(4) { animation-delay: .45s !important } .o-code span:nth-child(5) { animation-delay: .6s !important } .o-code span:nth-child(6) { animation-delay: .75s !important }

/* shop details */
.s-langs { display: flex; gap: 7px } .s-langs span { flex: 1; padding: 9px 0; border-radius: 11px; border: 1.5px solid #DCE9FF; background: #fff; text-align: center; font-weight: 700; font-size: 13.5px }
.s-langs .on { border-color: #0284C7; background: #E0F2FE; color: #0369A1 }

/* PIN */
.p-lock { margin: 30px 0 0; text-align: center; font-size: 34px }
.p-dots { display: flex; justify-content: center; gap: 14px; margin: 4px 0 18px } .p-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #0284C7 } .p-dots .on { background: #0284C7 }
.p-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 0 12px } .p-keys span { display: grid; place-items: center; height: 40px; font: 700 20px/1 var(--font) }

/* bill and khata */
.bl { list-style: none; margin: 14px 0 0; padding: 0; border-radius: 16px; background: #fff; border: 1.5px solid #DCE9FF }
.bl li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #EEF2F7; font-weight: 600 } .bl li:last-child { border-bottom: 0 }
.bl small { display: block; font-size: 11.5px; color: #5B6B7F; font-weight: 600 } .bl .due { color: #BA1A1A }
.bl-t { display: flex; justify-content: space-between; margin: 16px 4px 0; font: 800 20px/1 var(--font) }
.bl-pay { position: absolute; left: 20px; right: 20px; bottom: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.bl-pay span { padding: 13px 0; border-radius: 13px; border: 1.5px solid #DCE9FF; background: #fff; text-align: center; font-weight: 800 } .bl-pay .on { background: #38BDF8; border-color: #38BDF8 }
.k-bal { margin: 10px 0 0; padding: 16px; border-radius: 16px; background: #fff; border: 1.5px solid #DCE9FF } .k-bal small { display: block; color: #5B6B7F; font-weight: 600 } .k-bal b { font: 800 30px/1.2 var(--font); color: #BA1A1A }
.k-chat { position: absolute; left: 16px; right: 16px; bottom: 22px; margin: 0; padding: 13px 14px; border-radius: 16px 16px 16px 4px; background: #E0F2FE; font-weight: 600; font-size: 13.5px }
.k-chat span { display: block; font-size: 11.5px; font-weight: 800; color: #0369A1; margin-bottom: 3px }

/* controls */
.hw-ctl { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0 0; border-top: 1px solid var(--border); padding-top: 22px }
.hw-paper { padding-top: clamp(70px, 11vh, 130px); padding-bottom: clamp(70px, 11vh, 130px) } .hw-paper .lead { max-width: 36em }

@media (max-width: 900px) {
  .hw-hero { padding-top: 110px }
  .hw-rail { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; margin: 0 calc(-1 * var(--gl)); padding: 0 var(--gl) } .hw-rail::-webkit-scrollbar { display: none }
  .hw-rail li { flex: 0 0 76px } .hw-rail::before { left: var(--gl); right: auto; width: 608px }
  .hw-step { grid-template-columns: 1fr; gap: 28px } .js-tour .hw-step { min-height: 0 }
  .hw-phone { width: 270px; height: 560px }
  .hw-ctl { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding-bottom: 14px } .hw-ctl .eg { display: none }
}
@media (prefers-reduced-motion: reduce) { .hw-step *, .hw-step *::after { animation: none !important } }
