/* ==========================================================================
   VADR landing · section 05 "FAQ"
   1. Section + shared bits   2. Accordion   3. Phones
   Reuses the tokens from css/how.css
   ========================================================================== */

/* 1. Section + shared bits --------------------------------------------------- */
.faq { position: relative; padding: 0 var(--gutter) clamp(140px, 18vh, 220px); background: var(--ink); }
.faq__wrap {
  display: grid; max-width: 1280px; margin: 0 auto;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start;
  grid-template-areas: "intro list";
}
.faq__intro { grid-area: intro; }
.faq__list { grid-area: list; }

.faq h2 {
  max-width: 10ch;
  font-size: clamp(36px, 4.6vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -.04em;
}
.faq h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #FFE1B0 0%, var(--amber-1) 40%, var(--amber-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.faq__more { margin-top: 24px; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); }
.faq__more a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.faq__more a:hover { text-decoration-color: var(--amber-1); }

/* everything rises in once the section scrolls into view */
.faq__intro, .faq__list {
  opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.faq.is-in .faq__intro, .faq.is-in .faq__list { opacity: 1; transform: none; }
.faq.is-in .faq__list { transition-delay: .15s; }

/* 2. Accordion: numbered rows with + that turns into × ------------------------ */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item h3 { font: inherit; }
.faq__q {
  display: flex; align-items: center; gap: 20px; width: 100%; padding: 26px 0; text-align: left;
  font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; letter-spacing: -.01em; color: #fff;
}
.faq__n { flex: none; width: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .3s; }
.faq__t { flex: 1; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px;
  background: var(--muted); border-radius: 2px; transition: background .3s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon::before, .faq__q:hover .faq__icon::after { background: #fff; }
.faq__q:focus-visible { outline: 2px solid var(--amber-1); outline-offset: 4px; border-radius: 4px; }
.faq__item.is-open .faq__n { color: var(--amber-1); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--amber-1); }

/* smooth open: the row grows from 0fr to 1fr */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 28px; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* 3. Phones --------------------------------------------- */
@media (max-width: 900px) {
  .faq__wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "list"; gap: 40px; }
  .faq__q { gap: 14px; padding: 22px 0; }
  .faq__n { width: 22px; }
  .faq__a p { padding: 0 0 24px 36px; }
}
