/* Plan hierarchy: Basic is the quiet baseline; Premium is the flagship offer. */
.plans__grid {
  align-items: stretch;
}

.plan--basic {
  background:
    linear-gradient(145deg, rgba(7, 15, 27, .96), rgba(4, 10, 18, .86));
  border-color: rgba(128, 161, 198, .13);
}

.plan--basic::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(145, 172, 202, .24);
  content: "ESSENTIAL / 01";
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: .14em;
  pointer-events: none;
}

.plan--basic .plan > p,
.plan--basic li {
  color: rgba(196, 212, 231, .7);
}

.plan--basic .button {
  border-color: rgba(146, 181, 224, .24);
  color: #b9c9dc;
}

.plan--premium {
  isolation: isolate;
  margin-top: -24px;
  margin-bottom: -24px;
  border: 1px solid rgba(47, 224, 138, .48);
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 224, 138, .22), transparent 29%),
    radial-gradient(circle at 42% 86%, rgba(31, 123, 255, .15), transparent 34%),
    linear-gradient(145deg, #0b2733 0%, #071b28 48%, #06121f 100%);
  box-shadow:
    inset 0 2px 0 var(--green),
    inset 0 0 0 1px rgba(159, 235, 200, .08),
    0 24px 90px rgba(0, 0, 0, .38),
    0 0 50px rgba(47, 224, 138, .09);
}

.plan--premium::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 3px;
  background: linear-gradient(180deg, var(--green), rgba(47, 224, 138, .12) 70%, transparent);
  box-shadow: 0 0 22px rgba(47, 224, 138, .55);
  content: "";
  pointer-events: none;
}

.plan--premium::after {
  position: absolute;
  right: -140px;
  bottom: -200px;
  z-index: -1;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(99, 180, 255, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(99, 180, 255, .035),
    0 0 0 74px rgba(47, 224, 138, .025),
    0 0 80px rgba(47, 224, 138, .1);
  content: "";
  pointer-events: none;
}

.plan--premium > * {
  position: relative;
  z-index: 1;
}

.plan__premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 11px;
  border: 1px solid rgba(47, 224, 138, .35);
  background: rgba(2, 25, 20, .48);
  color: #bfffe0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: .15em;
}

.plan__premium-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
}

.plan--premium header h3 {
  color: #ffffff;
  font-size: clamp(52px, 5.6vw, 86px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.plan--premium header small {
  color: #8effc1;
}

.plan--premium header > span {
  color: #8eafbd;
}

.plan--premium > p {
  max-width: 55ch;
  color: #caddeb;
}

.plan--premium ul {
  margin-top: 38px;
  border-top-color: rgba(144, 226, 198, .22);
}

.plan--premium li {
  padding-left: 40px;
  border-bottom-color: rgba(144, 226, 198, .18);
  color: #e1f0fb;
}

.plan--premium li::before {
  top: 15px;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(47, 224, 138, .54);
  border-radius: 6px;
  background: rgba(47, 224, 138, .09);
  box-shadow: 0 0 17px rgba(47, 224, 138, .2);
}

.plan--premium li::after {
  position: absolute;
  top: 15px;
  left: 5px;
  color: var(--green);
  content: "✓";
  font-size: 11px;
  font-weight: 800;
}

.plan--premium .plan__signal {
  width: 330px;
  opacity: .58;
}

.plan--premium .plan__signal i {
  border-color: rgba(47, 224, 138, .5);
}

.plan--premium .button {
  min-height: 58px;
  border-color: rgba(47, 224, 138, .65);
  background: linear-gradient(100deg, rgba(47, 224, 138, .2), rgba(99, 180, 255, .14));
  box-shadow: 0 10px 28px rgba(47, 224, 138, .1);
}

.plan--premium .button:hover {
  border-color: #8effc1;
  background: linear-gradient(100deg, rgba(47, 224, 138, .3), rgba(99, 180, 255, .2));
  box-shadow: 0 14px 38px rgba(47, 224, 138, .18);
}

@media (max-width: 1000px) {
  .plan--premium {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .plan__premium-badge {
    margin-bottom: 18px;
  }

  .plan--premium .plan__signal {
    width: 240px;
    opacity: .46;
  }
}


/* Plan detail panels */
.plan-detail-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overscroll-behavior: none;
}

.plan-detail-dialog[open] {
  display: block;
}

.plan-detail-dialog::backdrop {
  background: transparent;
}

.plan-detail-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 11, .78);
  backdrop-filter: blur(12px);
}

.plan-detail-dialog__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  padding: clamp(34px, 5vw, 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid rgba(47, 224, 138, .28);
  background: linear-gradient(145deg, #071624, #04101b 72%);
  box-shadow: -40px 0 120px rgba(0, 0, 0, .55), inset 0 2px 0 var(--green);
}

.plan-detail-dialog__panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 260px;
  background: radial-gradient(circle at top right, rgba(47, 224, 138, .18), transparent 70%);
  content: "";
  pointer-events: none;
}

.plan-detail-dialog__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 9, 17, .35);
  color: #a6b7cb;
  cursor: pointer;
  font-size: 25px;
  font-weight: 300;
}

.plan-detail-dialog__close:hover {
  border-color: var(--green);
  color: #fff;
}

.plan-detail-view[hidden] {
  display: none;
}

.plan-detail__eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.plan-detail__eyebrow b {
  color: #8198ad;
  font-weight: 500;
  text-align: right;
}

