/* ==========================================================================
   FAQ page (/faq/): hero with live search, topic tabs, animated answers, help card
   ========================================================================== */

/* ---- Hero ---- */
.fq-hero { position: relative; padding: calc(var(--nav-height) + 3.75rem) 0 5.25rem; color: #fff; background: var(--gradient-hero); }
.fq-hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fq-grid-bg { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 75%); }
.fq-orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: fqOrb 14s ease-in-out infinite alternate; }
.fq-orb-a { width: 440px; height: 440px; right: 6%; top: -140px; background: rgba(123, 60, 245, .45); }
.fq-orb-b { width: 320px; height: 320px; left: -90px; bottom: -150px; background: rgba(76, 198, 255, .28); animation-delay: -7s; }
@keyframes fqOrb { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
.fq-hero-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
.fq-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; font-size: .82rem; color: rgba(226, 232, 255, .7); }
.fq-crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }
.fq-crumbs a { color: rgba(226, 232, 255, .85); }
.fq-crumbs a:hover, .fq-crumbs [aria-current] { color: #fff; }
.fq-eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #CFE6FF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.fq-dot { width: 7px; height: 7px; border-radius: 50%; background: #4CC6FF; box-shadow: 0 0 0 4px rgba(76, 198, 255, .2); animation: fqPulse 2.4s ease-in-out infinite; }
@keyframes fqPulse { 50% { box-shadow: 0 0 0 7px rgba(76, 198, 255, 0); } }
.fq-title { margin: 0 0 1rem; color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.03; letter-spacing: -.035em; }
.fq-grad { background: linear-gradient(100deg, #fff 0%, #fff 40%, #8AD9FF 65%, #C9A8FF 85%, #FF8CC6 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fqShine 8s ease-in-out infinite alternate; }
@keyframes fqShine { to { background-position: 100% 0; } }
.fq-sub { max-width: 520px; margin: 0; font-size: 1.1rem; line-height: 1.6; color: rgba(226, 232, 255, .82); }

.fq-search { position: relative; display: flex; align-items: center; max-width: 540px; margin-top: 2rem; padding: .35rem; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); transition: border-color .2s, background .2s, box-shadow .2s; }
.fq-search:focus-within { border-color: rgba(76, 198, 255, .7); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(76, 198, 255, .18), 0 20px 40px -20px rgba(0, 0, 0, .5); }
.fq-search > i { position: absolute; left: 1.1rem; color: rgba(226, 232, 255, .7); }
.fq-search input { flex: 1; min-width: 0; padding: .85rem .75rem .85rem 2.6rem; border: 0; background: transparent; color: #fff; font-size: 1rem; outline: none; }
.fq-search input::placeholder { color: rgba(226, 232, 255, .6); }
.fq-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.fq-kbd { margin-right: .6rem; padding: .1rem .5rem; border-radius: 6px; font: 600 .75rem/1.4 var(--font-sans); color: rgba(226, 232, 255, .75); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.fq-search:focus-within .fq-kbd { opacity: 0; }
.fq-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; font-size: .85rem; color: rgba(226, 232, 255, .75); }
.fq-facts li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.fq-facts i { font-size: .78rem; color: #8AD9FF; }
.fq-facts strong { color: #fff; }

/* Photo with floating chips */
.fq-visual { position: relative; }
.fq-photo { margin: 0; aspect-ratio: 7 / 5; overflow: hidden; border-radius: 24px; background: rgba(255, 255, 255, .08); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .6); outline: 1px solid rgba(255, 255, 255, .16); outline-offset: 7px; transform: rotate(1.5deg); transition: transform .8s var(--ease-premium); }
.fq-visual:hover .fq-photo { transform: rotate(0); }
.fq-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fq-float { position: absolute; display: inline-flex; align-items: center; gap: .55rem; max-width: 300px; padding: .65rem .9rem; border-radius: 14px; font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--gray-900); background: rgba(255, 255, 255, .95); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .45); animation: fqFloat 6s ease-in-out infinite; }
.fq-float i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; color: #fff; background: linear-gradient(135deg, #2D5BFF, #7B3CF5); }
.fq-float-a { left: -1.75rem; bottom: 2.5rem; }
.fq-float-b { right: -1rem; top: 1.5rem; animation-delay: -3s; }
.fq-float-b i { background: linear-gradient(135deg, #10B981, #34D399); }
@keyframes fqFloat { 50% { transform: translateY(-9px); } }

/* Entrance animation */
.fq-in { opacity: 0; transform: translateY(18px); animation: fqIn .8s var(--ease-premium) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes fqIn { to { opacity: 1; transform: none; } }

/* ---- Topic tabs: white capsule over the hero edge, sliding navy pill ---- */
.fq-topics { position: sticky; top: calc(var(--nav-height) + 12px); z-index: 20; margin-top: -2.1rem; }
.fq-topics-shell { padding: .4rem; border-radius: 16px; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 18px 40px -18px rgba(11, 20, 56, .28); }
.fq-topics-row { position: relative; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.fq-topics-row::-webkit-scrollbar { display: none; }
.fq-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 11px; background: var(--ink); box-shadow: 0 8px 18px -8px rgba(11, 20, 56, .55); opacity: 0; transition: transform .45s var(--ease-premium), width .45s var(--ease-premium), opacity .2s; }
.fq-topics-row.has-pill .fq-pill { opacity: 1; }
.fq-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .62rem .95rem; border: 0; border-radius: 11px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--gray-600); background: none; white-space: nowrap; cursor: pointer; transition: color .25s; }
.fq-tab i { font-size: .82rem; color: var(--gray-400); transition: color .25s; }
.fq-tab span { font-size: .72rem; color: var(--gray-400); }
.fq-tab:hover { color: var(--gray-900); }
.fq-tab:hover i { color: var(--primary); }
.fq-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fq-tab.is-lit, .fq-topics-row:not(.has-pill) .fq-tab.is-active { color: #fff; }
.fq-topics-row:not(.has-pill) .fq-tab.is-active { background: var(--ink); }
.fq-tab.is-lit i, .fq-topics-row:not(.has-pill) .fq-tab.is-active i { color: #8AD9FF; }
.fq-tab.is-lit span, .fq-topics-row:not(.has-pill) .fq-tab.is-active span { color: rgba(255, 255, 255, .6); }

/* ---- Questions ---- */
.fq-body { padding: 2.75rem 0 4.5rem; }
.fq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.fq-result { margin: 0 0 1rem; font-size: .9rem; color: var(--gray-500); }
.fq-result strong { color: var(--gray-900); }
.fq-list { display: flex; flex-direction: column; gap: .75rem; }
.fq-item { border-radius: 18px; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 10px 30px -24px rgba(21, 31, 85, .35); opacity: 0; transform: translateY(14px); animation: fqIn .7s var(--ease-premium) forwards; animation-delay: calc(var(--i, 0) * 55ms + 250ms); transition: border-color .3s, box-shadow .3s; }
.fq-item:hover { border-color: rgba(45, 91, 255, .25); }
.fq-item.is-open { border-color: rgba(45, 91, 255, .35); box-shadow: 0 22px 45px -24px rgba(21, 31, 85, .35); }
.fq-item[hidden] { display: none; }
.fq-item { scroll-margin-top: calc(var(--nav-height) + 90px); }
.fq-q { margin: 0; font-size: 1rem; }
.fq-q-btn { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border: 0; border-radius: 18px; font: inherit; text-align: left; background: none; cursor: pointer; }
.fq-q-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.fq-num { font-family: var(--font-heading); font-size: .8rem; font-weight: 800; color: var(--gray-300); transition: color .3s; }
.fq-item.is-open .fq-num, .fq-q-btn:hover .fq-num { color: var(--primary); }
.fq-q-text { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--gray-900); }
.fq-q-text mark, .fq-answer mark { padding: 0 .1em; border-radius: 3px; color: inherit; background: rgba(76, 198, 255, .3); }
.fq-q-topic { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--gray-500); background: var(--gray-100); white-space: nowrap; }
.fq-q-topic i { font-size: .68rem; color: var(--primary); }
.fq-plus { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(45, 91, 255, .08); transition: background .3s, transform .45s var(--ease-premium); }
.fq-plus::before, .fq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform .45s var(--ease-premium), background .3s; }
.fq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-item.is-open .fq-plus { background: var(--primary); transform: rotate(180deg); }
.fq-item.is-open .fq-plus::before, .fq-item.is-open .fq-plus::after { background: #fff; }
.fq-item.is-open .fq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.fq-a { overflow: hidden; transition: height .45s var(--ease-premium); }
.fq-a-inner { padding: 0 1.25rem 1.25rem calc(1.25rem + 2.2rem); }
.fq-answer { font-size: .98rem; line-height: 1.7; color: var(--gray-600); }
.fq-answer > :first-child { margin-top: 0; }
.fq-answer > :last-child { margin-bottom: 0; }
.fq-answer p { margin: 0 0 .8rem; }
.fq-answer ul, .fq-answer ol { margin: 0 0 .8rem; padding-left: 1.2rem; }
.fq-answer li { margin-bottom: .3rem; }
.fq-answer a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.fq-answer strong { color: var(--gray-800); }
.fq-a-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--gray-100); }
.fq-link { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--gray-500); background: none; cursor: pointer; transition: color .2s; }
.fq-link:hover { color: var(--primary); }

