* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body.faq-page {
  margin: 0;
  color: #17142d;
  background:
    radial-gradient(circle at 78% 12%, rgba(213, 240, 255, 0.78), transparent 34%),
    radial-gradient(circle at 20% 40%, rgba(230, 221, 255, 0.8), transparent 38%),
    linear-gradient(135deg, #fbfaff 0%, #f5f2ff 48%, #eef8ff 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
summary {
  font: inherit;
}

.faq-main {
  width: min(880px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.faq-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17142d;
  text-decoration: none;
  font-weight: 900;
}

.faq-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(91, 75, 197, 0.18));
}

.faq-back-link,
.faq-help-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.faq-back-link {
  border: 1px solid rgba(110, 82, 220, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #5f46c7;
  box-shadow: 0 8px 24px rgba(73, 54, 136, 0.08);
}

.faq-hero {
  max-width: 680px;
  margin-bottom: 44px;
}

.faq-eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(109, 86, 216, 0.1);
  color: #6d56d8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0;
  color: #24456d;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(2.3rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.faq-hero p {
  max-width: 590px;
  margin: 18px 0 0;
  color: #56536b;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.65;
}

.faq-section {
  margin-top: 42px;
}

.faq-section h2 {
  margin: 0 0 18px;
  color: #24456d;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(1.32rem, 3vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.faq-list {
  border-top: 1px solid rgba(36, 69, 109, 0.2);
}

.faq-list details {
  border-bottom: 1px solid rgba(36, 69, 109, 0.2);
}

.faq-list summary {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 20px 54px 20px 0;
  color: #19172a;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.02rem, 2.6vw, 1.28rem);
  font-weight: 900;
  line-height: 1.32;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-right: 3px solid #6d56d8;
  border-bottom: 3px solid #6d56d8;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.faq-list details[open] summary {
  color: #5f46c7;
}

.faq-list details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-list p {
  max-width: 690px;
  margin: -4px 54px 24px 0;
  color: #54516a;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.68;
}

.faq-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 52px;
  padding: 24px;
  border: 1px solid rgba(221, 217, 241, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 55px rgba(87, 76, 168, 0.12);
  backdrop-filter: blur(22px);
}

.faq-help-card h2 {
  margin: 0;
  color: #17142d;
  font-size: 1.2rem;
  line-height: 1.2;
}

.faq-help-card p {
  margin: 7px 0 0;
  color: #605b78;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.faq-help-card a {
  flex: 0 0 auto;
  border: 0;
  background: linear-gradient(135deg, #7a61ea, #5f46c7);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(109, 86, 216, 0.24);
}

.faq-nav {
  z-index: 30;
}

@media (max-width: 900px) {
  .faq-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .faq-main {
    width: min(100% - 32px, 430px);
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 calc(env(safe-area-inset-bottom, 0px) + 34px);
  }

  .faq-header {
    margin-bottom: 36px;
  }

  .faq-back-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .faq-hero {
    margin-bottom: 36px;
  }

  .faq-section {
    margin-top: 36px;
  }

  .faq-list summary {
    min-height: 72px;
    padding-right: 42px;
  }

  .faq-list p {
    margin-right: 30px;
    font-size: 0.92rem;
  }

  .faq-help-card {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
    border-radius: 22px;
  }
}
