/* ============================================================
   PIXALS — /compare/ buyer-guide styles
   Layers on top of rentals/_spoke.css (sp- classes).
   Adds: answer-first callout, comparison table, FAQ accordion,
   and the /compare/ hub card grid. All scoped with .cmp-.
   ============================================================ */

/* ============================================================
   ANIMATED HERO (mirrors /contact/) — frosted glass + cursor orb.
   Base .hero-banner / .bg-cinematic / .orb live in styles.css.
   This adds only the --guide modifier + the cursor orb.
   ============================================================ */
.hero-banner--guide {
  aspect-ratio: unset !important;            /* override default 92:39 */
  height: clamp(360px, 48vh, 520px) !important;
  min-height: 360px;
}
.hero-banner--guide .cursor-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 800ms var(--ease, ease);
  background: radial-gradient(
    circle 380px at var(--mx, 50%) var(--my, 50%),
    rgba(190, 110, 255, 0.85) 0%,
    rgba(120, 60, 220, 0.5) 25%,
    rgba(60, 30, 140, 0.2) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
  will-change: background;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-banner--guide:hover .cursor-orb { opacity: 1; }
.hero-banner--guide.is-touched .cursor-orb { animation: none; }
.hero-banner--guide .hero-banner__tint--frosted {
  backdrop-filter: blur(64px) saturate(160%);
  -webkit-backdrop-filter: blur(64px) saturate(160%);
  background: rgba(0, 0, 0, 0.18);
}
/* breadcrumb links inside the hero top bar */
.hero-banner--guide .hero-banner__top a { color: inherit; text-decoration: none; opacity: 0.85; }
.hero-banner--guide .hero-banner__top a:hover { opacity: 1; }
.hero-banner--guide .hero-banner__caption .sp-cta-row { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }

@keyframes orb-drift {
  0%, 100% { --mx: 30%; --my: 50%; }
  50%      { --mx: 70%; --my: 50%; }
}
@media (max-width: 700px) {
  .hero-banner--guide { height: clamp(300px, 50vh, 420px) !important; min-height: 300px; }
  .hero-banner--guide .cursor-orb { opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner--guide .cursor-orb { animation: none; }
}

/* ---- Answer-first callout (the AEO money block) ---- */
.cmp-answer {
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 2px solid #fff;
  background: rgba(255,255,255,0.03);
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1.4rem, 2.6vw, 2.4rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
.cmp-answer__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 0.65rem;
}
.cmp-answer__text {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  color: #f4f4f4;
  margin: 0;
  font-weight: 300;
}
.cmp-answer__text strong { font-weight: 500; color: #fff; }

/* ---- Comparison table ---- */
.cmp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  min-width: 540px;
}
.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: clamp(0.85rem, 1.6vw, 1.15rem) clamp(0.9rem, 1.8vw, 1.4rem);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  vertical-align: top;
  line-height: 1.45;
}
.cmp-table thead th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  border-bottom-color: rgba(255,255,255,0.25);
}
.cmp-table tbody th {
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  width: 30%;
}
.cmp-table td { color: #ececec; }
.cmp-table .cmp-col-pixals { color: #fff; }
.cmp-table tbody tr:hover td,
.cmp-table tbody tr:hover th { background: rgba(255,255,255,0.025); }

/* ---- FAQ accordion (mirrors FAQPage schema) ---- */
.cmp-faq { max-width: 820px; }
.cmp-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cmp-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: clamp(1.1rem, 2.2vw, 1.5rem) 2.5rem clamp(1.1rem, 2.2vw, 1.5rem) 0;
  position: relative;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 400;
  color: #fff;
  transition: color 0.2s ease;
}
.cmp-faq__item summary::-webkit-details-marker { display: none; }
.cmp-faq__item summary:hover { color: rgba(255,255,255,0.75); }
.cmp-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: transform 0.25s ease;
}
.cmp-faq__item[open] summary::after { content: "–"; }
.cmp-faq__answer {
  padding: 0 2.5rem 1.6rem 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  font-weight: 300;
  max-width: 70ch;
}
.cmp-faq__answer p { margin: 0 0 0.9rem; }
.cmp-faq__answer p:last-child { margin-bottom: 0; }

/* ---- /compare/ hub card grid ---- */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 760px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp-tile {
  display: block;
  border: 1px solid rgba(255,255,255,0.14);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  background: rgba(255,255,255,0.015);
}
.cmp-tile:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.cmp-tile__kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 0.85rem;
}
.cmp-tile__title {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.65rem;
}
.cmp-tile__title em { font-style: italic; }
.cmp-tile__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-weight: 300;
}
