/* The Sprout sign-up popup, built by sprout-signup.js. Ported from the Sprout
   Website repo (assets/css/sprout-modal.css). Two columns on wide screens;
   below 760px the dialog becomes a sheet from the bottom with one column. */

.sps-open,
.sps-open body { overflow: hidden; }

.sps {
  --sps-forest: #1e3a2b;
  --sps-forest-hover: #2b4d39;
  --sps-cream: #f6f3ea;
  --sps-card: #fffdf8;
  --sps-lime: #a8d86a;
  --sps-leaf: #6fa83d;
  --sps-ink: #4a524b;
  --sps-ink-soft: #6b736c;
  --sps-rule: #e2ded0;
  --sps-rule-strong: #cfc9b6;
  --sps-error: #b3261e;

  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sps-forest);
  text-align: left;
}

.sps[hidden] { display: none; }

.sps *,
.sps *::before,
.sps *::after { box-sizing: border-box; }

.sps-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 24, 0.55);
  animation: sps-fade 0.18s ease-out;
}

.sps-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--sps-cream);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(20, 32, 24, 0.4);
  animation: sps-rise 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.sps-dialog:focus { outline: none; }

@keyframes sps-fade { from { opacity: 0; } }
@keyframes sps-rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .sps-scrim,
  .sps-dialog { animation: none; }
}

.sps :focus-visible {
  outline: 2px solid var(--sps-leaf);
  outline-offset: 3px;
}

.sps-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sps-ink);
  cursor: pointer;
}

.sps-close:hover { background: #e8e3d4; color: var(--sps-forest); }

.sps-summary {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 40px 36px 36px;
  background: var(--sps-card);
}

.sps-title {
  margin: 0;
  padding-right: 40px;
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--sps-forest);
  text-wrap: balance;
}

.sps-price {
  margin: 2px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.sps-price__big {
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 3.4vw, 42px);
  line-height: 1;
  font-weight: 700;
  color: var(--sps-forest);
}

.sps-price__per { font-size: 15px; font-weight: 600; color: var(--sps-ink-soft); }

.sps-how {
  display: grid;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid var(--sps-rule);
}

.sps-how__head {
  margin: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sps-ink-soft);
}

.sps-how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.sps-how__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.45;
  color: #2e3a32;
  text-wrap: pretty;
}

.sps-tick {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sps-lime);
  color: var(--sps-forest);
}

.sps-pay {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px 32px 36px;
  background: var(--sps-cream);
  border-left: 1px solid var(--sps-rule);
}

.sps-pay__label { font-size: 14px; font-weight: 700; color: var(--sps-forest); }

.sps-pay__email {
  width: 100%;
  margin: -4px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--sps-rule-strong);
  border-radius: 10px;
  background: var(--sps-card);
  color: var(--sps-forest);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.sps-pay__email:focus-visible {
  border-color: var(--sps-leaf);
}

.sps-pay__email[aria-invalid="true"] { border-color: var(--sps-error); }

.sps-pay__error {
  margin: -4px 0 0;
  font-size: 13.5px;
  color: var(--sps-error);
}

.sps-pay__error[hidden] { display: none; }

.sps-pay__go {
  margin-top: 4px;
  min-height: 48px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--sps-forest);
  color: var(--sps-cream);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sps-pay__go:hover:not([disabled]) { background: var(--sps-forest-hover); }

.sps-pay__go[disabled] {
  background: var(--sps-rule-strong);
  color: var(--sps-ink);
  cursor: default;
}

@media (max-width: 760px) {
  .sps { padding: 0; align-items: flex-end; }

  .sps-dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px 18px 0 0;
  }

  .sps-summary { padding: 32px 20px 20px; gap: 10px; }

  .sps-title { padding-right: 44px; }

  .sps-pay {
    padding: 22px 20px 28px;
    border-left: 0;
    border-top: 1px solid var(--sps-rule);
  }
}
