/* ============================================================
   additional_styles.css — FAQ, About, Subpage Nav/Footer styles
   Matches Usual Money design system
   ============================================================ */

/* ── FAQ Section on index.html ────────────────────────────── */

.faq-section {
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 64px;
  margin-bottom: 0;
  padding: 48px 24px 56px;
  background: linear-gradient(180deg, #f9f9f9 0%, #f4f3f3 100%);
  border-top: 1px solid #efefef;
  position: relative;
}

@media (min-width: 608px) {
  .faq-section {
    padding: 64px 48px 72px;
  }
}

@media (min-width: 1004px) {
  .faq-section {
    padding: 72px 92px 80px;
  }
}

.faq-section-inner {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ h1 ───────────────────────────────────────────────── */

.faq-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #101010;
  margin-bottom: 8px;
  text-align: center;
}

@media (min-width: 608px) {
  .faq-h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

.faq-h1-sub {
  text-align: center;
  color: #717171;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.48px;
  margin-bottom: 48px;
}

/* ── FAQ Items ────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 10px 0 rgba(31, 20, 37, 0.03),
              0 12px 18px 0 rgba(31, 19, 37, 0.01),
              0 40px 40px 0 rgba(31, 20, 37, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #dbdbdb;
}

.faq-item.faq-open {
  border-color: #bcbcbc;
}

/* ── FAQ Question (h2) ────────────────────────────────────── */

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: #f8f8f8;
}

.faq-question h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.48px;
  color: #101010;
  margin: 0;
  padding: 0;
  flex: 1;
}

@media (min-width: 608px) {
  .faq-question h2 {
    font-size: 1.0625rem;
  }
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f4f4;
  border: 1px solid #efefef;
  transition: transform 0.3s ease, background 0.2s ease;
  color: #717171;
}

.faq-open .faq-icon {
  transform: rotate(180deg);
  background: #101010;
  border-color: #101010;
  color: #ffffff;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ── FAQ Answer (h3) ──────────────────────────────────────── */

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

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

.faq-answer-inner {
  padding: 0 24px 24px;
  border-top: 1px solid #efefef;
  padding-top: 16px;
}

.faq-answer h3 {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28px;
  color: #474747;
  margin: 0;
  padding: 0;
}

/* ── FAQ Bottom Links ─────────────────────────────────────── */

.faq-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.28px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.faq-link-btn-primary {
  background: #101010;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 6px 0 rgba(0, 0, 0, 0.1),
              0 6px 8px 0 rgba(0, 0, 0, 0.15);
}

.faq-link-btn-primary:hover {
  background: #202020;
}

.faq-link-btn-secondary {
  background: #ffffff;
  color: #272727;
  border: 1px solid #efefef;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04),
              0 2px 6px 0 rgba(0, 0, 0, 0.06);
}

.faq-link-btn-secondary:hover {
  background: #f8f8f8;
  border-color: #dbdbdb;
}

/* ── Subpage Shared Styles ────────────────────────────────── */

.subpage-body {
  position: relative;
  min-height: 100vh;
  background: #101010;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #272727;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.subpage-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background: url("bg-noise-body.e82fddf7.jpg") #d3d3d3 0 0 / 100px 100px repeat;
}

/* ── Subpage Nav Header ───────────────────────────────────── */

.subpage-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: #101010;
}

.subpage-nav-inner {
  width: 100%;
  max-width: 1472px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

@media (min-width: 608px) {
  .subpage-nav-inner {
    padding: 24px 48px 16px;
  }
}

@media (min-width: 1004px) {
  .subpage-nav-inner {
    padding: 24px 92px 16px;
  }
}

.subpage-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}

.subpage-logo svg {
  width: 84px;
  height: 20px;
}

.subpage-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subpage-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #101010;
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 6px 0 rgba(0, 0, 0, 0.1),
              0 6px 8px 0 rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
  cursor: pointer;
}

.subpage-nav-btn:hover {
  background: #202020;
}

/* ── Subpage Content Wrapper ──────────────────────────────── */

.subpage-content-wrapper {
  background: linear-gradient(180deg, #f9f9ff 0%, #f4f3ff 100%);
  border-radius: 30px 30px 0 0;
  min-height: calc(100vh - 80px);
  padding: 48px 24px 80px;
}

@media (min-width: 608px) {
  .subpage-content-wrapper {
    padding: 64px 48px 96px;
  }
}

@media (min-width: 1004px) {
  .subpage-content-wrapper {
    padding: 72px 92px 112px;
  }
}

.subpage-content-inner {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Subpage Hero ─────────────────────────────────────────── */

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

.subpage-hero-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #efefef;
  background: #ffffff;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: #717171;
  margin-bottom: 16px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04),
              0 2px 6px 0 rgba(0, 0, 0, 0.06);
}

.subpage-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #101010;
  margin: 0 0 16px;
}

@media (min-width: 608px) {
  .subpage-h1 {
    font-size: 40px;
    line-height: 50px;
  }
}

.subpage-lead {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.48px;
  color: #717171;
  margin: 0;
  max-width: 640px;
}

