/* Home-page Subscribe section, checkout modal and first-visit welcome popup (2026-10-18).
   Uses the design tokens defined in landing_page.css. */

body.hs-lock { overflow: hidden; }

/* ── Subscribe section ─────────────────────────────────────── */
/* "Grow our community → … → Deliver more debt relief": a row of steps on desktop,
   a top-to-bottom chain on phones. Arrows are decorative (empty alt text). */
.hs-flywheel {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  max-width: 1120px;
  margin: calc(-1 * var(--space-lg)) auto var(--space-2xl);
  padding: 0;
}
.hs-flywheel li {
  display: flex;
  align-items: center;
}
.hs-flywheel li + li::before {
  content: "\2192";
  content: "\2192" / "";
  margin: 0 10px;
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--brand-green-dark);
}
.hs-flywheel span {
  display: inline-block;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--color-card);
  border: 1px solid var(--color-cloud);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--color-phantom);
}
.hs-flywheel-goal span {
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.hs-plan-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-cloud);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-2xl);
  text-align: left;
}
.hs-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-base);
  margin-bottom: var(--space-base);
}
.hs-plan-head h3 { font-size: 1.25rem; font-weight: var(--fw-extrabold); }
.hs-plan-sub { font-size: 0.875rem; color: var(--color-graphite); }
.hs-plan-price { text-align: right; }
.hs-price { font-size: 2.25rem; font-weight: var(--fw-extrabold); line-height: 1; }
.hs-price-suffix { font-size: 1rem; color: var(--color-graphite); font-weight: var(--fw-semibold); }
.hs-price-note { display: block; font-size: 0.75rem; color: var(--color-graphite); margin-top: 4px; }
.hs-plan-code {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.875rem;
  margin-bottom: var(--space-base);
}
.hs-plan-status { margin-bottom: var(--space-base); color: var(--color-arsenic); }
.hs-features { list-style: none; margin: 0 0 var(--space-xl); }
.hs-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--color-arsenic);
}
.hs-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.hs-plan-cta { width: 100%; }
.hs-npn { font-size: 0.75rem; color: var(--color-graphite); margin-top: var(--space-md); line-height: 1.5; }
.hs-npn a { color: var(--brand-green-dark); text-decoration: underline; }

/* ── Checkout modal ────────────────────────────────────────── */
.hs-modal[hidden], .wp-popup[hidden] { display: none !important; }
.hs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 16px;
}
.hs-modal-backdrop, .wp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 36, 0.55);
}
.hs-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  margin: auto 0;
}
.hs-modal-x, .wp-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-graphite);
  cursor: pointer;
  border-radius: var(--radius-full);
}
.hs-modal-x:hover, .wp-x:hover { background: var(--color-cloud); color: var(--color-phantom); }
.hs-modal-title { font-size: 1.375rem; font-weight: var(--fw-extrabold); margin-bottom: 6px; padding-right: 32px; }
.hs-price-line { font-size: 0.9375rem; color: var(--color-arsenic); margin-bottom: var(--space-lg); }

/* "What you're buying": the badges (the digital product), the entries, the mission. */
.hs-buying {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-cloud);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-base);
  margin-bottom: var(--space-lg);
}
.hs-buying-badges { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.hs-buying-badges img { width: 52px; height: 52px; object-fit: contain; }
.hs-buying-title { font-size: 0.8125rem; font-weight: var(--fw-bold); color: var(--color-phantom); margin: 0 0 6px; }
.hs-buying-list { list-style: none; margin: 0; padding: 0; }
.hs-buying-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-arsenic);
}
.hs-buying-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.hs-lead { color: var(--color-arsenic); margin-bottom: var(--space-base); }
.hs-center { text-align: center; }
.hs-small { font-size: 0.875rem; color: var(--color-graphite); margin-top: var(--space-md); text-align: center; }

