/* pricing.css — 21 Oct (Ali): "make the pricing section more outlined, add dark shadows so it's
   catchy and super easy to read; remove the tilt". Loaded after desktop.css. Only the pricing section
   (#pricing) changes; the phone carousel (mobile.css, plans.js) keeps working as before. */

/* ---- the cards: flat, a soft grey outline and a deep grey shadow (no black border, 21 Oct) ---- */
#pricing .plan {
  transform: none !important; /* the pointer tilt is gone (app.js); nothing rotates any more */
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #d9dbe6;
  border-radius: 22px;
  box-shadow:
    0 30px 60px -18px rgba(60, 64, 90, 0.55),
    0 12px 28px -8px rgba(60, 64, 90, 0.28),
    0 1px 2px rgba(60, 64, 90, 0.14);
  transition: box-shadow 0.2s, translate 0.2s;
}
#pricing .plan:hover {
  translate: none; /* no lift: the four cards stay level whatever the pointer rests on */
  box-shadow:
    0 40px 70px -22px rgba(60, 64, 90, 0.5),
    0 16px 32px -10px rgba(60, 64, 90, 0.26),
    0 1px 2px rgba(60, 64, 90, 0.12);
}
#pricing .plan.plan--pop {
  border-color: #2b2bf5;
  box-shadow:
    0 34px 70px -22px rgba(43, 43, 245, 0.4),
    0 12px 28px -10px rgba(60, 64, 90, 0.22),
    0 1px 2px rgba(60, 64, 90, 0.12);
}
#pricing .plan.plan--pop:hover {
  box-shadow:
    0 44px 80px -22px rgba(43, 43, 245, 0.45),
    0 16px 32px -10px rgba(60, 64, 90, 0.26),
    0 1px 2px rgba(60, 64, 90, 0.12);
}
#pricing .plan.plan--pop::before {
  display: none; /* the spinning gradient ring (fx.css) is replaced by the solid blue outline */
}

/* ---- easy to read: bigger title and price, rows separated by lines ---- */
#pricing .plan h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b0b14;
}
#pricing .plan .plan__sub {
  color: #3f4256;
}
#pricing .plan .plan__price b {
  font-size: clamp(32px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b0b14;
}
#pricing .plan .plan__price s {
  color: #8a8da3;
}
#pricing .plan .plan__save {
  color: #2b2bf5;
  font-weight: 700;
}
/* Buy 2, Get 1 Free badge (api.js applyBuy2Get1), only on the campaign's plans */
#pricing .plan .plan__b2g1 {
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(43, 43, 245, 0.08);
  color: #2b2bf5;
  font-size: 11.5px;
  line-height: 1.35;
}
#pricing .plan .plan__b2g1 b {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#pricing .plan .plan__b2g1 small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #4a4a7a;
}
/* A signed-in customer with one waiting purchase of THIS plan (api.js applyBuy2Get1). */
#pricing .plan .plan__b2g1.plan__b2g1--one {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #dc2626;
}
#pricing .plan .plan__b2g1.plan__b2g1--one b {
  font-size: 13px;
  font-weight: 900;
}
#pricing .plan .plan__b2g1.plan__b2g1--one small {
  color: #b91c1c;
  font-weight: 700;
}
#pricing .plan .plan__b2g1.plan__b2g1--one small + small {
  margin-top: 3px;
}
#pricing .plan dl {
  gap: 0;
  border-top: 1px solid #d9dbe6;
  padding-top: 6px;
}
#pricing .plan dl > div {
  padding: 9px 0;
  border-bottom: 1px solid #e3e4ee;
}
#pricing .plan dl > div:last-child {
  border-bottom: 0;
}
#pricing .plan dt {
  color: #3f4256;
}
#pricing .plan dd {
  color: #0b0b14;
  font-weight: 700;
}
#pricing .plan > a.btn {
  height: 54px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 999px;
  background: #0b0b14;
  border: 2px solid #0b0b14;
  color: #fff;
}
#pricing .plan > a.btn:hover {
  background: #23233a;
  border-color: #23233a;
}
#pricing .plan.plan--pop > a.btn {
  background: #2b2bf5;
  border-color: #2b2bf5;
  box-shadow: 0 10px 26px rgba(43, 43, 245, 0.45);
}
#pricing .plan.plan--pop > a.btn:hover {
  background: #1f1fd8;
  border-color: #1f1fd8;
}
#pricing .plan .plan__tag {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2b2bf5;
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 43, 245, 0.45);
}

/* ---- the Strix / Express / Strix Pro switch: bigger, outlined, dark ---- */
#pricing .tabs {
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: #0b0b14;
  box-shadow: 0 18px 40px -14px rgba(60, 64, 90, 0.5);
}
#pricing .tabs button {
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: transparent;
}
#pricing .tabs button:hover:not(.on) {
  background: rgba(255, 255, 255, 0.1);
}
#pricing .tabs button.on {
  background: #2b2bf5;
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 43, 245, 0.55);
}
#pricing .tabs button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

/* ---- Rev.2 (Ali): a thin white outline breathing softly around the selected plan button only
   (3s loop). It lives on a pseudo-element just outside the blue button, inside the pill's 6px
   padding, so the pill, the button's size, blue background and blue glow are untouched and
   nothing moves. Inactive buttons carry no outline and nothing animates on them. ---- */
#pricing .tabs button {
  position: relative;
}
#pricing .tabs button.on::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  opacity: 0.1;
  pointer-events: none;
  animation: tab-on-halo 3s ease-in-out infinite;
}
@keyframes tab-on-halo {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
}

/* ---- phones: same outline and shadow, a little lighter so the swipe row stays smooth ---- */
@media (max-width: 768px) {
  #pricing .plan,
  #pricing .plan:hover {
    translate: none;
    box-shadow:
      0 18px 36px -16px rgba(60, 64, 90, 0.4),
      0 1px 2px rgba(60, 64, 90, 0.12);
  }
  #pricing .plan.plan--pop,
  #pricing .plan.plan--pop:hover {
    box-shadow:
      0 20px 40px -16px rgba(43, 43, 245, 0.4),
      0 1px 2px rgba(60, 64, 90, 0.12);
  }
  #pricing .tabs button {
    height: 44px;
    padding: 0 18px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pricing .plan {
    transition: none;
  }
  #pricing .plan:hover {
    translate: none;
  }
  #pricing .tabs button.on::before {
    animation: none;
    opacity: 0.8;
  }
}

/* price line: the struck list price on its own row, the figure and "one-time" side by side */
#pricing .plan .plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}
#pricing .plan .plan__price s {
  flex-basis: 100%;
}

/* badge centred on the card's top edge whatever its height (desktop.css used a fixed -13px) */
@media (min-width: 769px) {
  #pricing .plans .plan .plan__tag {
    top: 0;
    transform: translate(-50%, -50%);
  }
}
