/* ============================================================
   The Workstation — packages page (WRKSTN-PACKAGES block)
   Styles the static .pkg-card grid + info tooltips. Loaded via
   workstationtemplate-packages.html. Markup lives in
   blocks/WRKSTN-PACKAGES.html.
   ============================================================ */

.pkg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ---------- Card ------------------------------------------- */
.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,20,17,0.06), 0 4px 16px rgba(15,20,17,0.04);
  margin-top: 20px; /* room for the "Most popular" badge */
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 300ms ease;
}
.pkg-card:hover {
  border-color: var(--ink-300);
  box-shadow: 0 8px 32px rgba(15,20,17,0.1);
  transform: translateY(-2px);
}

/* ---------- Most-popular variant --------------------------- */
.pkg-card--popular {
  border: 2px solid var(--brand-500);
  box-shadow: 0 8px 32px rgba(160,200,40,0.15);
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 14%);
}
.pkg-card--popular::before {
  content: "Most popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

/* ---------- Head: name + price + CH fee -------------------- */
.pkg-card__head {
  padding: 28px 28px 0;
}
.pkg-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.pkg-card__price {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-900);
}
/* Officer-limit badge, sits directly under the price. The Starter
   card carries an empty --empty variant so all three heads line up. */
.pkg-card__officers {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-500);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}
.pkg-card__officers--empty {
  visibility: hidden;
}

.pkg-card__fee {
  margin: 20px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--ink-100);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
}

/* ---------- Description ------------------------------------ */
.pkg-card__desc {
  margin: 0;
  padding: 14px 28px 16px;
  border-top: 1px solid var(--ink-100);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-600);
}

/* ---------- Feature list ----------------------------------- */
.pkg-card__features {
  list-style: none;
  margin: 0;
  padding: 6px 28px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pkg-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
}
.pkg-card__features li:last-child {
  border-bottom: 0;
}
.pkg-card__features li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-color: var(--brand-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
}
/* Feature text takes remaining width so the info button sits at the end */
.pkg-card__features li .pkg-feat-text {
  flex: 1;
}

/* Fee row uses the same tooltip layout as feature rows */
.pkg-card__fee[data-tip] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pkg-card__fee[data-tip] .pkg-feat-text {
  flex: 1;
}

/* ---------- Buy button ------------------------------------- */
.pkg-card__buy {
  display: block;
  margin: 20px 28px 28px;
  padding: 13px 20px;
  border: 1.5px solid var(--ink-300);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.pkg-card__buy:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  transform: translateY(-1px);
}
.pkg-card--popular .pkg-card__buy {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--ink-900);
}
.pkg-card--popular .pkg-card__buy:hover {
  background: var(--brand-400);
  border-color: var(--brand-400);
}

/* ---------- Info tooltip (mirrors /buy page skin) ---------- */
.pkg-tooltip-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-top: -2px;
}
.pkg-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-400, var(--ink-500));
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
}
.pkg-tooltip-btn:hover {
  color: var(--brand-500);
}
.pkg-tooltip {
  display: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15,20,17,0.12);
  z-index: 100;
  pointer-events: none;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-700);
  text-align: left;
  white-space: normal;
}
.pkg-tooltip::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--ink-200);
}
.pkg-tooltip::after {
  content: '';
  position: absolute;
  left: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
}
@media (min-width: 961px) {
  .pkg-tooltip-wrap:hover .pkg-tooltip,
  .pkg-tooltip-wrap:focus-within .pkg-tooltip {
    display: block;
  }
}
@media (max-width: 960px) {
  .pkg-tooltip { display: none !important; }
}

/* ---------- Responsive ------------------------------------- */
@media (max-width: 960px) {
  .pkg-section { padding: 32px 16px 64px; }
  .pkg-grid { grid-template-columns: 1fr; }
}
