/* Hero Hub Pro components shared by the Hero Hub page and the Programs & Pro page:
   the Free vs Pro comparison table, the three Pro plan cards and the Pro benefits dialog. */

/* Free vs Pro comparison card. */
.hub-compare-card {
  padding: 10px 28px 24px; border: 3px solid var(--v2-ink); border-radius: 24px;
  background: var(--v2-paper); box-shadow: 8px 8px 0 var(--v2-ink);
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1); transition: transform .2s ease-out; will-change: transform;
}
.hub-compare-card table { width: 100%; border-collapse: collapse; text-align: left; }
/* Feature previews: an "i" next to each feature opens a screenshot of it, positioned by hub-feature-previews.js. */
.hub-compare-card { position: relative; }
.hub-info {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 7px; padding: 0; vertical-align: 1px;
  border: 1.5px solid var(--v2-action); border-radius: 50%; color: var(--v2-action); background: var(--v2-paper);
  font: italic 800 .72rem/1 Georgia, 'Times New Roman', serif; cursor: help; transition: color .15s, background .15s;
}
.hub-info:hover, .hub-info[aria-expanded="true"] { color: #fff; background: var(--v2-action); }
.hub-info:focus-visible { outline: 3px solid var(--v2-purple); outline-offset: 2px; }
.hub-info-preview {
  position: absolute; z-index: 5; width: max-content; max-width: min(400px, calc(100% - 16px)); padding: 8px;
  border: 2px solid var(--v2-ink); border-radius: 14px; background: var(--v2-paper); box-shadow: 4px 4px 0 var(--v2-ink); pointer-events: none;
}
.hub-info-preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.hub-compare-card th, .hub-compare-card td { padding: 14px 8px; border-bottom: 1px solid var(--v2-outline); color: var(--v2-ink); font-size: .95rem; }
.hub-compare-card tbody th { font-weight: 600; }
.hub-compare-card thead th { color: var(--v2-copy); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hub-compare-card thead th, .hub-compare-card td { width: 26%; text-align: center; color: var(--v2-copy); }
.hub-pro { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; background: var(--v2-purple); letter-spacing: .08em; }
.hub-free { display: block; width: max-content; margin: 4px auto 0; padding-left: 22px; color: var(--v2-ink); font-size: .8rem; font-weight: 800; letter-spacing: 0; text-transform: none; transform: rotate(-4deg); }
.hub-pro-value { color: var(--v2-ink); font-weight: 800; }
.hub-yes, .hub-no { width: 22px; height: 22px; vertical-align: middle; }
.hub-yes { color: var(--v2-action); }
.hub-no { color: #9aaccb; }
.hub-compare-card tbody td:last-child .hub-yes { color: var(--v2-purple); }
.hub-compare-card tfoot th, .hub-compare-card tfoot td { padding-top: 18px; border-bottom: 0; vertical-align: top; }
.hub-compare-card tfoot b { color: var(--v2-ink); font-size: 1.5rem; font-weight: 900; }
.hub-compare-card tfoot small { color: var(--v2-copy); font-size: .85rem; }
.hub-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 6px; }

/* Pro plans: three cards with the same cursor tilt as the comparison card. */
.hub-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.hub-plan-status--before-plans:not(:empty) { margin:24px 0 0; }
.hub-plan-status--before-plans:not(:empty) + .hub-plans { margin-top:18px; }
.hub-plan {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 18px 22px;
  border: 3px solid var(--v2-ink); border-radius: 24px; background: var(--v2-paper); box-shadow: 6px 6px 0 var(--v2-ink);
  text-align: center; transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1); transition: transform .2s ease-out; will-change: transform;
}
.hub-plan--yearly { background: linear-gradient(180deg, #fff6dc 0%, var(--v2-paper) 58%); }
.hub-plan.is-founding-offer { background: linear-gradient(180deg, #f0eaff 0%, var(--v2-paper) 58%); }
.hub-plan__founding {
  position: absolute; top: 15px; left: 14px; transform: rotate(-5deg);
  padding: 4px 9px; border: 2px solid var(--v2-ink); border-radius: 7px;
  color: #fff; background: var(--v2-purple); box-shadow: 2px 2px 0 var(--v2-ink);
  font-size: .66rem; font-weight: 900; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}
.hub-plan__icon { width: 124px; height: 124px; margin-bottom: 6px; object-fit: contain; }
.hub-plan h4 { margin: 0; color: var(--v2-ink); font-size: 1.05rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
/* The billed total sits under the plan name; the weekly price below the rule is the headline. */
.hub-plan__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 6px; margin: 8px 0 0; color: var(--v2-copy); font-size: .88rem; font-weight: 650; }
.hub-plan__total s { color: #7d95b8; font-weight: 800; text-decoration-thickness: 2px; }
.hub-plan__total b { color: var(--v2-ink); font-size: 1.05rem; font-weight: 900; }
.hub-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; align-self: stretch; margin: 14px 0 0; padding-top: 14px; border-top: 2px solid rgba(31, 58, 95, .12); }
.hub-plan__price b { color: var(--v2-ink); font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hub-plan__price small { color: var(--v2-copy); font-size: .9rem; font-weight: 700; }
.hub-plan__founding-terms { min-height: 34px; margin: 8px 0 15px; color: var(--v2-purple); font-size: .73rem; font-weight: 800; line-height: 1.35; }
.hub-plan__subscribe {
  width: 100%; min-height: 54px; margin: auto 0 0; padding: 13px 20px;
  border: 2px solid var(--v2-ink); border-radius: 17px; color: var(--v2-ink);
  background: linear-gradient(105deg, #b7dc69, #c6efd4); box-shadow: 4px 4px 0 var(--v2-ink);
  font: inherit; font-size: 1.05rem; font-weight: 900; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.hub-plan__price + .hub-plan__subscribe { margin-top: 22px; }
.hub-plan__subscribe:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--v2-ink); filter: saturate(1.08); }
.hub-plan__subscribe:focus-visible { outline: 3px solid var(--v2-purple); outline-offset: 4px; }
.hub-plan__subscribe:disabled { cursor: wait; filter: grayscale(.25); opacity: .68; }
.hub-plan__secure { margin: 14px 0 0; color: var(--v2-copy); font-size: .72rem; font-weight: 650; line-height: 1.35; }
.hub-plan__secure span { color: var(--v2-purple); }
.hub-plan__secure .pro-lock-icon { width: 13px; height: 13px; margin-right: 3px; }
.hub-plan__payments { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 25px; margin-top: 9px; }
.hub-plan__payments > span { display: inline-flex; align-items: center; color: #244f9e; font-size: .82rem; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
.hub-plan__payments .is-mastercard { position: relative; width: 33px; height: 20px; }
.hub-plan__payments .is-mastercard i { position: absolute; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #e94b35; }
.hub-plan__payments .is-mastercard i:first-child { left: 2px; }
.hub-plan__payments .is-mastercard i:last-child { right: 2px; background: #f2a834; mix-blend-mode: multiply; }
.hub-plan-status { min-height: 22px; margin: 18px auto 0; color: #a13f2c; font-size: .85rem; font-weight: 700; text-align: center; }
.hub-plan-status[data-tone="info"] { color: #1f3a5f; }
.hub-plan__save {
  position: absolute; top: 16px; right: 14px; transform: rotate(8deg);
  padding: 3px 8px; border: 2px solid var(--v2-ink); border-radius: 6px;
  color: #fff; background: #e0533d; box-shadow: 2px 2px 0 var(--v2-ink);
  font-size: .68rem; font-weight: 900; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}
.hub-plan__badge {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border: 2px solid var(--v2-ink); border-radius: 999px;
  color: var(--v2-ink); background: #ffd24a; box-shadow: 3px 3px 0 var(--v2-ink);
  font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}

/* See Pro benefits: opens the comparison in a dialog. */
.hub-benefits-open-wrap { margin-top: 26px; text-align: center; }
/* Above the plans: read the benefits first, then pick a plan. */
.hub-benefits-open-wrap--top { margin: 0 0 26px; }
.hub-benefits-open {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border: 3px solid var(--v2-ink); border-radius: 999px; color: var(--v2-ink); background: var(--v2-paper);
  box-shadow: 4px 4px 0 var(--v2-ink); font-size: .95rem; font-weight: 900; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hub-benefits-open:hover { background: var(--v2-soft); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--v2-ink); }
.hub-benefits-open:focus-visible { outline: 3px solid var(--v2-purple); outline-offset: 4px; }
.hub-benefits-dialog {
  width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 28px 26px 26px; overflow: auto;
  border: 3px solid var(--v2-ink); border-radius: 26px; color: var(--v2-ink); background: var(--v2-bg); box-shadow: 8px 8px 0 var(--v2-ink);
}
.hub-benefits-dialog::backdrop { background: rgba(31, 58, 95, .5); }
.hub-benefits-dialog h2 { margin: 0 44px 6px 0; color: var(--v2-ink); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; text-transform: uppercase; }
.hub-benefits-dialog > p { margin: 0 0 20px; color: var(--v2-copy); font-size: .92rem; line-height: 1.5; }
.hub-benefits-close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 2px solid var(--v2-ink); border-radius: 50%; color: var(--v2-ink); background: var(--v2-paper); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.hub-benefits-close:hover { background: var(--v2-soft); }
.hub-benefits-dialog .hub-compare-card { transform: none; box-shadow: 5px 5px 0 var(--v2-ink); }

@media (max-width: 900px) {
  .hub-compare-card { padding: 4px 14px 18px; }
  .hub-compare-card th, .hub-compare-card td { padding: 12px 4px; font-size: .86rem; }
  .hub-compare-card thead th { font-size: .74rem; letter-spacing: .04em; }
  .hub-pro { padding: 4px 8px; letter-spacing: .02em; line-height: 1.25; }
  .hub-plans { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 32px; }
  .hub-benefits-dialog { padding: 22px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .hub-compare-card, .hub-plan, .hub-benefits-open { transition: none; } }
