/* ============================================================
   LabelsAgent · Redesign · FAQ Page
   Benchmark: hubspot.com · WCAG 2.1 AA · Mobile-first
   ============================================================ */
:root {
  --la-navy: #0033a0;
  --la-navy-dark: #002280;
  --la-navy-deep: #001460;
  --la-gold: #c9a961;
  --la-gold-soft: #e2c987;
  --la-gold-pale: #f7efda;
  --la-ink: #0a1733;
  --la-text: #2a3550;
  --la-text-3: #6b7592;
  --la-line: #e6eaf3;
  --la-line-2: #d3dae8;
  --la-bg: #ffffff;
  --la-bg-alt: #f6f8fc;
  --la-bg-cream: #fbf7ee;
  --la-success: #1a7f4a;
  --la-danger: #b91c1c;
  --la-radius: 14px;
  --la-radius-sm: 8px;
  --la-radius-lg: 22px;
  --la-shadow-sm: 0 1px 3px rgba(10, 23, 51, 0.06);
  --la-shadow: 0 6px 22px rgba(10, 23, 51, 0.08);
  --la-shadow-lg: 0 18px 50px rgba(10, 23, 51, 0.12);
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--la-text); background: var(--la-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-family: 'Sora', 'Inter', sans-serif; color: var(--la-ink);
  margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--la-navy); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--la-navy-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--la-line); box-shadow: var(--la-shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--la-ink);
}
.nav__brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--la-navy), var(--la-navy-deep));
  color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
}
.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; color: var(--la-text);
}
.nav__menu a:hover { background: var(--la-bg-alt); color: var(--la-ink); }
.nav__menu a.is-active { color: var(--la-navy); background: rgba(0, 51, 160, 0.08); }
.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--la-line);
  border-radius: 8px; padding: 8px 12px; font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--la-radius-sm); border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--la-navy); color: #fff; }
.btn--primary:hover { background: var(--la-navy-dark); color: #fff; box-shadow: 0 8px 20px rgba(0, 51, 160, 0.28); }
.btn--gold { background: linear-gradient(135deg, var(--la-gold), #b8933f); color: #fff; }
.btn--gold:hover { box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4); color: #fff; }
.btn--ghost { background: transparent; color: var(--la-ink); border-color: var(--la-line-2); }
.btn--ghost:hover { background: var(--la-bg-alt); border-color: var(--la-navy); color: var(--la-navy); }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn__group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--la-navy); background: rgba(0, 51, 160, 0.08);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--gold { color: #8a6d2a; background: var(--la-gold-pale); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs { background: var(--la-bg-alt); border-bottom: 1px solid var(--la-line); padding: 12px 0; font-size: 0.88rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { color: var(--la-text-3); display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: var(--la-line-2); }
.breadcrumbs a { color: var(--la-text); }
.breadcrumbs a:hover { color: var(--la-navy); }
.breadcrumbs li[aria-current="page"] { color: var(--la-navy); font-weight: 600; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 169, 97, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0, 51, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero__inner { max-width: 880px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--la-gold) 0%, #b8933f 60%, var(--la-navy) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: 1.15rem; line-height: 1.65; color: var(--la-text);
  max-width: 720px; margin-bottom: 28px;
}
.hero__search { position: relative; max-width: 640px; margin-top: 18px; }
.hero__search input {
  width: 100%;
  font-family: inherit; font-size: 1.05rem;
  padding: 18px 60px 18px 56px;
  background: #fff;
  border: 1.5px solid var(--la-line-2);
  border-radius: 999px;
  box-shadow: var(--la-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero__search input:focus {
  outline: none; border-color: var(--la-navy);
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.12);
}
.hero__search .ico-search {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--la-text-3); width: 22px; height: 22px;
}
.hero__search kbd {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: inherit; font-size: 0.78rem;
  padding: 4px 8px; border-radius: 6px;
  background: var(--la-bg-alt); color: var(--la-text-3);
  border: 1px solid var(--la-line);
}
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--la-line);
}
.hero__stat .num {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2rem;
  color: var(--la-navy); line-height: 1; letter-spacing: -0.02em;
}
.hero__stat .lbl { font-size: 0.85rem; color: var(--la-text-3); margin-top: 6px; }

/* ---------- SECTION ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--la-bg-alt); }

/* ---------- FAQ LAYOUT ---------- */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.faq-toc {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--la-line);
  border-radius: var(--la-radius); padding: 20px;
  box-shadow: var(--la-shadow-sm);
}
.faq-toc h4 {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--la-text-3); margin-bottom: 12px;
}
.faq-toc ul { list-style: none; margin: 0; padding: 0; }
.faq-toc li { margin: 2px 0; }
.faq-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 0.92rem; color: var(--la-text); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.faq-toc a:hover { background: var(--la-bg-alt); color: var(--la-navy); }
.faq-toc a.is-active { background: rgba(0, 51, 160, 0.08); color: var(--la-navy); }
.faq-toc a .ico { width: 16px; height: 16px; color: var(--la-navy); flex-shrink: 0; }

