/* GRACE brand typography — Inter (entire UI) + Playfair Display (display headlines) */

:root {
  --font-ui: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ── App-wide: Inter by default ── */
html,
body,
.device-wrap,
.phone-screen {
  font-family: var(--font-ui);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.device-wrap *,
.phone-screen * {
  font-family: inherit;
}

.device-wrap button,
.device-wrap input,
.device-wrap textarea,
.device-wrap select,
.phone-screen button,
.phone-screen input,
.phone-screen textarea,
.phone-screen select {
  font-family: var(--font-ui);
}

/* ── Display serif (FAQ hero + optional .display-serif) ── */
.type-serif,
.display-serif,
.faq-title,
h2.faq-title {
  font-family: var(--font-display) !important;
  font-weight: 700;
}

/* ── Navigation & chrome ── */
.nav-title,
.nav-back,
.nav-action,
.sb-time,
.tab-lbl,
.tab.active .tab-lbl,
.nav-large-title h1 {
  font-family: var(--font-ui);
}

/* ── Home ── */
.home-greeting,
.hero-date,
.hero-greeting,
.hero-tier,
.hero-stat-val,
.hero-stat-key,
.hero-live-txt,
.home-kpi-val,
.home-kpi-key,
.home-mod-title,
.home-mod-link,
.home-pillar-name,
.home-pillar-sub,
.home-watch-title,
.home-watch-sub,
.home-watch-live-pill,
.home-watch-viewers,
.home-watch-btn,
.home-stat-val,
.home-stat-key,
.home-event-date-day,
.home-event-date-mon,
.home-impact-row,
.daily-time,
.daily-title,
.daily-status,
.sect-hdr,
.ios-section-header,
.ios-section-footer,
.ios-card-title,
.ios-card-link {
  font-family: var(--font-ui);
}

/* ── Home screen ── */
#screen-home,
#screen-home * {
  font-family: inherit;
}

#screen-home {
  font-family: var(--font-ui);
}

#screen-home .home-date-line {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--ios-tertiary);
}

#screen-home .home-greeting {
  font-family: var(--font-display) !important;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ios-label);
  margin-top: 4px;
}

#screen-home .hero-date,
#screen-home .home-kpi-val,
#screen-home .home-kpi-key,
#screen-home .home-watch-live-pill,
#screen-home .home-watch-title,
#screen-home .home-watch-sub,
#screen-home .home-watch-btn,
#screen-home .daily-time,
#screen-home .daily-action,
#screen-home .daily-status,
#screen-home .ai-card-name,
#screen-home .ai-card-role,
#screen-home .ai-card-greeting,
#screen-home .ai-card-btn,
#screen-home .home-qcmd,
#screen-home .home-mod-title,
#screen-home .home-mod-link,
#screen-home .home-mod-sub,
#screen-home .home-pillar-name,
#screen-home .home-pillar-sub,
#screen-home .home-pillar-badge,
#screen-home .home-pillar-letter,
#screen-home .home-flip-hint,
#screen-home .home-wallet-label,
#screen-home .home-wallet-total,
#screen-home .home-wallet-delta,
#screen-home .home-card-label,
#screen-home .home-card-num,
#screen-home .home-card-name,
#screen-home .home-card-exp,
#screen-home .home-card-foot,
#screen-home .wact-lbl,
#screen-home .home-impact-row,
#screen-home .home-ticker-item,
#screen-home .home-stat-lbl,
#screen-home .home-stat-val,
#screen-home .home-stat-sub,
#screen-home .home-section-label,
#screen-home .home-outreach-title,
#screen-home .home-outreach-sub,
#screen-home .assigned-name,
#screen-home .assigned-role,
#screen-home .assigned-msg,
#screen-home .assigned-btn,
#screen-home .home-leader-chip-name,
#screen-home .home-feed-item,
#screen-home .home-event-row,
#screen-home .care-name,
#screen-home .care-desc,
#screen-home .home-care-btn,
#screen-home .home-badge-active,
#screen-home .home-listening {
  font-family: var(--font-ui);
}

#screen-home .sect-hdr {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--ios-label);
}

#screen-home .sect-hdr.sm {
  font-size: 18px;
  padding: 16px 16px 6px;
}

#screen-home .home-wallet-total {
  font-size: 28px;
  font-weight: 700;
  color: var(--ios-label);
  line-height: 1.15;
}

#screen-home .home-wallet-total .home-wallet-cents {
  font-size: 16px;
  font-weight: 700;
}

#screen-home .home-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ios-tertiary);
  padding: 0 16px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#screen-home .home-mod-sub {
  font-size: 11px;
  color: var(--ios-tertiary);
}

#screen-home .home-badge-active {
  font-size: 10px;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 8px;
}

#screen-home .home-card-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 4px;
}

#screen-home .home-card-num {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

#screen-home .home-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

#screen-home .home-card-exp {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

#screen-home .home-card-foot {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  line-height: 1.4;
}

#screen-home .home-wallet-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ios-label);
}

#screen-home .home-wallet-delta {
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
  margin-top: 4px;
}

#screen-home .home-listening {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

#screen-home .home-outreach-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

#screen-home .home-outreach-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

#screen-home .home-care-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
}

