:root {
  --plan-review-ink: #123f58;
  --plan-review-muted: #587181;
  --plan-review-green: #2dbb91;
  --plan-review-surface: #f7f8fa;
  --plan-review-border: #dfe4e8;
}

.plan-review {
  min-height: calc(100vh - 84px);
  padding: 54px 20px 72px;
  color: var(--plan-review-ink);
  background:
    radial-gradient(circle at 50% 0, rgba(44, 75, 184, 0.04), transparent 38%),
    var(--plan-review-surface);
}

.plan-review__container {
  width: min(100%, 660px);
  margin: 0 auto;
}

.plan-review__header {
  margin-bottom: 24px;
}

.plan-review__header h1 {
  margin: 0 0 6px;
  color: var(--plan-review-ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.plan-review__header p {
  margin: 0;
  color: var(--plan-review-muted);
  font-size: 17px;
  line-height: 1.5;
}

.plan-review__card {
  padding: 34px 40px 36px;
  border: 1px solid var(--plan-review-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 63, 88, 0.04);
}

.plan-review__summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.plan-review__summary h2,
.plan-review__features h2 {
  margin: 0;
  color: var(--plan-review-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.plan-review__summary p {
  margin: 5px 0 0;
  color: var(--plan-review-muted);
  font-size: 12px;
  line-height: 1.5;
}

.plan-review__price {
  flex: 0 0 auto;
  color: var(--plan-review-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.plan-review__saving {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 26px;
  padding: 11px 14px;
  border: 1.5px solid var(--plan-review-green);
  border-radius: 10px;
  color: var(--plan-review-ink);
  background: #effbf6;
  font-size: 12px;
  line-height: 1.4;
}

.plan-review__saving + .plan-review__switch {
  margin-top: 8px;
}

.plan-review__switch {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 26px 0 28px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--plan-review-ink);
  background: #f5f6f8;
  cursor: pointer;
}

.plan-review__switch:focus-within {
  outline: 3px solid rgba(44, 75, 184, 0.2);
  outline-offset: 2px;
}

.plan-review__switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.plan-review__switch > span:last-child {
  display: flex;
  flex-direction: column;
}

.plan-review__switch strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.plan-review__switch small {
  color: var(--plan-review-muted);
  font-size: 11px;
  line-height: 1.4;
}

.plan-review__toggle {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
  border: 1px solid #d7dde1;
  border-radius: 999px;
  background: #dfe4e8;
}

.plan-review__toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 63, 88, 0.2);
}

.plan-review__switch-input:checked + .plan-review__toggle {
  border-color: var(--plan-review-green);
  background: var(--plan-review-green);
}

.plan-review__switch-input:checked + .plan-review__toggle span {
  right: 3px;
  left: auto;
}

.plan-review__features h2 {
  margin-bottom: 15px;
}

.plan-review__features ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-review__features li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--plan-review-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.plan-review__features svg {
  flex: 0 0 16px;
  color: var(--plan-review-green);
}

.plan-review__continue {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--plan-review-green);
  box-shadow: 0 8px 20px rgba(45, 187, 145, 0.18);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.plan-review__continue:hover,
.plan-review__continue:focus-visible {
  color: #fff;
  background: #24a980;
  box-shadow: 0 10px 24px rgba(45, 187, 145, 0.24);
  transform: translateY(-1px);
}

.plan-review__continue:focus-visible,
.plan-review__cancel:focus-visible {
  outline: 3px solid rgba(44, 75, 184, 0.2);
  outline-offset: 3px;
}

.plan-review__cancel {
  display: block;
  width: max-content;
  margin: 17px auto 0;
  color: var(--plan-review-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.plan-review__cancel:hover {
  color: var(--plan-review-ink);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .plan-review {
    min-height: auto;
    padding: 34px 16px 54px;
  }

  .plan-review__header {
    margin-bottom: 18px;
  }

  .plan-review__header p {
    font-size: 15px;
  }

  .plan-review__card {
    padding: 26px 22px 28px;
    border-radius: 22px;
  }

  .plan-review__switch {
    margin: 22px 0 24px;
  }
}

@media (max-width: 420px) {
  .plan-review__summary {
    gap: 12px;
  }

  .plan-review__summary h2,
  .plan-review__features h2 {
    font-size: 18px;
  }

  .plan-review__price {
    font-size: 19px;
  }

  .plan-review__switch {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-review__continue {
    transition: none;
  }
}

