/* ==========================================================
   ebmnt1 — FAQ (numbered accordion + help card with 3D tilt)
   ========================================================== */
:root {
  --ebmnt1-faq-background-color: var(--ebmnt1-color-helper-surface);
  --ebmnt1-faq-item-background-color: var(--ebmnt1-color-helper-white);
  --ebmnt1-faq-item-border-color: var(--ebmnt1-color-helper-border);
  --ebmnt1-faq-item-active-border-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-item-shadow-color: var(--ebmnt1-color-helper-shadow-medium);
  --ebmnt1-faq-item-bar-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-number-stroke-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-number-active-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-number-font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --ebmnt1-faq-question-color: var(--ebmnt1-color-secondary);
  --ebmnt1-faq-question-active-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-question-font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  --ebmnt1-faq-answer-color: var(--ebmnt1-color-secondary-soft);
  --ebmnt1-faq-answer-font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --ebmnt1-faq-icon-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-icon-border-color: var(--ebmnt1-color-primary);
  --ebmnt1-faq-icon-active-color: var(--ebmnt1-color-helper-white);
  --ebmnt1-faq-icon-active-background-color: var(--ebmnt1-color-primary);

  --ebmnt1-faq-help-background-color: var(--ebmnt1-color-secondary);
  --ebmnt1-faq-help-pattern-color: var(--ebmnt1-color-helper-white-soft);
  --ebmnt1-faq-help-icon-color: var(--ebmnt1-color-primary-light);
  --ebmnt1-faq-help-icon-border-color: var(--ebmnt1-color-primary-light);
  --ebmnt1-faq-help-title-color: var(--ebmnt1-color-helper-white);
  --ebmnt1-faq-help-text-color: var(--ebmnt1-color-helper-white-faded);
  --ebmnt1-faq-help-title-font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --ebmnt1-faq-help-max-width: 26rem;
  --ebmnt1-faq-tilt-x: 0deg;
  --ebmnt1-faq-tilt-y: 0deg;
}

.ebmnt1-faq {
  background-color: var(--ebmnt1-faq-background-color);
}

.ebmnt1-faq__layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

.ebmnt1-faq__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ebmnt1-faq__help {
  width: 100%;
  max-width: var(--ebmnt1-faq-help-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: var(--ebmnt1-faq-help-background-color);
  background-image: repeating-linear-gradient(135deg, var(--ebmnt1-faq-help-pattern-color) 0 1px, transparent 1px 14px);
  transform: perspective(60rem) rotateX(var(--ebmnt1-faq-tilt-x)) rotateY(var(--ebmnt1-faq-tilt-y));
  transition: transform 0.25s ease;
}

.ebmnt1-faq__help-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ebmnt1-faq-help-icon-color);
  border: 1px solid var(--ebmnt1-faq-help-icon-border-color);
  border-radius: 50%;
}

.ebmnt1-faq__help-title {
  font-size: var(--ebmnt1-faq-help-title-font-size);
  font-weight: 600;
  color: var(--ebmnt1-faq-help-title-color);
}

.ebmnt1-faq__help-text {
  font-size: var(--ebmnt1-faq-answer-font-size);
  line-height: 1.8;
  color: var(--ebmnt1-faq-help-text-color);
}

.ebmnt1-faq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ebmnt1-faq__item {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: start;
  background-color: var(--ebmnt1-faq-item-background-color);
  border: 1px solid var(--ebmnt1-faq-item-border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ebmnt1-faq__item::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background-color: var(--ebmnt1-faq-item-bar-color);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.ebmnt1-faq__item.ebmnt1-is-open {
  border-color: var(--ebmnt1-faq-item-active-border-color);
  box-shadow: 0 0.5rem 1.75rem var(--ebmnt1-faq-item-shadow-color);
}

.ebmnt1-faq__item.ebmnt1-is-open::before {
  transform: scaleY(1);
}

.ebmnt1-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-align: start;
}

.ebmnt1-faq__number {
  flex: 0 0 auto;
  font-size: var(--ebmnt1-faq-number-font-size);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ebmnt1-faq-number-stroke-color);
  transition: color 0.3s ease;
}

.ebmnt1-faq__item.ebmnt1-is-open .ebmnt1-faq__number {
  color: var(--ebmnt1-faq-number-active-color);
}

.ebmnt1-faq__question-text {
  flex: 1;
  font-size: var(--ebmnt1-faq-question-font-size);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ebmnt1-faq-question-color);
  transition: color 0.3s ease;
}

.ebmnt1-faq__item.ebmnt1-is-open .ebmnt1-faq__question-text,
.ebmnt1-faq__question:hover .ebmnt1-faq__question-text {
  color: var(--ebmnt1-faq-question-active-color);
}

.ebmnt1-faq__icon {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ebmnt1-faq-icon-color);
  border: 1px solid var(--ebmnt1-faq-icon-border-color);
  border-radius: 50%;
  transition: transform 0.35s ease, color 0.3s ease, background-color 0.3s ease;
}

.ebmnt1-faq__item.ebmnt1-is-open .ebmnt1-faq__icon {
  color: var(--ebmnt1-faq-icon-active-color);
  background-color: var(--ebmnt1-faq-icon-active-background-color);
  transform: rotate(135deg);
}

.ebmnt1-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.ebmnt1-faq__item.ebmnt1-is-open .ebmnt1-faq__answer {
  grid-template-rows: 1fr;
}

.ebmnt1-faq__answer-inner {
  min-height: 0;
  overflow: hidden;
}

.ebmnt1-faq__answer-text {
  padding: 0 1.1rem 1.1rem;
  font-size: var(--ebmnt1-faq-answer-font-size);
  line-height: 1.9;
  color: var(--ebmnt1-faq-answer-color);
}

@media (min-width: 425px) {
  .ebmnt1-faq__question { padding: 1.1rem 1.35rem; }
  .ebmnt1-faq__answer-text { padding: 0 1.35rem 1.25rem; }
}

@media (min-width: 1024px) {
  .ebmnt1-faq__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .ebmnt1-faq__aside {
    position: sticky;
    top: 7rem;
    flex: 0 0 34%;
    align-items: flex-start;
  }

  .ebmnt1-faq__list { flex: 1; }
}
