/* ============================================================
 * Kelid Tehran 70.0.0 — s70-faq.css
 * FAQ elevation: numbered questions, open-state gold hairline,
 * cinematic CTA card with a static gold frame ring. Enqueued AFTER
 * corp-sections-b.css; matching selectors win ties.
 * Mobile-first, 390px master. Signature motion: hairline sweep
 * on open (transform/opacity only, <600ms); the old 2.4s infinite
 * ring breath was removed in loop7 (motion-budget violation).
 * main.js hooks (.faq-item/.faq-item__q/.faq-item__a/.active)
 * untouched.
 * ============================================================ */

/* ---------- layout: same grid, breathe a touch more ---------- */
.cb2-faq .cb2-faq__layout{min-width:0}
.cb2-faq .sec-title{text-wrap:balance;line-height:1.35}

/* ---------- items: hairline that lights up on open ---------- */
.cb2-faq .cb2-faq__item{
  position:relative;
  transition:border-color 220ms var(--cb2-ease),background-color 220ms var(--cb2-ease);
}
.cb2-faq .cb2-faq__item::before{
  content:"";position:absolute;inset:0 0 auto 0;height:2px;
  background:linear-gradient(90deg,transparent 2%,rgba(217,169,63,.6) 50%,transparent 98%);
  opacity:0;transform:scaleX(.7);transform-origin:center;pointer-events:none;
  transition:opacity 240ms var(--cb2-ease),transform 340ms cubic-bezier(.23,1,.32,1);
}
/* 70.0.0 loop7 (minimalist M-FAQ-1): open state had three signals at once —
   gold border + bg wash + the sweeping top hairline. The wash (.03, nearly
   invisible) is the stacked one: removed. Hairline sweep + border carry it. */
.cb2-faq .cb2-faq__item.active{border-color:var(--cb2-gold-line)}
.cb2-faq .cb2-faq__item.active::before{opacity:1;transform:scaleX(1)}

/* ---------- question row: numbered, press-aware ---------- */
.cb2-faq .cb2-faq__q{
  user-select:none;-webkit-user-select:none;
  transition:background-color 180ms var(--cb2-ease);
}
.cb2-faq .cb2-faq__q:active{transform:scale(.995);transition:transform 120ms ease-out,background-color 180ms var(--cb2-ease)}
.cb2-faq .cb2-faq__q:focus-visible{outline:2px solid var(--cb2-gold-ink);outline-offset:2px;border-radius:12px}
.cb2-faq .cb2-faq__q::before{
  content:attr(data-n);
  flex:0 0 auto;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
  /* 70.0.0 loop7 (minimalist M-FAQ-2): chip chrome flattened — the numeral's
     border + gold-ink color change on open carry the state; the bg fills
     (.04 / gold-soft .12) were stacked. Contrast recomputed 2026-09-30:
     #8F8B7D on #0B0C10 = 5.73:1 (UI ≥3:1), active #F5D67B = 13.76:1. */
  /* 71.3.58 (DOM diet 3a): decorative .cb2-faq__num span removed (-8 nodes);
     numeral now renders via ::before from data-n (Persian digits, aria-hidden by nature). */
  border:1px solid rgba(255,255,255,.07);
  color:var(--cb2-faint);font-size:12px;font-weight:800;line-height:1;
  font-variant-numeric:tabular-nums;
  transition:border-color 220ms var(--cb2-ease),color 220ms var(--cb2-ease);
}
.cb2-faq .cb2-faq__item.active .cb2-faq__q::before{
  border-color:var(--cb2-gold-line);color:var(--cb2-gold-ink);
}
.cb2-faq .cb2-faq__q-text{flex:1 1 auto;text-wrap:balance}

/* ---------- answer: softer, aligned under the question text ---------- */
.cb2-faq .cb2-faq__a-inner > p{font-size:15px;line-height:2;padding-inline-start:60px}

/* ---------- "all questions" quiet link: real 44px target ---------- */
.cb2-faq .cb2-faq__all .cb2-quiet-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:6px 16px;border-radius:999px;font-size:14px;line-height:1.9;
  text-underline-offset:4px;color:var(--cb2-muted);
  transition:color 180ms var(--cb2-ease),background-color 180ms var(--cb2-ease);
}

