/* ==========================================================================
 * Planting Zone — Exit-Intent variants (v14.5.0).
 * Lifted from D:\Downloads\exit-intent-lab.html. All rules scoped under
 * .pz-ei. Loaded only when exit-intent is enabled.
 * ========================================================================== */

.pz-ei {
  --pz-ei-parchment: #F4ECDC;
  --pz-ei-cream:     #FAF5EA;
  --pz-ei-forest:    #2C3E2D;
  --pz-ei-forest-deep: #1E2C1F;
  --pz-ei-forest-darker: #121A13;
  --pz-ei-moss:      #5A7052;
  --pz-ei-terracotta: #B5543A;
  --pz-ei-terracotta-deep: #9A4330;
  --pz-ei-terracotta-bright: #D36649;
  --pz-ei-honey:     #D4A73C;
  --pz-ei-honey-deep: #B88C28;
  --pz-ei-ink:       #2A2723;
  --pz-ei-ink-soft:  #4A453E;
  --pz-ei-stroke:    rgba(42, 39, 35, 0.15);

  --pz-ei-serif: 'Fraunces', Georgia, serif;
  --pz-ei-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --pz-ei-shadow-pop: 0 30px 60px rgba(0,0,0,0.35), 0 12px 24px rgba(0,0,0,0.2);

  font-family: var(--pz-ei-sans);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.pz-ei * { box-sizing: border-box; }
.pz-ei.pz-ei-open { display: block; }

/* Modal backdrop (planner / discount / twostep) */
.pz-ei__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 44, 31, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pz-ei.pz-ei-open .pz-ei__backdrop { opacity: 1; }

.pz-ei__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 24px)) scale(0.96);
  opacity: 0;
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: var(--pz-ei-shadow-pop);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.pz-ei.pz-ei-open .pz-ei__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.pz-ei__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pz-ei__close:hover { background: rgba(0, 0, 0, 0.25); transform: rotate(90deg); }

/* Shared form fields — minimal so each variant overrides */
.pz-ei__form { display: block; }
.pz-ei__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.pz-ei__field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.pz-ei__field input {
  font-family: var(--pz-ei-sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--pz-ei-stroke);
  border-radius: 8px;
  background: var(--pz-ei-cream);
  color: var(--pz-ei-ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pz-ei__field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 167, 60, 0.3);
}
.pz-ei__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pz-ei__grid .pz-ei__field--full { grid-column: 1 / -1; }
.pz-ei__submit {
  display: block;
  width: 100%;
  padding: 18px 28px;
  font-family: var(--pz-ei-sans);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.pz-ei__submit:hover { transform: translateY(2px); }
.pz-ei__submit:active { transform: translateY(4px); }
.pz-ei__decline {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  background: none;
  border: none;
  font-size: 13px;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--pz-ei-sans);
}
.pz-ei__decline:hover { opacity: 0.9; }
.pz-ei .pz-inline-optin-error {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 100, 100, 0.18);
  border: 1px solid rgba(255, 180, 180, 0.6);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9em;
  text-align: center;
}

