/* ExperioBox — Mystery Box Subscription page
 * Scoped to .exbx-page and .exbx-* classes only.
 * v0.2.0
 */

.exbx-page,
.exbx-plans {
  --exbx-navy: #1b2340;
  --exbx-body: #4c566f;
  --exbx-muted: #6b7690;
  --exbx-line: #e3e7ef;
  --exbx-soft: #f5f7f9;
  --exbx-white: #fff;
  --exbx-blue: #0084d6;
  --exbx-indigo: #243673;
  --exbx-grad: linear-gradient(130deg, #0084d6 0%, #243673 100%);
  --exbx-radius: 18px;
  --exbx-radius-sm: 12px;
  --exbx-shadow: 0 1px 2px rgba(27, 35, 64, .05), 0 12px 32px -12px rgba(27, 35, 64, .16);
  --exbx-shadow-lg: 0 2px 4px rgba(27, 35, 64, .06), 0 28px 56px -20px rgba(27, 35, 64, .26);
  --exbx-ease: 220ms cubic-bezier(.4, 0, .2, 1);

  background: var(--exbx-white);
  color: var(--exbx-body);
  overflow-x: clip;
  font-synthesis-weight: none;
}

.exbx-page *,
.exbx-page *::before,
.exbx-page *::after,
.exbx-plans *,
.exbx-plans *::before,
.exbx-plans *::after { box-sizing: border-box; }

.exbx-page img,
.exbx-plans img { max-width: 100%; height: auto; display: block; }

.exbx-page h1,
.exbx-page h2,
.exbx-page h3,
.exbx-plans h3 {
  color: var(--exbx-navy);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.exbx-page p,
.exbx-plans p { margin: 0; }

/* The cards render as their own block, so .exbx-plans carries its own
   container width and closes out the section it sits in. */
.exbx-plans {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: clamp(56px, 8vw, 104px);
  color: var(--exbx-body);
}

.exbx-plans a:focus-visible,
.exbx-plans button:focus-visible,
.exbx-plans summary:focus-visible {
  outline: 3px solid var(--exbx-blue);
  outline-offset: 3px;
  border-radius: 999px;
}

.exbx-plans summary:focus-visible { border-radius: 8px; }

/* The head block above the cards owns the top padding only. */
.exbx-section--plans-head { padding-bottom: 0; }

/* Anchor jumps clear the sticky header. This sheet only loads on this page. */
#exbx-plans { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 640px) {
  .exbx-plans { padding-inline: 18px; }
}

.exbx-wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.exbx-section { padding-block: clamp(56px, 8vw, 104px); }
.exbx-section--soft { background: var(--exbx-soft); }

.exbx-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--exbx-blue);
  margin: 0;
}

.exbx-section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.exbx-section__head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-top: 12px;
}

.exbx-section__head p {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--exbx-muted);
}

/* ---------------------------------------------------------------- Buttons */

.exbx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--exbx-ease), box-shadow var(--exbx-ease), background-color var(--exbx-ease), color var(--exbx-ease);
}

.exbx-btn--primary {
  background: var(--exbx-grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(36, 54, 115, .6);
}

.exbx-btn--primary:hover,
.exbx-btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(36, 54, 115, .7);
}

.exbx-btn--ghost {
  background: transparent;
  color: var(--exbx-navy);
  border-color: var(--exbx-line);
}

.exbx-btn--ghost:hover,
.exbx-btn--ghost:focus-visible {
  background: var(--exbx-white);
  border-color: #c9d2e4;
  transform: translateY(-2px);
}

.exbx-btn--light {
  background: #fff;
  color: var(--exbx-indigo);
}

.exbx-btn--light:hover,
.exbx-btn--light:focus-visible {
  color: var(--exbx-indigo);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45);
}

/* Visible keyboard focus everywhere in the page */
.exbx-page a:focus-visible,
.exbx-page button:focus-visible,
.exbx-page summary:focus-visible {
  outline: 3px solid var(--exbx-blue);
  outline-offset: 3px;
  border-radius: 999px;
}

