/* FAQ — editorial dark, aligned with landing palette */

:root {
  --ink: #0d0d0d;
  --surface: #121110;
  --surface-raised: #181614;
  --border: #2a2520;
  --border-soft: #1e1b17;
  --cream: #f5ecd7;
  --cream-dim: #b8a88a;
  --cream-muted: #8a7d68;
  --gold: #c9a84c;
  --gold-dim: #8a6f30;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(201, 168, 76, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 168, 76, 0.04), transparent 50%);
  color: var(--cream);
  font-family: "DM Mono", monospace;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.75;
  min-height: 100vh;
  padding: 72px 24px 0;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  animation: faq-in 0.55s ease both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a.back {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}

a.back:hover {
  color: var(--cream);
}

/* ── Markdown content ── */

.faq-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 300;
  color: #faf6ee;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.faq-content > p:first-of-type {
  font-size: 1rem;
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
  max-width: 42ch;
  line-height: 1.7;
}

.faq-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  margin: 2.75rem 0 0.875rem;
  padding: 1.25rem 0 0 1rem;
  border-top: 1px solid var(--border-soft);
  border-left: 2px solid var(--gold);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.faq-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.faq-content p {
  margin-bottom: 1rem;
  color: var(--cream-dim);
}

.faq-content ul,
.faq-content ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--cream-dim);
}

.faq-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.faq-content ol li::marker {
  color: var(--gold);
  font-weight: 400;
}

.faq-content strong {
  color: var(--cream);
  font-weight: 400;
}

.faq-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-content a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream-dim);
}

.faq-content hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 2.5rem 0;
}

/* ── Tables ── */

.faq-table-wrap {
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: var(--surface);
}

.faq-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
  table-layout: fixed;
  margin: 0;
  border: none;
  background: transparent;
}

.faq-content thead {
  background: var(--surface-raised);
}

.faq-content th,
.faq-content td {
  text-align: left;
  padding: 0.875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.faq-content tr:last-child td {
  border-bottom: none;
}

.faq-content th {
  color: var(--cream-dim);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.faq-content td {
  color: var(--cream);
}

/* ── 2-column tables (Token tiers) ── */

.faq-content table:not(:has(th:nth-child(3))) th:first-child,
.faq-content table:not(:has(th:nth-child(3))) td:first-child {
  width: 34%;
  padding-right: 1.25rem;
}

.faq-content table:not(:has(th:nth-child(3))) th:nth-child(2),
.faq-content table:not(:has(th:nth-child(3))) td:nth-child(2) {
  width: 66%;
  text-align: left;
  color: var(--cream);
  line-height: 1.6;
}

/* ── 3-column tables (costs) ── */

.faq-content table:has(th:nth-child(3)) th:first-child,
.faq-content table:has(th:nth-child(3)) td:first-child {
  width: 30%;
  padding-right: 1rem;
}

.faq-content table:has(th:nth-child(3)) th:nth-child(2),
.faq-content table:has(th:nth-child(3)) td:nth-child(2) {
  width: 24%;
  text-align: right;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  padding-left: 0.5rem;
  padding-right: 1rem;
}

.faq-content table:has(th:nth-child(3)) th:nth-child(3),
.faq-content table:has(th:nth-child(3)) td:nth-child(3) {
  width: 46%;
  color: var(--cream-dim);
  line-height: 1.6;
  padding-left: 0;
}

.faq-content td:nth-child(3) strong {
  color: var(--cream);
}

/* ── Footer CTA ── */

.faq-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-cta a {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-cta a:hover {
  color: var(--cream);
}

@media (max-width: 540px) {
  body {
    padding: 56px 18px 80px;
  }

  .faq-table-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .faq-content table {
    font-size: 0.8125rem;
    min-width: 22rem;
  }

  .faq-content table:has(th:nth-child(3)) {
    min-width: 26rem;
  }

  .faq-content th,
  .faq-content td {
    padding: 0.75rem 0.625rem;
  }
}
