/* Max web chat */
#max-root,#max-root *{box-sizing:border-box;font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif}
#max-root{--t:#26ACE4;--td:#1b8fc2;--ink:#0f1720;--mut:#5b6672;--line:#e3e8ee;position:fixed;z-index:2147483000;right:20px;bottom:20px;color:var(--ink)}
.max-bubble{display:flex;align-items:center;gap:10px;background:#fff;color:var(--ink);border:2px solid var(--t);border-radius:999px;padding:8px 18px 8px 8px;box-shadow:0 10px 30px rgba(15,23,32,.16);cursor:pointer;font-weight:700;font-size:15px}
.max-bubble:hover{background:#f3fbfe}
.max-av{width:40px;height:40px;border-radius:50%;background:var(--t);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex:0 0 auto}
.max-av.sm{width:30px;height:30px;font-size:14px}
.max-dot{width:9px;height:9px;border-radius:50%;background:#2ecc71;display:inline-block;margin-left:2px}
.max-bar{display:none}
.max-nudge{position:absolute;right:0;bottom:70px;width:330px;background:#fff;border:1px solid var(--line);border-top:4px solid var(--t);border-radius:16px;box-shadow:0 18px 40px rgba(15,23,32,.18);padding:16px;transform:translateY(16px);opacity:0;pointer-events:none;transition:all .35s ease}
.max-nudge.on{transform:none;opacity:1;pointer-events:auto}
.max-nudge .x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:20px;color:var(--mut);cursor:pointer}
.max-nudge .row{display:flex;gap:10px;align-items:flex-start}
.max-nudge p{margin:2px 18px 12px 0;font-size:15px;line-height:1.4;font-weight:600}
.max-taps{display:flex;flex-wrap:wrap;gap:8px}
.max-tap{border:1.5px solid var(--t);background:#fff;color:var(--td);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer}
.max-tap:hover{background:var(--t);color:#fff}
.max-panel{position:absolute;right:0;bottom:0;width:380px;height:min(640px,calc(100vh - 40px));background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px rgba(15,23,32,.22);display:none;flex-direction:column;overflow:hidden}
#max-root.open .max-panel{display:flex}
#max-root.open .max-bubble,#max-root.open .max-nudge,#max-root.open .max-bar{display:none!important}
.max-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}
.max-head .who{flex:1;min-width:0}
.max-head .nm{font-weight:800;font-size:15px}
.max-head .sub{font-size:12px;color:var(--mut);display:flex;align-items:center;gap:6px}
.max-head img{height:22px}
.max-close{border:0;background:none;font-size:24px;line-height:1;color:var(--mut);cursor:pointer;padding:2px 6px}
.max-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#fff}
.max-m{max-width:84%;padding:9px 13px;border-radius:16px;font-size:14.5px;line-height:1.42;white-space:pre-wrap;word-wrap:break-word}
.max-m.a{background:#eef8fd;border:1px solid #d5eefa;align-self:flex-start;border-bottom-left-radius:5px}
.max-m.u{background:var(--t);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}
.max-typing{align-self:flex-start;color:var(--mut);font-size:13px;padding:4px 6px}
.max-qr{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 8px}
.max-card{align-self:stretch;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}
.max-card label{display:block;font-size:12px;font-weight:700;color:var(--mut);margin:8px 0 4px}
.max-card input[type=text],.max-card input[type=tel]{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-size:14px}
.max-consent{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:11.5px;line-height:1.4;color:var(--mut);font-weight:500!important}
.max-consent input{margin-top:2px;flex:0 0 auto;width:16px;height:16px;accent-color:var(--t)}
.max-btn{display:block;width:100%;margin-top:12px;background:var(--t);color:#fff;border:0;border-radius:10px;padding:11px;font-weight:800;font-size:14px;cursor:pointer}
.max-btn:hover{background:var(--td)}
.max-cal{position:relative;align-self:stretch;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:520px}
.max-cal iframe{width:100%;height:560px;border:0;display:block}
.max-voice{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 14px 8px;border:1.5px solid var(--t);background:#fff;color:var(--td);border-radius:12px;padding:9px;font-weight:800;font-size:14px;cursor:pointer}
.max-voice.live{background:#e8f8ef;border-color:#2ecc71;color:#14753d}
.max-in{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}
.max-in input{flex:1;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-size:15px;outline:none}
.max-in input:focus{border-color:var(--t)}
.max-in button{background:var(--t);color:#fff;border:0;border-radius:999px;padding:0 16px;font-weight:800;cursor:pointer}
@media (max-width:640px){
  #max-root{right:0;left:0;bottom:0}
  .max-bubble{display:none}
  .max-bar{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:var(--t);color:#fff;border:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 -6px 20px rgba(15,23,32,.12)}
  .max-nudge{right:10px;left:10px;width:auto;bottom:58px}
  .max-panel{position:fixed;inset:0;width:100%;height:100%;border-radius:0;border:0}
  .max-cal iframe{height:620px}
}
@media (max-width:640px){body.max-has-bar{padding-bottom:52px}}

/* ===== Hero phone (iMessage style thread with Max) ===== */
.max-hero-phone,.max-hero-phone *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif}
.max-hero-phone{--t:#26ACE4;--td:#1b8fc2;margin:0 auto 48px;width:100%;max-width:300px}
.mh-phone{position:relative;display:flex;flex-direction:column;width:100%;height:620px;background:#fff;border:12px solid #15191f;border-radius:48px;overflow:hidden;box-shadow:0 22px 50px rgba(15,23,32,.22)}
.mh-island{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:92px;height:22px;background:#15191f;border-radius:999px;z-index:3;pointer-events:none}
.mh-home{flex:0 0 auto;width:108px;height:5px;margin:2px auto 8px;background:#15191f;border-radius:999px}
.mh-top{position:relative;display:flex;flex-direction:column;align-items:center;padding:36px 12px 8px;background:#f7f8fa;border-bottom:1px solid #e6eaef}
.mh-av{width:34px;height:34px;border-radius:50%;background:linear-gradient(180deg,#5cc4ee,#26ACE4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.mh-name{margin-top:3px;font-size:12px;font-weight:600;color:#111;letter-spacing:.01em}
.mh-call{position:absolute;right:10px;top:36px;width:32px;height:32px;border-radius:50%;border:0;background:#fff;color:var(--t);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 0 0 1px #dfe5ec}
.mh-call:hover{background:#eaf7fd}
.mh-call svg{width:16px;height:16px;fill:currentColor}
.mh-call.live{background:#2ecc71;color:#fff;box-shadow:0 0 0 4px rgba(46,204,113,.25);animation:mhpulse 1.4s infinite}
@keyframes mhpulse{50%{box-shadow:0 0 0 8px rgba(46,204,113,.08)}}
.mh-test{text-align:center;font-size:10px;font-weight:600;color:#8a5a00;background:#fff6e0;padding:3px 8px;border-bottom:1px solid #f4e2b4}
.mh-test.live{color:#14753d;background:#e8f8ef;border-color:#c9ecd6}
.mh-thread{flex:1;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:5px;background:#fff;-webkit-overflow-scrolling:touch}
.mh-stamp{align-self:center;font-size:10.5px;color:#8a8f98;font-weight:600;margin:2px 0 4px}
.mh-m{max-width:80%;padding:8px 12px;border-radius:18px;font-size:14.5px;line-height:1.32;white-space:pre-wrap;word-wrap:break-word}
.mh-m.a{align-self:flex-start;background:#e9e9eb;color:#111;border-bottom-left-radius:5px}
.mh-m.u{align-self:flex-end;background:var(--t);color:#fff;border-bottom-right-radius:5px}
.mh-m.pop{animation:mhpop .25s ease-out}
@keyframes mhpop{from{transform:scale(.85);opacity:0}}
.max-dots{display:inline-flex;gap:4px;align-items:center;align-self:flex-start;background:#e9e9eb;border-radius:18px;border-bottom-left-radius:5px;padding:11px 14px}
.max-dots i{width:7px;height:7px;border-radius:50%;background:#9a9ea6;animation:mhdot 1.2s infinite}
.max-dots i:nth-child(2){animation-delay:.18s}.max-dots i:nth-child(3){animation-delay:.36s}
@keyframes mhdot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.mh-qr{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:#fff;min-height:0}
.mh-chip{border:1.5px solid var(--t);background:#fff;color:var(--td);border-radius:999px;padding:6px 12px;font-weight:600;font-size:13.5px;cursor:pointer}
.mh-chip:hover{background:var(--t);color:#fff}
.mh-in{display:flex;align-items:center;gap:8px;padding:8px 10px 6px;border-top:1px solid #e6eaef;background:#fff}
.mh-in input{flex:1;min-width:0;border:1px solid #cfd6de;border-radius:999px;padding:8px 14px;font-size:16px;outline:none;background:#fff}
.mh-in input:focus{border-color:var(--t)}
.mh-send{width:30px;height:30px;border-radius:50%;border:0;background:var(--t);color:#fff;font-size:16px;font-weight:700;cursor:pointer;flex:0 0 auto;line-height:1}
.mh-thread .max-card{align-self:stretch;padding:10px}
.mh-thread .max-card .max-btn{padding:9px;font-size:13.5px}
.mh-thread .max-cal{min-height:0}
.mh-thread .max-cal iframe{height:520px}
@media (min-width:980px){
  .max-hero-grid{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 310px;grid-template-rows:auto auto auto auto;column-gap:48px;align-items:start}
  .max-hero-grid>*{grid-column:1}
  .max-hero-grid>.max-hero-phone{grid-column:2;grid-row:1 / span 4;margin:0;max-width:none;width:310px}
  .max-hero-grid>.proof-strip,.max-hero-grid>.disclaimer{grid-column:1 / -1}
  .max-hero-grid .hero-title{font-size:clamp(42px,4.7vw,68px)}
  .max-hero-grid .hero-cta-row{margin-bottom:28px}
  .max-hero-grid>.proof-strip{margin-top:48px}
  .mh-phone{height:670px;border-radius:48px;border-width:12px}
}
@media (max-width:979px){
  .max-hero-phone{max-width:300px;margin:8px auto 48px}
  .mh-phone{height:620px}
}
@media (max-width:420px){
  .max-hero-phone{max-width:280px}
  .mh-phone{height:600px;border-radius:44px;border-width:10px}
  .mh-island{width:80px;height:20px;top:8px}
}

.max-card label.max-consent{display:flex;gap:8px;align-items:flex-start;margin-top:10px}
.max-card label.max-consent span{flex:1}
.mh-thread,.max-msgs{position:relative}
.mh-thread>*{flex-shrink:0}
@media (min-width:641px){#max-root.hero-in-view:not(.open) .max-bubble{display:none}}
