/**
 * Hello Home — "Choose Your Plan".
 *
 * Two cards over a shared feature list. The annual card is the featured one:
 * a red ring and tinted shadow rather than a different fill, so both cards
 * read as the same object with one emphasised.
 */

.hello-plans {
  --hello-pad-x: clamp(20px, 5vw, 80px);
  --hello-pad-y: clamp(72px, 8vw, 128px);
  /**
   * The comp puts its 960px limit on a container INSIDE the padded section,
   * so 960px is the content width. --hello-width caps the padded box, so the
   * padding has to be added back or the cards come out ~160px narrower.
   */
  --hello-width: calc(960px + 2 * clamp(20px, 5vw, 80px));
  background: #fff;
  color: #0d0d0d;
}

.hello-plans .hello-widget__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 4.4vw, 56px);
}

.hello-plans__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  text-align: center;
}

.hello-plans__heading {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 72px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.hello-plans__intro {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: #555;
  text-wrap: pretty;
}

/* ---- cards -------------------------------------------------------------- */

.hello-plans__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.hello-plans__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(32px, 3.4vw, 44px);
  border-radius: 20px;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px #e6e6e6;
}

/* Ring, not a fill: the two cards stay the same object, one emphasised. */
.hello-plans__card.is-featured {
  background: #fff;
  box-shadow: 0 0 0 2px var(--hello-accent), 0 30px 70px rgba(220, 26, 64, 0.18);
}

.hello-plans__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--hello-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hello-plans__plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hello-plans__plan-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hello-accent);
}

.hello-plans__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.hello-plans__amount {
  font-size: clamp(56px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
}

.hello-plans__suffix {
  font-size: 20px;
  font-weight: 700;
  color: #555;
}

/* ---- discount ----------------------------------------------------------
 * Not in the comp. The old price sits before the new one at roughly a third
 * the size, struck through and muted, so the eye lands on what is charged
 * today rather than on the number being crossed out.
 * ----------------------------------------------------------------------- */

.hello-plans__was {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: #9a9a9a;
  text-decoration-thickness: 2px;
}

.hello-plans__card.is-discounted .hello-plans__amount {
  color: var(--hello-accent);
}

.hello-plans__billed {
  font-size: 16px;
  font-weight: 500;
  color: #555;
}

.hello-plans__card .hello-btn.hello-plans__cta {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-top: auto; /* notes align across cards of unequal copy length */
}

/**
 * The monthly card's button is outlined in near-black, not the shared ghost
 * variant's grey fill -- it has to read as the quieter of two choices while
 * still looking like a real button on a grey card.
 */
.hello-plans__card:not(.is-featured) .hello-btn.hello-plans__cta {
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px #0d0d0d;
  color: #0d0d0d;
}
.hello-plans__card:not(.is-featured) .hello-btn.hello-plans__cta:hover,
.hello-plans__card:not(.is-featured) .hello-btn.hello-plans__cta:focus-visible {
  background: #0d0d0d;
  color: #fff;
}

.hello-plans__note {
  margin: -8px 0 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* ---- shared feature list ------------------------------------------------ */

.hello-plans__features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: clamp(8px, 1vw, 16px);
}

.hello-plans__features-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.hello-plans__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px 32px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hello-plans__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: #0d0d0d;
}

/* Filled disc with a glyph, not the bare stroke the shared checklist uses. */
.hello-plans__feature-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hello-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* ---- trust row ----------------------------------------------------------
 * Separated from the features by a hairline rule, and deliberately plain --
 * no ticks. These are reassurances, not features, and the comp keeps the
 * two treatments distinct.
 * ----------------------------------------------------------------------- */

.hello-plans__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  width: 100%;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

@media (max-width: 767px) {
  .hello-plans__cards {
    gap: 32px; /* room for the badge, which overhangs the card top */
  }
  .hello-plans__feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
