/* ============================================================
   People's Perception — GEO Shared Components
   Created: 2026-05-31
   Used by: every public marketing page (index, dashboard-tour,
   reputation-reports, search-people, search-places, pricing,
   community-groups, about, how-it-works + 5 subpages)

   Three reusable building blocks:
   1. .pp-principle      — defining-principle interstitial (LLM-extractable)
   2. .pp-compare-table  — competitor comparison table
   3. .pp-faq-item       — accordion FAQ entry

   Plus generic .pp-section / .pp-kicker / .pp-heading utilities
   so non-index pages can match the visual language.
   ============================================================ */

/* ---------- Generic section utilities ---------- */
.pp-section { padding: 80px 20px; }
.pp-section-white { background: #ffffff; }
.pp-section-gray  { background: #f8fafc; }
.pp-wrapper { max-width: 1000px; margin: 0 auto; }
.pp-kicker {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.pp-heading {
  text-align: center;
  margin: 0 0 24px 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ---------- 1. Defining Principle ---------- */
.pp-principle {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 56px 20px;
  text-align: center;
}
.pp-principle-inner { max-width: 900px; margin: 0 auto; }
.pp-principle-quote-mark {
  font-size: 4rem;
  line-height: 0.6;
  color: #f59e0b;
  opacity: 0.6;
  margin-bottom: 10px;
  font-family: Georgia, serif;
}
.pp-principle-text {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #f8fafc;
}
.pp-principle-text strong { color: #f59e0b; font-weight: 700; }
.pp-principle-sub { color: #94a3b8; font-size: 0.95rem; margin: 0; }

/* ---------- 2. Comparison Table ---------- */
.pp-compare-sub {
  text-align: center;
  color: #64748b;
  max-width: 720px;
  margin: -16px auto 32px;
  line-height: 1.6;
}
.pp-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pp-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  min-width: 720px;
}
.pp-compare-table th,
.pp-compare-table td {
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.pp-compare-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.pp-compare-table thead th.us { background: #3a66b3; color: white; }
.pp-compare-table tbody tr:last-child td { border-bottom: none; }
.pp-compare-table tbody td.us {
  background: rgba(58,102,179,0.07);
  color: #0f172a;
  font-weight: 600;
}
.pp-compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
}
.pp-compare-check { color: #16a34a; font-weight: 700; }
.pp-compare-x { color: #94a3b8; font-weight: 400; }

/* ---------- 3. FAQ Accordion ---------- */
.pp-faq { max-width: 820px; margin: 0 auto; }
.pp-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pp-faq-item[open] {
  background: white;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.pp-faq-item summary {
  padding: 18px 56px 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  line-height: 1.4;
}
.pp-faq-item summary::-webkit-details-marker { display: none; }
.pp-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: #3a66b3;
  transition: transform 0.25s;
  font-weight: 300;
  line-height: 1;
}
.pp-faq-item[open] summary::after { content: '\2013'; }
.pp-faq-item p {
  padding: 0 22px 18px;
  color: #475569;
  line-height: 1.7;
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- 4. Related-pages internal-link block ---------- */
.pp-related {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  padding: 60px 20px;
  border-top: 1px solid #e5e7eb;
}
.pp-related-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pp-related-card {
  display: block;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.pp-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(58,102,179,0.10);
  border-color: #3a66b3;
}
.pp-related-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #3a66b3;
  margin-bottom: 8px;
}
.pp-related-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.pp-related-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}
.pp-related-arrow {
  display: inline-block;
  margin-top: 10px;
  color: #3a66b3;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .pp-section { padding: 48px 16px; }
  .pp-heading { font-size: 1.6rem; }
  .pp-principle { padding: 40px 16px; }
  .pp-principle-text { font-size: 1.1rem; }
  .pp-compare-table { min-width: 640px; }
  .pp-faq-item summary { font-size: 0.95rem; padding-right: 50px; }
}
