/* ============================================================================
   Eyas — 07 · FAQ (Fair questions)
   Quiet objection handling before the waitlist: native <details>, no JS,
   editorial two-column on desktop (sticky header left, questions right).
   Near-monochrome + steel. All custom classes prefixed .faq-.
   ========================================================================== */

.faq {
  position: relative;
  background: var(--bg-base);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.faq-head .eyebrow { margin-bottom: var(--sp-4); }
.faq-title {
  color: var(--text-hi);
  text-wrap: balance;
}
.faq-sub {
  margin-top: var(--sp-4);
  max-width: 38ch;
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ── Chart-im-Frost-Motiv: sichtbar, gerahmt, mit Bezug ────────────────────── */
/* Erst ab Desktop: auf Mobile soll zwischen Frage-Headline und Antworten kein
   Bild stehen. */
.faq-figure { display: none; }

@media (min-width: 1024px) {
  .faq-figure {
    display: block;
    margin-top: clamp(2.5rem, 5vh, 4rem);
    max-width: 420px;
  }
  .faq-figure__img {
    width: 100%;
    height: auto;
    border-radius: var(--r-xl);
    border: 1px solid var(--glass-border);
    box-shadow:
      0 22px 60px -20px rgba(0, 0, 0, 0.6),
      0 0 44px -14px var(--glow-steel);
    /* leichte Abdunklung unten, damit das Bild im dunklen Layout sitzt */
    -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,0.88) 100%);
            mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,0.88) 100%);
  }
  .faq-figure__cap {
    margin-top: var(--sp-3);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-snug);
    color: var(--text-faint);
  }
}

/* ── Question list ──────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--glass-border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--glass-border);
}

/* Summary row: full-width hit area, question + plus icon */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: clamp(1.1rem, 2.4vh, 1.5rem);
  cursor: pointer;
  list-style: none;            /* kill the default marker */
  min-height: 44px;            /* touch target */
  transition: color var(--dur-base) var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }

.faq-q__text {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-mid);
  letter-spacing: var(--tracking-snug);
  transition: color var(--dur-base) var(--ease);
}
.faq-item[open] .faq-q__text,
.faq-q:hover .faq-q__text { color: var(--text-hi); }

/* Plus icon: vertical bar fades out when open (plus -> minus), gentle turn */
.faq-q__ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-lo);
  transition:
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    transform var(--dur-slow) var(--ease);
}
.faq-q__ico svg .faq-q__v {
  transform-origin: 12px 12px;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-slow) var(--ease);
}
.faq-item[open] .faq-q__ico {
  color: var(--accent);
  border-color: rgba(226, 238, 250, 0.34);
  transform: rotate(180deg);
}
.faq-item[open] .faq-q__ico svg .faq-q__v {
  opacity: 0;
  transform: rotate(90deg);
}
.faq-q:hover .faq-q__ico { color: var(--accent); }

/* Focus state: visible, on brand */
.faq-q:focus-visible {
  outline: none;
}
.faq-q:focus-visible .faq-q__ico {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(175, 200, 228, 0.25);
}

/* Answer body */
.faq-a {
  padding-bottom: clamp(1.25rem, 2.6vh, 1.75rem);
  max-width: 58ch;
}
.faq-a p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-mid);
}

/* Soft open animation (height animates naturally via content; we fade) */
.faq-item[open] .faq-a {
  animation: faq-in var(--dur-slow) var(--ease) both;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Desktop: sticky header left, list right ────────────────────────────── */
@media (min-width: 1024px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(4rem, 7vw, 8rem);
    align-items: start;
  }
  .faq-head {
    position: sticky;
    top: clamp(6rem, 16vh, 9rem);
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-q__ico,
  .faq-q__ico svg .faq-q__v { transition: none; }
}
