/*
 * Flexiqueue landing page, on top of the Leap theme (css/leap-flexiqueue.min.css).
 * Leap supplies layout, type, buttons and AOS scroll reveals; this file adds the brand bits and the animated demos.
 */

:root {
    --fq-teal: #22847a;
    --fq-teal-bright: #2a9d8f;
    --fq-teal-soft: #e3f3f0;
    --fq-ink: #2f3a4a;
    --fq-body: #4f5b63;
    --fq-muted: #6b7780;
    --fq-line: #e3e7ea;
    --fq-page: #f5f7f8;
    --fq-amber: #e9b44c;
    --fq-rose: #e07a8f;
    --fq-peri: #7c86c9;
    --fq-wa: #1f9d55;
    --fq-fb: #0a7cff;
    --fq-sms: #5c6770;
}

body { color: var(--fq-body); }
/* Side-sliding reveals start off screen; clip them so the page never scrolls sideways. */
header, section, footer { overflow-x: clip; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .display-3, .display-4 { color: var(--fq-ink); letter-spacing: -.02em; }
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5 { color: #fff; }
.fq-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fq-teal); }
.text-light .fq-eyebrow { color: #9fd9cf; }
.ph-duotone { vertical-align: -.125em; }

/* ---------- Navbar ---------- */
.fq-nav { transition: box-shadow .2s ease; }
.fq-nav.is-scrolled { box-shadow: 0 6px 24px rgba(47, 58, 74, .08); }
.fq-nav .navbar-brand img { height: 34px; width: auto; }
.fq-nav .nav-link { font-weight: 600; color: var(--fq-ink) !important; }
.fq-nav .nav-link:hover { color: var(--fq-teal) !important; }

/* ---------- Hero ---------- */
.fq-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--fq-page) 100%); }
.fq-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.07; }
/* The typed word gets its own line, so the headline doesn't reflow as the word changes. */
.fq-hero h1 .fq-typed-line { display: block; min-height: 1.07em; }
.fq-hero h1 .fq-typed { color: var(--fq-teal); white-space: nowrap; }
.fq-hero .btn-lg { white-space: nowrap; }
.fq-hero .lead { font-size: 1.2rem; color: var(--fq-body); max-width: 34rem; }
.fq-uvp { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.fq-uvp li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--fq-line); font-weight: 600; color: var(--fq-ink); font-size: .92rem; box-shadow: 0 2px 8px rgba(47, 58, 74, .04); }
.fq-uvp li .ph-duotone { font-size: 1.15rem; color: var(--fq-teal); }
.fq-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; animation: fqFloat 14s ease-in-out infinite alternate; }
.fq-blob.b1 { width: 420px; height: 420px; background: #bfe6df; top: -120px; right: -80px; }
.fq-blob.b2 { width: 300px; height: 300px; background: #f6d5dc; bottom: -80px; left: 35%; animation-delay: -6s; }
.fq-blob.b3 { width: 240px; height: 240px; background: #f4e3bd; top: 30%; left: -100px; animation-delay: -3s; }
@keyframes fqFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 40px) scale(1.08); } }

/* Hero demo: queue board + phone */
.fq-stage { position: relative; min-height: 530px; }
.fq-board { position: absolute; left: 0; top: 30px; width: 62%; background: #fff; border: 1px solid var(--fq-line); border-radius: 22px; box-shadow: 0 30px 60px rgba(47, 58, 74, .14); overflow: hidden; }
.fq-board-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--fq-line); font-size: .8rem; color: var(--fq-muted); }
.fq-board-head img { height: 18px; }
.fq-live { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--fq-teal); }
.fq-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fq-teal-bright); animation: fqPulse 1.6s ease-out infinite; }
@keyframes fqPulse { 0% { box-shadow: 0 0 0 0 rgba(42, 157, 143, .55); } 100% { box-shadow: 0 0 0 9px rgba(42, 157, 143, 0); } }
.fq-now { margin: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--fq-ink); color: #fff; transition: background-color .4s ease; }
.fq-now.is-calling { animation: fqCall .9s ease-in-out 3 alternate; }
@keyframes fqCall { from { background: var(--fq-ink); } to { background: var(--fq-teal); } }
.fq-now small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fd9cf; }
.fq-now-row { display: flex; align-items: center; gap: .9rem; margin-top: .25rem; }
.fq-now-token { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fq-now-arrow { color: var(--fq-amber); font-size: 1.6rem; }
.fq-now-counter { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.fq-next { padding: 0 1rem 1rem; }
.fq-next-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fq-muted); margin-bottom: .45rem; }
.fq-next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; min-height: 214px; }
.fq-next-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border-radius: 11px; background: var(--fq-page); font-weight: 700; color: var(--fq-ink); will-change: transform; }
.fq-next-item.is-you { background: var(--fq-teal-soft); box-shadow: inset 0 0 0 2px rgba(34, 132, 122, .35); }
.fq-next-item .fq-tok { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fq-next-item .fq-ch { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--fq-muted); margin-right: 30%; }
.fq-next-item .fq-ch-name { display: none; }
.fq-next-item .fq-ch .ph-duotone { font-size: 1rem; }
.fq-next-item.is-entering { animation: fqEnter .5s ease-out both; }
.fq-next-item.is-leaving { animation: fqLeave .45s ease-in both; }
@keyframes fqEnter { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fqLeave { to { opacity: 0; transform: translateX(-30px); } }
.fq-swap-tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 700; color: var(--fq-rose); }

