/* =========================================================
   NOUS PERSONAL
   MEMBERSHIP
   membership.css
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


:root {
  --membership-bg: #020409;
  --membership-deep: #010207;

  --membership-text: #f7f9ff;

  --membership-soft:
    rgba(239, 243, 255, 0.72);

  --membership-muted:
    rgba(239, 243, 255, 0.42);

  --membership-faint:
    rgba(239, 243, 255, 0.22);

  --membership-border:
    rgba(255, 255, 255, 0.09);

  --membership-blue: #77a8ff;
  --membership-purple: #a38aff;
  --membership-green: #7ce0b9;
}


html {
  min-height: 100%;

  background:
    var(--membership-bg);

  color-scheme: dark;
}


body {
  min-height: 100vh;

  margin: 0;

  overflow-x: hidden;

  background:
    var(--membership-bg);

  color:
    var(--membership-text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing:
    antialiased;
}


button,
a {
  font: inherit;
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  color: inherit;
}


button:focus-visible,
a:focus-visible {
  outline:
    1px solid
    rgba(119, 168, 255, 0.75);

  outline-offset: 5px;
}


/* =========================================================
   PAGE
========================================================= */

.membership-page {
  position: relative;

  width: 100%;

  min-height: 100vh;
  min-height: 100dvh;

  isolation: isolate;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 8%,
      rgba(73, 112, 225, 0.13),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 72%,
      rgba(153, 95, 228, 0.08),
      transparent 31%
    ),
    linear-gradient(
      180deg,
      #03050a,
      #010207
    );
}


/* =========================================================
   BACKGROUND
========================================================= */

.membership-stars {
  position: fixed;

  inset: 0;

  z-index: -10;

  opacity: 0.56;

  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.66) 1px,
      transparent 1.4px
    ),
    radial-gradient(
      circle,
      rgba(119, 168, 255, 0.56) 1px,
      transparent 1.4px
    );

  background-size:
    142px 142px,
    207px 207px;

  background-position:
    0 0,
    63px 79px;

  animation:
    membershipStars
    60s
    linear
    infinite;
}


.membership-nebula {
  position: fixed;

  z-index: -8;

  border-radius: 50%;

  filter:
    blur(72px);

  pointer-events: none;
}


.membership-nebula-one {
  top: 8%;
  left: 14%;

  width: 480px;
  height: 480px;

  background:
    radial-gradient(
      circle,
      rgba(64, 111, 234, 0.12),
      transparent 72%
    );
}


.membership-nebula-two {
  right: -220px;
  bottom: -260px;

  width: 720px;
  height: 720px;

  background:
    radial-gradient(
      circle,
      rgba(151, 95, 225, 0.11),
      transparent 72%
    );
}


/* =========================================================
   HEADER
========================================================= */

.membership-header {
  position: fixed;

  top: 0;
  left: 50%;

  z-index: 100;

  width:
    calc(100% - 52px);

  height: 82px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  transform:
    translateX(-50%);

  border-bottom:
    1px solid
    var(--membership-border);

  background:
    rgba(2, 4, 9, 0.67);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);
}


.membership-back {
  justify-self: start;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  color:
    var(--membership-muted);

  font-size:
    0.68rem;

  transition:
    color 180ms ease,
    transform 180ms ease;
}


.membership-back span:first-child {
  color:
    var(--membership-blue);

  font-size:
    0.95rem;
}


.membership-back:hover {
  color:
    #ffffff;

  transform:
    translateX(-3px);
}


/* =========================================================
   BRAND
========================================================= */

.membership-brand {
  justify-self: center;

  display: flex;

  align-items: center;

  gap: 12px;
}


.membership-brand img {
  width: 34px;
  height: 34px;

  display: block;

  object-fit: contain;

  animation:
    membershipLogoSpin
    15s
    linear
    infinite;
}


.membership-brand div {
  display: grid;

  gap: 3px;
}


.membership-brand strong {
  color:
    var(--membership-text);

  font-size:
    0.76rem;

  font-weight:
    760;

  letter-spacing:
    0.18em;
}


.membership-brand span {
  color:
    var(--membership-faint);

  font-size:
    0.48rem;

  font-weight:
    700;

  letter-spacing:
    0.19em;
}


.membership-header-context {
  justify-self: end;

  color:
    var(--membership-faint);

  font-size:
    0.55rem;

  font-weight:
    760;

  letter-spacing:
    0.21em;
}


