/* ===========================================================================
   Compare page (/compare).

   Three comparison sections — against a traditional advisor, an AI chatbot,
   and a budgeting app — each pairing a "fee plate" with a benefits card, then
   a testimonial and the legal disclaimers.

   The only shared machinery this page uses is the hero, the CTA band and the
   site chrome; everything below is its own.
   =========================================================================== */

/* ==========================================================================
   Comparison sections

   The fee plate is a photograph under a dark wash, with a noise layer and the
   shared grain on top and a copy block floating over all of it. The z-order
   inside `.compare-fee-plate-bg` is explicit rather than relying on DOM order,
   because the noise image and the wash both need to sit under the photograph
   while the grain sits above it.
   ========================================================================== */

.compare-section { padding: 100px 40px; }
.compare-section-inner { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px; }
.compare-header { max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.compare-header-label { font-size: 16px; font-weight: 600; color: var(--mz-white); line-height: 1.28;  letter-spacing: -0.16px;}
.compare-header-title {
  font-family: var(--mz-font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.9;
  color: var(--mz-white);
  letter-spacing: -0.4px;
}
.compare-cards {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* Fee info plate */
.compare-fee-plate {
  flex: 1;
  min-width: 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 480px;
}
.compare-fee-plate.is-top {
  justify-content: flex-start;
}
.compare-fee-plate-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.compare-fee-plate-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22,22,21,0.3);
  z-index: 1;
}
/* Below the ::before scrim, which exists to darken it. */
.compare-fee-plate-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.compare-fee-plate-bg .mz-img-grain {
  z-index: 3;
}
.compare-fee-plate-content {
  position: relative;
  z-index: 3;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-fee-plate-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--mz-text-quiet);
  line-height: 1.28;
  letter-spacing: -0.16px;
}
.compare-fee-plate-value {
  font-family: var(--mz-font-sans);
  font-weight: 400;
  font-size: 40px;
  color: var(--mz-white);
}
.compare-fee-plate-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--mz-text-secondary);
  line-height: 1.28;
  letter-spacing: -0.16px;
}

/* Mezzi card */
.compare-card {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 32px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  min-height: 480px;
}
.compare-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 28px;
}
.compare-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--mz-white);
  line-height: 1.28;
  letter-spacing: -0.2px;
}
.compare-card-logo {
  height: 22px;
  width: auto;
  display: block;
}
.compare-card-title.is-muted {
  color: var(--mz-text-secondary);
}
.compare-badge {
  background: var(--mz-lime);
  color: var(--mz-ink);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  line-height: 1;
}
.compare-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.compare-benefit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.compare-benefit-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-benefit-icon img {
  width: 20px;
  height: 20px;
}
.compare-benefit-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--mz-white);
  line-height: 1.28;
  letter-spacing: -0.16px;
}
.compare-benefit-text.is-muted {
  color: var(--mz-text-secondary);
}

/* ==========================================================================
   Testimonial and disclaimers
   ========================================================================== */

.compare-testimonial-section {
  padding: 100px var(--mz-gutter) 0;
  max-width: var(--mz-page-max);
  margin: 0 auto;
}
.compare-testimonial-section .home-testimonial {
  padding: 0;
  margin-bottom: 60px;
}
.compare-testimonial-section .home-testimonial-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compare-testimonial-section .home-testimonial-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 700px;
  min-width: 0;
  padding-right: 20px;
}
.compare-testimonial-section .home-testimonial-quote {
  flex: 1;
  font-size: 20px;
  font-weight: 400;
  color: var(--mz-white);
  line-height: 1.28;
  letter-spacing: -0.2px;
  min-width: 0;
}
.compare-testimonial-section .home-testimonial-author {
  font-size: 20px;
  font-weight: 600;
  color: var(--mz-white);
  white-space: pre;
  line-height: 1.28;
  letter-spacing: -0.2px;
}
.compare-disclaimers {
  display: flex;
  gap: 40px;
}
.compare-disclaimers p {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  letter-spacing: -0.14px;
}

/* ==========================================================================
   Scroll reveal

   A single fade-up applied to whatever carries `.compare-fade-in`; see
   js/pages/compare.js.
   ========================================================================== */

.compare-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.compare-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1023px) {
  .compare-section { padding: 60px var(--mz-gutter-mobile); }
  .compare-section-inner { gap: 40px; }
  .compare-cards { flex-direction: column; }
  /* On the chatbot section the plate leads; everywhere else the card does. */
  #chatbot .compare-fee-plate { order: -1; }
  .compare-card { min-height: auto; }
  .compare-fee-plate { min-height: auto; }

  .compare-testimonial-section { padding: 60px var(--mz-gutter-mobile) 0; }
  .compare-testimonial-section .home-testimonial-card { flex-direction: column; gap: 20px; padding: 20px; }
  .compare-testimonial-section .home-testimonial-left { flex-direction: column; align-items: flex-start; max-width: none; padding-right: 0; }
  .compare-disclaimers { flex-direction: column; gap: 20px; }
}

/* The fade-up is decorative: with reduced motion requested it lands in its
   finished state instead of animating (see js/pages/compare.js). */
@media (prefers-reduced-motion: reduce) {
  .compare-fade-in {
    transition: none;
  }
}
