/* ═══════════════════════════════════════════════════════════
   FAQ Page
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.faq-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s var(--ease-out-expo);
}

.faq-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: -0.04em;
}

.faq-hero > p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 24px;
}

.faq-hero .search-input {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Tabs ── */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.tab:hover {
  color: var(--blue);
  border-color: rgba(38,104,255,0.3);
  background: rgba(38,104,255,0.03);
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(38,104,255,0.25);
}

/* ── FAQ Layout ── */
.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-top: 36px;
}

/* ── Support Card ── */
.support-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.support-card > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.support-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.support-visual {
  position: relative;
  min-height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f5f8ff 0%, #edf2ff 100%);
  overflow: hidden;
}

.support-bubble {
  position: absolute;
  left: 80px;
  top: 16px;
  width: 100px;
  height: 66px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 8px 20px rgba(38,104,255,0.2);
}

.support-bubble::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: var(--blue-deep);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.support-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 52px;
  height: 10px;
  border-radius: 10px;
  background: radial-gradient(circle, #fff 0 5px, transparent 6px) left center/16px 10px repeat-x;
}

.support-sheet {
  position: absolute;
  left: 60px;
  top: 86px;
  width: 108px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #eef3fd);
  box-shadow: var(--shadow-md);
}

.support-plant {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #f2f2f2, #d2d7df);
}

.support-plant::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 26px;
  width: 28px;
  height: 36px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #58b84b, #2f8d34);
}

/* ── FAQ List ── */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  padding: 22px 28px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s;
}

.faq-item:hover { background: rgba(38,104,255,0.02); }

.faq-item:first-child {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-sm);
}

.faq-item:last-child {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
}

.faq-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item header strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.35s var(--ease-out-expo);
  flex-shrink: 0;
  user-select: none;
}

.faq-item.open .faq-toggle {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  transition: max-height 0.4s var(--ease-out-expo), opacity 0.3s, margin 0.4s;
}

.faq-item.open .faq-answer {
  margin-top: 14px;
  max-height: 400px;
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .faq-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .faq-tabs { gap: 6px; }
  .tab { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
  .support-buttons { flex-direction: column; }
}
