:root {
  --faq-bg: var(--color-app, #fafafa);
  --faq-surface: var(--color-surface, #fff);
  --faq-border: var(--color-border, #e6e6e6);
  --faq-border-hover: var(--color-border-hover, #d4d4d4);
  --faq-text-primary: var(--color-text-primary, #171717);
  --faq-text-secondary: var(--color-text-secondary, #525252);
  --faq-text-tertiary: var(--color-text-tertiary, #a3a3a3);
  --faq-surface-secondary: var(--color-surface-secondary, #f5f5f5);
  --faq-surface-tertiary: var(--color-surface-tertiary, #e6e6e6);
  --faq-primary: var(--color-primary, #0657f9);
}

/* ===================== FAQ SECTION on index.html ===================== */

.faq-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: var(--faq-bg);
  padding: 64px 16px 48px;
  margin-top: 48px;
  border-top: 1px solid var(--faq-border);
}

.faq-section-inner {
  max-width: 1232px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===================== SEO H1 ===================== */

.faq-seo-h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--faq-text-primary);
  line-height: 1.25;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.faq-seo-subtitle {
  font-size: 1rem;
  color: var(--faq-text-secondary);
  margin: 0 0 40px 0;
  max-width: 600px;
  line-height: 1.6;
}

@media (min-width: 48rem) {
  .faq-seo-h1 {
    font-size: 2.5rem;
  }
}

/* ===================== FAQ ACCORDION ===================== */

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--faq-surface);
}

.faq-item {
  border-bottom: 1px solid var(--faq-border);
  background-color: var(--faq-surface);
  transition: background-color 0.15s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-text-primary);
  line-height: 1.4;
  gap: 16px;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.faq-question h2 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
  flex: 1;
}

.faq-question:hover {
  background-color: var(--faq-surface-secondary);
}

.faq-question.faq-open {
  background-color: var(--faq-surface-secondary);
  color: var(--faq-primary);
}

.faq-question.faq-open h2 {
  color: var(--faq-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-text-secondary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.faq-question.faq-open .faq-icon {
  transform: rotate(180deg);
  color: var(--faq-primary);
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-wrapper.faq-answer-open {
  max-height: 600px;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  box-sizing: border-box;
}

.faq-answer h3 {
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--faq-text-secondary);
  line-height: 1.65;
}

/* ===================== FAQ FOOTER LINKS ===================== */

.faq-footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.faq-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--faq-primary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--faq-primary);
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.faq-footer-link:hover {
  background-color: var(--faq-primary);
  color: #fff;
}

.faq-footer-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--faq-text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.faq-footer-link-secondary:hover {
  background-color: var(--faq-surface-secondary);
  color: var(--faq-text-primary);
  border-color: var(--faq-border-hover);
}

/* ===================== SIMPLE NAV HEADER (faq/about pages) ===================== */

.simple-nav {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--faq-surface);
  border-bottom: 1px solid var(--faq-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255,255,255,0.92);
  box-sizing: border-box;
}

.simple-nav-inner {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.simple-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--faq-text-primary);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.simple-nav-logo svg {
  height: 32px;
  width: auto;
}

.simple-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.simple-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--faq-text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.simple-nav-link:hover {
  color: var(--faq-text-primary);
  background-color: var(--faq-surface-secondary);
}

.simple-nav-link.active {
  color: var(--faq-text-primary);
  font-weight: 700;
  background-color: var(--faq-surface-secondary);
}

/* ===================== PAGE LAYOUT (faq/about pages) ===================== */

.page-layout {
  min-height: 100vh;
  background-color: var(--faq-bg);
  color: var(--faq-text-primary);
  font-family: aeonik, 'Source Code Pro', sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-main {
  max-width: 1232px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 48rem) {
  .page-main {
    padding: 64px 24px 96px;
  }
}

/* ===================== PAGE HERO ===================== */

.page-hero {
  margin-bottom: 48px;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faq-primary);
  background-color: rgba(6,87,249,0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--faq-text-primary);
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

@media (min-width: 48rem) {
  .page-hero-title {
    font-size: 2.75rem;
  }
}

.page-hero-desc {
  font-size: 1.0625rem;
  color: var(--faq-text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

/* ===================== CONTENT CARD ===================== */

.content-card {
  background-color: var(--faq-surface);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.content-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--faq-text-primary);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.content-card p {
  font-size: 0.9375rem;
  color: var(--faq-text-secondary);
  line-height: 1.65;
  margin: 0 0 12px 0;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 12px 0 0 0;
  padding: 0 0 0 20px;
  color: var(--faq-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.content-card ul li {
  margin-bottom: 6px;
}

/* ===================== FULL FAQ PAGE ACCORDION ===================== */

.page-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--faq-surface);
}

.page-faq-item {
  border-bottom: 1px solid var(--faq-border);
  background-color: var(--faq-surface);
}

.page-faq-item:last-child {
  border-bottom: none;
}

.page-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-text-primary);
  line-height: 1.4;
  gap: 16px;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.page-faq-question h2 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
  flex: 1;
}

.page-faq-question:hover {
  background-color: var(--faq-surface-secondary);
}

.page-faq-question.faq-open {
  background-color: var(--faq-surface-secondary);
  color: var(--faq-primary);
}

.page-faq-question.faq-open h2 {
  color: var(--faq-primary);
}

.page-faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-text-secondary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.page-faq-question.faq-open .faq-icon {
  transform: rotate(180deg);
  color: var(--faq-primary);
}

.page-faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-faq-answer-wrapper.faq-answer-open {
  max-height: 800px;
}

.page-faq-answer {
  padding: 0 28px 24px 28px;
  box-sizing: border-box;
}

.page-faq-answer h3 {
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--faq-text-secondary);
  line-height: 1.65;
}

/* ===================== ABOUT PAGE SECTIONS ===================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 48rem) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .about-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.about-stat-card {
  background-color: var(--faq-surface);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--faq-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--faq-text-secondary);
  line-height: 1.4;
}

.about-stat-desc {
  font-size: 0.875rem;
  color: var(--faq-text-tertiary);
  line-height: 1.55;
  margin-top: 4px;
}

/* ===================== PAGE FOOTER NAV ===================== */

.page-footer-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--faq-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}

.page-footer-btn-primary {
  background-color: var(--faq-primary);
  color: #fff;
  border-color: var(--faq-primary);
}

.page-footer-btn-primary:hover {
  background-color: #004be0;
  border-color: #004be0;
  color: #fff;
}

.page-footer-btn-secondary {
  background-color: transparent;
  color: var(--faq-text-secondary);
  border-color: var(--faq-border);
}

.page-footer-btn-secondary:hover {
  background-color: var(--faq-surface-secondary);
  color: var(--faq-text-primary);
  border-color: var(--faq-border-hover);
}

/* ===================== SIMPLE FOOTER ===================== */

.simple-footer {
  background-color: var(--faq-surface);
  border-top: 1px solid var(--faq-border);
  padding: 24px 16px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.simple-footer-inner {
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.simple-footer-copy {
  font-size: 0.875rem;
  color: var(--faq-text-tertiary);
}

.simple-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.simple-footer-links a {
  font-size: 0.875rem;
  color: var(--faq-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.simple-footer-links a:hover {
  color: var(--faq-text-primary);
}

/* ===================== BREADCRUMB ===================== */

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--faq-text-secondary);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-breadcrumb a {
  color: var(--faq-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-breadcrumb a:hover {
  color: var(--faq-primary);
}

.page-breadcrumb-sep {
  color: var(--faq-text-tertiary);
  font-size: 0.75rem;
}

.page-breadcrumb-current {
  color: var(--faq-text-primary);
  font-weight: 500;
}

/* ===================== SECTION HEADING ===================== */

.section-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--faq-text-primary);
  margin: 0 0 24px 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 48rem) {
  .section-heading {
    font-size: 1.75rem;
  }
}

/* ===================== HIGHLIGHT BOX ===================== */

.highlight-box {
  background-color: rgba(6,87,249,0.06);
  border: 1px solid rgba(6,87,249,0.18);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.highlight-box p {
  font-size: 0.9375rem;
  color: var(--faq-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.highlight-box strong {
  color: var(--faq-text-primary);
}

/* ===================== RESPONSIVE OVERFLOW GUARD ===================== */

.faq-section,
.page-layout,
.simple-nav,
.simple-footer,
.page-main,
.faq-list,
.page-faq-list,
.about-grid,
.content-card {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}