.hs-fieldset { border: none; margin: 0 0 var(--space-lg); padding: 0; }
.hs-fieldset legend {
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-graphite);
  margin-bottom: var(--space-sm);
}
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.hs-field {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-arsenic);
  margin-bottom: var(--space-md);
}
.hs-field input, .hs-field select, .hs-code-entry input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--color-smoke);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: var(--fw-regular);
  font-size: 0.9375rem;
  color: var(--color-phantom);
  background: var(--color-white);
}
.hs-field input:focus, .hs-field select:focus, .hs-code-entry input:focus {
  outline: none;
  border-color: var(--brand-green-dark);
  box-shadow: 0 0 0 3px rgba(23, 254, 155, 0.2);
}
.hs-field .hs-invalid, .hs-invalid { border-color: #b91c1c !important; }
.hs-optional { font-weight: var(--fw-regular); color: var(--color-space); }
.hs-hint { display: block; font-size: 0.75rem; font-weight: var(--fw-regular); color: var(--color-graphite); margin-top: 4px; }
.hs-err { display: block; font-size: 0.8125rem; font-weight: var(--fw-medium); color: #b91c1c; margin-top: 4px; min-height: 0; }
.hs-err:empty { display: none; }
.hs-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.875rem;
  margin: var(--space-md) 0;
}
.hs-signin-prompt {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.875rem;
  margin: -4px 0 var(--space-md);
}
.hs-signin-prompt a { font-weight: var(--fw-bold); text-decoration: underline; }

.hs-legend-hint { margin: -4px 0 var(--space-md); }

/* Billing address confirm: a box over the checkout modal, opened by Subscribe. */
.hs-confirm[hidden] { display: none !important; }
.hs-confirm {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 30, 36, 0.55);
}
.hs-confirm-box {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
}
.hs-confirm-box h3 { font-size: 1.125rem; font-weight: var(--fw-extrabold); margin-bottom: var(--space-md); }
.hs-confirm-label {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-graphite);
  margin: var(--space-md) 0 4px;
}
.hs-confirm-addr {
  white-space: pre-line;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-cloud);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.hs-confirm-addr--suggested { background: #f0fdf4; border-color: #bbf7d0; }
.hs-confirm-status { font-size: 0.875rem; color: var(--color-graphite); margin-top: var(--space-md); }
.hs-confirm-status[hidden] { display: none; }
.hs-confirm-status--ok { color: #166534; font-weight: var(--fw-semibold); }
.hs-confirm-actions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }
.hs-confirm-actions .btn { width: 100%; }
.hs-confirm-actions .btn[hidden] { display: none; }
.hs-confirm-actions .hs-link-btn { align-self: center; margin-top: 4px; }

.hs-code-entry { display: flex; gap: var(--space-sm); }
.hs-code-entry input { margin-top: 0; flex: 1; }
.hs-btn-outline {
  background: var(--color-white);
  border: 1px solid var(--color-smoke);
  color: var(--color-phantom);
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}
.hs-btn-outline:hover { border-color: var(--brand-green-dark); }
.hs-code-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.875rem;
}
.hs-code-applied[hidden], .hs-code-entry[hidden] { display: none; }
.hs-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-green-dark);
  font: inherit;
  font-weight: var(--fw-bold);
  text-decoration: underline;
  cursor: pointer;
}
.hs-link-btn:disabled { color: var(--color-space); cursor: default; }

.hs-card { min-height: 90px; }

.hs-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-arsenic);
  margin-bottom: 6px;
  cursor: pointer;
}
.hs-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand-green-dark); }
.hs-check a { color: var(--brand-green-dark); text-decoration: underline; }
.hs-check[hidden] { display: none; }
.hs-check-optional { margin-top: var(--space-sm); }

.hs-submit { width: 100%; margin-top: var(--space-md); }
.hs-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