.exbx-page summary:focus-visible { border-radius: 8px; }

/* ------------------------------------------------------------------- Hero */

.exbx-hero {
  position: relative;
  overflow: hidden;
  background: var(--exbx-soft);
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--exbx-line);
}

.exbx-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--exbx-grad);
  opacity: .13;
  filter: blur(70px);
  pointer-events: none;
}

.exbx-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.exbx-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin-top: 14px;
}

.exbx-hero__lead {
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--exbx-muted);
  max-width: 30em;
}

.exbx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.exbx-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--exbx-muted);
}

.exbx-hero__note svg { color: var(--exbx-blue); flex: none; }

/* Trust points */
.exbx-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--exbx-line);
}

.exbx-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--exbx-navy);
}

.exbx-trust svg { color: var(--exbx-blue); flex: none; }

/* Hero visual */
.exbx-hero__visual { position: relative; }

.exbx-hero__visual::after {
  content: "";
  position: absolute;
  inset: 12% -6% -10% 8%;
  border-radius: 50%;
  background: var(--exbx-grad);
  opacity: .22;
  filter: blur(56px);
  z-index: 0;
}

.exbx-hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--exbx-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--exbx-line);
  box-shadow: var(--exbx-shadow-lg);
  aspect-ratio: 3 / 2;
}

.exbx-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exbx-hero__badge {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 18px;
  transform: translateX(-14px);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: var(--exbx-radius-sm);
  background: #fff;
  border: 1px solid var(--exbx-line);
  box-shadow: var(--exbx-shadow);
}

.exbx-hero__badge strong {
  font-size: 1.25rem;
  color: var(--exbx-navy);
  letter-spacing: -.02em;
}

.exbx-hero__badge span {
  font-size: .8125rem;
  color: var(--exbx-muted);
}

/* ------------------------------------------------------------------ Plans */

.exbx-signin-note {
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  text-align: center;
  font-size: .9375rem;
  color: var(--exbx-body);
  background: var(--exbx-soft);
  border: 1px solid var(--exbx-line);
  border-radius: var(--exbx-radius-sm);
}

.exbx-signin-note a { color: var(--exbx-blue); font-weight: 600; }

.exbx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.exbx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--exbx-line);
  border-radius: var(--exbx-radius);
  overflow: hidden;
  box-shadow: var(--exbx-shadow);
  transition: transform var(--exbx-ease), box-shadow var(--exbx-ease), border-color var(--exbx-ease);
}

.exbx-card:hover,
.exbx-card:focus-within {
  transform: translateY(-4px);
  border-color: #cfd8e9;
  box-shadow: var(--exbx-shadow-lg);
}

.exbx-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--exbx-soft);
  border-bottom: 1px solid var(--exbx-line);
}

.exbx-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.4, 0, .2, 1);
}

.exbx-card:hover .exbx-card__img { transform: scale(1.035); }
.exbx-card__img--fallback { background: var(--exbx-grad); opacity: .9; }

.exbx-card__body {
  flex: 1 1 auto;
  padding: 26px 26px 8px;
}

.exbx-card__title {
  font-size: 1.375rem;
  margin-top: 8px;
}

.exbx-card__desc {
  margin-top: 10px;
  font-size: .9688rem;
  line-height: 1.65;
  color: var(--exbx-muted);
}

.exbx-card__benefits-label {
  margin-top: 22px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--exbx-navy);
}

.exbx-benefits {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.exbx-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--exbx-body);
}

.exbx-tick {
  flex: none;
  margin-top: 2px;
  color: var(--exbx-blue);
}

.exbx-details { margin-top: 20px; }

.exbx-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--exbx-blue);
  list-style: none;
  padding: 4px 0;
}

.exbx-details summary::-webkit-details-marker { display: none; }

.exbx-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--exbx-ease);
}

.exbx-details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.exbx-details__inner {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--exbx-line);
  display: grid;
  gap: 12px;
}

.exbx-details__inner p {
  font-size: .9063rem;
  line-height: 1.7;
  color: var(--exbx-muted);
}

