/* FAQ page — light editorial redesign under Brand Guide v1.0.
   Mirrors the about/features pages: Sora headings, Inter body, pill CTAs,
   Pearl canvas, floating cards, and a closing CTA card. Everything below
   uses the fq- namespace. All data-faq-* hooks are untouched — faq.js
   depends on them for search/filter behavior. */

/* ---- Brand Guide v1.0 tokens ---- */
.faq-page {
  --fq-blue: #2563eb;
  --fq-blue-dark: #1d4ed8;
  --fq-blue-light: #93c5fd;
  --fq-blue-pale: #eff6ff;
  --fq-ink: #0b1120;
  --fq-heading: #0f172a;
  --fq-body: #475569;
  --fq-muted: #94a3b8;
  --fq-border: #e2e8f0;
  --fq-success: #059669;
  --fq-gold: #c9a84c;
  --fq-pearl: #f8f9ff;
  --fq-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  background:
    radial-gradient(circle at 6% 8%, rgba(37, 99, 235, .16), transparent 31rem),
    radial-gradient(circle at 90% 12%, rgba(147, 197, 253, .26), transparent 34rem),
    radial-gradient(circle at 72% 60%, rgba(5, 150, 105, .09), transparent 32rem),
    radial-gradient(circle at 16% 86%, rgba(201, 168, 76, .08), transparent 28rem),
    var(--fq-pearl);
  color: var(--fq-body);
}
.faq-page h1, .faq-page h2, .faq-page h3, .faq-page h4 {
  font-family: "Sora", sans-serif; color: var(--fq-heading);
}
.faq-page main {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, .045) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* One button shape sitewide (pill), one blue per state. */
.faq-page .nb-btn { border-radius: 999px; font: 600 .9375rem/1.2 "Inter", sans-serif; }
.faq-page .nb-btn-primary {
  background: var(--fq-blue); border-color: var(--fq-blue);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}
.faq-page .nb-btn-primary:hover { background: var(--fq-blue-dark); border-color: var(--fq-blue-dark); box-shadow: 0 16px 38px rgba(37, 99, 235, .32); }
.faq-page .nb-btn-ghost { color: var(--fq-heading); background: #fff; border-color: var(--fq-border); }
.faq-page .nb-btn-ghost:hover { color: var(--fq-blue-dark); background: #fff; border-color: var(--fq-blue-light); }
.fq-btn-secondary { color: var(--fq-heading); background: rgba(255, 255, 255, .78); border: 1px solid var(--fq-border); }
.fq-btn-secondary:hover { color: var(--fq-blue-dark); background: #fff; border-color: var(--fq-blue-light); }

/* Shared section rhythm + eyebrow + heading */
.fq-section { position: relative; isolation: isolate; padding: clamp(64px, 7vw, 108px) 0; }
.faq-page main h2 {
  margin: 0; font-weight: 700; letter-spacing: -.045em;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.1;
}
.fq-eyebrow + h2 { margin-top: 14px; }
.faq-page main h2 span {
  color: transparent; background: linear-gradient(100deg, var(--fq-blue) 10%, #60a5fa 60%, var(--fq-blue-light) 100%);
  background-clip: text; -webkit-background-clip: text;
}
.fq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(37, 99, 235, .2); border-radius: 999px;
  background: var(--fq-blue-pale); color: var(--fq-blue);
  font: 700 .75rem "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase;
}

/* =====================  HERO  ===================== */
.fq-hero { position: relative; overflow: hidden; padding: clamp(148px, 96px + 7vw, 196px) 0 clamp(64px, 7vw, 96px); background: #f8f9ff; }
.fq-hero-mesh {
  position: absolute; inset: -10%; pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(37, 99, 235, .12), transparent 36%),
    radial-gradient(circle at 90% 18%, rgba(147, 197, 253, .18), transparent 34%),
    radial-gradient(circle at 68% 96%, rgba(5, 150, 105, .07), transparent 30%);
  filter: blur(8px);
}
.fq-hero-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .033) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 18%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 18%, #000, transparent 72%);
}
.fq-hero-layout { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 76px); align-items: start; }
.fq-hero-copy .fq-eyebrow { margin-bottom: 24px; }
.fq-hero h1 { max-width: 620px; margin: 0 0 20px; font: 700 clamp(2.15rem, 1.5rem + 2.4vw, 3.3rem)/1.1 "Sora", sans-serif; letter-spacing: -.045em; }
.fq-hero h1 span { color: var(--fq-blue); }
.fq-hero-sub { max-width: 540px; margin: 0 0 30px; color: var(--fq-body); font-size: 1.1rem; font-weight: 400; line-height: 1.7; }