.fq-empty, .fq-none { padding: 3rem 1.5rem; text-align: center; border: 1.5px dashed var(--gray-300); border-radius: 20px; background: var(--gray-50); }
.fq-empty > i { font-size: 2rem; color: var(--primary); }
.fq-empty h2, .fq-none h2 { margin: .75rem 0 .4rem; font-size: 1.25rem; }
.fq-empty p, .fq-none p { margin: 0; color: var(--gray-600); }
.fq-none-icon { width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: var(--gradient-primary); }
.fq-none-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.fq-none[hidden], .fq-result[hidden] { display: none; }

/* ---- Help card ---- */
.fq-aside { position: sticky; top: calc(var(--nav-height) + 6rem); }
.fq-help { overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(70% 70% at 100% 0%, rgba(123, 60, 245, .55), transparent 70%), linear-gradient(160deg, #0B1438, #1A1F5E); box-shadow: 0 30px 60px -30px rgba(11, 20, 56, .6); }
.fq-help-photo { position: relative; margin: 0; aspect-ratio: 16 / 11; overflow: hidden; }
.fq-help-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-premium); }
.fq-help:hover .fq-help-photo img { transform: scale(1.05); }
.fq-help-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #0F1648); }
.fq-help-live { position: absolute; z-index: 1; left: .9rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.fq-help-live .fq-dot { background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.fq-help-body { padding: 1.25rem 1.4rem 1.5rem; }
.fq-help h2 { margin: 0 0 .5rem; color: #fff; font-size: 1.3rem; line-height: 1.25; }
.fq-help p { margin: 0 0 1.2rem; font-size: .92rem; line-height: 1.6; color: rgba(226, 232, 255, .8); }
.fq-help-btn { width: 100%; justify-content: center; }
.fq-help-mail { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .85rem; font-size: .85rem; color: rgba(226, 232, 255, .8); }
.fq-help-mail:hover { color: #fff; }

/* ---- Toast ---- */
.fq-toast { position: fixed; z-index: 3000; left: 50%; bottom: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; color: #fff; background: var(--ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .35s var(--ease-premium); }
.fq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fq-toast i { color: #34D399; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .fq-layout { grid-template-columns: 1fr; }
    .fq-aside { position: static; max-width: 560px; }
}
@media (max-width: 900px) {
    .fq-hero-wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .fq-visual { max-width: 560px; }
    .fq-float-a { left: .75rem; }
    .fq-float-b { right: .75rem; }
}
@media (max-width: 640px) {
    .fq-hero { padding: calc(var(--nav-height) + 2.25rem) 0 4.5rem; }
    .fq-visual, .fq-kbd { display: none; }
    .fq-topics { margin-top: -1.9rem; top: calc(var(--nav-height) + 8px); }
    .fq-tab { padding: .55rem .8rem; font-size: .85rem; }
    /* Phones: every topic visible as wrapping chips (no sideways swiping), and not sticky so it never covers answers */
    .fq-topics { position: relative; top: auto; }
    .fq-topics-row { flex-wrap: wrap; overflow: visible; gap: .4rem; }
    .fq-pill { display: none; }
    .fq-tab { padding: .5rem .75rem; font-size: .84rem; background: var(--gray-50, #F7F8FB); border: 1px solid var(--gray-200); }
    .fq-tab.is-lit { color: var(--gray-600); }
    .fq-tab.is-lit i, .fq-tab.is-lit span { color: var(--gray-400); }
    .fq-tab.is-active, .fq-topics-row .fq-tab.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
    .fq-tab.is-active i { color: #8AD9FF; }
    .fq-tab.is-active span { color: rgba(255, 255, 255, .6); }
    .fq-q-btn { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: 1rem; }
    .fq-num, .fq-q-topic { display: none; }
    .fq-a-inner { padding: 0 1rem 1.1rem; }
    .fq-q-text { font-size: 1rem; }
}
@media (hover: none) { .fq-kbd { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .fq-in, .fq-item { animation: none; opacity: 1; transform: none; }
    .fq-orb, .fq-grad, .fq-dot, .fq-float { animation: none; }
    .fq-a, .fq-pill, .fq-plus, .fq-plus::before, .fq-plus::after, .fq-photo, .fq-help-photo img { transition: none; }
}

/* ==========================================================================
   Light & airy look: light header, warm accents (shared tokens in style.css)
   ========================================================================== */
.fq-hero { color: var(--ink); background: var(--hero-light); border-bottom: 1px solid rgba(15, 23, 42, .06); }
.fq-grid-bg { opacity: 1; background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1.2px); background-size: 22px 22px; }
.fq-orb-a { background: rgba(167, 139, 250, .35); }
.fq-orb-b { background: rgba(255, 178, 94, .3); }
.fq-crumbs { color: var(--gray-500); }
.fq-crumbs a { color: var(--gray-600); }
.fq-crumbs a:hover, .fq-crumbs [aria-current] { color: var(--ink); }
.fq-eyebrow { color: var(--ink); background: #fff; border-color: rgba(15, 23, 42, .08); box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25); }
.fq-hero .fq-dot { background: #FF8A2E; box-shadow: 0 0 0 4px rgba(255, 138, 46, .2); }
.fq-title { color: var(--ink); }
.fq-grad { background: linear-gradient(172deg, var(--ink) 0%, var(--ink) 48%, #7B3CF5 68%, #E9358F 85%, #FF8A2E 100%); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.fq-sub { color: var(--gray-600); }
.fq-search { background: #fff; border-color: rgba(15, 23, 42, .1); backdrop-filter: none; box-shadow: 0 20px 40px -24px rgba(76, 29, 149, .35); }
.fq-search:focus-within { background: #fff; border-color: rgba(123, 60, 245, .45); box-shadow: 0 0 0 4px rgba(123, 60, 245, .12), 0 20px 40px -24px rgba(76, 29, 149, .35); }
.fq-search > i { color: var(--gray-400); }
.fq-search input { color: var(--ink); }
.fq-search input::placeholder { color: var(--gray-400); }
.fq-search input::-webkit-search-cancel-button { filter: none; }
.fq-kbd { color: var(--gray-500); background: var(--gray-100); border-color: var(--gray-200); }
.fq-facts { color: var(--gray-500); }
.fq-facts li { background: rgba(255, 255, 255, .75); border-color: rgba(15, 23, 42, .08); }
.fq-facts i { color: #E9358F; }
.fq-facts strong { color: var(--ink); }
.fq-photo { background: #fff; outline: none; border: 8px solid #fff; box-shadow: 0 40px 80px -40px rgba(76, 29, 149, .45), 0 18px 40px -24px rgba(15, 23, 42, .3); }
.fq-float { border: 1px solid rgba(15, 23, 42, .06); }
.fq-float-a i { background: var(--text-warm); }
/* Help card: warm ink */
.fq-help { background: var(--band-aurora); }
.fq-help-photo::after { background: linear-gradient(180deg, transparent 45%, #0A0B14); }
/* Warm accents */
.fq-item.is-open { border-color: rgba(233, 53, 143, .3); }
.fq-item.is-open .fq-num, .fq-q-btn:hover .fq-num { color: #E9358F; }
.fq-item.is-open .fq-plus { background: var(--text-warm); }
.fq-q-topic i { color: #E9358F; }
/* Speed: hero text and questions are visible from the first frame (only slide up), so Google counts them straight away */
.fq-in, .fq-item { opacity: 1; animation-name: fqSlide; }
@keyframes fqSlide { from { transform: translateY(14px); } to { transform: none; } }

/* Tablets: every topic visible as wrapping chips, like on phones */
@media (max-width: 991px) {
    .fq-topics-row { flex-wrap: wrap; overflow: visible; gap: .4rem; }
    .fq-pill { display: none; }
    .fq-tab { background: var(--gray-50, #F7F8FB); border: 1px solid var(--gray-200); }
    .fq-tab.is-lit { color: var(--gray-600); }
    .fq-tab.is-lit i, .fq-tab.is-lit span { color: var(--gray-400); }
    .fq-tab.is-active, .fq-topics-row .fq-tab.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
    .fq-tab.is-active i { color: #8AD9FF; }
    .fq-tab.is-active span { color: rgba(255, 255, 255, .6); }
}
