/* Footer promotion scoped independently from the Companion landing page. */
@font-face {
    font-family: 'Companion Promo Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/companion/static/assets/font-0.ttf') format('truetype');
}
.companion-promo {
    position: fixed;
    right: 20px;
    bottom: 78px;
    z-index: 100;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    box-shadow: 0 12px 36px #0009;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: clamp(300px, 25vw, 480px);
    max-width: calc(100vw - 40px);
    margin: 0;
    padding: 22px 20px;
    overflow: hidden;
    border: 1px solid #303a2f;
    border-radius: 12px;
    background: radial-gradient(ellipse at 93% 60%, #34412a66, transparent 55%), #171d18;
    color: #f2f1e9;
    text-align: left;
    font-family: Arial, sans-serif;
}
.companion-promo .companion-promo__copy { position: relative; z-index: 1; flex: 1; min-width: 0; padding-right: 0; }
.companion-promo .companion-promo__eyebrow { margin: 0 0 8px; color: #d4dfb3; font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.4; }
.companion-promo .companion-promo__eyebrow::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #ff783e; }
.companion-promo h2 { margin: 0 0 9px; color: #f2f1e9; font-family: 'Companion Promo Display', 'Arial Narrow', Arial, sans-serif; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.4px; }
.companion-promo h2 span { position: static; inset: auto; display: block; margin: 0; color: #ff783e; }
.companion-promo .companion-promo__description { max-width: none; margin: 0 0 14px; color: #b5bdb3; font-size: 13px; line-height: 1.5; }
.companion-promo .companion-promo__link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 10px 17px; border-radius: 4px; background: #ff783e; color: #101511; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.companion-promo .companion-promo__link:hover { background: #ff9467; color: #101511; text-decoration: none; }
.companion-promo .companion-promo__link:focus-visible { outline: 2px solid #f2f1e9; outline-offset: 4px; }
.companion-promo .companion-promo__note { margin: 8px 0 0; color: #a2aba1; font-size: 10px; line-height: 1.5; }
.companion-promo__note span { margin-inline: 5px; }
.companion-promo__visual { position: absolute; inset: 0 0 0 auto; width: 90px; height: 120px; overflow: hidden; pointer-events: none; }
.companion-promo .companion-promo__phone { position: absolute; top: 28px; right: 15px; width: 55px; max-width: none; height: auto; transform: rotate(9deg); filter: drop-shadow(0 10px 16px #0009); border-radius: 0; }
.companion-promo__orbit { position: absolute; top: -55px; left: -15px; width: 290px; height: 290px; border: 1px solid #d4dfb31c; border-radius: 50%; box-shadow: 0 0 0 24px #d4dfb306, 0 0 0 48px #d4dfb305; }
@media (max-width: 600px) {
    .companion-promo { right: 12px; bottom: 78px; width: min(340px, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 20px 18px; }
    .companion-promo .companion-promo__copy { padding-right: 0; }
    .companion-promo h2 { max-width: 260px; padding-right: 45px; font-size: 26px; }
    .companion-promo h2 span { display: block; }
    .companion-promo .companion-promo__eyebrow { padding-right: 65px; }
    .companion-promo .companion-promo__description { max-width: 450px; margin-top: 16px; }
    .companion-promo__visual { width: 90px; height: 110px; overflow: hidden; }
    .companion-promo .companion-promo__phone { width: 55px; top: 28px; right: 15px; }
    .companion-promo__orbit { width: 160px; height: 160px; left: -25px; top: -40px; }
}

.companion-promo[hidden] { display: none; }
.companion-promo .companion-promo__eyebrow { padding-right: 55px; }
.companion-promo h2 { padding-right: 60px; }
.companion-promo__dismiss { position: absolute; top: 3px; right: 3px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #b5bdb3; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.companion-promo__dismiss:hover { background: #303a2f; color: #fff; }

/* Keep the complete phone in its own header space, clear of the description. */
.companion-promo__header { position: relative; min-height: 100px; padding-right: 76px; }
.companion-promo .companion-promo__header h2,
.companion-promo .companion-promo__header .companion-promo__eyebrow { padding-right: 0; }
.companion-promo .companion-promo__visual { top: 0; right: 0; width: 64px; height: 100px; overflow: visible; }
.companion-promo .companion-promo__phone { top: 6px; right: 8px; width: 44px; transform: rotate(5deg); filter: drop-shadow(0 4px 6px #0006); }
.companion-promo .companion-promo__orbit { top: -20px; left: 28px; width: 150px; height: 150px; border-color: #d4dfb30c; box-shadow: 0 0 0 18px #d4dfb303; }

.companion-promo--ready { padding: 18px 20px; }
.companion-promo--ready h2 { padding-right: 0; font-size: 22px; }
.companion-promo--ready .companion-promo__description { margin: 0 0 8px; font-size: 12px; }
.companion-promo .companion-promo__ready-link { display: inline-flex; align-items: center; min-height: 32px; gap: 10px; color: #ff9467; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.companion-promo-debug { position: fixed; right: 122px; bottom: 20px; z-index: 101; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #58614e; border-radius: 5px; background: #171d18; color: #d4dfb3; font: 11px/1.3 Arial, sans-serif; }
.companion-promo-debug label { margin: 0; }
.companion-promo-debug select { max-width: 110px; padding: 4px; border: 1px solid #58614e; border-radius: 3px; background: #171d18; color: #f2f1e9; font: inherit; }
@media (max-width: 400px) { .companion-promo-debug label { max-width: 55px; } }
