* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #111936;
  background: #ffffff;
  font-family: Inter, Arial, sans-serif;
}

.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.back-link {
  color: #5739e8;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  margin-bottom: 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0799a8;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.hero-text {
  margin: 18px auto 0;
  max-width: 620px;
  color: #4d5875;
  font-size: 19px;
  line-height: 1.5;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 36px 0 54px;
}

.plan-summary {
  position: relative;
  min-height: 310px;
  padding: 28px;
  border: 1px solid #e3e7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(30, 39, 80, .08);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.plan-summary:hover {
  transform: translateY(-4px);
  border-color: #9e90ff;
  box-shadow: 0 24px 54px rgba(64, 50, 160, .14);
}

.plan-summary.recommended {
  border: 2px solid #5739e8;
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #5739e8;
  background: #f0edff;
  font-size: 13px;
  font-weight: 900;
}

.plan-summary h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.plan-summary .from {
  margin: 18px 0;
  color: #5739e8;
  font-size: 24px;
  font-weight: 900;
}

.plan-summary p {
  color: #4d5875;
  line-height: 1.5;
}

.features {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  color: #27314f;
  font-size: 15px;
}

.features li::before {
  content: "✓";
  margin-right: 8px;
  color: #0799a8;
  font-weight: 900;
}

.plan-section {
  margin-top: 58px;
}

.plan-section h2 {
  margin: 0 0 8px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: .02em;
}

.plan-section .tagline {
  margin: 0 0 30px;
  text-align: center;
  color: #4d5875;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  min-height: 430px;
  padding: 30px 28px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(155deg, #174fbc 0%, #7456d7 52%, #c45ee2 100%);
  box-shadow: 0 22px 48px rgba(55, 50, 135, .18);
}

.price-card.best {
  background: linear-gradient(155deg, #58d4d6 0%, #188bc4 45%, #064faa 100%);
  transform: translateY(-12px);
}

.price-card h3 {
  margin: 0;
  text-align: center;
  font-size: 28px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin: 10px 0 8px;
}

.price strong {
  font-size: 62px;
  line-height: .95;
}

.price span {
  font-size: 42px;
  line-height: 1;
}

.billing {
  min-height: 48px;
  margin: 18px 0 26px;
  text-align: center;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
}

.price-card .features li {
  color: white;
  font-size: 16px;
}

.price-card .features li::before {
  color: white;
}

.cta {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.18);
  font-weight: 900;
  text-decoration: none;
}

.highlight-ring {
  outline: 4px solid rgba(87, 57, 232, .35);
  outline-offset: 8px;
}

@media (max-width: 900px) {
  .overview,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card.best {
    transform: none;
  }

  .brand img {
    width: 170px;
  }
}

/* Final visual adjustments */

.eyebrow {
  display: none;
}

.topbar {
  align-items: center;
  margin-bottom: 30px;
}

.brand img {
  width: 420px;
  max-width: 42vw;
}

.hero {
  margin-bottom: 26px;
}

.overview {
  align-items: stretch;
}

.plan-summary {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.plan-summary h2 {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 8px;
}

.plan-summary[data-plan="intensive"] h2 {
  font-size: 25px;
  line-height: 1.14;
}

.plan-summary p {
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-summary .from {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 18px;
}

.plan-summary .features {
  text-align: left;
  margin-top: auto;
}

.upgrade-note {
  width: min(880px, 100%);
  margin: 0 auto 54px;
  padding: 18px 24px;
  border: 1px solid #dfe5f3;
  border-radius: 18px;
  color: #25304d;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 14px 34px rgba(28, 39, 80, .07);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.price-grid.single {
  grid-template-columns: minmax(280px, 360px);
  justify-content: center;
}

.price-card.best {
  transform: none;
}

.price-grid {
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .features {
  margin-top: 8px;
}

.price-card .cta {
  margin-top: auto;
}

@media (max-width: 900px) {
  .brand img {
    width: 260px;
    max-width: 70vw;
  }

  .plan-summary h2,
  .plan-summary p,
  .plan-summary .from {
    min-height: auto;
  }
}