/* =========================================================
   CONTAINER
========================================================= */

.membership-container {
  width:
    min(
      calc(100% - 64px),
      1380px
    );

  margin:
    0 auto;

  padding:
    150px 0 60px;
}


/* =========================================================
   HERO
========================================================= */

.membership-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 380px);

  align-items: end;

  gap:
    clamp(
      50px,
      8vw,
      130px
    );

  padding-bottom:
    56px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}


.membership-hero-copy {
  min-width: 0;
}


.membership-eyebrow {
  margin:
    0 0 20px;

  color:
    var(--membership-blue);

  font-size:
    0.59rem;

  font-weight:
    800;

  letter-spacing:
    0.28em;
}


.membership-hero h1 {
  max-width:
    950px;

  margin: 0;

  color:
    var(--membership-text);

  font-size:
    clamp(
      4rem,
      7vw,
      7.4rem
    );

  font-weight:
    470;

  letter-spacing:
    -0.075em;

  line-height:
    0.9;
}


.membership-hero h1 span {
  display: block;

  margin-top:
    8px;

  color:
    rgba(234, 238, 250, 0.42);
}


.membership-intro {
  max-width:
    620px;

  margin:
    28px 0 0;

  color:
    var(--membership-muted);

  font-size:
    0.8rem;

  line-height:
    1.75;
}


/* =========================================================
   CURRENT MEMBERSHIP
========================================================= */

.current-membership-panel {
  position: relative;

  padding:
    25px;

  border:
    1px solid
    rgba(119, 168, 255, 0.17);

  border-radius:
    24px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(119, 168, 255, 0.11),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.024);

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.24);
}


.current-membership-panel::before {
  content: "";

  position: absolute;

  top: 0;
  left: 24px;
  right: 24px;

  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(119, 168, 255, 0.55),
      transparent
    );
}


.current-membership-label {
  display: block;

  color:
    rgba(119, 168, 255, 0.68);

  font-size:
    0.52rem;

  font-weight:
    800;

  letter-spacing:
    0.19em;
}


#current-membership-name {
  display: block;

  margin-top:
    13px;

  color:
    var(--membership-text);

  font-size:
    1.35rem;

  font-weight:
    540;

  letter-spacing:
    -0.035em;
}


.membership-message {
  min-height:
    1em;

  margin:
    10px 0 0;

  color:
    var(--membership-muted);

  font-size:
    0.66rem;

  line-height:
    1.55;
}


/* =========================================================
   GRID
========================================================= */

.membership-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap:
    14px;

  padding:
    46px 0 70px;
}


/* =========================================================
   CARD
========================================================= */

.membership-card {
  position: relative;

  min-width: 0;
  min-height: 580px;

  display: flex;

  flex-direction: column;

  padding:
    25px;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    25px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.032),
      rgba(255, 255, 255, 0.015)
    );

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}


.membership-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(119, 168, 255, 0.24);

  background:
    rgba(119, 168, 255, 0.035);

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.24);
}


/* =========================================================
   FEATURED
========================================================= */

.membership-card-featured {
  border-color:
    rgba(163, 138, 255, 0.31);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(163, 138, 255, 0.13),
      transparent 39%
    ),
    rgba(255, 255, 255, 0.025);
}


.featured-badge {
  position: absolute;

  top: 0;
  right: 24px;

  padding:
    8px 13px;

  border-radius:
    0 0 12px 12px;

  background:
    rgba(163, 138, 255, 0.13);

  color:
    rgba(203, 189, 255, 0.89);

  font-size:
    0.48rem;

  font-weight:
    800;

  letter-spacing:
    0.17em;
}


/* =========================================================
   CARD TOP
========================================================= */

.membership-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  min-height: 20px;
}


.plan-number {
  color:
    rgba(255, 255, 255, 0.18);

  font-size:
    0.53rem;

  letter-spacing:
    0.13em;
}


.plan-label {
  margin: 0;

  color:
    var(--membership-blue);

  font-size:
    0.52rem;

  font-weight:
    800;

  letter-spacing:
    0.18em;
}


.membership-card-featured
.plan-label {
  color:
    var(--membership-purple);
}


/* =========================================================
   CARD HEADER
========================================================= */

.membership-card-header {
  min-height:
    158px;

  padding-top:
    26px;
}