/* ── Leadership / AI ── */
#mob-leader-name,
#mob-leader-role,
.ld-tab,
.chat-bubble,
.chat-prompt,
.chat-input,
.ai-card-name,
.ai-card-greeting,
.ai-card-role,
.leader-name,
.leader-role,
.leader-topic,
.lg-name,
.lg-topic,
.lg-profile-btn,
.lg-switch {
  font-family: var(--font-ui);
}

/* ── Give / wallet ── */
.give-btn,
.give-amt,
.give-toggle-label,
.give-hero-stat strong,
.give-hero-stat span,
.grace-card-logo,
.grace-card-num,
.wact-lbl,
.mob-cause-title,
.mob-cause-meter-pct,
.mob-cause-btn-give,
.mob-cause-btn-route,
.give-fund-chip,
.stat-val,
.stat-key {
  font-family: var(--font-ui);
}

/* ── Community ── */
.comm-events-hero-title,
.comm-events-hero-sub,
.comm-featured-name,
.comm-featured-meta,
.mob-event-name,
.mob-event-time,
.mob-event-rsvp,
.post-author,
.post-body,
.post-action,
.care-name,
.care-desc {
  font-family: var(--font-ui);
}

/* ── Profile / growth ── */
.profile-name,
.profile-church,
.profile-tier-badge,
.prof-mini-hero h3,
.prof-mini-hero p,
.prof-stat-box .ps-val,
.prof-stat-box .ps-key,
.prof-spirit-card,
.prof-j-hist-text,
.prof-ring-pct,
.mood-chip,
.assigned-name,
.assigned-role,
.assigned-msg,
.goal-idea {
  font-family: var(--font-ui);
}

/* ── FAQ block ── */
.faq-block {
  margin: 12px 16px 24px;
}
.faq-hero {
  padding: 4px 0 18px;
  text-align: center;
}
.faq-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ic-tile-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.faq-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.faq-title {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}
.faq-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #717171;
  line-height: 1.5;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-card.open {
  border-color: var(--brand-gold);
  box-shadow: 0 2px 12px rgba(201, 151, 58, 0.12);
}
.faq-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  cursor: pointer;
}
.faq-card-q {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  padding-right: 4px;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5ead6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-card.open .faq-toggle {
  background: var(--brand-navy);
}
.faq-answer {
  display: none;
  padding: 0 16px 16px 68px;
  font-size: 14px;
  font-weight: 400;
  color: #8e8e93;
  line-height: 1.65;
}
.faq-card.open .faq-answer {
  display: block;
}

/* Phone mockup FAQ sizing */
.phone-screen .faq-block {
  margin: 0 16px 20px;
}
.phone-screen .faq-title {
  font-size: 24px;
}
.phone-screen .faq-subtitle {
  font-size: 12px;
}
.phone-screen .faq-card-q {
  font-size: 13px;
}
.phone-screen .faq-answer {
  font-size: 12px;
  padding: 0 14px 14px 58px;
}

/* ── Verified Leaders FAQ modal / sheet ── */
.vl-faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vl-faq-overlay.open {
  display: flex;
}
.vl-faq-overlay--sheet {
  align-items: flex-end;
  padding: 0;
}
.vl-faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vl-faq-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.vl-faq-modal--sheet {
  max-width: 100%;
  border-radius: 24px 24px 0 0;
  max-height: min(92vh, 780px);
  animation: vlFaqSlideUp 0.28s ease;
}
@keyframes vlFaqSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.vl-faq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f0eb;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  line-height: 1;
}
.vl-faq-close:hover {
  background: #e8e0d5;
}
.vl-faq-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 20px 20px 24px;
  -webkit-overflow-scrolling: touch;
}
.vl-faq-hero {
  padding-top: 8px;
}
.vl-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.vl-trust-pillar {
  background: #f7f5f2;
  border: 1px solid #ece8e1;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.vl-trust-pillar-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.vl-trust-pillar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-navy, #1a1a1a);
  margin-bottom: 4px;
  line-height: 1.3;
}
.vl-trust-pillar-text {
  font-size: 10px;
  color: #717171;
  line-height: 1.45;
}
.lg-learn-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-accent, #EE2B37);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
}
.lg-learn-link:hover {
  text-decoration: underline;
}
.leader-kpi-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.leader-kpi-chip {
  flex: 1;
  min-width: 90px;
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}
.leader-kpi-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.leader-kpi-chip span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ai-main-extras--slim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}
.ai-main-extras--slim .bible-card {
  padding: 14px;
}
.ai-main-extras--slim .bc-verse {
  font-size: 12px;
  margin-bottom: 2px;
}
.ai-main-extras--slim .bc-ref {
  margin-bottom: 10px;
}
.ai-main-extras--slim .bc-topics {
  margin-bottom: 10px;
}
.ai-main-extras--slim .pulse-card {
  padding: 12px 14px;
}
.ai-main-extras--slim .pulse-score {
  font-size: 18px;
}
@media (max-width: 900px) {
  .vl-trust-grid {
    grid-template-columns: 1fr;
  }
  .ai-main-extras--slim {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .vl-faq-overlay:not(.vl-faq-overlay--sheet) {
    align-items: flex-end;
    padding: 0;
  }
  .vl-faq-overlay:not(.vl-faq-overlay--sheet) .vl-faq-modal {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
  }
}
