/* ============================================================
   FAQCSS.css
   FAQ section: large headline, stacked question cards on the
   left, sticky phone chat mockup on the right.
   Last two FAQ cards sit side-by-side in a pair row.
   ============================================================ */

/* ── HEADLINE — larger than standard section-title ── */
.faq-headline {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 48px;    /* 8×6 */
}

/* ── TWO-COLUMN LAYOUT ── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;              /* 8×6 */
  align-items: start;
}

/* ── FAQ CARDS COLUMN ── */
.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;              /* 8×2 */
}

/* Individual card */
.faq-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;          /* 8×3 */
  display: flex;
  flex-direction: column;
  gap: 8px;               /* 8×1 */
}

/* Question row: text + icon */
.faq-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;              /* 8×2 */
}

.faq-card-top strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

/* Icon circle */
.faq-icon {
  width: 40px;            /* 8×5 */
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Last two cards sit side by side */
.faq-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;              /* 8×2 */
}

/* ── PHONE MOCKUP COLUMN ── */
.faq-phone {
  position: sticky;
  top: 80px;              /* clears the sticky nav */
}

.phone-shell {
  background: #1e2a5e;
  border-radius: 32px;    /* pill-ish corners matching screenshot */
  padding: 16px;          /* 8×2 */
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 560px;
  overflow: hidden;
}

/* Top bar pill */
.phone-bar {
  width: 48px;            /* 8×6 */
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 16px;   /* 8×2 */
}

/* Scrollable chat area */
.chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;               /* 8×1 */
  overflow-y: auto;
  padding-right: 4px;
}

.chat-scroll::-webkit-scrollbar { width: 0; }

/* Chat bubbles */
.bubble {
  font-size: 12px;
  line-height: 1.5;
  border-radius: 16px;
  padding: 10px 14px;     /* close to 8×grid */
  max-width: 88%;
}

/* Agent bubble — dark background */
.bubble.agent {
  background: #2d3a6e;
  color: rgba(255,255,255,0.88);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* User bubble — lighter, right-aligned */
.bubble.user {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  text-align: right;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-phone {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .faq-pair { grid-template-columns: 1fr; }
}