/* ── Subpage Cards / Sections ─────────────────────────────── */

.subpage-card {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 10px 0 rgba(31, 20, 37, 0.03),
              0 12px 18px 0 rgba(31, 19, 37, 0.01),
              0 40px 40px 0 rgba(31, 20, 37, 0.02);
}

@media (min-width: 608px) {
  .subpage-card {
    padding: 40px;
  }
}

.subpage-card-dark {
  background: #141414;
  border: 1px solid #272727;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 20px;
  color: #efefef;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.2),
              0 12px 18px 0 rgba(0, 0, 0, 0.15);
}

@media (min-width: 608px) {
  .subpage-card-dark {
    padding: 40px;
  }
}

.subpage-card-h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.75rem;
  letter-spacing: 0.52px;
  color: #101010;
  margin: 0 0 12px;
}

.subpage-card-dark .subpage-card-h2 {
  color: #ffffff;
}

.subpage-card-h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.48px;
  color: #272727;
  margin: 0 0 8px;
}

.subpage-card-dark .subpage-card-h3 {
  color: #efefef;
}

.subpage-card-p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28px;
  color: #717171;
  margin: 0 0 16px;
}

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

.subpage-card-dark .subpage-card-p {
  color: #a0a0a0;
}

/* ── Subpage Divider ──────────────────────────────────────── */

.subpage-divider {
  height: 1px;
  background: #efefef;
  margin: 32px 0;
  border: none;
}

/* ── Subpage FAQ accordion (faq/index.html) ───────────────── */

.subpage-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.subpage-faq-item {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 10px 0 rgba(31, 20, 37, 0.03),
              0 12px 18px 0 rgba(31, 19, 37, 0.01);
  transition: border-color 0.2s ease;
}

.subpage-faq-item:hover {
  border-color: #dbdbdb;
}

.subpage-faq-item.faq-open {
  border-color: #bcbcbc;
}

.subpage-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.subpage-faq-question:hover {
  background: #f8f8f8;
}

.subpage-faq-question h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.48px;
  color: #101010;
  margin: 0;
  flex: 1;
}

.subpage-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0, 0, 0.2, 1),
              opacity 0.3s ease;
}

.subpage-faq-item.faq-open .subpage-faq-answer {
  max-height: 800px;
  opacity: 1;
}

.subpage-faq-answer-inner {
  padding: 0 24px 24px;
  border-top: 1px solid #efefef;
  padding-top: 16px;
}

.subpage-faq-answer p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28px;
  color: #474747;
  margin: 0 0 12px;
}

.subpage-faq-answer p:last-child {
  margin-bottom: 0;
}

.subpage-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f4f4;
  border: 1px solid #efefef;
  transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  color: #717171;
}

.subpage-faq-item.faq-open .subpage-faq-icon {
  transform: rotate(180deg);
  background: #101010;
  border-color: #101010;
  color: #ffffff;
}

/* ── Subpage About — Stats Grid ───────────────────────────── */

.subpage-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 608px) {
  .subpage-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subpage-stat-item {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 10px 0 rgba(31, 20, 37, 0.03),
              0 12px 18px 0 rgba(31, 19, 37, 0.01);
}

.subpage-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: 0.4px;
  color: #101010;
  margin-bottom: 4px;
}

.subpage-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: #a0a0a0;
}

/* ── Subpage Feature List ─────────────────────────────────── */

.subpage-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.subpage-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.subpage-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f4f4;
  border: 1px solid #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #272727;
  margin-top: 2px;
}

.subpage-feature-text h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.48px;
  color: #101010;
  margin: 0 0 4px;
}

.subpage-feature-text p {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.28px;
  color: #717171;
  margin: 0;
}

/* ── Subpage Tags ─────────────────────────────────────────── */

.subpage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.subpage-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #efefef;
  background: #f8f8f8;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: #474747;
}

/* ── Subpage Footer Nav ───────────────────────────────────── */

.subpage-footer {
  background: #101010;
  padding: 32px 24px 32px;
}

@media (min-width: 608px) {
  .subpage-footer {
    padding: 32px 48px;
  }
}

@media (min-width: 1004px) {
  .subpage-footer {
    padding: 32px 92px;
  }
}

.subpage-footer-inner {
  max-width: 1472px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.subpage-footer-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.28px;
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.subpage-footer-link:hover {
  color: #ffffff;
}

/* ── Subpage CTA block ────────────────────────────────────── */

.subpage-cta {
  text-align: center;
  margin-top: 48px;
  padding: 48px 32px;
  background: #101010;
  border-radius: 24px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.2),
              0 12px 18px 0 rgba(0, 0, 0, 0.15);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.subpage-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, transparent 70%);
}

.subpage-cta h2 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: 0.52px;
  color: #ffffff;
  margin: 0 0 12px;
  position: relative;
}

.subpage-cta p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: #a0a0a0;
  margin: 0 0 28px;
  position: relative;
}

.subpage-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Section heading utility ──────────────────────────────── */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 12px;
}