/* ════════════════════════════════════════════════════════════════════════════
   qrCatch public home page (home.php) — 2026-11-23
   Same language as the app's v2 « Viewfinder » look: cool paper, white cards, ink type, royal for
   focus/selection, the signal gradient for the ONE main action, one night stage, scan brackets as
   the only ornament. Owner rules kept: one language at a time; labels centred and never touching a
   decoration; small text ≥ 12px and ≥ 4.5:1; no backdrop-filter, no looping animation; taps ≥ 44px;
   inputs 16px; no sideways scroll from 320px. Phone preview BIG and centred, QR a SMALL badge on
   its top corner that never covers the page.
   ════════════════════════════════════════════════════════════════════════════ */

.qh {
    --ink: #171B3D; --ink-2: #565D80; --ink-3: #626887;
    --paper: #F3F5FB; --paper-2: #F8F9FD; --card: #FFFFFF;
    --line: #E1E5F2; --line-2: #CDD3E6;
    --royal: #2346D8; --royal-2: #1B37B0; --royal-soft: #E9EDFD;
    --night: #0E1238; --night-2: #1B2163; --moon: #C9CDF2;
    --signal: linear-gradient(100deg, #8B5CFF 0%, #E6007E 52%, #1E90FF 100%);
    --ok: #0A7A4D; --ok-soft: #E3F6EE; --bad: #B42318; --bad-soft: #FFF1F0;
    --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
    --font: 'Google Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
    --pop: 0 18px 44px -18px rgba(23, 27, 61, .35), 0 0 0 1px rgba(23, 27, 61, .06);

    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.qh *, .qh *::before, .qh *::after { box-sizing: border-box; }
.qh button, .qh input { font-family: inherit; }
.qh [hidden] { display: none !important; }
.qh a { color: inherit; }
.qh :focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 6px; }

.qh-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; padding: 12px 16px; border-radius: 12px;
    background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.qh-skip:focus { top: 12px; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.qh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: 1160px; margin: 0 auto; padding: 16px 20px; }
.qh-brand { display: inline-flex; text-decoration: none; }
.qh-brand .qc-logo { color: var(--ink); }
.qh-brand .qc-word { filter: none; }
.qh-brand .qc-by { color: var(--ink-2); font-family: var(--font); font-size: 11px; white-space: nowrap; }
.qh-top-side { display: flex; align-items: center; gap: 10px; }
.qh-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.qh-lang button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
    font-size: 14px; font-weight: 600; cursor: pointer; }
.qh-lang button.is-on { background: var(--ink); color: #fff; }
.qh-signin { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.qh-signin:hover { border-color: var(--royal); color: var(--royal); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.qh-main { max-width: 1160px; margin: 0 auto; padding: 8px 20px 56px; }
.qh-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.qh-copy { min-width: 0; }
.qh-eyebrow { margin: 6px 0 14px; }
.qh-eyebrow span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px;
    background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }
.qh h1 { margin: 0 0 14px; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] .qh h1 { line-height: 1.32; letter-spacing: 0; }
.qh-sub { margin: 0 0 24px; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 2.2vw, 18px); text-wrap: pretty; }

/* ── the maker card ──────────────────────────────────────────────────────── */
.qh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--pop); }
.qh-step h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.qh-field { margin-bottom: 16px; }
.qh-field label, .qh-pw label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.qh input[type="text"], .qh input[type="tel"], .qh input[type="url"], .qh input[type="password"] {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-2);
    background: #fff; color: var(--ink); font-size: 16px; outline: none; }
.qh input::placeholder { color: #6E7594; opacity: 1; unicode-bidi: plaintext; }
.qh input:focus { border-color: var(--royal); box-shadow: 0 0 0 4px var(--royal-soft); }
.qh input[dir="ltr"] { text-align: left; }
html[dir="rtl"] .qh input[dir="ltr"]::placeholder { text-align: right; }
html[dir="rtl"] .qh #qh-phone::placeholder, html[dir="rtl"] .qh input[name="website"]::placeholder { text-align: left; }
.qh-hint { margin: 7px 2px 0; font-size: 13px; color: var(--ink-2); }
.qh-hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.qh-add { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qh-add-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.qh-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qh-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 8px; min-width: 0;
    border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.qh-chip svg { width: 19px; height: 19px; flex: none; }
.qh-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-chip:hover { border-color: var(--royal); }
.qh-chip[aria-pressed="true"] { border-color: var(--royal); background: var(--royal-soft); color: var(--royal-2); }
.qh-extra { margin-top: 10px; }

.qh-msg { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad); font-size: 14px; font-weight: 600; }
.qh-msg.is-ok { background: var(--ok-soft); color: var(--ok); }
.qh-msg a { color: inherit; font-weight: 700; }

.qh-cta, .qh a.qh-cta { color: #fff; }
.qh-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 22px;
    border: 0; border-radius: 16px; background: var(--signal); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
    text-shadow: 0 1px 2px rgba(23, 27, 61, .35); transition: transform .15s ease, filter .15s ease; }
.qh-cta:hover { transform: translateY(-1px); filter: saturate(1.12); }
.qh-cta[disabled] { opacity: .7; cursor: progress; transform: none; }
.qh-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }

