/* ---- FAQ Hero ---- */
.faq-hero {
  padding: 140px 24px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(212, 136, 106, 0.06) 0%, transparent 65%),
    linear-gradient(to bottom, var(--bg) 0%, var(--bg-deep) 100%);
}
.faq-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mauve);
  margin-bottom: 12px;
}
.faq-hero-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ---- Search ---- */
.search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-soft);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 16px 48px 16px 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-input::placeholder { color: var(--text-soft); }
.search-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(212, 136, 106, 0.15);
}
.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), color var(--t);
}
.search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}
.search-clear:hover { color: var(--coral); }

/* ---- Tutorial cross-link under search ---- */
.faq-hero-tutlink {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.faq-hero-tutlink a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-hero-tutlink a:hover { color: var(--coral-dark); }
.faq-hero-tutlink i { font-size: 0.85rem; vertical-align: -1px; }

/* ---- Search Empty State ---- */
.search-empty {
  display: none;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-soft);
}
.search-empty.visible { display: block; }
.search-empty i {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}
.search-empty p { font-size: 1.05rem; }
.search-empty-hint {
  font-size: 0.9rem !important;
  margin-top: 8px;
  opacity: 0.7;
}

/* ---- FAQ Sections ---- */
.faq-section {
  padding: 80px 0;
  background: var(--bg);
}
.faq-section-alt {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-deep) 70%, var(--bg));
}
.faq-section-icon {
  color: var(--coral);
  margin-right: 8px;
  font-size: 1.6rem;
  vertical-align: -3px;
}
.faq-section .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ---- Quick Start Timeline ---- */
.steps-timeline {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: rgba(212, 136, 106, 0.2);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mauve);
  margin-bottom: 6px;
  line-height: 40px;
}
.step-content p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.step-content p + p { margin-top: 6px; }
.step-hint {
  font-size: 0.88rem !important;
  opacity: 0.8;
}
.step-link {
  color: var(--coral) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.step-link:hover { color: var(--coral-dark) !important; }

/* ---- FAQ Cards ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.faq-card:hover {
  box-shadow: var(--shadow-hover);
}
.faq-card.open {
  border-color: rgba(212, 136, 106, 0.3);
}
.faq-card.hidden { display: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.faq-q span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mauve);
  line-height: 1.5;
}
.faq-caret {
  font-size: 1.1rem;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-card.open .faq-caret {
  transform: rotate(180deg);
  color: var(--coral);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-card.open .faq-a {
  max-height: 600px;
}

.faq-a-inner {
  padding: 0 24px 20px;
}
.faq-a-inner p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-a-inner p + p { margin-top: 10px; }
.faq-a-inner ul, .faq-a-inner ol {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 20px;
  margin: 8px 0;
}
.faq-a-inner li { margin-bottom: 4px; }
.faq-a-inner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: "Cascadia Code", "Consolas", monospace;
}
.faq-a-inner kbd {
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.faq-a-inner a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-a-inner a:hover { color: var(--coral-dark); }

/* ---- Highlight matched text ---- */
.faq-highlight {
  background: rgba(212, 136, 106, 0.2);
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- CTA Card ---- */
.faq-cta-section {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, rgba(212, 136, 106, 0.06) 0%, rgba(212, 136, 106, 0.02) 100%);
}
.faq-cta-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}
.faq-cta-icon {
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 16px;
  display: block;
}
.faq-cta-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mauve);
  margin-bottom: 10px;
}
.faq-cta-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---- Nav active state ---- */
.nav-active {
  color: var(--coral) !important;
  font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .faq-hero { padding: 100px 24px 36px; }
  .faq-hero-title { font-size: 1.7rem; }
  .faq-section { padding: 56px 0; }
  .step-content h3 { line-height: 1.4; }
  .faq-q { padding: 16px 20px; }
  .faq-a-inner { padding: 0 20px 16px; }
  .faq-section .section-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .faq-hero-title { font-size: 1.4rem; }
  .faq-hero-sub { font-size: 0.92rem; }
  .search-input { padding: 14px 44px 14px 46px; font-size: 0.95rem; }
  .step-item { gap: 14px; }
  .step-number { width: 34px; height: 34px; font-size: 0.9rem; }
  .step-item:not(:last-child)::after { left: 16px; top: 56px; }
}
