/* ===== FAQ accordion (shared: homepage + tool pages) ===== */
.faq-section {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
}

.faq-section__heading {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--surface);
}

.faq-item__question {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  float: right;
  color: var(--text-secondary);
}

.faq-item[open] .faq-item__question::after {
  content: "\2212";
}

.faq-item__answer {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== Animated FAQ accordion (homepage) ===== */
.faq-section--animated {
  max-width: 1152px;
}

.faq-section--animated .faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

@media (min-width: 720px) {
  .faq-section--animated .faq-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
}

.faq-section--animated .faq-item {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-section--animated .faq-item:hover {
  border-color: var(--text-primary);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.faq-item__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-section--animated .faq-item:hover .faq-item__icon {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(135deg);
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item__panel .faq-item__answer {
  margin: 0;
  padding: 0 20px 20px;
}