.qh-btn2 { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; padding: 0 18px;
    border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; }
.qh-btn2:hover { border-color: var(--royal); color: var(--royal); }

/* step 2 */
.qh-s2-text { margin: 0 0 16px; color: var(--ink-2); }
.qh-s2-text b { color: var(--ink); white-space: nowrap; unicode-bidi: isolate; }
.qh input.qh-code { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .32em; min-height: 64px; margin-bottom: 14px; padding-inline: 8px; }
.qh input.qh-code::placeholder { letter-spacing: .32em; text-align: center; color: var(--line-2); }
.qh-s2-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; }
.qh-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--royal); font-size: 14px; font-weight: 600; cursor: pointer; }
.qh-link[disabled] { color: var(--ink-2); cursor: default; }
.qh-link:not([disabled]):hover { text-decoration: underline; }
#qh-resend-in { margin-inline-start: 6px; unicode-bidi: isolate; }

/* logo picker (step 1 and step 3) */
.qh-logo-pick { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 14px;
    border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: var(--paper-2); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.qh-logo-pick:hover { border-color: var(--royal); color: var(--royal-2); }
.qh-logo-pick.has-logo, .qh-logo-pick.has-file { border-style: solid; background: #fff; }
.qh-logo-pick.has-file .qh-logo-thumb { background: var(--royal-soft); color: var(--royal-2); border-color: transparent; }
.qh-logo-thumb { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%;
    background: #fff center / cover no-repeat; border: 1px solid var(--line); color: var(--ink-2); overflow: hidden; }
.qh-logo-thumb svg { width: 20px; height: 20px; }
.qh-logo-thumb.is-square { border-radius: 9px; }
.qh-logo-pick.has-logo .qh-logo-thumb svg { display: none; }

/* customise (step 3) */
.qh-custom { margin-bottom: 4px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper-2); }
.qh-custom[aria-busy="true"] { opacity: .65; pointer-events: none; }
.qh-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; justify-items: center; margin-bottom: 12px; }
.qh-sw { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.qh-sw::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c); }
.qh-sw--logo::before { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--c); inset: 8px; }
.qh-sw.is-on::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 2.5px solid var(--c); }
.qh-logo-row { display: flex; align-items: center; gap: 8px; }
.qh-logo-row .qh-logo-pick { flex: 1 1 auto; min-width: 0; width: auto; }
.qh-shape { display: inline-flex; flex: none; padding: 3px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line-2); }
.qh-shape button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.qh-shape button.is-on { background: var(--royal-soft); color: var(--royal-2); }
.qh-shape-c, .qh-shape-s { display: block; width: 20px; height: 20px; border: 2.5px solid currentColor; }
.qh-shape-c { border-radius: 50%; }
.qh-shape-s { border-radius: 5px; }
.qh-custom .qh-link { display: block; margin: 4px auto 0; color: var(--bad); }
.qh-custom .qh-msg { margin: 10px 0 0; }
/* own logo in the centre = paid: a close-up of the code with the visitor's logo, and where to get it */
.qh-pro { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.qh-pro[hidden] { display: none; }
.qh-pro-pv { flex: none; width: 88px; height: 88px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.qh-pro-body { flex: 1 1 auto; min-width: 0; }
.qh-pro-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--royal-soft); color: var(--royal-2); font-size: 12px; font-weight: 700; }
.qh-pro-title { margin: 5px 0 1px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.qh-pro-text { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.qh a.qh-pro-btn { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -8px; color: var(--royal); font-size: 14px; font-weight: 700; text-decoration: none; }
.qh a.qh-pro-btn:hover { text-decoration: underline; }

/* the picture in the phone preview and on the placeholder code */
.qh-pv-avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.qh-qr-badge .qh-badge-logo { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: #fff center / cover no-repeat; box-shadow: 0 0 0 2px #fff; }
.qh-qr-badge .qh-badge-logo.is-square { border-radius: 5px; }

/* step 3 */
.qh-sec { margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.qh-linkrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px; padding-inline-start: 14px; border-radius: var(--r-md);
    border: 1.5px solid var(--line-2); background: var(--paper-2); }
.qh-linkrow-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; text-align: left; unicode-bidi: isolate; }
.qh-copybtn { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.qh-copybtn.is-done { background: var(--ok); }
.qh-cta svg { width: 20px; height: 20px; flex: none; }
.qh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qh-two .qh-btn2 { gap: 8px; }
.qh-two .qh-btn2 svg { width: 19px; height: 19px; flex: none; }
.qh-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.qh a.qh-chip { text-decoration: none; }
.qh-chip[aria-busy="true"] { opacity: .6; pointer-events: none; }
.qh-s3-text { margin: 0 0 16px; color: var(--ink-2); }
.qh-qr-big { display: flex; justify-content: center; margin-bottom: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.qh-qr-big img { display: block; width: min(220px, 100%); height: auto; border-radius: 10px; background: #fff; }
.qh-pw { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qh-pw-row { display: flex; gap: 8px; }
.qh-pw-row input { flex: 1 1 auto; min-width: 0; }
.qh-pw-btn { flex: none; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.qh-pw .qh-msg { margin: 10px 0 0; }

/* ── the night stage ─────────────────────────────────────────────────────── */
.qh-stage { position: relative; min-width: 0; padding: 44px 20px 26px; border-radius: var(--r-xl);
    background: radial-gradient(120% 90% at 50% 0%, var(--night-2) 0%, var(--night) 62%); color: #fff; text-align: center; }
.qh-br { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(201, 205, 242, .55); }
.qh-br--1 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.qh-br--2 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.qh-br--3 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.qh-br--4 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }

.qh-phone-wrap { position: relative; width: min(286px, 100%); margin: 0 auto; }
.qh-phone { position: relative; border-radius: 42px; padding: 9px; background: #05071C; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1.5px rgba(201, 205, 242, .28); }
.qh-phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 999px; background: #05071C; z-index: 2; }
.qh-screen { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 520px; padding: 58px 18px 16px; border-radius: 34px; overflow: hidden;
    background: linear-gradient(150deg, #8A2BE2 0%, #FF69B4 55%, #1E90FF 100%); color: #fff; }
.qh-pv-avatar { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; flex: none; border-radius: 50%;
    background: rgba(255, 255, 255, .22); border: 2.5px solid rgba(255, 255, 255, .75); font-size: 34px; font-weight: 700; line-height: 1; }
.qh-pv-name { margin: 14px 0 0; max-width: 100%; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(40, 10, 90, .35); }
.qh-pv-name.is-empty { opacity: .78; }
.qh-pv-bio { margin: 6px 0 0; max-width: 100%; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; text-shadow: 0 1px 6px rgba(40, 10, 90, .35); }
.qh-pv-list { display: flex; flex-direction: column; gap: 9px; width: 100%; margin-top: 20px; }
.qh-pv-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .42); font-size: 14.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(40, 10, 90, .3); }
.qh-pv-btn svg { width: 19px; height: 19px; flex: none; }
.qh-pv-btn.is-new { animation: qh-pop .28s ease-out 1; }
.qh-pv-wm { margin-top: auto; padding-top: 18px; }
.qh-pv-wm img { display: block; height: 14px; width: auto; opacity: .95; }

/* the QR: a small badge sitting on the phone's top corner, half outside it, never over the page */
.qh-qr-badge { position: absolute; top: -18px; inset-inline-end: -14px; z-index: 3; display: flex; align-items: center; justify-content: center;
    width: 66px; height: 66px; padding: 6px; border-radius: 14px; background: #fff; color: #B4BAD6; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.qh-qr-badge svg, .qh-qr-badge img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.qh-qr-badge.is-real { color: var(--ink); animation: qh-pop .35s ease-out 1; }
.qh-stage-cap { margin: 20px 0 0; padding: 0 30px; color: var(--moon); font-size: 14px; }

@keyframes qh-pop { from { transform: scale(.86); opacity: .2; } to { transform: scale(1); opacity: 1; } }

/* ── how it works ────────────────────────────────────────────────────────── */
.qh-how { margin-top: 56px; }
.qh-how h2 { margin: 0 0 20px; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.3; text-align: center; }
.qh-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.qh-steps li { padding: 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.qh-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px;
    background: var(--royal-soft); color: var(--royal-2); font-weight: 700; font-size: 18px; }
.qh-steps h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.qh-steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.qh-for { margin: 24px auto 0; max-width: 40em; text-align: center; color: var(--ink-2); font-size: 15px; }

/* ── other kinds of QR code (bottom) + the maker in that mode ─────────────── */
.qh-more { margin-top: 56px; }
.qh-more h2 { margin: 0 0 6px; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.3; text-align: center; }
.qh-more-sub { margin: 0 0 20px; text-align: center; color: var(--ink-2); }
.qh-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qh-type { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; min-width: 0; padding: 16px 10px; border-radius: var(--r-lg);
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-align: center; font-size: 14.5px; cursor: pointer; }
.qh-type:hover { border-color: var(--royal); box-shadow: var(--pop); }
.qh-type-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--royal-soft); color: var(--royal-2); }
.qh-type-ico svg { width: 24px; height: 24px; }
.qh-type strong { font-size: 16px; }
.qh-type-d { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.qh-type strong { max-width: 100%; overflow-wrap: anywhere; }
.qh-type.is-on { border-color: var(--royal); background: var(--royal-soft); }
.qh-type.is-on::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.500 12.500 3.500 3.500 7.500-8' fill='none' stroke='%23fff' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.qh-type.is-on .qh-type-ico { background: #fff; }
.qh-more-btn { max-width: 320px; margin: 14px auto 0; }
.qh-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--royal-soft); color: var(--royal-2); }
.qh-mode-ico { display: flex; }
.qh-mode-ico svg { width: 22px; height: 22px; }
.qh-mode strong { font-size: 15px; }
.qh-mode .qh-link { margin-inline-start: auto; }
.qh-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 0 !important; font-weight: 500 !important; cursor: pointer; }
.qh-check input { width: 20px; height: 20px; flex: none; accent-color: var(--royal); }
.qh-bar { height: 8px; margin: 6px 0 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qh-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--signal); transition: width .3s ease; }
.qh-pv-avatar svg { width: 38px; height: 38px; }
.qh-pv-alt { width: 100%; margin-top: 20px; }
.qh-pv-alt #qh-pv-alt-ico { display: flex; }
@media (min-width: 640px) { .qh-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .qh-type { padding: 22px 18px; gap: 6px; } .qh-type strong { font-size: 17px; } .qh-type-d { font-size: 14.5px; } }
@media (min-width: 980px) { .qh-types { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } .qh-type { padding: 20px 12px; } .qh-type-d { font-size: 13.5px; } }

/* ── footer ──────────────────────────────────────────────────────────────── */
.qh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; max-width: 1160px; margin: 0 auto;
    padding: 18px 20px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.qh-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--ink); }
.qh-foot a:hover { color: var(--royal); }
.qh-foot-by { flex-basis: 100%; text-align: center; font-size: 13px; }

/* ── wider screens ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .qh-card { padding: 28px; }
    .qh-chips { gap: 10px; }
    .qh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .qh-stage { padding: 56px 28px 30px; }
    .qh-foot-by { flex-basis: auto; }
}
@media (min-width: 980px) {
    .qh-top { padding: 22px 28px; }
    .qh-main { padding: 12px 28px 72px; }
    .qh-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 44px; }
    .qh-stage { position: sticky; top: 20px; padding: 64px 32px 34px; }
    .qh-phone-wrap { width: 300px; }
}
@media (max-width: 400px) {
    .qh-top { padding: 12px 14px; gap: 8px; }
    .qh-main { padding-inline: 14px; }
    .qh-lang button { padding: 0 12px; font-size: 13px; }
    .qh-lang button.is-on { display: none; }   /* narrow phones: the switch shows only the other language */
    .qh-signin { padding: 0 12px; font-size: 14px; }
    .qh-card { padding: 18px 16px; }
    .qh-chip { font-size: 13px; gap: 5px; padding: 0 5px; }
    .qh-chip svg { width: 17px; height: 17px; }
    .qh-qr-badge { inset-inline-end: -6px; width: 58px; height: 58px; }
    .qh-pw-row { flex-direction: column; }
    .qh-pw-btn { width: 100%; }
}
@media (max-width: 479px) {
    .qh-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .qh *, .qh *::before, .qh *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 340px) {
    .qh-top { padding: 12px 10px; gap: 6px; }
    .qh-top-side { gap: 6px; }
    .qh-lang button { padding: 0 10px; }
    .qh-signin { padding: 0 10px; font-size: 13px; }
    .qh-main { padding-inline: 10px; }
}