.exbx-card__footer {
  margin-top: auto;
  padding: 20px 26px 26px;
}

.exbx-price {
  padding-top: 20px;
  border-top: 1px solid var(--exbx-line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.exbx-price__amount {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--exbx-navy);
}

.exbx-price__meta { font-size: .9375rem; color: var(--exbx-muted); }

.exbx-form { margin: 18px 0 0; }

.exbx-card__footer .exbx-btn { width: 100%; margin-top: 18px; }
.exbx-form .exbx-btn { margin-top: 0; }

.exbx-cancel {
  margin-top: 12px;
  text-align: center;
  font-size: .8438rem;
  color: var(--exbx-muted);
}

.exbx-empty {
  text-align: center;
  color: var(--exbx-muted);
  padding: 40px 0;
}

/* ----------------------------------------------------------- How it works */

.exbx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  counter-reset: exbx-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.exbx-step {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--exbx-line);
  border-radius: var(--exbx-radius);
  transition: transform var(--exbx-ease), box-shadow var(--exbx-ease);
}

.exbx-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--exbx-shadow);
}

.exbx-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 132, 214, .09);
  color: var(--exbx-blue);
  margin-bottom: 20px;
}

.exbx-step__num {
  counter-increment: exbx-step;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--exbx-muted);
}

.exbx-step__num::before { content: "STEP 0" counter(exbx-step); }

.exbx-step h3 {
  font-size: 1.1875rem;
  margin-top: 8px;
}

.exbx-step p {
  margin-top: 10px;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--exbx-muted);
}

/* ------------------------------------------------------------- Info strip */

.exbx-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--exbx-line);
  border-radius: var(--exbx-radius);
  overflow: hidden;
  box-shadow: var(--exbx-shadow);
}

.exbx-info__item {
  padding: 28px 26px;
  border-right: 1px solid var(--exbx-line);
}

.exbx-info__item:last-child { border-right: 0; }

.exbx-info__item dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--exbx-blue);
}

.exbx-info__item dd {
  margin: 10px 0 0;
  font-size: .9688rem;
  line-height: 1.6;
  color: var(--exbx-body);
}

/* -------------------------------------------------------------- Final CTA */

.exbx-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--exbx-radius);
  background: var(--exbx-grad);
  color: #fff;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 28px;
}

.exbx-cta::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  filter: blur(60px);
  pointer-events: none;
}

.exbx-cta > * { position: relative; }

.exbx-cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.exbx-cta p {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

.exbx-cta .exbx-btn { margin-top: 30px; }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 900px) {
  .exbx-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .exbx-hero__visual { order: -1; }
  .exbx-hero__badge { bottom: 14px; transform: translateX(0); left: 14px; }
  .exbx-grid { grid-template-columns: 1fr; }
  .exbx-info__item { border-right: 0; border-bottom: 1px solid var(--exbx-line); }
  .exbx-info__item:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .exbx-wrap { padding-inline: 18px; }
  .exbx-hero__lead { font-size: 1.0625rem; }

  .exbx-hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .exbx-hero__actions .exbx-btn { width: 100%; }
  .exbx-hero__note { justify-content: center; }

  .exbx-trust { gap: 12px; flex-direction: column; }

  .exbx-card__body { padding: 22px 20px 8px; }
  .exbx-card__footer { padding: 18px 20px 22px; }

  .exbx-step { padding: 26px 22px; }
  .exbx-info__item { padding: 24px 22px; }

  .exbx-cta .exbx-btn { width: 100%; }
}

/* --------------------------------------------------------- Accessibility */

@media (prefers-reduced-motion: reduce) {
  .exbx-page *,
  .exbx-page *::before,
  .exbx-page *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .exbx-card:hover,
  .exbx-step:hover,
  .exbx-btn:hover { transform: none; }
}

@media (forced-colors: active) {
  .exbx-card,
  .exbx-step,
  .exbx-info { border-color: CanvasText; }

  .exbx-btn { border-color: CanvasText; }
}
