/* Founder AI concierge */
.fcx-cg-on [data-greet] { display: none !important; }
.fcx-cg-on .fc-counsel { display: none !important; }
.fcx-cg-orb { position: fixed; z-index: 66; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 1rem .35rem .35rem; border-radius: 99px; border: 1px solid rgba(124, 92, 255, 0.45); border: 1px solid color-mix(in srgb, var(--hi, #7c5cff) 45%, transparent); background: var(--bg-2, #12131a); background: color-mix(in srgb, var(--bg-2, #12131a) 88%, transparent); color: var(--ink, #fff); font: 600 .86rem var(--font-sans, system-ui); cursor: pointer; box-shadow: 0 18px 40px -18px #000, 0 0 0 4px rgba(124, 92, 255, 0.12); box-shadow: 0 18px 40px -18px #000, 0 0 0 4px color-mix(in srgb, var(--hi, #7c5cff) 12%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .25s, box-shadow .25s, bottom .3s; }
.fcx-cg-orb:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -18px #000, 0 0 0 6px rgba(124, 92, 255, 0.18); box-shadow: 0 22px 46px -18px #000, 0 0 0 6px color-mix(in srgb, var(--hi, #7c5cff) 18%, transparent); }
.fcx-cg-orb:focus-visible, .fcx-cg button:focus-visible, .fcx-cg a:focus-visible, .fcx-cg-bubble button:focus-visible { outline: 2px solid var(--hi, #2ed3f6); outline-offset: 2px; }
.fcx-sticky-on .fcx-cg-orb { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.4rem); }
.fcx-cg-face { position: relative; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: conic-gradient(from 210deg, #ff5fa2, #8b5cff, #2ed3f6, #ff5fa2); display: grid; place-items: center; box-shadow: 0 0 22px rgba(139, 92, 255, .55); }
.fcx-cg-face::before { content: ""; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2340, #0d0c14 70%); }
.fcx-cg-face i { position: relative; width: 3px; height: 8px; margin: 0 1px; border-radius: 3px; background: #fff; display: inline-block; transform-origin: center; opacity: .9; }
.fcx-cg-face { grid-auto-flow: column; }
.fcx-cg-face--sm { width: 2.1rem; height: 2.1rem; }
.fcx-cg-orb .fcx-cg-face i, .fcx-cg__head .fcx-cg-face i { animation: fcxCgIdle 3.2s ease-in-out infinite; }
.fcx-cg-face i:nth-child(2) { animation-delay: .25s !important; height: 12px; } .fcx-cg-face i:nth-child(3) { animation-delay: .5s !important; }
.fcx-cg-orb.is-speaking .fcx-cg-face i { animation: fcxCgTalk .5s ease-in-out infinite; }
@keyframes fcxCgIdle { 50% { transform: scaleY(.55); } }
@keyframes fcxCgTalk { 50% { transform: scaleY(1.9); } }
.fcx-cg-orb::after { content: ""; position: absolute; left: .35rem; top: .35rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid #8b5cff; animation: fcxCgRing 2.6s ease-out infinite; pointer-events: none; }
.fcx-cg-orb.is-open::after { animation: none; opacity: 0; }
@keyframes fcxCgRing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }

.fcx-cg-bubble { position: fixed; z-index: 66; left: max(1rem, env(safe-area-inset-left)); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.9rem); width: min(340px, calc(100vw - 2rem)); padding: .9rem 1rem .75rem; border-radius: 18px 18px 18px 6px; background: var(--bg-2, #12131a); background: color-mix(in srgb, var(--bg-2, #12131a) 94%, transparent); border: 1px solid var(--line-2, rgba(255,255,255,.16)); color: var(--ink, #fff); box-shadow: 0 24px 60px -24px #000; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(10px) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.fcx-sticky-on .fcx-cg-bubble { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 8.3rem); }
.fcx-cg-bubble.is-in { transform: none; opacity: 1; }
.fcx-cg-bubble b { display: block; font-size: .95rem; margin-right: 1.4rem; }
.fcx-cg-bubble p { margin: .3rem 0 .6rem; font-size: .86rem; line-height: 1.45; color: var(--dim, #b9bccb); }
.fcx-cg-bubble__row { display: flex; flex-wrap: wrap; gap: .4rem; }
.fcx-cg-bubble__row button { border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255,255,255,.05); color: var(--ink, #fff); border-radius: 99px; padding: .4rem .75rem; font: 600 .78rem var(--font-sans, system-ui); cursor: pointer; }
.fcx-cg-bubble__row [data-b="open"] { background: linear-gradient(90deg, #8b5cff, #2ed3f6); border-color: transparent; color: #fff; }
.fcx-cg-bubble .fcx-cg-x { position: absolute; top: .45rem; right: .45rem; border: 0; background: none; padding: .3rem .45rem; color: var(--dim, #b9bccb); }

.fcx-cg { position: fixed; z-index: 96; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 2rem)); max-height: min(640px, calc(100vh - 2rem)); max-height: min(640px, calc(100dvh - 2rem)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; color: var(--ink, #fff); background: linear-gradient(170deg, var(--bg-2, #12131a), var(--bg, #0b0c10)); background: linear-gradient(170deg, color-mix(in srgb, var(--bg-2, #12131a) 96%, #8b5cff 4%), color-mix(in srgb, var(--bg, #0b0c10) 96%, transparent)); border: 1px solid var(--line-2, rgba(255,255,255,.16)); box-shadow: 0 40px 100px -30px #000, 0 0 0 1px rgba(139,92,255,.25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.fcx-cg.is-in { transform: none; opacity: 1; }
.fcx-cg__head { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line, rgba(255,255,255,.1)); background: linear-gradient(90deg, rgba(139,92,255,.16), rgba(46,211,246,.06)); }
.fcx-cg__head b { display: block; font-size: .95rem; } .fcx-cg__head small { display: inline-flex; align-items: center; gap: .35rem; color: var(--dim, #b9bccb); font-size: .74rem; }
.fcx-cg-live { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 8px #3ddc97; }
.fcx-cg__tools { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.fcx-cg-lang { display: inline-flex; border: 1px solid var(--line-2, rgba(255,255,255,.16)); border-radius: 99px; padding: 2px; }
.fcx-cg-lang button { border: 0; background: none; color: var(--dim, #b9bccb); font: 700 .72rem var(--font-sans, system-ui); padding: .3rem .55rem; border-radius: 99px; cursor: pointer; min-width: 2rem; }
.fcx-cg-lang [aria-pressed="true"] { background: #fff; color: #111; }
.fcx-cg-ic { border: 0; background: rgba(255,255,255,.06); color: var(--ink, #fff); width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: .85rem; }
.fcx-cg__body { padding: 1rem 1.1rem 1.1rem; overflow-y: auto; overscroll-behavior: contain; }
.fcx-cg__body h2 { margin: 0 0 .35rem; font: 400 1.4rem/1.2 var(--font-serif, Georgia, serif); }
.fcx-cg__body > p { margin: 0 0 .5rem; color: var(--dim, #b9bccb); font-size: .9rem; line-height: 1.5; }
.fcx-cg__intro { color: var(--ink, #fff) !important; font-weight: 500; }
.fcx-cg__form { display: grid; gap: .55rem; margin-top: .6rem; }
.fcx-cg__form label { display: grid; gap: .2rem; } .fcx-cg__form label span { font-size: .74rem; color: var(--dim, #b9bccb); }
.fcx-cg__form input { width: 100%; padding: .65rem .75rem; border-radius: 12px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(0,0,0,.28); color: var(--ink, #fff); font: 16px/1.3 var(--font-sans, system-ui); }
.fcx-cg__form input:focus { outline: none; border-color: #8b5cff; box-shadow: 0 0 0 3px rgba(139,92,255,.25); }
.fcx-cg__form fieldset { border: 0; padding: 0; margin: .2rem 0 0; } .fcx-cg__form legend { font-size: .74rem; color: var(--dim, #b9bccb); margin-bottom: .35rem; padding: 0; }
.fcx-cg-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fcx-cg-chips button { border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255,255,255,.04); color: var(--ink, #fff); border-radius: 99px; padding: .4rem .7rem; font: 500 .8rem var(--font-sans, system-ui); cursor: pointer; transition: background .2s, border-color .2s; }
.fcx-cg-chips [aria-pressed="true"] { background: rgba(139,92,255,.3); border-color: #8b5cff; }
.fcx-cg__err { margin: 0; color: #ff7aa8; font-size: .82rem; }
.fcx-cg__row { display: flex; align-items: center; gap: .6rem; margin-top: .2rem; }
.fcx-cg-send { flex: 1; border: 0; border-radius: 12px; padding: .75rem 1rem; font: 700 .92rem var(--font-sans, system-ui); color: #fff; background: linear-gradient(90deg, #8b5cff, #2ed3f6); cursor: pointer; box-shadow: 0 12px 30px -14px #8b5cff; }
.fcx-cg-send.is-busy { opacity: .6; cursor: progress; }
.fcx-cg-later { border: 0; background: none; color: var(--dim, #b9bccb); font: 600 .84rem var(--font-sans, system-ui); padding: .6rem .4rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fcx-cg__fine { margin: 0; font-size: .72rem; color: var(--dim, #b9bccb); }
.fcx-cg__acts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.fcx-cg__acts > * { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.6rem; padding: .45rem .6rem; border-radius: 12px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255,255,255,.04); color: var(--ink, #fff); font: 600 .8rem var(--font-sans, system-ui); text-decoration: none; text-align: center; cursor: pointer; }
.fcx-cg__acts > *:hover { background: rgba(255,255,255,.09); }
.fcx-cg[data-view="thanks"] .fcx-cg__acts, .fcx-cg[data-view="known"] .fcx-cg__acts { border-top: 0; padding-top: 0; }
.fcx-cg[data-view="thanks"] [data-go="book"] { background: linear-gradient(90deg, #8b5cff, #2ed3f6); border-color: transparent; color: #fff; }
[data-theme="light"] .fcx-cg-lang [aria-pressed="true"] { background: #111; color: #fff; }
@media (max-width: 560px) {
  .fcx-cg { left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .fcx-cg-orb { padding-right: .35rem; } .fcx-cg-orb__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fcx-cg-orb::after, .fcx-cg-face i { animation: none !important; } .fcx-cg, .fcx-cg-bubble { transition: none; } }
/* never cover the privacy notice */
.fcx-notice-on .fcx-cg-orb, .fcx-notice-on .fcx-cg-bubble { opacity: 0 !important; pointer-events: none !important; visibility: hidden; }
@media (max-width: 560px) { .fcx-cg-orb.is-open { opacity: 0; pointer-events: none; } }

/* v28.1: the bubble never blocks taps while it is fading out, and stays small on phones */
.fcx-cg-bubble:not(.is-in) { pointer-events: none; }
@media (max-width: 560px) { .fcx-cg-bubble { width: min(300px, calc(100vw - 6.5rem)); padding: .75rem .85rem .65rem; } .fcx-cg-bubble p { font-size: .82rem; } }

/* v28.4 — book the call inside the welcome sheet */
.fcx-cg-slots { margin: .9rem 0 .4rem; padding: .85rem; border-radius: 14px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255,255,255,.035); }
.fcx-cg-slots > p:first-child { margin: 0 0 .6rem; font-weight: 600; font-size: .9rem; }
.fcx-cg-slotgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; min-height: 44px; }
.fcx-cg-slot { min-height: 44px; padding: .5rem .55rem; border-radius: 10px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255,255,255,.05); color: var(--ink, #fff); font: 600 .82rem/1.25 var(--font-sans, system-ui); cursor: pointer; touch-action: manipulation; transition: border-color .2s, background .2s; }
.fcx-cg-slot:hover:not(:disabled), .fcx-cg-slot:focus-visible { border-color: #2ed3f6; background: rgba(46, 211, 246, .1); }
.fcx-cg-slot:disabled { opacity: .55; cursor: default; }
.fcx-cg-slot.is-busy { opacity: 1; border-color: #8b5cff; }
.fcx-cg-slot--more { grid-column: 1 / -1; background: transparent; font-weight: 500; }
.fcx-cg-slotload { grid-column: 1 / -1; height: 44px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: fcx-cg-shim 1.2s linear infinite; }
@keyframes fcx-cg-shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fcx-cg-slotload { animation: none; } }
.fcx-cg-manage { font-weight: 600; color: #2ed3f6; }
.fcx-cg-slots .fcx-cg__err { margin: .5rem 0 0; }

/* v28.7: the orb breathes with the voice (level from the premium voice engine) */
.fcx-cg-orb.is-speaking { transform: scale(calc(1 + var(--lvl, 0) * 0.14)); transition: transform .08s linear; }
.fcx-cg-orb.is-speaking::after { opacity: calc(.35 + var(--lvl, 0) * .65); }
@media (prefers-reduced-motion: reduce) { .fcx-cg-orb.is-speaking { transform: none; } }