/* -------- PLANNER (dark editorial) -------- */
.pz-ei-planner .pz-ei__panel {
  background: var(--pz-ei-forest-deep);
  color: var(--pz-ei-cream);
  max-width: 840px;
}
.pz-ei-planner .pz-ei__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pz-ei-moss), var(--pz-ei-honey), var(--pz-ei-terracotta));
  border-radius: 16px 16px 0 0;
}
.pz-ei-planner__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 440px;
}
.pz-ei-planner__visual {
  position: relative;
  background: linear-gradient(135deg, #263526 0%, #1A251B 100%);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.pz-ei-planner__visual::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212, 167, 60, 0.25) 0%, transparent 70%);
}
.pz-ei-planner__book {
  position: relative;
  width: 220px;
  aspect-ratio: 7 / 9;
  background: linear-gradient(135deg, var(--pz-ei-parchment) 0%, var(--pz-ei-cream) 100%);
  border-radius: 4px;
  padding: 22px 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(42,39,35,0.1);
  transform: rotate(-5deg);
}
.pz-ei-planner__book-brand {
  font-family: var(--pz-ei-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--pz-ei-terracotta);
  text-align: center;
  margin-bottom: 10px;
}
.pz-ei-planner__book-title {
  font-family: var(--pz-ei-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--pz-ei-forest-deep);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 14px;
}
.pz-ei-planner__book-divider {
  height: 2px;
  background: var(--pz-ei-terracotta);
  margin: 10px 24px;
}
.pz-ei-planner__book-big {
  font-family: var(--pz-ei-serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--pz-ei-forest-deep);
  text-align: center;
  line-height: 1;
}
.pz-ei-planner__book-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--pz-ei-ink-soft);
  font-weight: 600;
  margin-top: 4px;
}
.pz-ei-planner__sticker {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--pz-ei-terracotta);
  color: var(--pz-ei-cream);
  font-family: var(--pz-ei-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  padding: 16px;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  transform: rotate(12deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.pz-ei-planner__form-area {
  padding: 44px 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pz-ei-planner__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pz-ei-honey);
  font-weight: 700;
  margin-bottom: 10px;
}
.pz-ei-planner__headline {
  font-family: var(--pz-ei-serif);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--pz-ei-cream);
  margin-bottom: 12px;
}
.pz-ei-planner__copy {
  font-size: 14.5px;
  color: rgba(250, 245, 234, 0.9);
  margin-bottom: 22px;
  line-height: 1.55;
}
.pz-ei-planner .pz-ei__field input {
  background: rgba(250, 245, 234, 0.08);
  border-color: rgba(250, 245, 234, 0.15);
  color: var(--pz-ei-cream);
}
.pz-ei-planner .pz-ei__field input::placeholder { color: rgba(250, 245, 234, 0.4); }
.pz-ei-planner .pz-ei__field input:focus { border-color: var(--pz-ei-honey); background: rgba(250, 245, 234, 0.12); }
.pz-ei-planner .pz-ei__field span { color: var(--pz-ei-honey); }
.pz-ei-planner .pz-ei__submit {
  background: var(--pz-ei-terracotta);
  color: var(--pz-ei-cream);
  box-shadow: 0 5px 0 var(--pz-ei-terracotta-deep);
}
.pz-ei-planner .pz-ei__submit:hover { box-shadow: 0 3px 0 var(--pz-ei-terracotta-deep); }
.pz-ei-planner .pz-ei__decline { color: rgba(250, 245, 234, 0.55); }
.pz-ei-planner__trust {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(250, 245, 234, 0.55);
  letter-spacing: 0.04em;
  justify-content: center;
  flex-wrap: wrap;
}
.pz-ei-planner__trust span::before { content: '✓ '; color: var(--pz-ei-moss); font-weight: bold; }

/* -------- DISCOUNT (terracotta) -------- */
.pz-ei-discount .pz-ei__panel {
  background: linear-gradient(135deg, var(--pz-ei-terracotta) 0%, var(--pz-ei-terracotta-deep) 100%);
  color: var(--pz-ei-cream);
  max-width: 580px;
  text-align: center;
}
.pz-ei-discount__body { padding: 50px 48px 44px; position: relative; }
.pz-ei-discount__coupon {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 20px;
  background: var(--pz-ei-honey);
  color: var(--pz-ei-forest-deep);
  border-radius: 30px;
  font-family: var(--pz-ei-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.pz-ei-discount__coupon span { font-family: var(--pz-ei-sans); font-weight: 500; letter-spacing: 0.14em; }
.pz-ei-discount__headline {
  font-family: var(--pz-ei-serif);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--pz-ei-cream);
  margin-bottom: 14px;
}
.pz-ei-discount__headline em { font-style: italic; color: var(--pz-ei-honey); font-weight: 400; }
.pz-ei-discount__amount {
  font-family: var(--pz-ei-serif);
  font-size: 100px;
  font-weight: 600;
  color: var(--pz-ei-honey);
  line-height: 0.9;
  margin: 12px 0 6px;
  letter-spacing: -0.03em;
}
.pz-ei-discount__amount .d { font-size: 50px; vertical-align: top; position: relative; top: 15px; }
.pz-ei-discount__amount .off {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--pz-ei-cream);
  display: block;
  margin-top: -6px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}
