/* FAQ page — sectioned by category. Accordion open/close.
   Each section has a left-rail title; questions on the right. */

.faq-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}

.faq-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  border-top: 1px solid var(--line-2);
  padding: 56px 0;
}
.faq-section:first-of-type { border-top: 0; padding-top: 32px; }

.faq-section-rail {
  position: sticky;
  top: 24px;
  align-self: start;
}
.faq-section-rail-num {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--terracotta); font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.faq-section-rail h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  font-variation-settings: "opsz" 144;
  color: var(--paper);
  text-wrap: balance;
}
.faq-section-rail h2 em {
  font-style: italic; color: var(--terracotta); font-weight: 300;
}
.faq-section-rail p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 32ch;
}

/* Question list */
.faq-list {
  display: flex; flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line-2);
}
.faq-item:first-child { border-top: 1px solid var(--line-2); }

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 16px; align-items: baseline;
  background: transparent;
  border: 0;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--terracotta); }
.faq-q-num {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--terracotta); font-weight: 600;
  align-self: center;
}
.faq-q-text em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}
.faq-q-icon {
  align-self: center;
  width: 20px; height: 20px;
  position: relative;
  color: var(--muted);
  transition: color 0.2s, transform 0.3s var(--ease-soft);
}
.faq-q-icon::before,
.faq-q-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-soft);
}
.faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[data-open="true"] .faq-q-icon { color: var(--terracotta); }
.faq-item[data-open="true"] .faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-soft), padding 0.3s var(--ease-soft);
}
.faq-item[data-open="true"] .faq-a {
  max-height: 600px;
  padding-bottom: 28px;
}
.faq-a-body {
  grid-column: 2 / 3;
  font-size: 16px; line-height: 1.7;
  color: var(--paper); opacity: 0.85;
  max-width: 64ch;
}
.faq-a-body p { margin: 0 0 14px; }
.faq-a-body p:last-child { margin-bottom: 0; }
.faq-a-body em {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
}
.faq-a-body strong { color: var(--paper); font-weight: 600; }

/* Section nav (top of page) */
.faq-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 32px;
}
.faq-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--paper);
  transition: all 0.15s;
}
.faq-nav a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.faq-nav a span:first-child { color: var(--terracotta); font-weight: 600; }

.faq-cta {
  margin-top: 64px;
  padding: 48px 56px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.faq-cta h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin: 0 0 8px;
  font-variation-settings: "opsz" 144;
}
.faq-cta h3 em {
  font-style: italic; color: var(--terracotta); font-weight: 300;
}
.faq-cta p {
  font-family: var(--display);
  font-style: italic; font-weight: 300;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}
.faq-cta a {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--terracotta); color: var(--paper);
  padding: 16px 26px;
  font-family: var(--display);
  font-size: 16px;
  border-radius: 4px;
  transition: gap 0.3s var(--ease-soft);
}
.faq-cta a:hover { gap: 18px; }

@media (max-width: 1100px) {
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
  .faq-section-rail { position: static; }
  .faq-cta { grid-template-columns: 1fr; padding: 32px 24px; }
}
