/* Ways to get in touch (leads.js): the form dialog, the one gentle prompt of a visit, product updates in the footer. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---- the dialog ---- */
.lead-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px 30px 26px;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 30px 80px #0b232b40;overflow-y:auto;overscroll-behavior:contain}
.lead-dialog::backdrop{background:#0b232b8c;backdrop-filter:blur(3px)}
.lead-dialog[open]{animation:lead-pop .24s cubic-bezier(.2,.9,.3,1.1)}
.lead-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.lead-head .eyebrow{margin:0}
.lead-close,.lead-prompt-close{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef2ee;color:var(--ink);font-size:22px;line-height:1;transition:background .15s}
.lead-close:hover,.lead-prompt-close:hover{background:#dfe7e0}
.lead-dialog h2{margin:0 0 8px;font:700 clamp(24px,4vw,30px)/1.1 var(--display);letter-spacing:-.04em}
.lead-intro{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.55}

/* ---- the form: tiles to tap, one field, one button ---- */
.lead-form{display:grid;gap:16px}
.lead-tiles{margin:0;padding:0;border:0;min-width:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.lead-tiles legend{grid-column:1/-1;padding:0;margin-bottom:8px;font-size:12.5px;font-weight:650;color:var(--ink)}
.lead-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:96px;padding:16px 10px 12px;border:1px solid #d9e2dc;border-radius:14px;background:#fff;text-align:center;font-size:13px;font-weight:550;line-height:1.25;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.lead-tile:hover{border-color:#9fb3a7;transform:translateY(-1px)}
.lead-tile input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.lead-tile .lead-icon{width:28px;height:28px;fill:none;stroke:var(--brand);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.lead-tile-check{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:18px;height:18px;border:1.5px solid #c3cfc7;border-radius:5px;background:#fff;transition:background .15s,border-color .15s}
.lead-tile-check .lead-icon{width:12px;height:12px;stroke:#fff;stroke-width:3;opacity:0}
.lead-tile:has(input:checked){border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 1px var(--brand)}
.lead-tile:has(input:checked) .lead-tile-check{background:var(--brand);border-color:var(--brand)}
.lead-tile:has(input:checked) .lead-tile-check .lead-icon{opacity:1}
.lead-tile:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.lead-chips{margin:0;padding:0;border:0;display:flex;flex-wrap:wrap;gap:8px}
.lead-chips legend{width:100%;padding:0;margin-bottom:8px;font-size:12.5px;font-weight:650}
.lead-chip{position:relative;cursor:pointer}
.lead-chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.lead-chip span{display:inline-block;padding:8px 14px;border:1px solid #cfd9d2;border-radius:999px;background:#fff;font-size:13px;font-weight:550;transition:background .15s,border-color .15s}
.lead-chip input:checked+span{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.lead-chip input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.lead-message{width:100%;min-height:96px;padding:12px 14px;border:1px solid #cfd9d2;border-radius:12px;background:#fbfcfa;color:var(--ink);font:15px/1.45 var(--body);resize:vertical}
.lead-message:focus{outline:0;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px var(--brand-soft)}
/* the one field and its button, joined */
.lead-contact{display:flex;align-items:stretch;border:1px solid #cfd9d2;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.lead-contact:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.lead-contact-input{flex:1;min-width:0;height:52px;padding:0 16px;border:0;background:transparent;color:var(--ink);font:15px var(--body)}
.lead-contact-input:focus{outline:0}
.lead-contact-input::placeholder{color:#94a39b}
.lead-contact-input[aria-invalid]{background:#fff8f6}
.lead-go{display:inline-flex;align-items:center;gap:10px;padding:0 20px;border:0;background:var(--orange);color:#152d31;font:700 14px var(--body);white-space:nowrap;cursor:pointer;transition:background .15s}
.lead-go:hover{background:#ff9658}
.lead-go:disabled{opacity:.7;cursor:progress}
.lead-go .lead-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lead-error{margin:-6px 0 0;color:#b13a20;font-size:12.5px;font-weight:550}
.lead-brief{padding:12px 14px;border-radius:12px;background:#f2f5f1;border:1px solid #e1e8e2}
.lead-brief span{display:block;margin-bottom:3px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.lead-brief p{margin:0;font-size:13.5px;line-height:1.5}
.lead-fine{margin:-6px 0 0;color:var(--muted);font-size:11.5px;text-align:center}
.lead-fine a{text-decoration:underline}
.lead-trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- the quick bar in a hero: an email and "Get a demo" ---- */
.lead-quick{display:flex;max-width:460px;margin-top:22px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px #cfd9d2,0 10px 30px #102f3714;overflow:hidden}
.lead-quick:focus-within{box-shadow:0 0 0 2px var(--brand),0 10px 30px #102f3714}
.lead-quick input{flex:1;min-width:0;height:54px;padding:0 16px;border:0;background:transparent;color:var(--ink);font:15px var(--body)}
.lead-quick input:focus{outline:0}
.lead-quick input[aria-invalid]{background:#fff4f0}
.lead-quick button{padding:0 22px;border:0;background:var(--brand);color:#fff;font:700 14px var(--body);white-space:nowrap;cursor:pointer;transition:background .15s}
.lead-quick button:hover{background:#163f70}
.lead-quick-dark{box-shadow:0 0 0 1px #ffffff40,0 14px 40px #00000040}
.lead-quick-dark button{background:var(--orange);color:#152d31}
.lead-quick-dark button:hover{background:#ff9658}
.lead-quick-note{margin:10px 0 0;font-size:12px;opacity:.75}

/* ---- sent ---- */
.lead-done{display:grid;justify-items:center;gap:8px;padding:18px 0 4px;text-align:center}
.lead-done-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#e2f3e8;color:#1d7a4a}
.lead-done-icon .lead-icon{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lead-done-close{margin-top:4px;padding:11px 26px;border-radius:10px;background:var(--dark);color:#fff;font-weight:650}
.lead-done h3{margin:6px 0 0;font:700 20px var(--display);letter-spacing:-.03em}
.lead-done p{margin:0 0 10px;color:var(--muted);font-size:14px;max-width:36ch}

/* ---- the one unasked prompt: a note by the chat button, or a corner card on a desktop ---- */
.lead-nudge,.lead-exit{position:fixed;z-index:59;opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}
.lead-nudge.is-in,.lead-exit.is-in{opacity:1;transform:none}
.lead-nudge{right:24px;bottom:100px;display:flex;align-items:flex-start;gap:10px;width:min(320px,calc(100vw - 48px));padding:14px 14px 14px 14px;border-radius:18px;background:#fff;box-shadow:0 18px 50px #0b232b33,0 0 0 1px #102f3714}
.lead-nudge::after{content:'';position:absolute;right:34px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 6px #0b232b0f}
.lead-nudge img{border-radius:9px;flex:none}
.lead-nudge p{margin:2px 0 10px;font-size:13.5px;line-height:1.45}
.lead-nudge-action{padding:8px 13px;border-radius:10px;background:var(--dark);color:#fff;font-size:12.5px;font-weight:650}
.lead-nudge-action:hover{background:#24505a}
.lead-nudge .lead-prompt-close{width:28px;height:28px;font-size:18px;flex:none;margin:-4px -4px 0 0;background:transparent}
.lead-exit{left:24px;bottom:24px;width:340px;padding:22px 22px 18px;border-radius:20px;background:#fff;box-shadow:0 24px 60px #0b232b40,0 0 0 1px #102f3714}
.lead-exit .lead-prompt-close{position:absolute;top:12px;right:12px;width:30px;height:30px;font-size:19px}
.lead-exit .eyebrow{margin:0 0 6px}
.lead-exit h3{margin:0 0 6px;font:700 20px/1.15 var(--display);letter-spacing:-.03em;padding-right:28px}
.lead-exit>p{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.5}
.lead-exit .lead-form{gap:10px}
.lead-exit .lead-fine{display:none}

/* ---- product updates, above the footer's last line ---- */
.lead-updates{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px;margin:6px 0 28px;padding:22px 24px;border-radius:16px;background:#fff;border:1px solid #e1e8e2}
.lead-updates strong{display:block;font:700 16px var(--display);letter-spacing:-.02em}
.lead-updates span{font-size:13px;color:var(--muted)}
.lead-updates-form{display:flex;gap:8px;flex:1 1 320px;max-width:440px}
.lead-updates-form input[type=email]{flex:1;min-width:0;height:46px;padding:0 14px;border:1px solid #cfd9d2;border-radius:10px;background:#fbfcfa;color:var(--ink);font:14px var(--body)}
.lead-updates-form input[type=email]::placeholder{color:#94a39b}
.lead-updates-form input[type=email]:focus{outline:0;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px var(--brand-soft)}
.lead-updates-status{flex-basis:100%;margin:-8px 0 0;font-size:12.5px;min-height:0}
.lead-updates-status:empty{display:none}
.lead-updates-done{margin:0;font-weight:600}

@media (max-width:640px){
  .lead-dialog{padding:22px 18px 20px;border-radius:18px}
  .lead-tiles{grid-template-columns:repeat(2,1fr)}
  .lead-tile{min-height:84px}
  .lead-go span{display:none}
  .lead-quick button{padding:0 16px}
  .lead-nudge{right:16px;bottom:92px}
  .lead-updates{padding:18px}
  .lead-updates-form{flex-basis:100%}
}
@keyframes lead-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lead-dialog[open]{animation:none}.lead-nudge,.lead-exit{transition:none}}

/* ---- the buttons that open the forms ---- */
.lead-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.button-plan{border:1px solid #ced9d0;background:#fff;color:var(--ink)}
.button-plan:hover{background:#edf1eb}
.button-ghost-light{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px #ffffff59}
.button-ghost-light:hover{background:#ffffff1a}
.lead-header-link{color:var(--brand)}
@media (max-width:1100px){.lead-header-link{display:none}}
.site-header-overlay.is-top .lead-header-link{color:#fff}
.hero-content .lead-quick{margin:0 0 26px}
.sol-fine{margin-top:12px}
