/* Zento Solar — installable app (install buttons, iPhone guide, update bar) + website offer pop-up.
   Shared by the website and the CRM; colours are fixed brand values so it works with both style sheets. */
.zp-lock { overflow: hidden; }

/* ---------- install buttons ---------- */
.zp-hdr { display: none; }
@media (min-width: 900px) { .zp-hdr { display: inline-grid; } }
.zp-foot { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 36px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.zp-foot:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.zp-drawer { font-family: inherit; cursor: pointer; }

/* CRM sidebar (dark green) */
.zp-side { display: flex; align-items: center; gap: 10px; margin: 0 12px 10px; padding: 9px 12px; min-height: 48px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #e6f3ea; font-family: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.zp-side:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.zp-side > i { font-size: 18px; color: #f7b500; }
.zp-side span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.zp-side b { font-size: 13px; font-weight: 700; }
.zp-side small { font-size: 11px; color: #9cc9aa; }
/* CRM share menu */
.zp-share { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3ebe5; }
.zp-share b { font-size: 13px; }
.zp-share p { margin: 2px 0 8px; font-size: 12.5px; color: #5f6f66; }

/* phone chip (website) */
.zp-chip { position: fixed; z-index: 58; left: 10px; right: 76px; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; padding: 7px 6px 7px 8px; border-radius: 18px; background: rgba(255,255,255,.97); border: 1px solid #e2eae4; box-shadow: 0 14px 34px -12px rgba(10,45,25,.4); font-family: inherit; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.zp-chip.in { opacity: 1; transform: none; }
.zp-chip img { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.zp-chip-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.zp-chip-t b { font-size: 13px; color: #0e1c15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-chip-t small { font-size: 11px; color: #66766d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-chip-go { margin-left: auto; flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: #1a7f3c; color: #fff; font-weight: 750; font-size: 13px; font-family: inherit; cursor: pointer; }
.zp-chip-x { flex: 0 0 auto; width: 32px; height: 36px; border: 0; background: none; color: #66766d; font-size: 13px; cursor: pointer; border-radius: 10px; }
@media (min-width: 900px) { .zp-chip { display: none; } }
.zp-has-update .zp-chip { display: none; }

/* ---------- shared bits ---------- */
.zp-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(14,28,21,.06); color: #33433a; display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.zp-x:hover { background: rgba(14,28,21,.12); }
.zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: 99px; background: linear-gradient(180deg, #23964a, #1a7f3c); color: #fff; font-weight: 750; font-size: 15px; font-family: inherit; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(26,127,60,.7); }
.zp-btn:disabled { opacity: .65; cursor: progress; }
.zp-btn-sun { background: linear-gradient(180deg, #ffc93a, #f7b500); color: #1d1500; box-shadow: 0 12px 24px -12px rgba(217,154,0,.8); }
.zp-btn:focus-visible, .zp-x:focus-visible, .zp-foot:focus-visible, .zp-side:focus-visible, .zp-chip-go:focus-visible, .zp-update button:focus-visible { outline: 3px solid #f7b500; outline-offset: 2px; }

/* ---------- iPhone guide ---------- */
.zp-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); font-family: inherit; }
.zp-sheet-bg { position: absolute; inset: 0; background: rgba(6,20,12,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: zpFade .2s ease-out; }
.zp-sheet-box { position: relative; width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 22px 18px 18px; box-shadow: 0 -10px 50px rgba(0,0,0,.3); outline: none; animation: zpUp .3s cubic-bezier(.2,.8,.2,1); color: #0e1c15; }
.zp-sheet-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; margin-bottom: 14px; }
.zp-sheet-head img { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; }
.zp-sheet-head h2 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; color: #0e1c15; }
.zp-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.zp-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: #f3faf5; border: 1px solid #e2eae4; font-size: 14px; line-height: 1.35; }
.zp-steps li > span:nth-child(2) { flex: 1; }
.zp-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #1a7f3c; color: #fff; font-size: 13px; font-weight: 800; }
.zp-ic { font-size: 22px; color: #2f8fe0; flex: 0 0 auto; }
.zp-arrow { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); color: #fff; font-size: 26px; animation: zpBob 1.4s ease-in-out infinite; }
@media (min-width: 700px) { .zp-sheet { align-items: center; } .zp-arrow { display: none; } }

/* ---------- update bar ---------- */
.zp-update { position: fixed; z-index: 85; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 20px); padding: 8px 8px 8px 16px; border-radius: 99px; background: #0c2d62; color: #fff; box-shadow: 0 20px 40px -14px rgba(8,31,69,.6); font: 650 14px/1.3 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.zp-update.in { opacity: 1; transform: translate(-50%, 0); }
.zp-update > i { color: #f7b500; font-size: 17px; }
.zp-update-go { min-height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: #f7b500; color: #1d1500; font-weight: 800; font-size: 13.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.zp-update-x { width: 34px; height: 38px; border: 0; background: none; color: #c9d6ee; cursor: pointer; border-radius: 50%; }
.zp-update.zp-crm { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .zp-update { bottom: 24px; } .zp-update.zp-crm { bottom: 20px; } }

/* ---------- website offer pop-up ---------- */
.zp-promo { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; }
.zp-promo-bg { position: absolute; inset: 0; background: rgba(4,18,10,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.zp-promo-box { position: relative; display: grid; grid-template-columns: 300px 1fr; width: min(780px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 40px 100px -24px rgba(0,0,0,.55); outline: none; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); color: #0e1c15; }
.zp-promo.in .zp-promo-bg { opacity: 1; }
.zp-promo.in .zp-promo-box { opacity: 1; transform: none; }
.zp-promo-art { position: relative; overflow: hidden; padding: 30px 26px; color: #fff; background: radial-gradient(260px 200px at 90% 0%, rgba(247,181,0,.35), transparent 70%), linear-gradient(160deg, #1f8f45 0%, #11612c 55%, #0a3a1d 100%); display: flex; flex-direction: column; gap: 18px; }
.zp-promo-art::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.05); }
.zp-eyebrow { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.zp-eyebrow i { color: #f7b500; }
.zp-big { display: flex; flex-direction: column; line-height: 1.1; }
.zp-big small { font-size: 13px; color: #cfe8d7; font-weight: 600; }
.zp-big b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: #ffd24d; margin: 4px 0 2px; }
.zp-big span { font-size: 13px; color: #cfe8d7; }
.zp-ticks { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; font-weight: 600; }
.zp-ticks li { display: flex; gap: 9px; align-items: flex-start; }
.zp-ticks i { color: #7fe0a0; margin-top: 1px; }
.zp-promo-main { padding: 34px 30px 26px; }
.zp-promo-main h2 { margin: 0 0 8px; padding-right: 36px; font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: #0e1c15; }
.zp-promo-main h2 em { font-style: normal; color: #1a7f3c; }
.zp-promo-main > p { margin: 0 0 18px; color: #66766d; font-size: 14.5px; line-height: 1.5; }
.zp-form { display: grid; gap: 11px; }
.zp-f { display: grid; gap: 5px; }
.zp-f > span { font-size: 12.5px; font-weight: 700; color: #33433a; }
.zp-f small { font-weight: 500; color: #66766d; }
.zp-f input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #dbe5de; border-radius: 14px; background: #f8fbf9; font-weight: 500; font-size: 16px; font-family: inherit; color: #0e1c15; transition: border-color .2s, box-shadow .2s, background .2s; }
.zp-f input:focus { outline: none; border-color: #1a7f3c; background: #fff; box-shadow: 0 0 0 4px rgba(26,127,60,.14); }
.zp-msg { min-height: 0; font-size: 13px; font-weight: 600; color: #b91c1c; }
.zp-msg:empty { display: none; }
.zp-btn.is-busy { position: relative; color: transparent; }
.zp-btn.is-busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(29,21,0,.25); border-top-color: #1d1500; animation: zpSpin .7s linear infinite; }
.zp-fine { margin: 2px 0 0; font-size: 12px; color: #66766d; text-align: center; }
.zp-fine a { color: #1a7f3c; text-decoration: underline; }
.zp-done { text-align: center; padding: 24px 0 6px; }
.zp-done-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e8f5ec; color: #1a7f3c; font-size: 34px; }
.zp-done h2 { padding: 0; }
.zp-done p { color: #33433a; font-size: 15px; margin: 0 0 18px; }

@media (max-width: 760px) {
  .zp-promo { align-items: flex-end; padding: 10px 10px calc(76px + env(safe-area-inset-bottom)); }
  .zp-promo-box { grid-template-columns: 1fr; border-radius: 24px; max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); transform: translateY(40px); }
  .zp-promo-art { padding: 18px 18px 16px; gap: 10px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .zp-promo-art::after { display: none; }
  .zp-big { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .zp-big b { font-size: 32px; margin: 0; }
  .zp-big small { order: 0; }
  .zp-ticks { display: none; }
  .zp-promo-main { padding: 18px 18px 16px; }
  .zp-promo-main h2 { font-size: 22px; }
  .zp-promo-main > p { font-size: 13.5px; margin-bottom: 12px; }
  .zp-form { gap: 9px; }
  .zp-promo .zp-x { background: rgba(255,255,255,.16); color: #fff; }
}
@media (max-width: 760px) and (max-height: 640px) { .zp-big span, .zp-promo-main > p { display: none; } }

@keyframes zpFade { from { opacity: 0; } }
@keyframes zpUp { from { opacity: 0; transform: translateY(30px); } }
@keyframes zpBob { 50% { transform: translate(-50%, 6px); } }
@keyframes zpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zp-promo-box, .zp-promo-bg, .zp-chip, .zp-update, .zp-sheet-box, .zp-arrow { transition: none; animation: none; } }