.fq-phone { position: absolute; right: 0; top: 0; width: 46%; max-width: 250px; aspect-ratio: 9 / 18.5; background: #1d232c; border-radius: 38px; padding: 10px; box-shadow: 0 40px 80px rgba(47, 58, 74, .28); }
.fq-phone-screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #efeae2; display: flex; flex-direction: column; transition: background-color .5s ease; }
.fq-phone[data-ch="fb"] .fq-phone-screen { background: #fff; }
.fq-phone[data-ch="sms"] .fq-phone-screen { background: #fff; }
.fq-phone-bar { display: flex; align-items: center; gap: .5rem; padding: 1.6rem .8rem .6rem; color: #fff; background: #0b6b55; transition: background-color .5s ease; }
.fq-phone[data-ch="fb"] .fq-phone-bar { background: var(--fq-fb); }
.fq-phone[data-ch="sms"] .fq-phone-bar { background: #f2f3f5; color: var(--fq-ink); }
.fq-phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fq-phone-avatar img { width: 20px; height: 20px; }
.fq-phone-who { line-height: 1.15; min-width: 0; }
.fq-phone-who strong { display: block; font-size: .82rem; }
.fq-phone-who span { font-size: .66rem; opacity: .85; display: inline-flex; align-items: center; gap: .25rem; }
.fq-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem; padding: .7rem; overflow: hidden; }
.fq-bubble { max-width: 86%; padding: .5rem .65rem; border-radius: 14px; font-size: .76rem; line-height: 1.35; background: #fff; color: #1f2933; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); animation: fqBubble .35s ease-out both; align-self: flex-start; border-top-left-radius: 4px; }
.fq-phone[data-ch="fb"] .fq-bubble { background: #f0f2f5; box-shadow: none; }
.fq-phone[data-ch="sms"] .fq-bubble { background: #e9e9eb; box-shadow: none; }
.fq-bubble.is-me { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.fq-phone[data-ch="fb"] .fq-bubble.is-me { background: var(--fq-fb); color: #fff; }
.fq-phone[data-ch="sms"] .fq-bubble.is-me { background: #34c759; color: #fff; }
.fq-bubble strong { font-weight: 700; }
.fq-bubble.is-turn { box-shadow: 0 0 0 2px var(--fq-amber); }
.fq-typing { display: inline-flex; gap: 3px; padding: .55rem .7rem; }
.fq-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5ad; animation: fqDot 1s infinite; }
.fq-typing i:nth-child(2) { animation-delay: .15s; }
.fq-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes fqDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes fqBubble { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.fq-quick { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0 .7rem .7rem; }
.fq-quick span { font-size: .66rem; font-weight: 600; padding: .25rem .5rem; border-radius: 999px; border: 1px solid rgba(47, 58, 74, .2); color: var(--fq-ink); background: rgba(255, 255, 255, .7); }
.fq-sync { position: absolute; left: 4%; bottom: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--fq-line); font-size: .8rem; font-weight: 700; color: var(--fq-ink); box-shadow: 0 12px 30px rgba(47, 58, 74, .12); white-space: nowrap; z-index: 3; }
.fq-sync .ph-duotone { color: var(--fq-teal); font-size: 1.15rem; }
.fq-sync.is-ping .ph-duotone { animation: fqSpin .8s ease; }
@keyframes fqSpin { to { transform: rotate(360deg); } }

/* ---------- Counters strip ---------- */
.fq-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fq-stat { text-align: center; padding: 1.25rem .5rem; }
.fq-stat-num { font-size: 2.6rem; font-weight: 800; color: var(--fq-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.fq-stat-label { margin-top: .4rem; color: var(--fq-muted); font-weight: 600; font-size: .92rem; }

/* ---------- Channel cards ---------- */
.fq-channel { height: 100%; background: #fff; border: 1px solid var(--fq-line); border-radius: 22px; padding: 1.75rem; transition: transform .25s ease, box-shadow .25s ease; }
.fq-channel:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(47, 58, 74, .1); }
.fq-channel-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 1rem; }
.fq-channel-icon.wa { background: #e3f6ea; color: var(--fq-wa); }
.fq-channel-icon.fb { background: #e6f0ff; color: var(--fq-fb); }
.fq-channel-icon.sms { background: #eef0f2; color: var(--fq-sms); }
.fq-mini-chat { margin-top: 1.25rem; padding: .9rem; border-radius: 16px; background: var(--fq-page); display: flex; flex-direction: column; gap: .4rem; min-height: 132px; }
.fq-mini-chat .fq-bubble { animation: none; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.aos-animate .fq-mini-chat .fq-bubble { opacity: 1; transform: none; }
.aos-animate .fq-mini-chat .fq-bubble:nth-child(2) { transition-delay: .5s; }
.aos-animate .fq-mini-chat .fq-bubble:nth-child(3) { transition-delay: 1s; }
.fq-mini-chat.wa .fq-bubble.is-me { background: #d9fdd3; }
.fq-mini-chat.fb .fq-bubble.is-me { background: var(--fq-fb); color: #fff; }
.fq-mini-chat.sms .fq-bubble.is-me { background: #34c759; color: #fff; }
.fq-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--fq-teal-soft); color: #1b6e65; }
.fq-tag.paid { background: #fbf1dc; color: #a16207; }

/* ---------- Workflow ---------- */
.fq-flow-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.fq-flow-step { position: relative; display: flex; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid transparent; cursor: pointer; transition: background-color .25s ease, border-color .25s ease; overflow: hidden; }
.fq-flow-step:hover { background: rgba(255, 255, 255, .6); }
.fq-flow-step.is-active { background: #fff; border-color: var(--fq-line); box-shadow: 0 14px 30px rgba(47, 58, 74, .08); }
.fq-flow-num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #fff; color: var(--fq-muted); border: 1px solid var(--fq-line); transition: all .25s ease; }
.fq-flow-step.is-active .fq-flow-num { background: var(--fq-teal); border-color: var(--fq-teal); color: #fff; }
.fq-flow-step h5 { margin: 0 0 .15rem; font-size: 1.05rem; }
.fq-flow-step p { margin: 0; font-size: .92rem; color: var(--fq-muted); }
.fq-flow-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--fq-teal); }
.fq-flow-step.is-active .fq-flow-bar { animation: fqBar var(--fq-step-ms, 4200ms) linear forwards; }
@keyframes fqBar { to { width: 100%; } }
.fq-flow-view { position: relative; min-height: 400px; border-radius: 26px; background: linear-gradient(160deg, var(--fq-teal-soft), #f6f0f6); overflow: hidden; }
.fq-flow-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.fq-flow-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fq-card-mock { background: #fff; border-radius: 20px; box-shadow: 0 24px 50px rgba(47, 58, 74, .14); padding: 1.4rem; width: 100%; max-width: 340px; text-align: center; }
.fq-card-mock .fq-mock-title { font-weight: 800; font-size: 1.25rem; color: var(--fq-ink); }
.fq-card-mock .fq-mock-sub { font-size: .85rem; color: var(--fq-muted); margin-bottom: 1rem; }
.fq-kiosk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fq-kiosk-tiles div { border: 2px solid var(--fq-line); border-radius: 14px; padding: .7rem .3rem; font-size: .72rem; font-weight: 700; color: var(--fq-ink); }
.fq-kiosk-tiles div .ph-duotone { display: block; font-size: 1.6rem; margin: 0 auto .3rem; }
.fq-flow-panel.is-active .fq-kiosk-tiles div:nth-child(2) { animation: fqTap 1.4s ease .6s 2; }
@keyframes fqTap { 0%, 100% { border-color: var(--fq-line); transform: none; } 40% { border-color: var(--fq-teal); transform: scale(.95); background: var(--fq-teal-soft); } }
.fq-token-big { font-size: 3.4rem; font-weight: 800; color: var(--fq-teal); line-height: 1; margin: .4rem 0; }
.fq-pos { display: flex; align-items: flex-end; justify-content: center; gap: .35rem; height: 70px; margin: .6rem 0 .2rem; }
.fq-pos span { width: 26px; border-radius: 8px 8px 4px 4px; background: #dfe5e8; transition: height .6s ease, background-color .3s ease; }
.fq-pos span.is-you { background: var(--fq-teal); }
.fq-swap-demo { position: relative; height: 120px; margin: .5rem auto; max-width: 260px; }
.fq-swap-demo .fq-chip { position: absolute; top: 40px; width: 70px; padding: .45rem 0; border-radius: 12px; font-weight: 800; color: var(--fq-ink); background: var(--fq-page); border: 2px solid var(--fq-line); transition: left .8s cubic-bezier(.6, 0, .3, 1); }
.fq-swap-demo .fq-chip.is-you { background: var(--fq-teal-soft); border-color: rgba(34, 132, 122, .45); }
.fq-swap-demo .fq-chip.a { left: 30px; }
.fq-swap-demo .fq-chip.b { left: 160px; }
.fq-swap-demo.is-swapped .fq-chip.a { left: 160px; }
.fq-swap-demo.is-swapped .fq-chip.b { left: 30px; }
.fq-swap-demo svg { position: absolute; left: 50%; transform: translateX(-50%); width: 120px; }
.fq-swap-demo svg.top { top: 4px; }
.fq-swap-demo svg.bottom { bottom: 4px; }
.fq-swap-demo path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s ease; }
.fq-swap-demo.is-swapped path { stroke-dashoffset: 0; }
.fq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .4rem; }
.fq-actions span { font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--fq-page); color: var(--fq-ink); }
.fq-tv { width: 100%; max-width: 380px; border-radius: 18px; background: var(--fq-ink); color: #fff; padding: 1.2rem 1.4rem 1.5rem; box-shadow: 0 30px 60px rgba(47, 58, 74, .25); position: relative; }
.fq-tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: 90px; height: 26px; background: linear-gradient(#cfd6db, #b9c2c8); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.fq-flow-panel.is-active .fq-tv { animation: fqCall .9s ease-in-out .4s 3 alternate; }
.fq-tv small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fd9cf; }
.fq-tv-row { display: flex; align-items: center; gap: 1rem; margin-top: .3rem; }
.fq-tv-token { font-size: 3.6rem; font-weight: 800; line-height: 1; }
.fq-tv-counter { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.fq-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-left: auto; }
.fq-wave i { width: 4px; border-radius: 3px; background: var(--fq-amber); animation: fqWave 1s ease-in-out infinite; }
.fq-wave i:nth-child(1) { height: 30%; } .fq-wave i:nth-child(2) { height: 80%; animation-delay: .1s; } .fq-wave i:nth-child(3) { height: 55%; animation-delay: .2s; } .fq-wave i:nth-child(4) { height: 95%; animation-delay: .3s; } .fq-wave i:nth-child(5) { height: 40%; animation-delay: .4s; }
@keyframes fqWave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.fq-say { margin-top: 1rem; font-size: .85rem; color: #c9d3d9; font-style: italic; }

/* ---------- Controls (dark) ---------- */
.fq-controls { position: relative; overflow: hidden; }
.fq-toggle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.fq-toggle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.fq-toggle span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: #fff; font-size: .92rem; }
.fq-toggle span .ph-duotone { color: #9fd9cf; font-size: 1.2rem; }
.fq-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: background-color .35s ease; }
.fq-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s cubic-bezier(.5, 1.6, .5, 1); }
.aos-animate .fq-switch { background: var(--fq-teal-bright); }
.aos-animate .fq-switch::after { transform: translateX(18px); }
.fq-msg-demo { background: #fff; border-radius: 22px; padding: 1.5rem; color: var(--fq-body); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.fq-msg-demo-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.fq-msg-demo-head strong { color: var(--fq-ink); }
.fq-msg-versions { display: flex; flex-direction: column; gap: .45rem; }
.fq-msg-version { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--fq-line); font-size: .86rem; transition: border-color .3s ease, background-color .3s ease, transform .3s ease; }
.fq-msg-version b { color: var(--fq-teal); font-weight: 700; }
.fq-msg-version.is-picked { border-color: var(--fq-teal); background: var(--fq-teal-soft); transform: translateX(6px); }
.fq-msg-version .ph-duotone { color: var(--fq-muted); }
.fq-msg-version.is-picked .ph-duotone { color: var(--fq-teal); }
.fq-dice { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--fq-teal); }
.fq-dice .ph-duotone { font-size: 1.1rem; }
.fq-dice.is-rolling .ph-duotone { animation: fqSpin .6s ease; }

/* ---------- Cloud diagram ---------- */
.fq-cloud-map { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.fq-cloud-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fq-cloud-map .fq-link { stroke: #cfd8dc; stroke-width: .5; stroke-dasharray: 1.6 1.4; fill: none; }
.fq-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; width: 150px; }
.fq-node-icon { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1px solid var(--fq-line); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--fq-teal); box-shadow: 0 14px 30px rgba(47, 58, 74, .1); transition: transform .3s ease; }
.fq-node:hover .fq-node-icon { transform: translateY(-4px) scale(1.04); }
.fq-node strong { font-size: .9rem; color: var(--fq-ink); line-height: 1.2; }
.fq-node small { font-size: .76rem; color: var(--fq-muted); line-height: 1.3; }
.fq-node.is-hub .fq-node-icon { width: 96px; height: 96px; border-radius: 30px; background: var(--fq-teal); color: #fff; font-size: 3rem; border: 0; box-shadow: 0 0 0 10px rgba(34, 132, 122, .12), 0 0 0 22px rgba(34, 132, 122, .06), 0 20px 40px rgba(34, 132, 122, .35); animation: fqHub 3s ease-in-out infinite; }
@keyframes fqHub { 0%, 100% { box-shadow: 0 0 0 10px rgba(34, 132, 122, .12), 0 0 0 22px rgba(34, 132, 122, .06), 0 20px 40px rgba(34, 132, 122, .35); } 50% { box-shadow: 0 0 0 14px rgba(34, 132, 122, .16), 0 0 0 30px rgba(34, 132, 122, .05), 0 20px 40px rgba(34, 132, 122, .35); } }
.fq-portal-list { display: none; }

/* ---------- Plans ---------- */
.fq-plan { height: 100%; border-radius: 24px; padding: 2rem; background: #fff; border: 1px solid var(--fq-line); }
.fq-plan.is-pro { background: var(--fq-ink); border-color: var(--fq-ink); color: #c9d3d9; position: relative; overflow: hidden; }
.fq-plan.is-pro h3 { color: #fff; }
.fq-plan ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.fq-plan li { display: flex; gap: .6rem; padding: .35rem 0; }
.fq-plan li .ph-duotone { color: var(--fq-teal); font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }
.fq-plan.is-pro li .ph-duotone { color: #9fd9cf; }
.fq-plan.is-pro::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: rgba(42, 157, 143, .25); filter: blur(10px); }

/* ---------- FAQ ---------- */
.fq-faq .card { border-radius: 16px !important; border: 1px solid var(--fq-line) !important; margin-bottom: .75rem; overflow: hidden; }
.fq-faq .card-header { background: #fff; border: 0; padding: 0; }
.fq-faq .card-header button { width: 100%; text-align: left; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--fq-ink); background: none; border: 0; }
.fq-faq .card-header button .ph-duotone { transition: transform .25s ease; color: var(--fq-teal); }
.fq-faq .card-header button[aria-expanded="true"] .ph-duotone { transform: rotate(45deg); }
.fq-faq .card-body { padding: 0 1.25rem 1.2rem; color: var(--fq-body); }

/* ---------- CTA + footer ---------- */
.fq-cta { border-radius: 30px; background: linear-gradient(130deg, var(--fq-teal), #1b6e65); color: #e3f3f0; padding: 3.5rem 2rem; position: relative; overflow: hidden; }
.fq-cta h2 { color: #fff; }
.fq-cta .btn-light { color: var(--fq-teal); font-weight: 700; white-space: nowrap; }
.fq-cta-tokens span { position: absolute; font-weight: 800; color: rgba(255, 255, 255, .1); font-size: 4rem; animation: fqFloat 9s ease-in-out infinite alternate; }
.fq-footer { color: var(--fq-muted); font-size: .9rem; }
.fq-footer a { color: var(--fq-body); }
.fq-footer img { height: 28px; }

.btn-primary { box-shadow: 0 10px 24px rgba(34, 132, 122, .25); }
.btn-primary:hover { transform: translateY(-1px); }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .fq-stage { min-height: 500px; margin-top: 2.5rem; max-width: 620px; margin-left: auto; margin-right: auto; }
    .fq-board { width: 64%; }
    .fq-phone { max-width: 235px; }
    .fq-toggle-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .fq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fq-cloud-map { display: none; }
    .fq-portal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .fq-portal-list .fq-node { position: static; transform: none; width: auto; }
    .fq-flow-view { min-height: 360px; margin-top: 1.5rem; }
}
@media (max-width: 575.98px) {
    .fq-stage { min-height: 520px; }
    .fq-board { position: relative; width: 100%; top: 0; }
    .fq-phone { position: absolute; width: 58%; top: 190px; right: -8px; transform: scale(.82); transform-origin: top right; }
    .fq-sync { bottom: -6px; left: 0; }
    .fq-hero h1 .fq-typed { white-space: normal; }
}

/* Motion off: everything shows in its finished state. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .fq-blob { display: none; }
}
