/* BNE pricing + trial section — self-contained module.
 * Same contract as bne-videos.css: colours come from the site's own design
 * tokens (--color-*) so the section follows the active theme automatically,
 * and every class is bne-p- prefixed to guarantee no collision with the
 * compiled Tailwind utilities or with the video module. */

.bne-p {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.bne-p-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 78% 16%, rgba(47, 125, 255, 0.16), transparent 62%),
    radial-gradient(45% 48% at 18% 82%, rgba(255, 138, 31, 0.1), transparent 60%);
  will-change: transform;
}

.bne-p-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .bne-p-wrap {
    padding: 0 1.5rem;
  }
}

.bne-p-eyebrow {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-amber);
}

/* Arabic must not render in the monospace stack: those fonts carry no Arabic
   glyphs, so the text falls back unshaped and the letters visually disconnect
   (measured ~43% wider than the shaped form). Latin keeps the mono look. */
html[lang="ar"] .bne-p-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
  font-weight: 700;
}

.bne-p-title {
  margin: 0.75rem 0 0;
  max-width: 40ch;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-snow);
}

.bne-p-sub {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-dim);
}

/* ---------- free trial banner ---------- */
.bne-p-trial {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 138, 31, 0.34);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.12), rgba(14, 26, 46, 0.6));
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.bne-p-trial:hover {
  border-color: rgba(255, 138, 31, 0.6);
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.35);
}

.bne-p-badge {
  display: grid;
  place-items: center;
  min-width: 4.25rem;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  background: var(--color-amber);
  color: #0b1220;
  line-height: 1.1;
  text-align: center;
}

.bne-p-badge b {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}

.bne-p-badge span {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
}

.bne-p-trial-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-snow);
}

.bne-p-trial-copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-dim);
}

/* ---------- plan cards ---------- */
.bne-p-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .bne-p-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bne-p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-panel);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.bne-p-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.35);
}

.bne-p-card.is-featured {
  border-color: rgba(255, 138, 31, 0.45);
  box-shadow: 0 0 34px rgba(255, 138, 31, 0.1);
}

.bne-p-flag {
  position: absolute;
  inset-inline-end: 1.25rem;
  inset-block-start: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.16);
  border: 1px solid rgba(255, 138, 31, 0.4);
  color: var(--color-amber);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
}

.bne-p-name {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue-soft);
}

.bne-p-headline {
  margin: 0.6rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-snow);
}

.bne-p-price {
  margin: 1.1rem 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bne-p-price b {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 800;
  color: var(--color-snow);
  line-height: 1.1;
}

.bne-p-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dim);
}

.bne-p-trialchip {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-amber);
}

.bne-p-trialchip i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-amber);
  flex: none;
}

.bne-p-list {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bne-p-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-dim);
}

.bne-p-list svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.22rem;
  stroke: var(--color-blue-soft);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bne-p-pick {
  margin-top: auto;
  padding-top: 1.5rem;
}

.bne-p-pick a {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 255, 0.45);
  background: rgba(47, 125, 255, 0.12);
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-blue-soft);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.bne-p-pick a:hover {
  transform: translateY(-2px);
  background: rgba(47, 125, 255, 0.2);
  border-color: var(--color-blue);
}

.bne-p-card.is-featured .bne-p-pick a {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: #0b1220;
  box-shadow: 0 0 26px rgba(255, 138, 31, 0.3);
}

.bne-p-card.is-featured .bne-p-pick a:hover {
  box-shadow: 0 0 40px rgba(255, 138, 31, 0.5);
}

.bne-p-note {
  margin: 1.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-dim);
  text-align: center;
}

/* ---------- shared CTA (used by the plans footer and the mid-page band) ---------- */
.bne-p-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 999px;
  background: var(--color-amber);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0b1220;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(255, 138, 31, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bne-p-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 138, 31, 0.5);
}

.bne-p-cta:active {
  transform: translateY(0) scale(0.98);
}

.bne-p-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-snow);
  text-decoration: none;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.bne-p-cta-ghost:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.bne-p-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

/* ---------- mid-page CTA band ---------- */
.bne-cta-band {
  position: relative;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .bne-cta-band {
    padding: 0 1.5rem;
  }
}

.bne-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-line);
  background:
    linear-gradient(120deg, rgba(47, 125, 255, 0.14), rgba(14, 26, 46, 0.75));
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.bne-cta-inner:hover {
  border-color: var(--color-blue);
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.35);
}

.bne-cta-inner h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 700;
  color: var(--color-snow);
}

.bne-cta-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-dim);
}

.bne-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 860px) {
  .bne-p-trial {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bne-p-trial .bne-p-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .bne-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bne-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .bne-p-trial {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* Scroll reveal: the "from" state is applied by JS only, so with no JS (or if
 * the observer never fires) the content is always visible. */
.bne-p-reveal {
  transform: translateY(28px);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s ease-out;
}

.bne-p-reveal.is-in {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bne-p-reveal,
  .bne-p-reveal.is-in {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .bne-p-cta,
  .bne-p-cta-ghost,
  .bne-p-pick a,
  .bne-p-card,
  .bne-cta-inner,
  .bne-p-trial {
    transition: none;
  }
}

/* Language: both scripts ship in the DOM, the site's own toggle (which sets
 * <html lang>) decides which one is visible. Mirrors bne-videos.css. */
.bne-p [data-bne-lang="en"],
.bne-cta-band [data-bne-lang="en"] {
  display: none;
}

html[lang="en"] .bne-p [data-bne-lang="en"],
html[lang="en"] .bne-cta-band [data-bne-lang="en"] {
  display: revert;
}

html[lang="en"] .bne-p [data-bne-lang="ar"],
html[lang="en"] .bne-cta-band [data-bne-lang="ar"] {
  display: none;
}

/* ---------- promo ribbon (announces the live discount coupon) ---------- */
.bne-p-promo {
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 31, 0.45);
  background: linear-gradient(120deg, rgba(255, 138, 31, 0.16), rgba(14, 26, 46, 0.7));
  text-align: center;
}

.bne-p-promo strong {
  color: var(--color-snow);
  font-weight: 800;
  font-size: 1rem;
}

.bne-p-promo code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0b1220;
  background: var(--color-amber);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
}

.bne-p-promo span.bne-p-promo-note {
  color: var(--color-dim);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .bne-p-promo {
    border-radius: 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}
