/* Phone hero — Telegram metal card + metal card deck (design: Hero Mobile Final · 1c). Load after home-bw-theme.css.
 * Markup: components/home/mobile/hero-m.php. Height/spacing per screen: home-mobile-fullscreen.css. */
.hcm { display: none; }
@media (max-width: 767px) {
    body.home-bw-theme .hero-v2 { display: none; }
    .hcm { display: flex; flex-direction: column; padding: 52px 0 28px; background: #000; color: #fff; box-sizing: border-box; }

    /* Telegram drops channel — same brushed metal as the handle cards */
    .hcm__chan {
        position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin: 14px 16px 0; padding: 16px 12px 16px 18px; border-radius: 20px; box-sizing: border-box;
        border: 1px solid rgba(255,255,255,.2);
        background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), linear-gradient(135deg, #18181b 0%, #3a3a40 45%, #141416 70%, #4a4a52 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
        color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
        transition: transform .2s ease;
    }
    .hcm__chan:active { transform: scale(.985); }
    .hcm__chan:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
    .hcm__chan-mark { position: absolute; top: 50%; inset-inline-end: 62px; margin-top: -50px; font-size: 100px; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; }
    .hcm__chan-text { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .hcm__chan-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
    [dir="rtl"] .hcm__chan-eyebrow { font-family: inherit; font-size: 11px; letter-spacing: 0; }
    .hcm__chan-title { font-family: Sora, 'Noto Sans Arabic', system-ui, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
    .hcm__chan-go { position: relative; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 13px; }
    .hcm__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

    .hcm__stage { position: relative; display: flex; justify-content: center; padding: 58px 0 30px; }
    .hcm__floor { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 260px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 70%); }
    .hcm__deck { position: relative; width: min(276px, 75.5vw); aspect-ratio: 276 / 172; }
    .hcm__card {
        position: absolute; inset: 0; border-radius: 18px; padding: 16px; box-sizing: border-box;
        display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-decoration: none;
        background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), linear-gradient(135deg, #1d1d20 0%, #5e5e65 38%, #18181b 58%, #7b7b83 100%);
        border: 1px solid rgba(255,255,255,.22);
        box-shadow: 0 24px 50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.3);
        transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .9s;
    }
    .hcm__card[data-slot="0"] { transform: translate(0,0) rotate(0); z-index: 3; opacity: 1; }
    .hcm__card[data-slot="1"] { transform: translate(-34px,-26px) rotate(-10deg); z-index: 2; opacity: .75; pointer-events: none; }
    .hcm__card[data-slot="2"] { transform: translate(34px,-50px) rotate(9deg); z-index: 1; opacity: .5; pointer-events: none; }
    .hcm__top { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
    .hcm__og { font-family: Sora, system-ui, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.08em; }
    .hcm__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; min-width: 0; }
    .hcm__meta { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
    [dir="rtl"] .hcm__meta { font-family: inherit; font-size: 10.5px; letter-spacing: 0; }
    .hcm__handle { display: block; margin-top: 4px; font-family: Sora, system-ui, sans-serif; font-size: 32px; font-weight: 600; letter-spacing: -.05em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hcm__price { flex-shrink: 0; font-family: Sora, system-ui, sans-serif; font-size: 14px; font-weight: 600; }

    .hcm__copy { padding: 0 24px; }
    /* --hcm-fit (home-hero-mobile.js) shrinks the title once so the longest platform line fits */
    .hcm__title { position: relative; margin: 0; font-family: Sora, 'Noto Sans Arabic', system-ui, sans-serif; font-size: calc(clamp(27px, 8.75vw, 32px) * var(--hcm-fit, 1)); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; overflow-x: clip; }
    .hcm__title span { display: block; white-space: nowrap; }
    .hcm__swap { transition: opacity .32s ease, transform .32s cubic-bezier(.22,1,.36,1); }
    .hcm__swap.is-out { opacity: 0; transform: translateY(-.3em); }
    .hcm__swap.is-pre { opacity: 0; transform: translateY(.3em); transition: none; }
    .hcm__muted { color: rgba(255,255,255,.55); }
    .hcm__lead { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); }

    /* The end slot is where the floating live-chat button docks at load (home-mobile-fullscreen.css) */
    .hcm__btns { display: flex; gap: 10px; margin: 20px 16px 0 20px; margin-inline: 20px 16px; }
    .hcm__cta { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 6px 0 22px; border-radius: 999px; background: #fff; color: #0a0a0a; font-family: Sora, 'Noto Sans Arabic', system-ui, sans-serif; font-size: 14.5px; font-weight: 600; text-decoration: none; }
    .hcm__cta span { width: 42px; height: 42px; border-radius: 50%; background: #0a0a0a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
    .hcm__cta:focus-visible, .hcm__card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
    .hcm__chat-slot { flex: 0 0 52px; height: 54px; }
}
@media (max-width: 767px) {
    /* White mode — white stage, black content: the cards and the Telegram card keep their black metal, CTA is a black pill */
    html[data-theme="light"] .hcm { background: var(--theme-paper); color: var(--theme-ink); }
    html[data-theme="light"] .hcm__floor { background: radial-gradient(ellipse, rgba(0, 0, 0,.22) 0%, rgba(0, 0, 0,0) 70%); }
    html[data-theme="light"] .hcm__card { box-shadow: 0 24px 50px rgba(0, 0, 0,.32), inset 0 1px 0 rgba(255,255,255,.3); }
    html[data-theme="light"] .hcm__chan { box-shadow: 0 12px 28px rgba(0, 0, 0,.22), inset 0 1px 0 rgba(255,255,255,.25); }
    /* faded back cards read as grey on white — keep them near-solid black */
    html[data-theme="light"] .hcm__card[data-slot="1"] { opacity: .92; }
    html[data-theme="light"] .hcm__card[data-slot="2"] { opacity: .8; }
    html[data-theme="light"] .hcm__muted,
    html[data-theme="light"] .hcm__lead { color: var(--theme-muted); }
    html[data-theme="light"] .hcm__cta { color: #fff; background: var(--mono-ink-bg, var(--theme-ink)); box-shadow: 0 8px 20px rgba(0, 0, 0,.22); }
    html[data-theme="light"] .hcm__cta span { background: #fff; color: var(--theme-ink); }
    html[data-theme="light"] .hcm__chan:focus-visible,
    html[data-theme="light"] .hcm__cta:focus-visible,
    html[data-theme="light"] .hcm__card:focus-visible { outline-color: var(--theme-ink); }
}
@media (max-width: 360px) {
    .hcm__handle { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .hcm__card, .hcm__chan, .hcm__swap { transition: none; }
}