.faq-block { margin-bottom: 56px; }
.faq-block:last-child { margin-bottom: 0; }
.faq-block__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--la-line);
}
.faq-block__head .ico-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0, 51, 160, 0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--la-navy); flex-shrink: 0;
}
.faq-block__head .ico-wrap .ico { width: 22px; height: 22px; }
.faq-block__head h2 { margin: 0; font-size: 1.55rem; }
.faq-block__head .count {
  margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: var(--la-bg-alt); color: var(--la-text-3);
  font-size: 0.78rem; font-weight: 600;
}

/* ---------- ACCORDION ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--la-line);
  border-radius: var(--la-radius); margin-bottom: 10px;
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item:hover { border-color: var(--la-line-2); }
.faq-item.is-open { border-color: var(--la-navy); box-shadow: 0 8px 24px rgba(0, 51, 160, 0.08); }
.faq-q {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 18px 22px;
  background: transparent; border: 0; text-align: left;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.02rem;
  color: var(--la-ink); cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--la-navy); }
.faq-q .chev {
  margin-left: auto; width: 22px; height: 22px;
  color: var(--la-text-3); transition: transform 0.25s ease, color 0.15s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); color: var(--la-navy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a__inner {
  padding: 0 22px 20px 22px;
  color: var(--la-text); font-size: 0.98rem; line-height: 1.7;
}
.faq-a__inner p:last-child { margin-bottom: 0; }
.faq-a__inner a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-feedback {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--la-line);
  font-size: 0.85rem; color: var(--la-text-3);
}
.faq-feedback button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--la-line); background: #fff;
  font-size: 0.82rem; color: var(--la-text); font-weight: 500;
  transition: all 0.15s;
}
.faq-feedback button:hover { border-color: var(--la-navy); color: var(--la-navy); background: rgba(0, 51, 160, 0.05); }
.faq-feedback button.is-yes:hover { border-color: var(--la-success); color: var(--la-success); background: rgba(26, 127, 74, 0.06); }
.faq-feedback button.is-no:hover { border-color: var(--la-danger); color: var(--la-danger); background: rgba(185, 28, 28, 0.05); }
.faq-feedback .ico { width: 14px; height: 14px; }

/* ---------- NO RESULTS ---------- */
.faq-empty {
  display: none; padding: 40px; text-align: center;
  background: #fff; border: 1px dashed var(--la-line-2);
  border-radius: var(--la-radius); color: var(--la-text-3);
}
.faq-empty.is-visible { display: block; }
.faq-empty .ico { width: 40px; height: 40px; color: var(--la-line-2); margin-bottom: 12px; }

/* ---------- QUICK LINKS ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; background: #fff; border: 1px solid var(--la-line);
  border-radius: var(--la-radius); text-decoration: none;
  transition: all 0.15s;
}
.quick-card:hover { border-color: var(--la-navy); transform: translateY(-2px); box-shadow: var(--la-shadow); color: inherit; }
.quick-card .ico-wrap {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0, 51, 160, 0.08); color: var(--la-navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.quick-card .ico { width: 20px; height: 20px; }
.quick-card h4 { margin: 0; font-size: 1rem; color: var(--la-ink); }
.quick-card p { margin: 0; font-size: 0.85rem; color: var(--la-text-3); }
.quick-card .arrow { font-size: 0.85rem; color: var(--la-navy); font-weight: 600; margin-top: 4px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 20% 50%, rgba(201, 169, 97, 0.22), transparent 60%),
    linear-gradient(135deg, var(--la-navy-deep) 0%, var(--la-navy) 60%, var(--la-navy-dark) 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--la-navy-deep); color: rgba(255, 255, 255, 0.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 36px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: #fff; margin-bottom: 14px;
}
.footer-brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--la-gold), var(--la-gold-soft));
  color: var(--la-navy-deep); font-size: 0.78rem; font-weight: 800;
}
.site-footer h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--la-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--la-line);
  padding: 12px;
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 10px; justify-content: center; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--la-line); padding: 12px; flex-direction: column; align-items: stretch; }
  .nav__menu.is-open { display: flex; }
  .nav__toggle { display: inline-block; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-toc { position: static; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .faq-q { padding: 16px 16px; font-size: 0.95rem; gap: 12px; }
  .faq-a__inner { padding: 0 16px 16px 16px; }
  .hero__search input { font-size: 0.98rem; padding: 16px 50px 16px 50px; }
  .hero__search .ico-search { left: 18px; }
  .hero__search kbd { display: none; }
  .faq-block__head .count { display: none; }
}
