.faqp {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background: linear-gradient(160deg, #eaf2ff 0%, #f3fbf9 45%, #f7fafd 100%);
}

.faqp__decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.faqp__decor--a {
  width: 640px;
  height: 640px;
  top: -260px;
  left: -220px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.16) 0%, rgba(47, 111, 237, 0) 70%);
}

.faqp__decor--b {
  width: 560px;
  height: 560px;
  bottom: -260px;
  right: -200px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0) 70%);
}

/* ---- Mascot (top-right, big) ---- */

.faqp__mascot {
  position: absolute;
  z-index: 2;
  top: 30px;
  right: 3%;
  width: 320px;
}

.faqp__mascot-img {
  width: 100%;
  height: auto;
}

.faqp__mascot-bubble {
  position: absolute;
  top: -10px;
  right: 40px;
  background: #fff;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  max-width: 190px;
}

.faqp__mascot-bubble p {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}

.faqp__mascot-callout {
  position: absolute;
  bottom: 30px;
  left: -70px;
  text-align: center;
}

.faqp__mascot-callout span {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}

.faqp__mascot-callout svg {
  display: block;
  margin: 4px auto 0;
}

/* ---- Header ---- */

.faqp__head {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faqp__badge {
  display: inline-flex;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.faqp__title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.faqp__title-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faqp__desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-body);
  margin-bottom: 26px;
}

.faqp__callout {
  position: absolute;
  z-index: 2;
  top: 60px;
  left: -60px;
  text-align: center;
}

.faqp__callout p {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}

.faqp__callout-arrow {
  display: block;
  margin: 2px auto 0;
}

.faqp__search {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  color: var(--color-muted);
  margin-bottom: 22px;
}

.faqp__search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--color-ink);
}

.faqp__search input::placeholder {
  color: var(--color-muted);
}

.faqp__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.faqp__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-body);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.faqp__filter--active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

/* ---- Category grid ---- */

.faqp__grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* Tracks declared right-to-left under dir=rtl (column 1 is the
     rightmost track) - each card's --cat-col/--cat-row is set inline
     in faq.html so both axes are always explicit, avoiding the sparse
     auto-placement scatter bug entirely (see features.css for the
     background on that bug). */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 48px;
}

.faqcat {
  grid-column: var(--cat-col);
  grid-row: var(--cat-row);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* Filtering (by pill or by search) can leave any number of cards
   visible - each still pinned to its --cat-col/--cat-row from the
   full 3-column layout (e.g. stuck at the left or right edge) unless
   the grid switches to a plain centered, wrapping flex row. This
   works the same whether 1, 2 or 3 cards survive the filter. */
.faqp__grid--filtered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.faqp__grid--filtered .faqcat {
  grid-column: unset;
  grid-row: unset;
  flex: 1 1 360px;
  max-width: 420px;
}

.faqcat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.faqcat__head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-ink);
}

.faqcat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
  flex: none;
}

/* ---- Accordion item ---- */

.faqitem {
  border-bottom: 1px solid var(--color-border);
}

.faqitem:last-child {
  border-bottom: none;
}

.faqitem__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  background: none;
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
}

.faqitem__chev {
  flex: none;
  color: var(--color-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faqitem--open .faqitem__chev {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* The smooth-expand technique: a grid row track animated between 0fr
   and 1fr. Unlike max-height, this needs no guessed pixel ceiling and
   animates real auto content height cleanly in every direction. */
.faqitem__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faqitem--open .faqitem__panel {
  grid-template-rows: 1fr;
}

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

.faqitem--open .faqitem__panel-inner {
  padding-bottom: 14px;
}

.faqitem__panel-inner {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-body);
}

/* ---- Bottom CTA + stats ---- */

.faqp__cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
}

.faqp__cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.faqp__cta-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-brand);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faqp__cta-avatar img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.faqp__cta-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-ink);
}

.faqp__cta-sub {
  font-size: 12.5px;
  color: var(--color-body);
}

.faqp__cta-btn {
  flex: none;
}

.faqp__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-right: auto;
}

.faqp__stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faqp__stat-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faqp__stat-icon--blue {
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
}

.faqp__stat-icon--teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-teal);
}

.faqp__stat div {
  display: flex;
  flex-direction: column;
}

.faqp__stat strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-ink);
}

.faqp__stat span {
  font-size: 10.5px;
  color: var(--color-muted);
  font-weight: 600;
}
