/* CSS-drawn product mockups for the Help Centre (templ page.helpMock).
   Shared primitives first, then per-scene tweaks. Everything is decorative
   (aria-hidden) and scales with the container. */

.hm { --hm-ink: #0f2038; --hm-muted: #8a99a8; --hm-line: #e6edf6; --hm-blue: #2196f3; --hm-mint: #10b981; --hm-amber: #f59e0b; --hm-rose: #f43f5e;
	font-family: "Poppins", system-ui, sans-serif; color: var(--hm-ink); display: flex; justify-content: center; padding: 10px 0; user-select: none; }
.hm * { box-sizing: border-box; }

/* Phone frame */
.hm-phone { width: 270px; height: 540px; border-radius: 42px; background: #0b1120; padding: 12px; box-shadow: 0 30px 60px rgba(13,36,71,.35), inset 0 0 0 2px #2a3550; position: relative; }
.hm-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 14px; background: #0b1120; z-index: 2; }
.hm-screen { width: 100%; height: 100%; border-radius: 32px; background: linear-gradient(180deg, #f7faff, #fff); padding: 44px 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 12px; }

/* Window frame */
.hm-window { width: 100%; max-width: 640px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px rgba(13,36,71,.22); border: 1px solid var(--hm-line); overflow: hidden; }
.hm-wbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f6fb; border-bottom: 1px solid var(--hm-line); }
.hm-wbar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.hm-wbar i:nth-child(1) { background: #ff5f57; } .hm-wbar i:nth-child(2) { background: #febc2e; } .hm-wbar i:nth-child(3) { background: #28c840; }
.hm-wbar span { margin-left: 10px; font-size: 11.5px; color: var(--hm-muted); background: #fff; border-radius: 6px; padding: 3px 10px; flex: 1; }
.hm-wbody { padding: 16px; display: flex; gap: 14px; font-size: 12px; min-height: 240px; }

/* Primitives */
.hm-bar { height: 9px; border-radius: 6px; background: #cfd9e6; margin: 4px 0; }
.hm-bar.soft { background: #e6edf6; }
.hm-bar.center { margin-left: auto; margin-right: auto; }
.w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.hm-h { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hm-muted); margin-top: 4px; }
.hm-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 12px; box-shadow: 0 6px 16px rgba(13,46,84,.06); }
.hm-card.wide { width: 100%; }
.hm-card-hero { display: flex; gap: 12px; align-items: center; }
.hm-card-hero > div:last-child { flex: 1; }
.hm-card small { display: block; font-size: 10.5px; color: var(--hm-ink); }
.hm-card small.muted { color: var(--hm-muted); }
.hm-btn { display: inline-block; background: linear-gradient(90deg, #1565c0, var(--hm-blue)); color: #fff; font-weight: 700; font-size: 11.5px; padding: 8px 14px; border-radius: 999px; margin-top: 6px; text-align: center; }
.hm-btn.full { display: block; width: 100%; margin-top: auto; }
.hm-btn.ghost { background: #fff; color: var(--hm-ink); border: 1px solid #cfd9e6; }
.hm-btn.dark { background: #0b1120; }
.hm-btn.light { background: #fff; color: var(--hm-ink); border: 1px solid #cfd9e6; }
.hm-pill { display: inline-block; font-size: 10px; font-weight: 700; background: rgba(33,150,243,.12); color: #1565c0; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.hm-pill.alt { background: rgba(16,185,129,.14); color: #065f46; }
.hm-ring { --p: 50; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--hm-blue) calc(var(--p) * 1%), #e6edf6 0); display: grid; place-items: center; flex: 0 0 auto; }
.hm-ring span { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.hm-ring.big { width: 110px; height: 110px; margin: 10px auto 0; background: conic-gradient(var(--hm-mint) calc(var(--p) * 1%), #e6edf6 0); }
.hm-ring.big span { width: 86px; height: 86px; font-size: 20px; }
.hm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.hm-flame { color: #f97316; }
.hm-hearts { color: var(--hm-rose); letter-spacing: 1px; }
.hm-hearts.big { font-size: 26px; margin: 10px auto 0; }
.hm-coin { color: #b45309; }
.hm-x { color: var(--hm-muted); font-weight: 400; }
.hm-row { display: flex; gap: 8px; }
.hm-tile { flex: 1; height: 64px; border-radius: 12px; }
.hm-tile.t1 { background: linear-gradient(135deg, #2196f3, #00bcd4); }
.hm-tile.t2 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.hm-tile.t3 { background: linear-gradient(135deg, #10b981, #84cc16); }
.hm-progress { height: 6px; border-radius: 6px; background: #e6edf6; overflow: hidden; }
.hm-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--hm-blue), #00bcd4); }
.hm-q { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 6px 0; }
.hm-q.center { text-align: center; }
.hm-q mark { background: rgba(33,150,243,.18); border-radius: 4px; padding: 0 3px; }
.hm-opt { border: 1.5px solid var(--hm-line); border-radius: 12px; padding: 9px 12px; font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; }
.hm-opt.ok { border-color: var(--hm-mint); background: #ecfdf5; color: #065f46; font-weight: 700; }
.hm-opt.ok i { font-style: normal; }
.hm-opt.small { padding: 6px 10px; font-size: 11px; }
.hm-feedback { background: #ecfdf5; color: #065f46; border-radius: 10px; padding: 8px 10px; font-size: 11px; margin-top: auto; }
.hm-input { border: 1.5px solid var(--hm-line); border-radius: 12px; padding: 9px 12px; color: var(--hm-muted); font-size: 12px; }
.hm-link { text-align: center; color: #1565c0; font-size: 11.5px; font-weight: 600; }
.hm-or { text-align: center; color: var(--hm-muted); font-size: 11px; }
.hm-logo { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #1565c0, #00bcd4); margin: 10px auto 6px; }
.hm-side { width: 110px; padding: 8px; border-right: 1px solid var(--hm-line); }
.hm-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hm-kpis { display: flex; gap: 8px; }
.hm-kpi { flex: 1; background: #f3f6fb; border-radius: 12px; padding: 8px 10px; }
.hm-kpi b { display: block; font-size: 16px; }
.hm-kpi span { font-size: 10px; color: var(--hm-muted); }
.hm-build { height: 8px; border-radius: 6px; background: #e6edf6; overflow: hidden; margin: 6px 0 4px; }
.hm-build i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #2196f3); animation: hmGrow 3s ease-in-out infinite alternate; }
@keyframes hmGrow { from { width: 55%; } to { width: 80%; } }
.hm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-week { display: flex; gap: 6px; justify-content: space-between; }
.hm-week i { flex: 1; height: 26px; border-radius: 8px; background: #e6edf6; }
.hm-week i.on { background: linear-gradient(135deg, #f97316, #f59e0b); }
.hm-week i.today { border: 2px dashed #f59e0b; background: #fff; }
.hm-check { font-size: 11.5px; padding: 6px 8px 6px 26px; position: relative; border-radius: 8px; }
.hm-check::before { content: "○"; position: absolute; left: 8px; color: #cfd9e6; }
.hm-check.on::before { content: "✓"; color: var(--hm-mint); font-weight: 800; }
.hm-check.look { background: #fff7ed; color: #9a3412; }
.hm-check.look::before { content: "↻"; color: #f59e0b; }
.hm-toggle { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--hm-line); border-radius: 12px; font-size: 12px; }
.hm-toggle i { width: 30px; height: 18px; border-radius: 999px; background: #cfd9e6; position: relative; }
.hm-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.hm-toggle.on i { background: var(--hm-mint); }
.hm-toggle.on i::after { left: 14px; }
.hm-toggle.lock { opacity: .6; }
.hm-slider { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--hm-line); border-radius: 12px; font-size: 12px; gap: 10px; }
.hm-slider i { flex: 1; height: 6px; border-radius: 6px; background: #e6edf6; position: relative; }
.hm-slider b { position: absolute; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--hm-blue); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.hm-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #e6edf6; border-top-color: var(--hm-blue); margin: 60px auto 10px; animation: hmSpin 1s linear infinite; }
@keyframes hmSpin { to { transform: rotate(360deg); } }
.hm-big { font-size: 40px; font-weight: 800; text-align: center; margin-top: 20px; color: #f97316; }
.hm-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0; }
.hm-cal i { aspect-ratio: 1; border-radius: 7px; background: #e6edf6; }
.hm-cal i.on { background: linear-gradient(135deg, #f97316, #f59e0b); }
.hm-cal i.today { border: 2px dashed #f59e0b; background: #fff; }
.hm-code { font-size: 28px; font-weight: 800; letter-spacing: 4px; text-align: center; background: #f3f6fb; border-radius: 14px; padding: 14px; margin-top: 10px; color: #1565c0; }
.hm-qr { width: 110px; height: 110px; margin: 10px auto; border-radius: 12px; background:
	repeating-linear-gradient(0deg, #0f2038 0 6px, transparent 6px 12px), repeating-linear-gradient(90deg, #0f2038 0 6px, #fff 6px 12px);
	background-blend-mode: multiply; opacity: .85; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--hm-line); }
.hm-sheet { margin-top: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 14px; box-shadow: 0 -10px 30px rgba(13,46,84,.12); }
.hm-sheet b { font-size: 16px; }
.hm-sheet i { color: var(--hm-muted); font-size: 11px; margin-left: 6px; }
.hm-sheet p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.hm-sheet small { color: var(--hm-muted); font-size: 10.5px; }

/* Scenes */
.hm-homescreen { width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border-radius: 30px; background: linear-gradient(160deg, #1e3a8a, #0ea5e9 60%, #a7f3d0); box-shadow: 0 30px 60px rgba(13,36,71,.3); }
.hm-widget { background: rgba(255,255,255,.95); border-radius: 18px; padding: 12px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.hm-widget b { font-size: 20px; }
.hm-widget span { font-size: 10.5px; color: var(--hm-muted); }
.hm-widget i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hm-muted); margin-bottom: 4px; }
.hm-widget.w-streak b { color: #f97316; }
.hm-widget.w-hearts b { color: var(--hm-rose); font-size: 16px; letter-spacing: 1px; }
.hm-widget.w-quests .hm-check { font-size: 10.5px; padding: 2px 4px 2px 18px; }
.hm-widget.w-quests .hm-check::before { left: 2px; }
.hm-widget.w-due b { font-size: 13px; }
.hm-shield { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #0d2447, #123a6b); color: #fff; border-radius: 24px; padding: 26px 30px; max-width: 520px; width: 100%; box-shadow: 0 30px 60px rgba(13,36,71,.35); }
.hm-shield-ico { font-size: 64px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.hm-shield-rows { display: grid; gap: 6px; }
.hm-shield .hm-check { color: #fff; font-size: 13px; }
.hm-shield .hm-check.on::before { color: #69f0ae; }
.hm-live { display: flex; gap: 14px; width: 100%; }
.hm-slide { flex: 1.3; background: #0d2447; color: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.hm-slide .hm-q { color: #fff; }
.hm-slide .hm-opt { border-color: rgba(255,255,255,.2); color: #fff; }
.hm-slide .hm-opt.ok { background: rgba(105,240,174,.18); border-color: #69f0ae; color: #69f0ae; }
.hm-draw { position: absolute; right: 18px; bottom: 16px; width: 80px; height: 40px; border: 3px solid #ff5f57; border-radius: 50%; transform: rotate(-8deg); opacity: .9; border-left-color: transparent; }
.hm-monitor { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hm-mon-h { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hm-muted); }
.hm-mon-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 8px; border-radius: 10px; background: #f3f6fb; }
.hm-mon-row b { margin-left: auto; }
.hm-mon-row b.ok { color: #065f46; }
.hm-mon-row b.wait { color: var(--hm-muted); }
.hm-av { width: 20px; height: 20px; border-radius: 50%; }
.hm-av.a1 { background: #f472b6; } .hm-av.a2 { background: #60a5fa; } .hm-av.a3 { background: #34d399; } .hm-av.a4 { background: #fbbf24; }
.hm-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.hm-steps i { flex: 1; height: 6px; border-radius: 6px; background: #e6edf6; }
.hm-steps i.done { background: var(--hm-mint); }
.hm-steps i.on { background: var(--hm-blue); }
.hm-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.hm-tabs span { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f3f6fb; color: var(--hm-muted); }
.hm-tabs span.on { background: var(--hm-blue); color: #fff; }
.hm-drop { border: 2px dashed #cfd9e6; border-radius: 14px; padding: 22px; text-align: center; }
.hm-drop b { display: block; font-size: 13px; }
.hm-drop small { color: var(--hm-muted); font-size: 11px; }
.hm-files { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.hm-file { font-size: 11px; background: #eff6ff; color: #1565c0; padding: 5px 10px; border-radius: 8px; font-weight: 600; }
.hm-foot { display: flex; justify-content: space-between; }
.hm-window .hm-wbody:has(.hm-steps) { flex-direction: column; }
.hm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.hm-plan { border: 1px solid var(--hm-line); border-radius: 14px; padding: 14px; position: relative; }
.hm-plan b { display: block; font-size: 15px; margin-bottom: 6px; }
.hm-plan.hot { border-color: var(--hm-blue); box-shadow: 0 10px 30px rgba(33,150,243,.18); }
.hm-plan.hot .hm-pill { position: absolute; top: -10px; right: 12px; margin: 0; }
.hm-ticket { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hm-tk-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 4px; }
.hm-tk-head .hm-pill { margin: 0; }
.hm-msg { max-width: 80%; padding: 9px 12px; border-radius: 14px; font-size: 11.5px; line-height: 1.45; }
.hm-msg.me { align-self: flex-end; background: #f3f6fb; border-bottom-right-radius: 4px; }
.hm-msg.them { align-self: flex-start; background: #eff6ff; border-bottom-left-radius: 4px; }
.hm-msg i { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: #1565c0; margin-bottom: 2px; }
.hm-meter { width: 100%; margin-bottom: 12px; }
.hm-meter-bar { height: 12px; border-radius: 8px; background: #e6edf6; overflow: hidden; margin-bottom: 6px; }
.hm-meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #2196f3); }
.hm-meter b { font-size: 14px; margin-right: 8px; }
.hm-meter span { font-size: 11px; color: var(--hm-muted); }
.hm-window .hm-wbody:has(.hm-meter) { flex-direction: column; }
.hm-chest { position: relative; display: grid; place-items: center; padding: 20px; }
.hm-chest img { width: 180px; position: relative; z-index: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); animation: hmBob 3s ease-in-out infinite; }
.hm-burst { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.45), transparent 65%); animation: hmPulse 2s ease-in-out infinite; }
.hm-chest .hm-pill { position: relative; z-index: 1; font-size: 13px; background: #fff; color: #b45309; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
@keyframes hmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hmPulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
.hm-blank { width: 100%; height: 120px; border-radius: 16px; background: #f3f6fb; }
@media (max-width: 600px) { .hm-live { flex-direction: column; } .hm-plans { grid-template-columns: 1fr; } .hm-homescreen { width: 260px; } }
@media (prefers-reduced-motion: reduce) { .hm *, .hm { animation: none !important; } }