/* Search bar — light pill, glowing focus ring */
.fq-search {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  max-width: 620px; min-height: 60px; margin-top: 0; padding: 0 8px 0 20px;
  border: 1px solid var(--fq-border); border-radius: 999px;
  background: #fff; box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fq-search:focus-within { border-color: var(--fq-blue-light); box-shadow: 0 0 0 4px rgba(37, 99, 235, .13), 0 18px 44px rgba(15, 23, 42, .1); }
.fq-search > i { color: var(--fq-blue); }
.fq-search input { min-width: 0; padding: 13px; color: var(--fq-heading); font-size: .92rem; border: 0; outline: 0; background: transparent; }
.fq-search input::placeholder { color: var(--fq-muted); }
.fq-search button { display: grid; place-items: center; width: 38px; height: 38px; color: var(--fq-muted); border: 0; border-radius: 999px; background: transparent; transition: color .2s ease, background .2s ease; }
.fq-search button:hover { color: var(--fq-heading); background: var(--fq-blue-pale); }

/* Popular topics card — floats beside the hero copy */
.fq-support-card {
  overflow: hidden; margin-top: 6px; border: 1px solid rgba(226, 232, 240, .92); border-radius: 26px;
  background: rgba(255, 255, 255, .88); box-shadow: var(--fq-shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.fq-support-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--fq-border); }
.fq-support-head span { font-family: "Sora", sans-serif; font-size: .82rem; font-weight: 700; color: var(--fq-heading); }
.fq-support-head i { color: var(--fq-blue); }
.fq-support-card > a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 16px 22px; text-decoration: none; border-bottom: 1px solid var(--fq-border); transition: background .2s ease; }
.fq-support-card > a:hover { background: var(--fq-blue-pale); }
.fq-support-card > a > span { display: flex; align-items: center; gap: 12px; }
.fq-support-card > a > span > i { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; color: var(--fq-blue); border-radius: 12px; background: var(--fq-blue-pale); }
.fq-support-card > a strong { color: var(--fq-heading); font-size: .86rem; font-weight: 600; }
.fq-support-card > a small { color: var(--fq-muted); font-size: .74rem; }
.fq-support-card > a > i { color: var(--fq-muted); font-size: .8rem; transition: transform .2s ease, color .2s ease; }
.fq-support-card > a:hover > i { color: var(--fq-blue); transform: translateX(3px); }
.fq-support-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; color: var(--fq-body); font-size: .82rem; }
.fq-support-status i { margin-right: 5px; color: var(--fq-success); }
.fq-support-status a { color: var(--fq-blue); font-weight: 700; text-decoration: none; }
.fq-support-status a:hover { color: var(--fq-blue-dark); }

