/* IPS Buyer's Agents — FAQ page styles
   Palette and type mirror the live site: navy #09193b, cyan #35daf9, Sora + Inter. */

:root {
  --navy: #09193b;
  --navy-deep: #050f26;
  --navy-mid: #0c214c;
  --cyan: #35daf9;
  --cyan-dark: #0797b9;
  --ink: #0c214c;
  --body: #35405c;
  --muted: #6a7898;
  --line: #e2e8f2;
  --wash: #f5f8fc;
  --paper: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(12, 33, 76, 0.05);
  --shadow-md: 0 18px 44px rgba(9, 25, 59, 0.12);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Headings inside the page only — never the site header or footer. */
main h1,
main h2,
main h3 {
  font-family: 'Sora', 'Inter', sans-serif;
}

.faq-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: #b9c4d8;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--cyan-dark); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(53, 218, 249, 0.22), transparent 65%),
    radial-gradient(700px 400px at 6% 110%, rgba(53, 218, 249, 0.1), transparent 70%),
    linear-gradient(160deg, #0b1f47 0%, #09193b 45%, #061229 100%);
  color: #fff;
  padding: 72px 0 118px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.hero h1 {
  max-width: 19ch;
  margin: 0 0 22px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 62ch;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.hero-byline {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.hero-byline a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-byline a:hover { color: var(--cyan); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-solid {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(53, 218, 249, 0.28);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(53, 218, 249, 0.38);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}
.hero-stats span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- quick answer ---------- */
.quick-answer-band {
  background: var(--paper);
  padding-bottom: 8px;
}
.quick-answer {
  position: relative;
  margin-top: -72px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 34px 38px 30px;
}
.qa-label {
  margin: 0 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}
.quick-answer h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
}
.quick-answer > p {
  margin: 0 0 22px;
  max-width: 82ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
}
.qa-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.qa-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px 4px 0;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.qa-facts span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- jump nav ---------- */
.jump-nav {
  position: sticky;
  top: 88px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 10px;
  margin-top: 22px;
}
.jump-label {
  margin: 0 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 861px) {
  .jump-nav .faq-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .jump-label {
    display: none;
  }
  .chips {
    flex: 1;
    padding-bottom: 0;
  }
}
.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover,
.chip.is-active {
  border-color: var(--cyan);
  background: #eefcff;
  color: var(--navy-mid);
}
.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.chip.is-active .chip-count {
  background: var(--cyan);
  color: var(--navy);
}

/* ---------- intro ---------- */
.intro-band {
  background: var(--wash);
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 44px;
  align-items: start;
}
.intro-band h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.24;
  font-weight: 600;
}
.intro-band p {
  margin: 0 0 14px;
  font-size: 15.8px;
  line-height: 1.72;
  color: var(--body);
}
.intro-band a {
  color: var(--cyan-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.intro-aside h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.intro-aside p {
  font-size: 14.5px;
  margin-bottom: 10px;
}
.aside-meta {
  color: var(--muted) !important;
  font-size: 12.5px !important;
  margin-top: 14px !important;
}

.intro-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.expand-all {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.expand-all:hover,
.expand-all[data-state='open'] {
  border-color: var(--cyan);
  background: #eefcff;
  color: var(--navy-mid);
}
.intro-tools span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- sections ---------- */
.faq-section {
  padding: 62px 0 54px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 162px;
}
.faq-section:nth-of-type(odd) { background: var(--wash); }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f9ff;
  color: var(--cyan-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.section-head h2 {
  margin: 0 0 14px;
  max-width: 24ch;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-intro {
  max-width: 76ch;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
}

/* ---------- accordion ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: #bfeaf5;
  box-shadow: 0 10px 26px rgba(12, 33, 76, 0.08);
}
.faq-summary {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: start;
  gap: 6px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover .faq-q { color: var(--cyan-dark); }
.faq-summary:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: -2px;
  border-radius: 14px;
}
.faq-num {
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa7c0;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.faq-q {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eefcff;
  flex: 0 0 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--cyan-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after { width: 2px; height: 10px; }
.faq-item[open] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-answer {
  padding: 0 26px 22px 68px;
  animation: fade 0.18s ease-out;
}
.faq-answer p {
  margin: 0;
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}
.faq-answer a {
  color: var(--cyan-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--navy-mid); }

@keyframes fade {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.back-top {
  margin: 26px 0 0;
  text-align: right;
  font-size: 13px;
}
.back-top a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.back-top a:hover { color: var(--cyan-dark); }

/* ---------- author ---------- */
.author-band {
  position: relative;
  z-index: 45;
  background: var(--paper);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.author-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}
.author-photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 4px solid #eefcff;
  box-shadow: 0 12px 30px rgba(12, 33, 76, 0.14);
}
.author-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.22;
  font-weight: 600;
}
.author-copy p {
  margin: 0 0 14px;
  font-size: 15.8px;
  line-height: 1.74;
  color: var(--body);
}
.author-copy a {
  color: var(--cyan-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-facts {
  margin: 22px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.author-facts li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 16px;
  background: var(--wash);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.author-facts strong {
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.author-note {
  font-size: 13px !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  z-index: 45;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(53, 218, 249, 0.18), transparent 70%),
    var(--navy);
  color: #fff;
  padding: 60px 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 34px;
  align-items: center;
}
.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.22;
  font-weight: 600;
}
.cta-band p {
  margin: 0;
  max-width: 60ch;
  font-size: 15.8px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.78);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .intro-grid,
  .cta-inner { grid-template-columns: 1fr; }
  .author-grid {
    grid-template-columns: 160px 1fr;
    gap: 28px;
  }
  .hero { padding: 56px 0 104px; }
}

@media (max-width: 720px) {
  .faq-wrap { padding: 0 18px; }
  .hero-eyebrow {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    line-height: 1.6;
  }
  .hero-eyebrow::before { display: none; }
  .hero h1 { font-size: clamp(26px, 7.3vw, 34px); max-width: none; line-height: 1.12; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .hero-stats strong { font-size: 21px; }
  .quick-answer { padding: 26px 22px 22px; margin-top: -64px; }
  .qa-facts { grid-template-columns: 1fr; }
  .qa-facts li { padding: 14px 0 0; border-bottom: 1px solid var(--line); }
  .qa-facts li:last-child { border-bottom: 0; padding-bottom: 4px; }
  .jump-nav {
    position: static;
    padding: 16px 0 12px;
    margin-top: 0;
  }
  .faq-summary { grid-template-columns: 30px 1fr 22px; padding: 17px 16px; }
  .faq-q { font-size: 16px; }
  .faq-answer { padding: 0 18px 20px 46px; }
  .faq-section { padding: 46px 0 40px; scroll-margin-top: 104px; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 150px; }
  .author-facts li { grid-template-columns: 1fr; gap: 4px; }
  .cta-actions .btn-solid,
  .cta-actions .btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  header, footer, .jump-nav, .cta-band, .nav-toggle, .mobile-menu, .hero-actions, .back-top { display: none !important; }
  .hero { background: #fff !important; color: #000 !important; padding: 0 0 20px; }
  .hero h1, .hero-lead, .hero-stats strong, .hero-stats span { color: #000 !important; }
  .faq-item { break-inside: avoid; box-shadow: none; }
  .faq-answer { display: block !important; }
  a { text-decoration: none; color: #000; }
}