.pz-ei-discount__copy {
  font-size: 16px;
  color: rgba(250, 245, 234, 0.92);
  margin: 10px auto 28px;
  max-width: 420px;
  line-height: 1.5;
}
.pz-ei-discount .pz-ei__field span { color: var(--pz-ei-honey); text-align: left; }
.pz-ei-discount .pz-ei__field { text-align: left; }
.pz-ei-discount .pz-ei__field input {
  border-color: rgba(250, 245, 234, 0.25);
  background: rgba(0, 0, 0, 0.1);
  color: var(--pz-ei-cream);
}
.pz-ei-discount .pz-ei__field input::placeholder { color: rgba(250, 245, 234, 0.5); }
.pz-ei-discount .pz-ei__field input:focus { border-color: var(--pz-ei-honey); background: rgba(0, 0, 0, 0.2); }
.pz-ei-discount .pz-ei__submit {
  background: var(--pz-ei-honey);
  color: var(--pz-ei-forest-deep);
  box-shadow: 0 5px 0 var(--pz-ei-honey-deep);
  font-size: 17px;
  margin-top: 6px;
}
.pz-ei-discount .pz-ei__submit:hover { box-shadow: 0 3px 0 var(--pz-ei-honey-deep); }
.pz-ei-discount .pz-ei__decline { color: rgba(250, 245, 234, 0.65); }
.pz-ei-discount .pz-ei__close { background: rgba(0,0,0,0.2); color: var(--pz-ei-cream); }

/* -------- TWO-STEP (cream + honey accent) -------- */
.pz-ei-twostep .pz-ei__panel {
  background: var(--pz-ei-cream);
  color: var(--pz-ei-ink);
  max-width: 580px;
  overflow: hidden;
}
.pz-ei-twostep .pz-ei__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--pz-ei-honey);
  border-radius: 16px 16px 0 0;
}
.pz-ei-twostep__step { padding: 54px 48px 44px; display: none; text-align: center; }
.pz-ei-twostep__step.pz-ei-twostep__step-active { display: block; animation: pz-ei-fadeStep 0.35s ease; }
@keyframes pz-ei-fadeStep {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pz-ei-twostep__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--pz-ei-terracotta);
  font-weight: 700;
  margin-bottom: 12px;
}
.pz-ei-twostep__headline {
  font-family: var(--pz-ei-serif);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--pz-ei-forest-deep);
}
.pz-ei-twostep__headline em { font-style: italic; color: var(--pz-ei-terracotta); }
.pz-ei-twostep__copy {
  font-size: 16px;
  color: var(--pz-ei-ink-soft);
  margin: 0 auto 28px;
  max-width: 440px;
}
.pz-ei-twostep__choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}
.pz-ei-twostep__btn {
  padding: 18px 24px;
  font-family: var(--pz-ei-sans);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pz-ei-twostep__btn--yes {
  background: var(--pz-ei-forest-deep);
  color: var(--pz-ei-honey);
  box-shadow: 0 5px 0 var(--pz-ei-forest-darker);
}
.pz-ei-twostep__btn--yes:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--pz-ei-forest-darker); }
.pz-ei-twostep__btn--yes em { font-style: italic; font-weight: 400; color: var(--pz-ei-cream); }
.pz-ei-twostep__btn--no {
  background: transparent;
  color: var(--pz-ei-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  padding: 8px;
}
.pz-ei-twostep__btn--no:hover { color: var(--pz-ei-terracotta); }
.pz-ei-twostep__step--2 { padding: 40px 40px 36px; text-align: left; }
.pz-ei-twostep__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--pz-ei-ink-soft);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--pz-ei-sans);
  margin-bottom: 12px;
  padding: 0;
}
.pz-ei-twostep__back:hover { color: var(--pz-ei-terracotta); }
.pz-ei-twostep__step--2 h3 {
  font-family: var(--pz-ei-serif);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--pz-ei-forest-deep);
}
.pz-ei-twostep__step--2 p { font-size: 14.5px; color: var(--pz-ei-ink-soft); margin-bottom: 22px; }
.pz-ei-twostep .pz-ei__field span { color: var(--pz-ei-forest-deep); }
.pz-ei-twostep .pz-ei__submit {
  background: var(--pz-ei-forest-deep);
  color: var(--pz-ei-honey);
  box-shadow: 0 5px 0 var(--pz-ei-forest-darker);
  margin-top: 6px;
}
.pz-ei-twostep .pz-ei__submit:hover { box-shadow: 0 3px 0 var(--pz-ei-forest-darker); }