.hs-spinner {
  width: 44px;
  height: 44px;
  margin: var(--space-xl) auto var(--space-base);
  border-radius: 50%;
  border: 4px solid var(--color-cloud);
  border-top-color: var(--brand-green-dark);
  animation: hs-spin 0.9s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* ── Welcome popup ─────────────────────────────────────────── */
.wp-popup {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wp-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  text-align: center;
  animation: wp-in 0.25s ease-out;
}
@keyframes wp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wp-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  color: var(--brand-green-dark);
  background: #f0fdf4;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  margin-bottom: var(--space-md);
}
.wp-title { font-size: 1.5rem; font-weight: var(--fw-extrabold); line-height: 1.25; margin-bottom: var(--space-sm); }
.wp-desc { color: var(--color-arsenic); margin-bottom: var(--space-xl); }
.wp-actions { display: flex; flex-direction: column; gap: var(--space-sm); }
.wp-primary { width: 100%; }
.wp-secondary {
  width: 100%;
  background: var(--color-white);
  border: 2px solid var(--color-phantom);
  color: var(--color-phantom);
}
.wp-secondary:hover { background: var(--color-bg); }
.wp-signin { font-size: 0.875rem; color: var(--color-arsenic); text-decoration: underline; margin-top: 4px; }
.wp-later {
  background: none;
  border: none;
  color: var(--color-graphite);
  font: inherit;
  font-size: 0.875rem;
  margin-top: var(--space-md);
  cursor: pointer;
}
.wp-later:hover { color: var(--color-phantom); text-decoration: underline; }
.wp-fine { font-size: 0.6875rem; color: var(--color-space); margin-top: var(--space-sm); }
.wp-fine a { text-decoration: underline; }

@media (max-width: 640px) {
  .hs-flywheel { flex-direction: column; gap: 0; margin-bottom: var(--space-xl); }
  .hs-flywheel li { flex-direction: column; }
  .hs-flywheel li + li::before { content: "\2193"; content: "\2193" / ""; margin: 4px 0; }
  .hs-plan-card { padding: var(--space-xl); }
  .hs-row { grid-template-columns: 1fr; gap: 0; }
  .hs-modal { padding: 0; align-items: flex-end; }
  /* Bottom sheet. The checkout is taller than a phone screen, and a flex-end item that
     overflows does so upward, where it can't be scrolled to (the top of the form was cut
     off), so the sheet scrolls inside itself instead, like .wp-panel below. */
  .hs-modal-panel {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-xl) var(--space-base);
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
  }
  /* Bottom sheet that leaves the page visible above it (Google's mobile guidance on
     intrusive popups) instead of a full-screen overlay. */
  .wp-popup { align-items: flex-end; padding: 0; }
  .wp-backdrop { background: rgba(30, 30, 36, 0.25); }
  .wp-panel {
    max-width: none;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-xl) var(--space-base) var(--space-base);
  }
  .wp-badge { display: none; }   /* the fine print below still says it */
  .wp-title { font-size: 1.125rem; margin-bottom: 4px; padding: 0 28px; }
  .wp-desc { margin-bottom: var(--space-md); font-size: 0.875rem; line-height: 1.45; }
  .wp-actions .btn { padding: 0.6rem 1rem; font-size: 0.9375rem; }
  .wp-later { margin-top: var(--space-sm); }
  .wp-fine { margin-top: 4px; }
}

/* ── Finish-setup page (account_complete.html) ─────────────── */
.ac-page { background: var(--color-bg); min-height: 100vh; }
.ac-wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
.ac-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-extrabold); color: var(--color-phantom); margin-bottom: var(--space-xl); }
.ac-card { background: var(--color-card); border: 1px solid var(--color-cloud); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: var(--space-2xl); }
.ac-title { font-size: 1.5rem; font-weight: var(--fw-extrabold); margin-bottom: var(--space-sm); }
.ac-lead { color: var(--color-arsenic); margin-bottom: var(--space-xl); }
.ac-readonly { background: var(--color-bg) !important; color: var(--color-graphite) !important; }
.ac-submit { width: 100%; margin-top: var(--space-md); }
.ac-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.ac-note { margin-top: var(--space-md); font-size: 0.875rem; color: #166534; }
.ac-footer { margin-top: var(--space-lg); text-align: center; font-size: 0.8125rem; color: var(--color-graphite); }
@media (max-width: 640px) { .ac-card { padding: var(--space-xl); } }