.membership-card-header h2 {
  min-height:
    56px;

  margin: 0;

  color:
    var(--membership-text);

  font-size:
    clamp(
      1.15rem,
      1.6vw,
      1.5rem
    );

  font-weight:
    520;

  letter-spacing:
    -0.045em;

  line-height:
    1.16;
}


.plan-price {
  display: flex;

  align-items: baseline;

  gap: 7px;

  margin:
    22px 0 0;
}


.plan-price strong {
  color:
    #ffffff;

  font-size:
    clamp(
      2.7rem,
      4vw,
      4rem
    );

  font-weight:
    460;

  letter-spacing:
    -0.065em;

  line-height:
    1;
}


.plan-price span {
  color:
    var(--membership-faint);

  font-size:
    0.61rem;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.plan-description {
  min-height:
    90px;

  margin:
    17px 0 0;

  padding-top:
    20px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.06);

  color:
    var(--membership-muted);

  font-size:
    0.71rem;

  line-height:
    1.65;
}


/* =========================================================
   FEATURES
========================================================= */

.plan-features {
  display: grid;

  gap: 12px;

  margin:
    23px 0 0;

  padding: 0;

  list-style: none;
}


.plan-features li {
  position: relative;

  padding-left:
    17px;

  color:
    rgba(239, 243, 255, 0.58);

  font-size:
    0.68rem;

  line-height:
    1.5;
}


.plan-features li::before {
  content: "";

  position: absolute;

  top: 0.55em;
  left: 0;

  width: 5px;
  height: 5px;

  border-radius:
    50%;

  background:
    var(--membership-blue);

  box-shadow:
    0 0 10px
    rgba(119, 168, 255, 0.55);
}


.membership-card-featured
.plan-features li::before {
  background:
    var(--membership-purple);
}


/* =========================================================
   CARD FOOTER
========================================================= */

.membership-card-footer {
  display: grid;

  gap: 12px;

  margin-top:
    auto;

  padding-top:
    28px;
}


.plan-status {
  color:
    var(--membership-faint);

  font-size:
    0.57rem;

  font-weight:
    650;

  letter-spacing:
    0.07em;
}


.plan-button {
  width: 100%;

  min-height:
    48px;

  padding:
    0 16px;

  border:
    1px solid
    rgba(119, 168, 255, 0.19);

  border-radius:
    15px;

  background:
    rgba(119, 168, 255, 0.055);

  color:
    rgba(255, 255, 255, 0.78);

  font-size:
    0.67rem;

  font-weight:
    620;

  line-height:
    1.3;

  cursor: pointer;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}


.plan-button:hover:not(:disabled) {
  transform:
    translateY(-2px);

  border-color:
    rgba(119, 168, 255, 0.42);

  background:
    rgba(119, 168, 255, 0.11);

  color:
    #ffffff;
}


.membership-card-featured
.plan-button {
  border-color:
    rgba(163, 138, 255, 0.25);

  background:
    rgba(163, 138, 255, 0.075);
}


.plan-button:disabled {
  opacity:
    0.53;

  cursor:
    default;
}


/* =========================================================
   ACTIVE MEMBERSHIP STATES
========================================================= */

.membership-card.is-current {
  border-color:
    rgba(124, 224, 185, 0.34);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(124, 224, 185, 0.08),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.022);
}


.membership-card.is-current
.plan-status {
  color:
    var(--membership-green);
}


/* =========================================================
   PAYMENT INFORMATION
========================================================= */

.membership-payment-section {
  display: grid;

  grid-template-columns:
    minmax(250px, 0.75fr)
    minmax(0, 1.5fr);

  gap:
    clamp(
      40px,
      7vw,
      100px
    );

  padding:
    65px 0;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}


.membership-payment-heading > span {
  color:
    var(--membership-blue);

  font-size:
    0.53rem;

  font-weight:
    800;

  letter-spacing:
    0.21em;
}


.membership-payment-heading h2 {
  margin:
    13px 0 0;

  color:
    var(--membership-text);

  font-size:
    clamp(
      2rem,
      3.7vw,
      3.7rem
    );

  font-weight:
    470;

  letter-spacing:
    -0.06em;

  line-height:
    1.02;
}


.membership-payment-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap:
    15px;
}


.membership-payment-grid article {
  min-height:
    180px;

  padding:
    21px;

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-radius:
    20px;

  background:
    rgba(255, 255, 255, 0.018);
}


