/*
  Velocity Hub — Pricing Tables Theme Styling
  Targets markup emitted by the "VH Pricing Tables" plugin.

  Visual direction:
  - Ops / SaaS dense, Webflow-ish hierarchy
  - Neutral palette (inherits theme colors)
  - Cards-first can stand alone; future compare view supported via .vhpt-compare*
*/

:root{
  --vhpt-border: rgba(0,0,0,.10);
  --vhpt-border-soft: rgba(0,0,0,.06);
  --vhpt-bg: #fff;
  --vhpt-bg-soft: rgba(0,0,0,.02);
  --vhpt-text: rgba(0,0,0,.90);
  --vhpt-muted: rgba(0,0,0,.62);
  --vhpt-radius: 16px;
  --vhpt-radius-sm: 12px;
}

/* -----------------------------
   Card view (current plugin UI)
------------------------------ */

.vhpt-table{
  margin: 28px 0;
}

.vhpt-cols{
  display: grid;
  gap: 18px;
}

/* Slightly tighter on desktop; keep readable on mobile */
@media (min-width: 992px){
  .vhpt-cols{ gap: 20px; }
}

.vhpt-tier{
  background: var(--vhpt-bg);
  border: 1px solid var(--vhpt-border);
  border-radius: var(--vhpt-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.vhpt-tier.is-featured{
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.vhpt-tier-head{
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--vhpt-border-soft);
  background: linear-gradient(to bottom, rgba(0,0,0,.015), transparent);
}

.vhpt-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--vhpt-text);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--vhpt-border);
  background: rgba(255,255,255,.75);
  margin: 0 0 10px;
}

.vhpt-tier-name{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--vhpt-text);
}

.vhpt-prices{
  margin: 0 0 10px;
}

.vhpt-price{
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--vhpt-text);
}

.vhpt-price-amt{
  font-size: 30px;
  line-height: 1;
}

.vhpt-price-unit{
  font-size: 13px;
  font-weight: 800;
  color: var(--vhpt-muted);
}

.vhpt-subprice{
  font-size: 12.5px;
  color: var(--vhpt-muted);
  margin-top: 6px;
}

/* CTA should read like a primary button; inherit theme colors by default */
.vhpt-cta{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--vhpt-radius-sm);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--vhpt-border);
  background: rgba(0,0,0,.04);
  color: var(--vhpt-text);
}

.vhpt-cta:hover,
.vhpt-cta:focus{
  text-decoration: none;
  background: rgba(0,0,0,.06);
}

.vhpt-services{
  list-style: none;
  margin: 0;
  padding: 0;
}

.vhpt-service{
  border-top: 1px solid var(--vhpt-border-soft);
}

/* Make rows feel like "included features" not a nav menu */
.vhpt-service a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none !important;
  color: var(--vhpt-text);
  background: transparent;
}

.vhpt-service a:hover,
.vhpt-service a:focus{
  background: var(--vhpt-bg-soft);
}

/* Checkmark indicator */
.vhpt-service-title{
  position: relative;
  padding-left: 18px;
  font-weight: 650;
  min-width: 0;
}

.vhpt-service-title::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0,0,0,.70);
  font-weight: 900;
}

/* Only underline the title on hover (not the whole row) */
.vhpt-service a:hover .vhpt-service-title,
.vhpt-service a:focus .vhpt-service-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vhpt-service-price{
  font-size: 12.5px;
  font-weight: 800;
  color: var(--vhpt-muted);
  white-space: nowrap;
}

/* Responsive: cards stack nicely */
@media (max-width: 900px){
  .vhpt-cols-3,
  .vhpt-cols-4{ grid-template-columns: 1fr !important; }
  .vhpt-price-amt{ font-size: 28px; }
}

/* -----------------------------
   Dense comparison view (future / optional)
   Use with a table wrapper like:
   .vhpt-compare, .vhpt-compare-grid, .vhpt-row, .vhpt-cell, etc.
------------------------------ */

.vhpt-compare{
  max-width: 1200px;
  margin: 28px auto;
  border: 1px solid var(--vhpt-border);
  border-radius: var(--vhpt-radius);
  background: var(--vhpt-bg);
  overflow: hidden;
}

.vhpt-compare-grid{
  display: grid;
  grid-template-columns: 38% repeat(var(--vhpt-tier-count, 3), 1fr);
}

.vhpt-compare-head{
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--vhpt-bg);
  border-bottom: 1px solid var(--vhpt-border);
}

.vhpt-head-cell{
  padding: 16px 14px;
  border-right: 1px solid var(--vhpt-border-soft);
}
.vhpt-head-cell:last-child{ border-right: 0; }

.vhpt-row{
  min-height: 48px;
  border-bottom: 1px solid var(--vhpt-border-soft);
}
.vhpt-row:nth-child(even){ background: var(--vhpt-bg-soft); }

.vhpt-cell{
  padding: 12px 14px;
  border-right: 1px solid var(--vhpt-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vhpt-cell:last-child{ border-right: 0; }

.vhpt-feature{ justify-content: space-between; }

.vhpt-state-yes{ font-weight: 900; }
.vhpt-state-no{ color: var(--vhpt-muted); font-weight: 800; }

.vhpt-addon-pill{
  border: 1px solid var(--vhpt-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.vhpt-row.is-hidden{ display:none; }