.plan-detail-view h2 {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  color: #f3f8ff;
  font-size: clamp(58px, 8vw, 92px);
  font-weight: 550;
  letter-spacing: -.07em;
  line-height: .9;
}

.plan-detail__lead {
  position: relative;
  z-index: 1;
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.plan-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.plan-choice-card {
  display: grid;
  gap: 13px;
  min-height: 236px;
  padding: 24px;
  border: 1px solid rgba(146, 181, 224, .2);
  background: linear-gradient(145deg, rgba(99, 180, 255, .08), rgba(3, 9, 17, .38));
  color: #f2f7ff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.plan-choice-card:hover,
.plan-choice-card:focus-visible {
  border-color: rgba(99, 180, 255, .7);
  background: linear-gradient(145deg, rgba(99, 180, 255, .14), rgba(3, 9, 17, .48));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  transform: translateY(-4px);
}

.plan-choice-card--premium {
  border-color: rgba(47, 224, 138, .4);
  background: linear-gradient(145deg, rgba(47, 224, 138, .13), rgba(3, 9, 17, .42));
}

.plan-choice-card--premium:hover,
.plan-choice-card--premium:focus-visible {
  border-color: var(--green);
  background: linear-gradient(145deg, rgba(47, 224, 138, .2), rgba(3, 9, 17, .5));
}

.plan-choice-card__code {
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
}

.plan-choice-card strong {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.06em;
  line-height: 1;
}

.plan-choice-card p {
  margin: 0;
  color: #a9bfd2;
  font-size: 14px;
  line-height: 1.55;
}

.plan-choice-card__action {
  align-self: end;
  color: #dcecff;
  font-size: 12px;
  font-weight: 700;
}

.plan-choice-card__action b {
  margin-left: 6px;
  color: var(--green);
}
.plan-detail__explanation {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 66ch;
  margin-top: 28px;
  padding: 19px 21px;
  border: 1px solid rgba(47, 224, 138, .2);
  background: linear-gradient(135deg, rgba(47, 224, 138, .06), rgba(99, 180, 255, .035));
}

.plan-detail__explanation > span {
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .16em;
}

.plan-detail__explanation p {
  margin: 0;
  color: #a9bfd2;
  font-size: 14px;
  line-height: 1.65;
}
.plan-detail__feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.plan-detail__feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  min-height: 100px;
  padding: 16px;
  border: 1px solid rgba(146, 181, 224, .16);
  background: rgba(99, 180, 255, .035);
}

.plan-detail__feature i {
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.plan-detail__feature strong,
.plan-detail__feature span {
  display: block;
}

.plan-detail__feature strong {
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 600;
}

.plan-detail__feature span {
  margin-top: 7px;
  color: #8499b0;
  font-size: 12px;
  line-height: 1.45;
}

.plan-detail__included {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
  background: rgba(47, 224, 138, .06);
}

.plan-detail__included span,
.plan-detail__extras-heading > span {
  color: #8effc1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.plan-detail__included p {
  margin: 8px 0 0;
  color: #b7cadb;
  font-size: 13px;
  line-height: 1.55;
}

.plan-detail__extras-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.plan-detail__extras-heading p {
  margin: 0;
  color: #8297ad;
  font-size: 12px;
}

.plan-detail__extras-heading b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(47, 224, 138, .55);
  border-radius: 50%;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.plan-extra-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.plan-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  border: 1px solid rgba(146, 181, 224, .16);
  background: rgba(99, 180, 255, .03);
  transition: border-color .25s ease, background .25s ease;
}

.plan-extra:has(input:checked) {
  border-color: rgba(47, 224, 138, .6);
  background: rgba(47, 224, 138, .08);
}

.plan-extra label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 8px 10px 13px;
  cursor: pointer;
}

.plan-extra input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.plan-extra label span {
  min-width: 0;
}

.plan-extra label strong,
.plan-extra label small {
  display: block;
}

.plan-extra label strong {
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
}

.plan-extra label small {
  margin-top: 4px;
  overflow: hidden;
  color: #71869d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-info {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border: 1px solid rgba(99, 180, 255, .42);
  border-radius: 50%;
  background: transparent;
  color: #8ec8f5;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.plan-info[aria-expanded="true"],
.plan-info:hover {
  border-color: var(--green);
  color: var(--green);
}

.plan-extra__description {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 13px 13px 38px;
  color: #a9bfd2;
  font-size: 11px;
  line-height: 1.5;
}

.plan-detail__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(146, 181, 224, .15);
}

.plan-detail__footer > span {
  color: #7890a7;
  font-size: 11px;
  line-height: 1.45;
}

.plan-detail__continue {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .plan-detail-dialog__panel {
    width: 100%;
    padding: 72px 20px 32px;
    border-left: 0;
  }

  .plan-detail__eyebrow {
    display: block;
    padding-right: 48px;
    line-height: 1.7;
  }

  .plan-detail__eyebrow b {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .plan-detail-view h2 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .plan-detail__lead {
    font-size: 14px;
  }

  .plan-detail__feature-grid,
.plan-extra-list {
    grid-template-columns: 1fr;
  }

  .plan-detail__extras-heading {
    display: block;
  }

  .plan-detail__extras-heading p {
    margin-top: 8px;
  }

  .plan-detail__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-detail__continue {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .plan-choice-grid {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .plan-choice-card {
    min-height: 196px;
  }
}