/* ---------- CTA card: cinematic, sticky on desktop ---------- */
.cb2-faq .cb2-faq__cta{overflow:hidden;isolation:isolate}
/* 70.0.0 loop6 (dark-mode canon: one light source per page) — deleted the
   per-card radial glow ::before (gold noise; the card keeps its gold icon
   chip + hairline + the breathing ring on the call button). */
.cb2-faq .cb2-faq__cta > *{position:relative;z-index:1}
.cb2-faq .cb2-faq__cta-title{text-wrap:balance}
.cb2-faq .cb2-faq__cta-desc{font-size:15px;max-width:30ch;text-wrap:balance}
.cb2-faq .cb2-faq__cta-call,
.cb2-faq .cb2-faq__cta-wa{
  user-select:none;-webkit-user-select:none;
}
.cb2-faq .cb2-faq__cta-call{position:relative;isolation:isolate;transition:transform 160ms var(--cb2-ease)}
.cb2-faq .cb2-faq__cta-call:active{transform:scale(.97)}
/* 70.0.0 loop7 (critique C-FAQ-3): the 2.4s INFINITE breathing ring broke the
   hard motion budget (transform/opacity, <600ms) and was perpetual gold
   noise on a secondary CTA — the same infinite-glow pattern loop-3 killed
   in contact. Replaced with a static gold hairline frame: the "cinematic"
   double-border language survives, the motion doesn't. */
.cb2-faq .cb2-faq__ring{
  position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;
  border:1px solid rgba(217,169,63,.4);opacity:.55;transform:scale(1);
}
.cb2-faq .cb2-faq__cta-wa{transition:transform 160ms var(--cb2-ease),background-color 180ms var(--cb2-ease)}
.cb2-faq .cb2-faq__cta-wa:active{transform:scale(.97)}
/* 70.0.0 loop 18: ghost-on-dark — the WA ghost CTA inherits near-black --ink,
   unreadable on the dark FAQ surface once the stale white wash was removed
   (was 1.08:1). Light text, same convention as the pricing calc fix. */
.cb2-faq .cb2-faq__cta-wa{color:#fff}

/* ---------- focus: gold rings (global navy outline is near-invisible on dark) ---------- */
.cb2-faq .cb2-faq__cta-call:focus-visible,
.cb2-faq .cb2-faq__cta-wa:focus-visible,
.cb2-faq .cb2-faq__all .cb2-quiet-link:focus-visible{
  outline:2px solid var(--cb2-gold-ink);outline-offset:3px;border-radius:12px;
}

/* ---------- fine-pointer-only hover ---------- */
@media (hover:hover) and (pointer:fine){
  .cb2-faq .cb2-faq__q:hover{background:rgba(255,255,255,.03)}
  .cb2-faq .cb2-faq__q:hover::before{border-color:rgba(217,169,63,.3)}
  .cb2-faq .cb2-faq__all .cb2-quiet-link:hover{color:var(--cb2-ink);background:rgba(255,255,255,.05)}
  .cb2-faq .cb2-faq__cta-wa:hover{background:rgba(255,255,255,.06)}
}

/* ---------- desktop: side rail ---------- */
@media (min-width:1024px){
  .cb2-faq .cb2-faq__cta{padding:28px 22px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .cb2-faq .cb2-faq__item,.cb2-faq .cb2-faq__item::before,
  .cb2-faq .cb2-faq__q,.cb2-faq .cb2-faq__q::before,.cb2-faq .cb2-faq__a,
  .cb2-faq .cb2-faq__cta-call,.cb2-faq .cb2-faq__cta-wa{transition:none}
  .cb2-faq .cb2-faq__q:active{transform:none;transition:none}
  .cb2-faq .cb2-faq__cta-call:active,.cb2-faq .cb2-faq__cta-wa:active{transform:none} /* 70.0.0 loop5: press-scale neutralized */
  /* 70.0.0 loop7: ring is static now — nothing to neutralize under reduced motion. */
}
