/* Packages: the three plan cards and the comparison table. */
/* plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}
.plan h3 {
  font-size: 22px;
  font-weight: 600;
}
.plan-for {
  color: var(--soft);
  font-size: 15.5px;
}
.plan-price {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-2);
  padding-block: 10px 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.plan .btn {
  width: 100%;
  margin-bottom: 8px;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 50%;
  background: #dbe7fd
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.plan-star {
  background: linear-gradient(170deg, #12295a, var(--navy) 55%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(11, 31, 68, 0.3);
  transform: translateY(-10px);
}
.plan-star .plan-for {
  color: var(--on-night-soft);
}
.plan-star .plan-price {
  color: #fff;
  border-color: var(--line-night);
}
.plan-star li::before {
  background-color: rgba(96, 165, 250, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2393c5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-tag {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .plan-star {
    transform: none;
  }
}
.compare-wrap {
  margin-top: 72px;
  position: relative; /* keeps the hidden screen-reader text inside the scroller */
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare caption {
  text-align: start;
  padding: 22px 24px 8px;
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 600;
}
.compare th,
.compare td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-cool);
  text-align: center;
}
.compare th[scope='row'],
.compare thead th:first-child {
  text-align: start;
  font-weight: 500;
}
.compare thead th {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--soft);
  font-size: 14px;
}
.compare thead th:nth-child(3) {
  color: var(--blue);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare td:nth-child(3) {
  background: rgba(37, 99, 235, 0.04);
}
.compare .y {
  color: var(--blue);
  font-weight: 700;
}
.compare .n {
  color: #6b7280;
}
.compare .p {
  color: var(--soft);
  font-size: 13.5px;
}
