/* ============================================================
   additional_styles.css
   Supplemental styles for /faq/ and /project/ pages only
   Inherits the original StakeWise design system
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.sub-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sub-page-main {
  flex: 1;
  width: 100%;
}

/* ── Width container (mirrors original) ────────────────────── */
@media (min-width: 1000px) {
  .sub-width-container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 60px;
    padding-left: 60px;
  }
}

@media (min-width: 577px) and (max-width: 999px) {
  .sub-width-container {
    width: 100%;
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 576px) {
  .sub-width-container {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }
}

/* ── Section spacing ────────────────────────────────────────── */
.sub-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.sub-section + .sub-section {
  padding-top: 0;
}

@media (min-width: 1000px) {
  .sub-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ── Page hero / heading block ──────────────────────────────── */
.sub-page-hero {
  padding-top: 40px;
  padding-bottom: 32px;
}

@media (min-width: 1000px) {
  .sub-page-hero {
    padding-top: 56px;
    padding-bottom: 40px;
  }
}

.sub-page-hero__eyebrow {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender);
  margin-bottom: 12px;
}

.sub-page-hero__h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: var(--moon);
  margin-bottom: 16px;
  max-width: 760px;
}

@media (min-width: 1000px) {
  .sub-page-hero__h1 {
    font-size: 56px;
    line-height: 66px;
  }
}

@media (max-width: 576px) {
  .sub-page-hero__h1 {
    font-size: 32px;
    line-height: 40px;
  }
}

.sub-page-hero__lead {
  font-size: 16px;
  line-height: 26px;
  color: var(--stone);
  max-width: 640px;
}

@media (min-width: 1000px) {
  .sub-page-hero__lead {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ── Section headings ───────────────────────────────────────── */
.sub-section__h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  color: var(--moon);
  margin-bottom: 8px;
}

@media (min-width: 1000px) {
  .sub-section__h2 {
    font-size: 34px;
    line-height: 42px;
  }
}

.sub-section__subtitle {
  font-size: 14px;
  line-height: 22px;
  color: var(--stone);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ── Divider ────────────────────────────────────────────────── */
.sub-divider {
  height: 1px;
  background-color: rgba(var(--stone-rgb), 0.15);
  margin: 0;
  border: none;
}

/* ── Content prose ──────────────────────────────────────────── */
.sub-prose {
  font-size: 14px;
  line-height: 22px;
  color: var(--stone);
  max-width: 760px;
}

.sub-prose p {
  margin-bottom: 16px;
}

.sub-prose p:last-child {
  margin-bottom: 0;
}

.sub-prose a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.14s ease;
}

.sub-prose a:hover {
  color: var(--moon);
  text-decoration: underline;
}

.sub-prose strong {
  color: var(--moon);
  font-weight: 600;
}

/* ── FAQ grid ───────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .faq-grid {
    gap: 24px;
  }
}

/* ── FAQ item card ──────────────────────────────────────────── */
.faq-item {
  background-color: rgba(var(--moon-rgb), 0.03);
  border: 1px solid rgba(var(--stone-rgb), 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  background-color: rgba(var(--moon-rgb), 0.06);
  border-color: rgba(var(--stone-rgb), 0.28);
}

.faq-item__question {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--moon);
  margin-bottom: 12px;
}

@media (min-width: 1000px) {
  .faq-item__question {
    font-size: 16px;
    line-height: 24px;
  }
}

.faq-item__answer {
  font-size: 13px;
  line-height: 21px;
  color: var(--stone);
}

@media (min-width: 1000px) {
  .faq-item__answer {
    font-size: 14px;
    line-height: 22px;
  }
}

.faq-item__answer a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.14s ease;
}

.faq-item__answer a:hover {
  color: var(--moon);
  text-decoration: underline;
}

/* ── FAQ — single-column variant (for individual questions) ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.faq-list-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(var(--stone-rgb), 0.12);
}

.faq-list-item:first-child {
  border-top: 1px solid rgba(var(--stone-rgb), 0.12);
}

.faq-list-item__question {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--moon);
  margin-bottom: 10px;
}

@media (min-width: 1000px) {
  .faq-list-item__question {
    font-size: 16px;
    line-height: 24px;
  }
}

.faq-list-item__answer {
  font-size: 14px;
  line-height: 22px;
  color: var(--stone);
}

.faq-list-item__answer a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.14s ease;
}

.faq-list-item__answer a:hover {
  color: var(--moon);
  text-decoration: underline;
}

/* ── Project page — feature cards grid ─────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 100%;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
}

.feature-card {
  background-color: rgba(var(--moon-rgb), 0.03);
  border: 1px solid rgba(var(--stone-rgb), 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  background-color: rgba(var(--moon-rgb), 0.06);
  border-color: rgba(var(--lavender-rgb), 0.3);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(var(--lavender-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--moon);
  margin-bottom: 8px;
}

.feature-card__body {
  font-size: 13px;
  line-height: 21px;
  color: var(--stone);
}

/* ── Project page — stat row ────────────────────────────────── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(var(--stone-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--stone-rgb), 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.stat-item__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  color: var(--moon);
}

@media (min-width: 1000px) {
  .stat-item__value {
    font-size: 36px;
    line-height: 44px;
  }
}

.stat-item__label {
  font-size: 12px;
  line-height: 18px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Project page — section with side layout ────────────────── */
