/* Design system, part 5 of 7: card grids, tick lists, plan cards, operator card, closing call to action. */

.steps3 li,
.feature,
.plan {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}

.steps3 strong,
.feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.0625rem;
}

.steps3 p,
.feature p {
  margin: 0;
  color: var(--text-dim);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

ul.ticks {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

ul.ticks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
  color: var(--text-2);
}

ul.ticks li::before {
  content: "";
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
}

ul.ticks li::after {
  content: "";
  position: absolute;
  top: calc(0.28em + 4px);
  left: 6.5px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 0 0 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow-md);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 650;
}

.plan h3 {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 1rem;
}

.plan .price {
  margin: 0;
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plan .per {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.plan ul.ticks {
  margin: 20px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.plan .foot {
  margin-top: auto;
}

.plan .foot .button {
  width: 100%;
}

.operator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 750;
}

.operator .actions {
  gap: 8px;
  margin: 16px 0 12px;
}

.cta-band {
  margin: 0 0 16px;
  padding: 56px 24px;
  border-radius: 20px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(140deg, #073f3a 0%, #0f766e 55%, #148f80 100%);
  color: #ffffff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  max-width: 56ch;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
}

.cta-band .actions {
  justify-content: center;
}

.button.light,
.button.light:hover {
  --b-bg: #ffffff;
  --b-fg: #073f3a;
  --b-line: #ffffff;
}

.button.ghost {
  --b-bg: rgba(255, 255, 255, 0.1);
  --b-fg: #ffffff;
  --b-line: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button.ghost:hover {
  --b-bg: rgba(255, 255, 255, 0.2);
  --b-line: #ffffff;
}

.cta-band a:focus-visible {
  outline-color: #ffffff;
  box-shadow: none;
}

@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps3 li,
  .feature {
    padding: 20px;
  }

  .feature-icon {
    margin-bottom: 12px;
  }
  .operator {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .cta-band {
    padding: 40px 20px;
    border-radius: 16px;
  }
  .cta-band .button {
    width: 100%;
  }
}
