/* ============================================================
   Pricing — billing toggle, currency selector, plan cards
   ============================================================ */

.pricing {
  background: var(--bg-2);
  border-block: 1px solid var(--border-soft);
}

.pricing-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ptoggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.ptoggle button {
  border: 0;
  background: none;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  z-index: 1;
}

.ptoggle button:hover {
  color: var(--text);
}

.ptoggle button.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.ptoggle--product {
  padding: 5px;
  background: var(--surface-2);
  border-color: var(--border-soft);
}

.ptoggle--product button {
  padding: 9px 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.pgrid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.pgrid--triple {
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .pgrid--triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pgrid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-inline: auto;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong, #818cf8);
}

.plan--featured {
  border-color: var(--brand-500);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.14);
}

.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--r-full);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.plan__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.plan__name {
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.plan__badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--gradient-soft);
  color: var(--brand-600);
  border: 1px solid rgba(99, 102, 241, 0.16);
  flex-shrink: 0;
}

.plan__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 42px;
  margin: 0;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 2px;
}

.plan__price b {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan__price span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.plan-monthly-eq {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  min-height: 20px;
  margin-bottom: 16px;
}

.plan .btn {
  width: 100%;
  margin-bottom: 22px;
}

.plan__feats {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0 0;
  border-top: 1px solid var(--border-soft);
  flex-grow: 1;
}

.plan__feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.42;
}

.plan__feats li b {
  color: var(--ink);
  font-weight: 700;
}

.plan__feats svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--success);
  margin-top: 1px;
}

.pricing__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 30px;
  line-height: 1.5;
}
