/* Pricing page. Card design and icons from the pricing cards another dev built
   (classes prefixed pc- so they can't clash with the site's own .card/.btn/.badge).
   Background, nav, footer and fonts come from styles.css. */

.pricing {
  --pc-card-bg: rgba(255, 255, 255, 0.4);
  --pc-header-bg: rgba(255, 255, 255, 0.7);
  --pc-border: rgba(11, 31, 75, 0.14);
  --pc-input-border: rgba(11, 31, 75, 0.25);
  padding-top: 72px;
  padding-bottom: 96px;
}
.pricing .section-head { margin-bottom: 32px; }
.pricing .section-head p:last-child { margin-top: 10px; color: var(--navy-soft); font-size: 17px; }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }

/* ---------- cards ---------- */
.pc-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
  align-items: start;
  gap: 10px;
  padding: 12px;
  width: 100%;
}
@media (min-width: 768px) {
  .pc-grid { grid-template-columns: repeat(3, minmax(0, 320px)); }
}

.pc-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 6px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: var(--pc-card-bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.pc-header {
  position: relative;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: var(--pc-header-bg);
}
/* shiny strip at the top of the header */
.pc-header-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 192px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 100%);
}
.pc-header > *:not(.pc-header-shine) { position: relative; }

.pc-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.pc-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--navy-soft);
}
.pc-plan-name svg { width: 16px; height: 16px; }
.pc-badge {
  padding: 2px 8px;
  border: 1px solid rgba(11, 31, 75, 0.2);
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(11, 31, 75, 0.8);
}

.pc-price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 12px;
}
.pc-price {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.pc-period {
  padding-bottom: 4px;
  font-size: 14px;
  color: rgba(11, 31, 75, 0.8);
}
.pc-old-price {
  margin-left: auto;
  margin-right: 4px;
  font-size: 18px;
  line-height: 28px;
  color: var(--navy-soft);
  text-decoration: line-through;
}

/* buttons */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.pc-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pc-btn-dark { background: var(--navy); color: var(--white); border: 0; }
.pc-btn-dark:hover { background: rgba(11, 31, 75, 0.9); }
.pc-btn-light { background: var(--white); color: var(--navy); border: 1px solid var(--pc-input-border); }
.pc-btn-light:hover { background: var(--sky-low); }
/* the free plan has no button, so keep the header the same height */
.pc-btn-space { height: 40px; }
.pc-btn:disabled { cursor: default; opacity: .6; }
/* the plan you're on */
.pc-current { border-color: rgba(31, 111, 224, 0.45); box-shadow: 0 0 0 3px rgba(31, 111, 224, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px;
}
.pc-description {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--navy-soft);
}
.pc-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy-soft);
}
.pc-feature svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--navy);
}

/* little message when you click a plan */
.pc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  padding: 10px 16px;
  border: 1px solid rgba(11, 31, 75, 0.14);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.pc-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .pricing { padding-top: 40px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-toast, .pc-btn { transition: none; }
}