.sub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1000px) {
  .sub-split {
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
  }
}

.sub-split__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 12px;
}

.sub-split__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--moon);
  margin-bottom: 16px;
}

@media (min-width: 1000px) {
  .sub-split__heading {
    font-size: 30px;
    line-height: 40px;
  }
}

.sub-split__body {
  font-size: 14px;
  line-height: 22px;
  color: var(--stone);
}

.sub-split__body p + p {
  margin-top: 12px;
}

/* ── Inline nav breadcrumb ──────────────────────────────────── */
.sub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.sub-breadcrumb__link {
  font-size: 13px;
  line-height: 18px;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.14s ease;
}

.sub-breadcrumb__link:hover {
  color: var(--moon);
}

.sub-breadcrumb__sep {
  font-size: 13px;
  color: rgba(var(--stone-rgb), 0.4);
}

.sub-breadcrumb__current {
  font-size: 13px;
  line-height: 18px;
  color: var(--moon);
  font-weight: 500;
}

/* ── Back / CTA button ──────────────────────────────────────── */
.sub-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--moon);
  background-color: var(--snow);
  border: none;
  border-radius: 72px;
  padding: 0 24px;
  height: 44px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(39, 40, 42, 0.25),
    0 7px 15px 0 rgba(var(--coal-rgb), 0.12);
  backdrop-filter: blur(20px);
  transition: box-shadow 0.2s ease;
  white-space: nowrap;
}

.sub-back-btn:hover {
  box-shadow: inset 0 0 0 2px rgba(39, 40, 42, 0.25),
    0 3px 5px 0 rgba(var(--coal-rgb), 0.19);
  text-decoration: none;
  color: var(--moon);
}

.sub-back-btn--ghost {
  background-color: rgba(var(--snow-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--coal-rgb), 0.15),
    0 7px 15px 0 rgba(var(--coal-rgb), 0.12);
  backdrop-filter: blur(20px);
}

.sub-back-btn--ghost:hover {
  box-shadow: inset 0 0 0 2px rgba(var(--coal-rgb), 0.15),
    0 3px 5px 0 rgba(var(--coal-rgb), 0.19);
}

/* ── Bottom CTA / button row ─────────────────────────────────── */
.sub-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ── Inline link (body text) ─────────────────────────────────── */
.sub-link {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.14s ease;
}

.sub-link:hover {
  color: var(--moon);
  text-decoration: underline;
}

/* ── Tag / badge chip ────────────────────────────────────────── */
.sub-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 72px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background-color: rgba(var(--lavender-rgb), 0.12);
  color: var(--lavender);
}

/* ── Highlighted note box ────────────────────────────────────── */
.sub-note {
  background-color: rgba(var(--lavender-rgb), 0.08);
  border: 1px solid rgba(var(--lavender-rgb), 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 21px;
  color: var(--stone);
}

.sub-note strong {
  color: var(--moon);
  font-weight: 600;
}

/* ── Ordered step list ───────────────────────────────────────── */
.sub-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: sub-step;
}

.sub-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  counter-increment: sub-step;
}

.sub-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(var(--lavender-rgb), 0.12);
  color: var(--lavender);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-step__content {
  flex: 1;
  padding-top: 4px;
}

.sub-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--moon);
  margin-bottom: 4px;
  line-height: 20px;
}

.sub-step__body {
  font-size: 13px;
  line-height: 21px;
  color: var(--stone);
}

/* ── Footer accent line (mirrors original border-top) ────────── */
.sub-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(var(--stone-rgb), 0.2);
}

.sub-footer-copy {
  font-size: 12px;
  line-height: 18px;
  color: var(--stone);
  text-transform: uppercase;
  margin-left: auto;
}

/* ── Utility: visually hidden text ───────────────────────────── */
.sub-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Prevent horizontal overflow on sub-pages ────────────────── */
.sub-page-wrapper,
.sub-page-main,
.sub-width-container,
.faq-grid,
.feature-grid,
.stat-row,
.sub-split {
  max-width: 100%;
  box-sizing: border-box;
}