.payment-detail-number {
  display: block;

  margin-bottom:
    24px;

  color:
    rgba(119, 168, 255, 0.48);

  font-size:
    0.52rem;

  letter-spacing:
    0.14em;
}


.membership-payment-grid strong {
  display: block;

  color:
    rgba(255, 255, 255, 0.78);

  font-size:
    0.74rem;

  font-weight:
    620;
}


.membership-payment-grid p {
  margin:
    9px 0 0;

  color:
    var(--membership-muted);

  font-size:
    0.66rem;

  line-height:
    1.65;
}


/* =========================================================
   LEGAL FOOTER
========================================================= */

.membership-legal-footer {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap:
    60px;

  padding:
    38px 0 0;
}


.membership-footer-brand {
  display: flex;

  align-items: center;

  gap:
    12px;

  flex:
    0 0 auto;
}


.membership-footer-brand img {
  width: 36px;
  height: 36px;

  object-fit: contain;

  animation:
    membershipLogoSpin
    15s
    linear
    infinite;
}


.membership-footer-brand div {
  display: grid;

  gap: 3px;
}


.membership-footer-brand strong {
  color:
    rgba(255, 255, 255, 0.75);

  font-size:
    0.69rem;

  letter-spacing:
    0.18em;
}


.membership-footer-brand span {
  color:
    rgba(239, 243, 255, 0.22);

  font-size:
    0.47rem;

  font-weight:
    700;

  letter-spacing:
    0.16em;
}


.membership-footer-legal {
  max-width:
    660px;

  text-align: right;
}


.membership-footer-legal p {
  margin:
    0 0 7px;

  color:
    rgba(239, 243, 255, 0.27);

  font-size:
    0.59rem;

  line-height:
    1.55;
}


.membership-footer-links {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  flex-wrap: wrap;

  gap:
    6px;

  margin-top:
    13px;

  color:
    rgba(239, 243, 255, 0.27);

  font-size:
    0.59rem;
}


.membership-footer-links a {
  color:
    rgba(119, 168, 255, 0.68);

  transition:
    color 180ms ease;
}


.membership-footer-links a:hover {
  color:
    #ffffff;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes membershipLogoSpin {

  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }

}


@keyframes membershipStars {

  from {
    transform:
      translate3d(
        0,
        0,
        0
      );
  }

  to {
    transform:
      translate3d(
        -142px,
        86px,
        0
      );
  }

}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (
  max-width: 1180px
) {

  .membership-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }


  .membership-card {
    min-height:
      540px;
  }


  .membership-payment-section {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (
  max-width: 820px
) {

  .membership-header {
    width:
      calc(100% - 30px);
  }


  .membership-header-context {
    display:
      none;
  }


  .membership-header {
    grid-template-columns:
      1fr auto 1fr;
  }


  .membership-container {
    width:
      calc(100% - 30px);

    padding-top:
      125px;
  }


  .membership-hero {
    grid-template-columns:
      1fr;

    align-items:
      start;

    gap:
      35px;
  }


  .membership-hero h1 {
    font-size:
      clamp(
        3.5rem,
        11vw,
        6rem
      );
  }


  .current-membership-panel {
    width: 100%;
  }


  .membership-payment-grid {
    grid-template-columns:
      1fr;
  }


  .membership-legal-footer {
    flex-direction:
      column;

    gap:
      24px;
  }


  .membership-footer-legal {
    max-width:
      none;

    text-align:
      left;
  }


  .membership-footer-links {
    justify-content:
      flex-start;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
  max-width: 620px
) {

  .membership-header {
    height:
      70px;
  }


  .membership-back span:last-child {
    display:
      none;
  }


  .membership-brand img {
    width:
      30px;

    height:
      30px;
  }


  .membership-brand strong {
    font-size:
      0.68rem;
  }


  .membership-container {
    width:
      calc(100% - 24px);

    padding:
      105px 0 42px;
  }


  .membership-hero {
    padding-bottom:
      38px;
  }


  .membership-hero h1 {
    font-size:
      clamp(
        3rem,
        14vw,
        4.5rem
      );
  }


  .membership-grid {
    grid-template-columns:
      1fr;

    padding:
      34px 0 54px;
  }


  .membership-card {
    min-height:
      auto;
  }


  .membership-card-header {
    min-height:
      auto;
  }


  .plan-description {
    min-height:
      auto;
  }


  .membership-payment-section {
    padding:
      46px 0;
  }


  .membership-legal-footer {
    padding-top:
      30px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}