/* EasyBooks Launch Corridor contrast proposal, 2026-10-27.
 * TESTED with page.addStyleTag; installed as a LOCAL preview only (not on production).
 * Load after launch-corridor-preview.css if implementation is approved later.
 * Scope: existing .eb-ribbon marketing theme. No copy or markup changes.
 */
.eb-ribbon {
  --eb-heading: #382078;
  --eb-ink: #243047;
  --eb-muted: #414d63;
  --eb-link: #47268d;
  --eb-positive-ink: #1d5c49;
  /* Accent purple and the #6846da primary button remain separate from text. */
  --eb-contrast-art: var(--eb-lc-desktop);
  --eb-reading-wash: radial-gradient(
    ellipse 700px 340px at 50% 230px,
    rgb(255 255 255 / 86%) 0%,
    rgb(255 255 255 / 64%) 55%,
    rgb(255 255 255 / 0%) 100%
  );
  --eb-opening-scene:
    var(--eb-reading-wash) center top / 100% 100% no-repeat,
    var(--eb-paper) var(--eb-contrast-art)
      center calc(-1 * var(--eb-header-height)) / 100% var(--eb-scene-height) no-repeat;
}

/* Existing hero and pricing-intro rules already consume --eb-opening-scene.
 * The white wash is a background layer, so it never fades text or controls.
 * Home pricing uses its own background declaration and needs this mapping.
 */
.eb-ribbon-home .eb-pricing-section {
  background-image: var(--eb-reading-wash), var(--eb-contrast-art);
  background-position: center top, center top;
  background-size: 100% 100%, 100% var(--eb-scene-height);
  background-repeat: no-repeat;
}

/* Cropped CTA artwork needs an independent reading zone. */
.eb-ribbon .eb-ribbon-closing,
.eb-ribbon.eb-inner .eb-light-cta {
  background-image:
    radial-gradient(ellipse 72% 100% at 50% 50%,
      rgb(255 255 255 / 88%) 0%,
      rgb(255 255 255 / 72%) 65%,
      rgb(255 255 255 / 0%) 100%),
    var(--eb-contrast-art) !important;
  background-position: center, center 58% !important;
  background-size: 100% 100%, cover !important;
  background-repeat: no-repeat !important;
}

/* Body copy uses ink; purple is reserved for hierarchy and actions. */
.eb-ribbon .eb-home-hero .eb-hero-intro,
.eb-ribbon .eb-page-hero p,
.eb-ribbon .eb-inner-hero p {
  color: var(--eb-ink);
  font-weight: 500;
}
.eb-ribbon .eb-business-range {
  color: var(--eb-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.eb-ribbon .eb-capabilities {
  color: var(--eb-ink);
  font-weight: 600;
}
.eb-ribbon .eb-example-questions span {
  font-weight: 500;
}
.eb-ribbon .ebg-article-meta {
  font-weight: 500;
}
.eb-ribbon .eb-ribbon-closing p {
  font-weight: 500;
}

/* Explicit text-link token. Retain white labels on filled primary buttons. */
.eb-ribbon .eb-text-link,
.eb-ribbon .eb-button-secondary,
.eb-ribbon .pricing-card:not(.popular) .vuz-plan-btn,
.eb-ribbon .ebg-breadcrumb a,
.eb-ribbon .eb-reading-body a:not(.eb-button) {
  color: var(--eb-link);
}
.eb-ribbon .eb-nav-link:hover {
  color: var(--eb-link);
}
.eb-ribbon .ebg-breadcrumb a {
  color: var(--eb-heading);
  font-weight: 600;
}

/* Legacy plugin utility colors bypass semantic tokens. These are existing
 * contrast defects on BOTH backgrounds, including opaque pricing cards.
 */
.eb-ribbon .pricing-card .text-vuz-gray-400,
.eb-ribbon .pricing-card .text-vuz-gray-500,
.eb-ribbon .pricing-card .text-vuz-gray-600,
.eb-ribbon .pricing-card .vuz-overage-notes span,
.eb-ribbon .pricing-card .vuz-feature-note--info,
.eb-ribbon #site-footer .text-muted2 {
  color: var(--eb-muted);
}
.eb-ribbon .pricing-card .vuz-feature-note--info {
  color: var(--eb-ink);
  font-size: 12px;
  font-weight: 700;
}
.eb-ribbon .pricing-card span.text-vuz-accent {
  color: var(--eb-positive-ink);
  font-weight: 600;
}

@media (max-width: 767px) {
  .eb-ribbon {
    --eb-contrast-art: var(--eb-lc-mobile);
    --eb-reading-wash: radial-gradient(
      ellipse 80% 410px at 50% 350px,
      rgb(255 255 255 / 90%) 0%,
      rgb(255 255 255 / 76%) 70%,
      rgb(255 255 255 / 0%) 100%
    );
    --eb-opening-scene:
      var(--eb-reading-wash) center top / 100% 100% no-repeat,
      var(--eb-paper) var(--eb-contrast-art)
        center calc(-1 * var(--eb-header-height)) / 100% auto no-repeat;
  }
  .eb-ribbon-home .eb-pricing-section {
    background-size: 100% 100%, 100% auto;
  }
  .eb-ribbon .eb-capabilities {
    font-size: 15px;
    line-height: 1.6;
  }
  .eb-ribbon .eb-example-questions span {
    font-size: 14px;
  }
  .eb-ribbon .ebg-article-meta {
    font-size: 14px;
  }
}