/* =====================  BROWSE / FILTERS  ===================== */
.fq-library-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.fq-library-head p { margin: 12px 0 0; color: var(--fq-muted); font-size: .88rem; }
.fq-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fq-filters button {
  padding: 9px 15px; color: var(--fq-body); font-size: .82rem; font-weight: 600;
  border: 1px solid var(--fq-border); border-radius: 999px; background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.fq-filters button:hover { border-color: var(--fq-blue-light); color: var(--fq-blue-dark); }
.fq-filters button.is-active { color: #fff; border-color: var(--fq-blue); background: var(--fq-blue); box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }

/* =====================  GROUPS + ACCORDION  ===================== */
.fq-groups { display: grid; gap: clamp(36px, 5vw, 56px); }
.fq-group { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.fq-group-title { position: sticky; top: 100px; display: flex; align-items: flex-start; gap: 14px; align-self: start; }
.fq-group-title > span { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; color: var(--fq-blue); border-radius: 16px; background: var(--fq-blue-pale); font-size: 1.15rem; }
.fq-group-title small { color: var(--fq-blue); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fq-group-title h3 { margin: 4px 0 0; font-size: 1.05rem; letter-spacing: -.02em; }
.fq-questions { display: grid; gap: 10px; }
.fq-question {
  overflow: hidden; border: 1px solid rgba(226, 232, 240, .95); border-radius: 18px;
  background: rgba(255, 255, 255, .82); box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fq-question:hover { border-color: var(--fq-blue-light); }
.fq-question[open] { border-color: var(--fq-blue-light); box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fq-question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 66px; padding: 16px 20px; color: var(--fq-heading);
  font-family: "Sora", sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; list-style: none;
}
.fq-question summary::-webkit-details-marker { display: none; }
.fq-question summary i {
  display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px;
  color: var(--fq-blue); border-radius: 10px; background: var(--fq-blue-pale);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.fq-question[open] summary i { color: #fff; background: var(--fq-blue); transform: rotate(45deg); }
.fq-question > div { padding: 0 60px 20px 20px; }
.fq-question p { margin: 0; color: var(--fq-body); font-size: .9rem; line-height: 1.68; }

.fq-empty { padding: 72px 26px; text-align: center; border: 1px dashed var(--fq-border); border-radius: 24px; background: rgba(255, 255, 255, .7); }
.fq-empty > i { color: var(--fq-blue); font-size: 2rem; }
.fq-empty h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.fq-empty p { margin: 0 0 20px; color: var(--fq-body); font-size: .92rem; }

/* =====================  CONTACT PANEL  ===================== */
.fq-contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(5, 150, 105, .1), transparent 30rem),
    radial-gradient(circle at 88% 68%, rgba(37, 99, 235, .16), transparent 34rem);
}
.fq-contact-shell {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 32px; background: rgba(255, 255, 255, .78);
  box-shadow: var(--fq-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.fq-contact-copy { max-width: 640px; }
.fq-contact-copy p { margin: 14px 0 0; color: var(--fq-body); font-size: .95rem; line-height: 1.7; }

/* =====================  FINAL CTA  ===================== */
.fq-final { padding-bottom: clamp(88px, 10vw, 132px); }
.fq-final-card {
  position: relative; max-width: 940px; margin: 0 auto; overflow: hidden;
  padding: clamp(36px, 6vw, 68px); text-align: center;
  border: 1px solid rgba(226, 232, 240, .95); border-radius: 38px;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 99, 235, .12), transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(5, 150, 105, .08), transparent 30%),
    rgba(255, 255, 255, .82);
  box-shadow: var(--fq-shadow);
}
.fq-final-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  pointer-events: none;
}
.fq-final-card > * { position: relative; z-index: 1; }
.fq-final-card p { max-width: 560px; margin: 16px auto 0; font-size: clamp(.96rem, 1.1vw, 1.05rem); color: var(--fq-body); }
.fq-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 32px; }

/* =====================  Motion  ===================== */
.js .faq-page .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .faq-page .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .faq-page .reveal { transition: none; }
}

/* =====================  Responsive  ===================== */
@media (max-width: 991.98px) {
  .fq-hero { padding-top: 136px; }
  .fq-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .fq-support-card { max-width: 620px; }
  .fq-library-head { grid-template-columns: 1fr; gap: 20px; }
  .fq-filters { justify-content: flex-start; }
  .fq-group { grid-template-columns: 1fr; gap: 18px; }
  .fq-group-title { position: static; }
  .fq-contact-shell { flex-direction: column; align-items: flex-start; }
  .fq-contact-shell > a { width: 100%; text-align: center; }
}
@media (max-width: 767.98px) {
  .fq-hero { padding: 122px 0 60px; }
  .fq-hero-sub { font-size: 1.02rem; }
  .fq-search { min-height: 56px; padding-left: 16px; }
  .fq-support-status { align-items: flex-start; flex-direction: column; }
  .fq-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .fq-filters button { flex: 0 0 auto; }
  .fq-question summary { min-height: 60px; font-size: .86rem; }
  .fq-question > div { padding-right: 20px; }
  .fq-final-actions { display: grid; }
}
