/* Pricing section (Free / Hum+ / Guardian), on the home page.
   The hp- prefix dates from the Squarespace code block this began as;
   pricing.js and the markup still use it. Colours, type and spacing come
   from the tokens in site.css; the heading uses the site's .section-head. */

.hum-pricing { position: relative; }
/* short labels sit on Inter's own line height, as in the design */
.hp-seg, .hp-trial, .hp-name, .hp-price, .hp-sub, .hp-tier, .hp-badge, .hp-talk, .hp-lead { line-height: 1.2; }

/* ---------- billing toggle (pricing.js slides the thumb) ---------- */
.hp-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  margin-top: 32px; padding: 5px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--line);
}
.hp-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px; background: var(--blue);
  box-shadow: 0 6px 16px rgba(5, 108, 181, .35);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
}
.hp-seg {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px; background: transparent;
  font: inherit; font-size: .875rem; font-weight: 700; color: var(--body);
  transition: color .2s ease;
}
.hp-seg[data-cycle="annual"] { padding-right: 18px; }
.hp-seg:hover, .hp-seg.is-active { color: #fff; }
.hp-seg-save {
  padding: 3px 8px; border-radius: 999px;
  background: rgba(95, 211, 122, .16); color: #7FDC95;
  font-size: .6875rem; font-weight: 800;
}
.hp-trial { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .875rem; color: var(--body); }
.hp-trial svg { flex: none; width: 14px; height: 14px; color: var(--alert); }

/* ---------- cards ---------- */
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.hp-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: 24px;
  background: var(--raised); border: 1px solid var(--line);
}
.hp-card--featured {
  background: var(--raised-2); border: 1.5px solid var(--sky);
  box-shadow: 0 24px 60px var(--blue-glow);
}
.hp-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--blue); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .02em;
}

.hp-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.hp-plus { color: var(--alert); }
.hp-tag { margin-top: 6px; min-height: 44px; font-size: .875rem; line-height: 1.55; color: var(--body); }

.hp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hp-pre, .hp-per { font-size: .9375rem; color: var(--muted); }
.hp-amt { font-size: 3.125rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hp-sub { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

/* price fade on toggle */
.hp-swap { transition: opacity .16s ease; }
.hum-pricing.is-swapping .hp-swap { opacity: 0; }

/* Guardian's volume bands: two by two, or one column where two won't fit
   without the longest band and its price colliding */
.hp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 8px; margin-top: 16px; }
.hp-tier {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04);
  font-size: .75rem; font-weight: 700;
}
.hp-tier b { color: var(--list); white-space: nowrap; }
.hp-tier span { color: var(--sky); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.hp-btn {
  display: flex; align-items: center; justify-content: center;
  height: 50px; margin-top: 24px; padding: 0 18px; border-radius: 12px;
  font-size: .9375rem; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.hp-tiers + .hp-btn { margin-top: 20px; }
.hp-btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .24); }
.hp-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: #fff; }
.hp-btn--solid { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(5, 108, 181, .4); }
.hp-btn--solid:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.hp-talk { margin-top: 12px; text-align: center; font-size: .875rem; font-weight: 600; color: var(--sky); text-decoration: none; }
.hp-talk:hover { color: var(--sky-soft); text-decoration: underline; }

/* ---------- what's included ---------- */
.hp-lead {
  margin-top: 28px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hp-talk + .hp-lead { margin-top: 24px; }
.hp-feats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hp-lead + .hp-feats { margin-top: 16px; }
.hp-feats li { display: flex; gap: 10px; font-size: .875rem; line-height: 1.45; color: var(--list); }
.hp-feats svg {
  flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--sky);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.hp-promise {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 760px; margin: 40px auto 0; text-align: center;
  font-size: .9375rem; line-height: 1.55; color: var(--body);
}
.hp-promise svg { flex: none; width: 16px; height: 16px; color: var(--go); }

/* ---------- responsive & motion ---------- */
@media (max-width: 1080px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 480px; margin: 0 auto; }
  .hp-tag { min-height: 0; }
}
@media (max-width: 760px) {
  .hp-toggle { margin-top: 24px; }
  .hp-seg { height: 44px; padding: 0 20px; }
  .hp-seg[data-cycle="annual"] { padding-right: 16px; }
  .hp-trial { display: block; margin-top: 16px; font-size: .8125rem; line-height: 1.5; }
  .hp-trial svg { display: none; }
  .hp-card { padding: 28px 24px; border-radius: 22px; }
  .hp-name { font-size: 1.3125rem; }
  .hp-price { margin-top: 20px; }
  .hp-amt { font-size: 2.75rem; }
  .hp-badge { left: 24px; transform: none; }
  .hp-btn { margin-top: 20px; }
  .hp-tiers { margin-top: 14px; }
  .hp-tiers + .hp-btn { margin-top: 18px; }
  .hp-lead { margin-top: 24px; }
  .hp-talk + .hp-lead { margin-top: 22px; }
  .hp-lead + .hp-feats { margin-top: 14px; }
  .hp-feats { margin-top: 24px; gap: 11px; }
  .hp-promise { align-items: flex-start; justify-content: flex-start; margin-top: 28px; text-align: left; font-size: .875rem; }
  .hp-promise svg { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hum-pricing * { transition: none !important; }
}
