/* Plan cards — compact, structured like the order-page recap.
   Goal: name + price on one row, tight 2-col spec grid, small CTA.
   Cards stay under ~280px tall on desktop. */

.pcards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 900px){ .pcards{ grid-template-columns: 1fr; gap: 10px; } }

.pcard{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--bd, #e5e5e5);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  isolation: isolate;
}
.pcard:hover{
  transform: translateY(-2px);
  border-color: var(--ac, #0e6b4a);
  box-shadow: 0 12px 24px -12px rgba(14,107,74,.22);
}

/* Popular variant — accent left stripe, soft tint, prominent CTA */
.pcard-popular{
  border-color: rgba(14,107,74,.35);
  background: linear-gradient(180deg, #fff 0%, #f7fcf9 100%);
  box-shadow: 0 4px 14px -8px rgba(14,107,74,.18);
}
.pcard-popular::before{
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--ac, #0e6b4a);
}


/* ─── Top row: name (left) + price (right) ─────────────────────────────── */
.pcard-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.pcard-id{ min-width: 0; flex: 1; }
.pcard-tag{
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ac, #0e6b4a);
  background: var(--ac-bg, #e6f1eb);
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  line-height: 1;
}
.pcard-popular .pcard-tag{ color: #fff; background: var(--ac, #0e6b4a); }
.pcard-name{
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--tx, #111);
}
.pcard-code{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--tx3, #888);
  letter-spacing: .02em;
  font-weight: 500;
  margin-top: 4px;
}
.pcard-price{
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}
.pcard-price-amt{
  font-size: 26px;
  font-weight: 800;
  color: var(--tx, #111);
  letter-spacing: -.025em;
  transition: opacity .22s ease;
}
.pcard-price-amt.changing{ opacity: .35; }
.pcard-price-unit{
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--tx3, #888);
  letter-spacing: 0;
  margin-top: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ─── Specs: clear "label: value" rows ─────────────────────────────── */
.pcard-specs{
  margin: 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pcard-spec{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bd2, #f0f0f0);
  font-size: 13px;
  line-height: 1.35;
}
.pcard-spec:first-child{ border-top: 1px solid var(--bd2, #f0f0f0); }
.pcard-spec dt{
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx3, #888);
  letter-spacing: -.005em;
  flex-shrink: 0;
}
.pcard-spec dd{
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx, #111);
  letter-spacing: -.005em;
  text-align: right;
  min-width: 0;
}

/* ─── CTA: thin row at the bottom, full-width but compact ──────────────── */
.pcard-cta{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg2, #f7f8fa);
  border: 1px solid var(--bd2, #f0f0f0);
  color: var(--tx, #111);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pcard-cta svg{
  width: 13px; height: 13px;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.pcard-cta:hover{
  background: var(--ac, #0e6b4a);
  border-color: var(--ac, #0e6b4a);
  color: #fff;
}
.pcard-cta:hover svg{ transform: translateX(3px); }
.pcard-popular .pcard-cta{
  background: var(--ac, #0e6b4a);
  border-color: var(--ac, #0e6b4a);
  color: #fff;
}
.pcard-popular .pcard-cta:hover{
  background: var(--ac2, #0a5238);
  border-color: var(--ac2, #0a5238);
}

@media (max-width: 640px){
  .pcard{ padding: 16px 18px; border-radius: 11px; }
  .pcard-name{ font-size: 18px; }
  .pcard-price-amt{ font-size: 24px; }
  .pcard-spec{ font-size: 12px; }
  .pcard-spec dt{ width: 40px; font-size: 9px; }
}
