/* Tier cards (templates/front/partials/pricing_tiers.html), used on the
   landing page and /billing. Layout follows reachvo.ai/pricing - switch,
   three cards, label / value spec rows - in the LEADGEN green theme.
   Self-contained tokens so it looks the same inside both page themes. */

.pt-pricing {
  --pt-ink: #0b241a;
  --pt-muted: #61796f;
  --pt-line: #dce8e2;
  --pt-row: #eef4f1;
  --pt-soft: #e7f3ed;
  --pt-green: #087a54;
  --pt-green-bright: #05a16c;
  color: var(--pt-ink);
}

/* Which billing cycle shows (tiers.INTERVALS) */
.pt-pricing [data-show] {
  display: none;
}

.pt-pricing[data-interval="weekly"] [data-show="weekly"],
.pt-pricing[data-interval="monthly"] [data-show="monthly"],
.pt-pricing[data-interval="bimonthly"] [data-show="bimonthly"],
.pt-pricing[data-interval="quarterly"] [data-show="quarterly"],
.pt-pricing[data-interval="semiannual"] [data-show="semiannual"],
.pt-pricing[data-interval="annual"] [data-show="annual"] {
  display: block;
}

/* A tier's card only shows under the cycles it is sold in (data-offers) */
.pt-pricing[data-interval="weekly"] .pt-card:not([data-offers~="weekly"]),
.pt-pricing[data-interval="monthly"] .pt-card:not([data-offers~="monthly"]),
.pt-pricing[data-interval="bimonthly"] .pt-card:not([data-offers~="bimonthly"]),
.pt-pricing[data-interval="quarterly"] .pt-card:not([data-offers~="quarterly"]),
.pt-pricing[data-interval="semiannual"] .pt-card:not([data-offers~="semiannual"]),
.pt-pricing[data-interval="annual"] .pt-card:not([data-offers~="annual"]) {
  display: none;
}

/* ── Switch ──────────────────────────────────────────── */
.pt-switch-row {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.pt-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 47, 33, .06);
}

.pt-switch-btn {
  min-height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pt-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.pt-switch-btn small {
  font-size: 12px;
  font-weight: 600;
  opacity: .85;
}

.pt-switch-btn[aria-checked="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--pt-green), var(--pt-green-bright));
  box-shadow: 0 6px 16px rgba(5, 150, 105, .25);
}

.pt-switch-btn:focus-visible {
  outline: 2px solid var(--pt-green-bright);
  outline-offset: 2px;
}

/* ── "Every plan includes" ───────────────────────────── */
.pt-includes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 12px 20px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.pt-includes-label {
  color: var(--pt-green);
  font-weight: 700;
}

.pt-includes-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2c4a3d;
}

.pt-includes-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pt-green-bright);
}

/* ── Cards ───────────────────────────────────────────── */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.pt-grid-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pt-grid-2,
.pt-grid-4 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }

.pt-card {
  position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 47, 33, .055);
}

.pt-card-featured {
  border: 1.5px solid var(--pt-green-bright);
  box-shadow: 0 22px 48px rgba(5, 135, 91, .18);
}

.pt-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pt-green), var(--pt-green-bright));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-tier,
.pt-desc,
.pt-price-block {
  text-align: center;
}

.pt-tier {
  color: var(--pt-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pt-desc {
  min-height: 44px;
  margin-top: 8px;
  color: var(--pt-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.pt-desc p { margin: 0; }

.pt-price-block {
  margin-top: 16px;
}

.pt-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.pt-price strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.pt-price small {
  margin-left: -4px;
  color: var(--pt-muted);
  font-size: 14px;
}

.pt-was {
  color: #8fa59b;
  font-size: 18px;
  font-weight: 600;
}

.pt-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px dashed #7cc9a6;
  border-radius: 999px;
  background: var(--pt-soft);
  color: #0b5e40;
  font-size: 12px;
  font-weight: 700;
}

.pt-billed {
  margin-top: 8px;
  color: var(--pt-muted);
  font-size: 12.5px;
}

.pt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1.5px solid var(--pt-green-bright);
  border-radius: 12px;
  background: #fff;
  color: var(--pt-green);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.pt-btn:hover {
  transform: translateY(-1px);
  background: var(--pt-soft);
}

.pt-card-featured .pt-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--pt-green), var(--pt-green-bright));
  box-shadow: 0 10px 22px rgba(5, 150, 105, .24);
}

.pt-card-featured .pt-btn:hover {
  box-shadow: 0 14px 28px rgba(5, 150, 105, .32);
}

.pt-btn-note {
  margin: 10px 0 0;
  color: var(--pt-muted);
  font-size: 11.5px;
  text-align: center;
}

.pt-specs {
  margin: 20px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--pt-line);
}

.pt-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pt-row);
  font-size: 14px;
}

.pt-spec:last-child { border-bottom: 0; }

.pt-spec dt {
  color: var(--pt-muted);
}

.pt-spec dd {
  margin: 0;
  color: var(--pt-ink);
  font-weight: 700;
  text-align: right;
}

.pt-spec dd.pt-spec-no {
  color: #a9bbb3;
  font-weight: 500;
}

.pt-footnote {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--pt-muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  .pt-grid,
  .pt-grid-2,
  .pt-grid-4 {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .pt-card { padding: 26px 20px 22px; }
  .pt-switch-btn { padding: 0 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-btn, .pt-switch-btn { transition: none; }
}
