* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--cbn-bg, #f7faf8); color: var(--cbn-text, #172026); -webkit-font-smoothing: antialiased; }
.guide-page { max-width: 480px; margin: 0 auto; padding: 8px 16px max(20px, env(safe-area-inset-bottom)); }
.guide-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px; font-size: 13px; color: var(--cbn-muted, #5d6b71); text-decoration: none; }
.guide-back:hover { text-decoration: underline; }
.guide-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.guide-slide h2 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; padding-right: 44px; }
.guide-text { margin: 18px 2px 0; position: relative; }
.guide-slides { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; user-select: none; cursor: grab; }
.guide-slides::-webkit-scrollbar { display: none; }
.guide-slides.is-dragging { cursor: grabbing; }
.guide-slides.is-dragging { scroll-snap-type: none; }
.guide-dots { display: flex; justify-content: center; flex: 1; min-width: 144px; max-width: 240px; }
.guide-nav .guide-dot { display: grid; place-items: center; flex: 1; min-width: 24px; height: 44px; min-height: 44px; padding: 0;  border-radius: 12px; background: none; cursor: pointer; }
.guide-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--cbn-plate-down); transition: width .2s ease, background .2s ease; }
.guide-dot[aria-current="step"] span { width: 22px; border-radius: 6px; background: var(--cbn-accent); }
.guide-instruction { font-size: 16px; color: var(--cbn-muted, #45565d); line-height: 1.6; }
.guide-instruction strong { color: var(--cbn-text, #172026); font-weight: 650; }
.guide-instruction a, .guide-note a { color: var(--cbn-accent, #22794f); text-decoration: underline; text-underline-offset: 2px; }
.guide-note { font-size: 12px; color: var(--cbn-muted, #75847d); line-height: 1.55; margin-top: 9px; }
.guide-note:empty { display: none; }
.guide-link { display: flex; align-items: center; gap: 8px;   padding: 10px; margin-top: 10px; }
.guide-link code { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; flex: 1; min-width: 0; user-select: all; cursor: text; }
.guide-copy {     font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; min-height: 44px; padding: 7px 10px; }
.guide-demo { --guide-loop: 9s; position: relative; background: var(--cbn-soft, #eef4f0); border-radius: 14px; padding: 18px 8px; overflow: hidden; }
.guide-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--cbn-plate); }
.guide-progress span { display: block; height: 100%; background: var(--cbn-accent); transform-origin: left; animation: guide-progress var(--guide-loop) linear infinite; }
.demo-phone { width: min(100%, 300px); height: 284px; margin: auto; position: relative; border: 6px solid #26342e; border-radius: 25px; box-shadow: 0 8px 16px #1e493c15; overflow: hidden; background: #f5f5f7; color: #1c2226; font-size: 13px; }
.demo-phone * { pointer-events: none; }
.demo-phone::before { content: ''; display: block; width: 58px; height: 9px; margin: 0 auto; border-radius: 0 0 9px 9px; background: #26342e; }
.demo-android { border-radius: 21px; background: #f9f9fc; }
.demo-android::before { width: 5px; height: 5px; margin-top: 5px; border-radius: 50%; }
.demo-firefox-logo { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(135deg, #ffca5a, #ff7139 55%, #b54eea); color: #522487; font-size: 30px; font-weight: 800; flex: 0 0 auto; }
.demo-monkey-logo { display: inline-flex; justify-content: center; align-items: center; gap: 4px; width: 35px; height: 35px; border-radius: 9px; background: #343946; flex: 0 0 auto; }
.demo-monkey-logo i { width: 8px; height: 11px; border-radius: 50%; background: #fff; }
.demo-android-button { position: relative; text-align: center; background: #4758c6; color: #fff; border-radius: 18px; padding: 10px 12px; font-weight: 650; margin: 12px 0; }
.demo-android .demo-tap::after { border-color: #4758c6; background: #4758c612; }
.demo-android-dialog { background: #ececf5; border-radius: 16px; padding: 17px 14px; margin-top: 16px; }
.demo-android-dialog > strong { display: block; line-height: 1.5; margin-top: 10px; }
.demo-android-dialog p { font-size: 12px; margin: 12px 0; line-height: 1.5; }
.demo-description { line-height: 1.6; color: #5d6b71; font-size: 12px; }
.demo-script-source { font-size: 11px; line-height: 1.7; border-radius: 9px; background: #ececf5; color: #5d6b71; padding: 10px; margin: 15px 0; }
.demo-update-row { font-size: 11px; padding: 12px 9px; border: 1px solid #e1e4ef; line-height: 1.5; }
.demo-update-row > span:first-child { max-width: 135px; }
.demo-auto-check { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.5; color: #22794f; margin-top: 13px; }
.demo-auto-check > span { font-size: 20px; animation: guide-benefit var(--guide-loop) infinite; }
.demo-status { display: flex; justify-content: space-between; font-weight: 650; padding: 10px 14px; font-size: 10px; }
.demo-content { padding: 12px 14px; }
.demo-content h4 { font-size: 18px; margin-bottom: 14px; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 10px; padding: 12px 11px; background: #fff; margin-bottom: 8px; }
.demo-stay { background: #151515; color: #f7f7f7; --demo-accent: #ca46e8; }
.demo-stay .demo-row { background: #292929; }
.demo-stay .demo-content { padding-top: 10px; }
.demo-settings .demo-content { padding-bottom: 70px; }
.demo-settings .demo-row { min-height: 62px; gap: 10px; }
.demo-settings .demo-row > span:first-child { max-width: 155px; line-height: 1.4; }
.demo-stay-logo { display: inline-grid; place-items: center; background: #f0ddf6; color: #aa35cf; border-radius: 9px; width: 35px; height: 35px; font-size: 26px; font-style: italic; font-weight: 850; }
.demo-app { display: flex; gap: 10px; align-items: center; margin: 26px 0; }
.demo-app strong { display: block; font-size: 16px; }
.demo-app small { font-size: 11px; color: #7a858d; }
.demo-pill { border-radius: 18px; background: #007aff; color: #fff; font-weight: 650; padding: 8px 13px; font-size: 12px; position: relative; }
.demo-app-store { color: #75847d; margin-bottom: 13px; font-size: 12px; }
.demo-store-line { height: 7px; background: #e4e8eb; margin: 9px 0; width: 82%; border-radius: 4px; }
.demo-store-line:last-child { width: 58%; }
.demo-tabs { position: absolute; bottom: 9px; left: 9px; right: 9px; display: flex; justify-content: space-around; border-radius: 18px; padding: 12px 4px; color: #aaa3af; background: #292929; font-size: 10px; }
.demo-tab { text-align: center; position: relative; }
.demo-tab b { display: block; font-size: 17px; line-height: 1.1; margin-bottom: 3px; }
.demo-tab.selected { color: #d754ed; }
.demo-small { font-size: 11px; color: #aaa3af; }
.demo-toggle { display: inline-block; position: relative; background: #727279; width: 40px; height: 24px; border-radius: 20px; flex: 0 0 auto; }
.demo-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; background: #fff; width: 20px; height: 20px; border-radius: 50%; }
.demo-toggle.animated { animation: guide-toggle var(--guide-loop) infinite; }
.demo-toggle.animated::after { animation: guide-toggle-knob var(--guide-loop) infinite; }
.demo-toggle.on { background: #34c759; }
.demo-toggle.on::after { left: 18px; }
.demo-address { position: absolute; bottom: 12px; left: 12px; right: 12px; background: #e1e3e6; border-radius: 18px; padding: 12px; display: flex; gap: 9px; align-items: center; font-size: 12px; }
.demo-firefox-address { background: #ececf5; border-radius: 8px; }
.demo-menu-icon { display: grid; gap: 2px; width: 15px; position: relative; }
.demo-menu-icon::before { content: ''; height: 7px; border: 1.5px solid currentColor; border-radius: 2px; }
.demo-menu-icon::after { content: ''; height: 3px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; width: 10px; }
.demo-sheet { position: absolute; background: #eeeef0; border-radius: 17px 17px 0 0; padding: 12px; left: 0; right: 0; bottom: 0; top: 57px; box-shadow: 0 -5px 15px #00000008; }
.demo-sheet-title { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 650; margin-bottom: 15px; }
.demo-sheet-title span { color: #007aff; }
.demo-search { background: #e0e1e5; border-radius: 7px; font-size: 12px; color: #868b94; padding: 9px; margin-bottom: 12px; }
.demo-phase { position: absolute; inset: 44px 12px 60px; }
.demo-phase + .demo-phase { opacity: 0; visibility: hidden; }
.demo-phase.phase-one { animation: guide-phase-one var(--guide-loop) infinite; }
.demo-phase.phase-two { animation: guide-phase-two var(--guide-loop) infinite; }
.demo-phase.phase-three { animation: guide-phase-three var(--guide-loop) infinite; }
.demo-phase .demo-sheet { top: 14px; bottom: -40px; left: -12px; right: -12px; }
.demo-stay .demo-phase .demo-sheet { bottom: 0; }
.demo-add-header { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 650; }
.demo-plus { font-size: 25px; position: relative; padding: 0 4px; font-weight: 400; }
.demo-add-sheet { top: 63px; background: #1b1b1b; }
.demo-add-sheet strong { display: block; margin: 3px 0 11px; }
.demo-url { background: #292929; color: #e8e8e8; border-radius: 8px; padding: 12px 9px; margin-top: 16px; font-size: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.demo-continue { background: #ca46e8; color: #fff; border-radius: 8px; padding: 10px; text-align: center; margin-top: 12px; font-weight: 650; position: relative; }
.demo-allow { font-size: 13px; color: #007aff; position: relative; }
.demo-check { color: #22794f; background: #dff2e6; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 26px; margin: 12px auto; }
.demo-cashback { position: absolute; bottom: 64px; left: 10px; right: 10px; padding: 12px 10px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px #182d2520; display: flex; gap: 7px; align-items: center; font-size: 11px; animation: guide-benefit var(--guide-loop) infinite; }
.demo-cashback img { width: 22px; height: 22px; }
.demo-cashback strong { display: block; color: #22794f; }
.demo-tap::after { content: ''; position: absolute; width: 29px; height: 29px; border: 2px solid #22794f; border-radius: 50%; background: #22794f12; top: 50%; left: 65%; transform: translate(-50%, -50%); animation: guide-tap var(--guide-loop) infinite; z-index: 2; }
.demo-stay .demo-tap::after { border-color: #d754ed; background: #d754ed18; }
.demo-tap { position: relative; }
.demo-phase .demo-tap::after { animation-duration: 3s; }
.demo-settings .demo-tab::after { animation: guide-settings-tab var(--guide-loop) infinite; }
.demo-settings .demo-row::after { left: 82%; animation: guide-settings-switch var(--guide-loop) infinite; }
.guide-nav { display: flex; gap: 4px; align-items: center; justify-content: space-between; margin-top: 18px; }
.guide-nav button { font: inherit; font-size: 14px; font-weight: 650; min-height: 46px; padding: 11px 17px; }
.guide-nav .guide-prev, .guide-nav .guide-next { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; font-size: 22px; flex: 0 0 auto; }
.guide-nav button:disabled { opacity: .4; cursor: default; }
.guide-back:focus-visible, .guide-slides:focus-visible, .install-guide button:focus-visible, .guide-instruction a:focus-visible { outline: 2px solid #22794f; outline-offset: 2px; }
.guide-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;  }
.install-guide.is-background .guide-demo *, .install-guide.is-background .guide-demo *::after { animation-play-state: paused !important; }
/* Re-entering a step starts its demo and progress strip together at zero. */
.guide-slide[aria-hidden="true"] .guide-demo *, .guide-slide[aria-hidden="true"] .guide-demo *::after { animation: none !important; }
@keyframes guide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes guide-tap { 0%, 12%, 50%, 100% { opacity: 0; } 23%, 35% { opacity: 1; } 40% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
@keyframes guide-toggle { 0%, 40%, 100% { background: #727279; } 46%, 88% { background: #34c759; } }
@keyframes guide-toggle-knob { 0%, 40%, 100% { left: 2px; } 46%, 88% { left: 18px; } }
@keyframes guide-settings-tab { 0%, 10%, 30%, 100% { opacity: 0; } 16%, 24% { opacity: 1; } }
@keyframes guide-settings-switch { 0%, 30%, 53%, 100% { opacity: 0; } 36%, 45% { opacity: 1; } }
@keyframes guide-phase-one { 0%, 29%, 100% { opacity: 1; visibility: visible; } 33%, 96% { opacity: 0; visibility: hidden; } }
@keyframes guide-phase-two { 0%, 29%, 68%, 100% { opacity: 0; visibility: hidden; } 33%, 64% { opacity: 1; visibility: visible; } }
@keyframes guide-phase-three { 0%, 64%, 100% { opacity: 0; visibility: hidden; } 68%, 96% { opacity: 1; visibility: visible; } }
@keyframes guide-benefit { 0%, 20%, 100% { opacity: 0; transform: translateY(8px); } 32%, 88% { opacity: 1; transform: translateY(0); } }
@media (max-width: 350px) {
  .guide-page { padding-left: 12px; padding-right: 12px; }
  .demo-content { padding-left: 10px; padding-right: 10px; }
  .demo-app { gap: 7px; }
  .demo-app strong { font-size: 14px; }
  .demo-app small { font-size: 10px; }
  .demo-pill { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-dot span { transition: none; }
  /* Keep instructional steps visible; remove decorative zooming/sliding only. */
  .demo-tap::after { transform: translate(-50%, -50%) !important; }
  .demo-cashback { transform: none !important; }
}
