/* =====================================================
   DealCap USA · /faq — Frequently Asked Questions
   Light hub palette, premium editorial layout, accordion.
   ===================================================== */

/* --- Hero ---------------------------------------------------------- */
.faq-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F6F8 100%);
  padding: 88px 0 40px;
  border-bottom: 1px solid var(--line);
}
.faq-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.faq-hero .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4563dd;
  box-shadow: 0 0 0 3px rgba(69, 99, 221, 0.15);
}
.faq-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 900px;
}
.faq-hero__sub {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
.faq-hero__sub a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(69, 99, 221, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.faq-hero__sub a:hover {
  text-decoration-color: #4563dd;
}

/* --- Section wrapper ---------------------------------------------- */
.faq-section {
  padding: 56px 0 96px;
  background: var(--bg);
}

/* --- Jump-rail (sticky on desktop) -------------------------------- */
.faq-jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 56px;
  position: sticky;
  top: 84px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}
.faq-jump__link {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.faq-jump__link:hover {
  color: var(--ink);
  background: rgba(10, 10, 10, 0.04);
}
.faq-jump__link.is-active {
  color: var(--ink);
  background: rgba(69, 99, 221, 0.12);
}

/* --- Group ------------------------------------------------------- */
.faq-group {
  margin-bottom: 72px;
  scroll-margin-top: 96px;
}
.faq-group__title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* --- Accordion item --------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item[open] {
  padding-bottom: 12px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 22px 0;
  font-family: var(--ff-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-item summary:hover .faq-q {
  color: #29409d;
}
.faq-item summary:focus-visible {
  outline: 2px solid #4563dd;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Chevron */
.faq-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
  transition: transform 0.2s ease;
}
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-chevron::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-chevron::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Answer */
.faq-a {
  padding: 4px 40px 20px 0;
  font-family: var(--ff-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  animation: faqReveal 0.25s ease-out;
}
.faq-a p { margin: 0 0 14px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a p.faq-a__lead {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid #4563dd;
  background: rgba(69, 99, 221, 0.06);
  color: var(--ink);
  font-size: 16px;
  border-radius: 0 6px 6px 0;
}
.faq-a strong { color: var(--ink); font-weight: 600; }
.faq-a em { font-style: italic; color: var(--ink-2); }
.faq-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(69, 99, 221, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.faq-a a:hover {
  text-decoration-color: #4563dd;
}
.faq-a ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.faq-a ul li {
  position: relative;
  padding: 6px 0 6px 22px;
}
.faq-a ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4563dd;
  opacity: 0.75;
}

/* Lane list gets a bit more air */
.faq-a ul.faq-lanes li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px dashed rgba(10, 10, 10, 0.08);
}
.faq-a ul.faq-lanes li:last-child { border-bottom: none; }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Closing CTA -------------------------------------------------- */
.faq-close {
  margin-top: 80px;
  padding: 56px 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F6F8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.faq-close__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.faq-close__sub {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}
.faq-close__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.faq-close__cta:hover {
  background: #4563dd;
  transform: translateY(-1px);
}

/* --- Mobile ------------------------------------------------------- */
@media (max-width: 768px) {
  .faq-hero { padding: 56px 0 32px; }
  .faq-section { padding: 32px 0 64px; }
  .faq-jump {
    position: static;
    margin-bottom: 32px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .faq-jump__link { white-space: nowrap; }
  .faq-group { margin-bottom: 48px; }
  .faq-q {
    padding: 18px 0;
    font-size: 16px;
    gap: 16px;
  }
  .faq-a {
    padding: 4px 8px 16px 0;
    font-size: 14.5px;
  }
  .faq-close { padding: 40px 24px; margin-top: 56px; }
}