/* -------- BANNER (slide-up bottom) -------- */
.pz-ei-banner {
  display: none;             /* hidden until JS reveals */
  background: var(--pz-ei-forest-deep);
  color: var(--pz-ei-cream);
  position: fixed;
  inset: auto 0 0 0;
  padding: 18px 24px;
  z-index: 90;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  border-top: 3px solid var(--pz-ei-honey);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pz-ei-banner.pz-ei-open { display: block; transform: translateY(0); }
.pz-ei-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pz-ei-banner__text { flex: 1; min-width: 240px; }
.pz-ei-banner__headline {
  font-family: var(--pz-ei-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--pz-ei-honey);
}
.pz-ei-banner__headline em { font-style: italic; color: var(--pz-ei-cream); font-weight: 400; }
.pz-ei-banner__copy {
  font-size: 13.5px;
  color: rgba(250, 245, 234, 0.72);
  margin-top: 3px;
}
.pz-ei-banner__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pz-ei-banner__input {
  font-family: var(--pz-ei-sans);
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(250, 245, 234, 0.2);
  background: rgba(250, 245, 234, 0.08);
  color: var(--pz-ei-cream);
  font-size: 14px;
  transition: border-color 0.15s ease;
}
.pz-ei-banner__input:focus { outline: none; border-color: var(--pz-ei-honey); }
.pz-ei-banner__input::placeholder { color: rgba(250, 245, 234, 0.45); }
.pz-ei-banner__input--name  { width: 130px; }
.pz-ei-banner__input--email { width: 180px; }
.pz-ei-banner__input--zip   { width: 90px; }
.pz-ei-banner__submit {
  background: var(--pz-ei-terracotta);
  color: var(--pz-ei-cream);
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-family: var(--pz-ei-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.pz-ei-banner__submit:hover { background: var(--pz-ei-terracotta-bright); }
.pz-ei-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: transparent;
  color: rgba(250, 245, 234, 0.5);
  font-size: 22px;
  line-height: 1;
}
.pz-ei-banner__close:hover { color: var(--pz-ei-cream); background: rgba(250, 245, 234, 0.1); }

/* -------- Mobile -------- */
@media (max-width: 700px) {
  .pz-ei__panel { max-width: 94vw; max-height: 94vh; }
  .pz-ei-planner__grid { grid-template-columns: 1fr; }
  .pz-ei-planner__visual { border-radius: 16px 16px 0 0; padding: 40px 30px; min-height: 220px; }
  .pz-ei-planner__book { width: 160px; }
  .pz-ei-planner__sticker { width: 72px; height: 72px; font-size: 11px; top: 20px; right: 20px; }
  .pz-ei-planner__form-area { padding: 28px 24px 24px; }
  .pz-ei-planner__headline { font-size: 24px; }
  .pz-ei__grid { grid-template-columns: 1fr; }
  .pz-ei-discount__headline { font-size: 32px; }
  .pz-ei-discount__amount { font-size: 76px; }
  .pz-ei-discount__body { padding: 40px 26px 30px; }
  .pz-ei-twostep__step { padding: 40px 26px 30px; }
  .pz-ei-twostep__headline { font-size: 26px; }
  .pz-ei-twostep__step--2 { padding: 30px 22px 26px; }
  .pz-ei-banner__form { width: 100%; }
  .pz-ei-banner__input { flex: 1; min-width: 0; width: auto; }
  .pz-ei-banner__submit { width: 100%; }
}
