/* "Try it" demo: set a reminder, it pops up a few seconds later, styled like the app's AlertForm.
   Shared by the main site, /go and /sales. Every class is prefixed (ti- / er-) so page styles can't collide. */
.ti{--ti-accent:#4f46e5;--ti-accent-hover:#4338ca;--ti-ink:#0f172a;--ti-muted:#64748b;--ti-line:#e2e8f0;--ti-line-strong:#cbd5e1;
  --ti-subtle:#f1f5f9;--ti-success:#10b981;--ti-danger:#e11d48;
  max-width:820px;margin:36px auto 0;background:#fff;border-radius:24px;padding:clamp(20px,3.5vw,36px);
  box-shadow:0 40px 80px -40px rgba(30,27,75,.35),0 0 0 1px rgba(15,23,42,.06);text-align:left;color:var(--ti-ink)}
.ti-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.ti-row{grid-template-columns:1fr}}
.ti-why{margin-top:14px}
.ti-lbl{display:block;font-size:13px;font-weight:700;color:#475569;margin:0 0 8px}
.ti-lbl span{font-weight:500;color:var(--ti-muted)}
.ti-field{position:relative;display:flex;align-items:center;border:2px solid var(--ti-line-strong);border-radius:14px;padding:0 16px;height:56px;background:#fff;cursor:text;transition:border-color .2s,box-shadow .2s}
.ti-field:focus-within{border-color:var(--ti-accent);box-shadow:0 0 0 5px rgba(79,70,229,.12)}
.ti-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17px;font-weight:400;font-family:inherit;color:var(--ti-ink)}
.ti-field input::placeholder{color:#a3acb9;font-weight:400}
/* a blinking cursor in the first field until the visitor clicks in (no focus stealing, no surprise phone keyboard) */
.ti-field.ti-caret::before{content:"";position:absolute;left:17px;top:50%;width:2px;height:22px;margin-top:-11px;background:var(--ti-accent);border-radius:1px;animation:ti-blink 1.05s steps(1) infinite}
.ti-field.ti-caret input::placeholder{text-indent:6px}
@keyframes ti-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.ti-field.ti-caret::before{animation:none}}
.ti-parsed{min-height:22px;margin:8px 0 0;font-size:14px;font-weight:600;color:var(--ti-accent);display:flex;align-items:center;gap:6px}
.ti-parsed.ok::before{content:"";width:16px;height:16px;border-radius:50%;flex:none;background:var(--ti-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat}
.ti-parsed.hint{color:var(--ti-muted);font-weight:500}
.ti-foot{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid var(--ti-line);flex-wrap:wrap}
.ti-status{flex:1 1 240px;margin:0;font-size:14.5px;color:#475569;min-height:22px}
.ti-status.err{color:var(--ti-danger);font-weight:600}
.ti-status.ok{color:#166534;font-weight:600}
.ti-status.done::before{content:"";display:inline-block;width:16px;height:16px;margin-right:6px;vertical-align:-3px;border-radius:50%;background:var(--ti-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat}
.ti-btn{font-size:15px;font-weight:700;font-family:inherit;height:44px;padding:0 20px;border-radius:10px;cursor:pointer;border:0}
.ti-btn.primary{background:var(--ti-accent);color:#fff}
.ti-btn.primary:hover{background:var(--ti-accent-hover)}
.ti-btn.primary:disabled{background:#a5b4fc;cursor:default}
.ti-btn.secondary{background:#fff;color:var(--ti-ink);box-shadow:inset 0 0 0 1.5px var(--ti-line-strong)}
.ti-btn.secondary:hover{background:var(--ti-subtle)}
.ti-ex-lbl{margin:18px 0 8px;font-size:13px;font-weight:600;color:var(--ti-muted)}
.ti-examples{display:flex;flex-wrap:wrap;gap:8px}
.ti-examples button{border:0;cursor:pointer;font-size:14px;font-weight:600;font-family:inherit;padding:8px 13px;border-radius:999px;background:var(--ti-subtle);color:#334155}
.ti-examples button:hover{background:#eef2ff;color:var(--ti-accent)}
.ti-note{font-size:13px;color:var(--ti-muted);margin:14px 0 0}

/* ---- the pop-up (after src/App/AlertForm.cs: 500 px wide, 26 px padding, 54 px header, Segoe UI) ---- */
.er-alert{position:fixed;z-index:200;left:50%;top:max(20px,18vh);width:min(500px,calc(100vw - 24px));transform:translateX(-50%);
  background:#fff;border-radius:12px;overflow:hidden;color:#0f172a;text-align:left;line-height:1.5;
  font-family:"Segoe UI","Segoe UI Variable",system-ui,sans-serif;
  box-shadow:0 30px 70px -20px rgba(15,23,42,.55),0 0 0 1px rgba(15,23,42,.14)}
.er-alert[hidden]{display:none}
.er-alert.pop{animation:er-pop .16s ease-out}
.er-alert.shake{animation:er-shake .42s ease}
@keyframes er-pop{from{opacity:0;transform:translateX(-50%) scale(.97)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes er-shake{0%,100%{transform:translateX(-50%)}20%{transform:translateX(calc(-50% - 10px))}40%{transform:translateX(calc(-50% + 9px))}60%{transform:translateX(calc(-50% - 6px))}80%{transform:translateX(calc(-50% + 3px))}}
@media (prefers-reduced-motion:reduce){.er-alert.pop,.er-alert.shake{animation:none}}
.er-head{height:54px;display:flex;align-items:center;gap:8px;padding:0 26px 0 22px;background:linear-gradient(90deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:14.7px}
.er-head svg{width:24px;height:24px;color:#fff;flex:none}
.er-clock{margin-left:auto;font-weight:400;font-size:13.3px;color:#e0e7ff}
.er-body{padding:22px 26px 0}
.er-msg{margin:0;font-weight:600;font-size:21.3px;line-height:1.3;word-wrap:break-word}
.er-note{margin-top:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;font-size:13.3px;color:#334155;white-space:pre-wrap;word-wrap:break-word}
.er-note:empty{display:none}
.er-det{margin:10px 0 0;font-size:12.7px;color:#64748b;padding-bottom:20px}
.er-foot{display:flex;align-items:center;gap:6px;padding:16px 26px 18px;border-top:1px solid #e2e8f0;flex-wrap:wrap}
.er-snz{font-size:12.7px;color:#64748b;margin-right:4px}
.er-chip,.er-ack{font:600 13.3px "Segoe UI","Segoe UI Variable",system-ui,sans-serif;height:38px;padding:0 14px;border-radius:8px;border:0;cursor:pointer}
.er-chip{background:#f1f5f9;color:#1e293b}
.er-chip:hover{background:#e2e8f0}
.er-ack{margin-left:auto;min-width:136px;background:#4f46e5;color:#fff}
.er-ack:hover{background:#4338ca}
.er-tip{display:none;margin:0;padding:10px 26px 12px;background:#fef9c3;color:#713f12;font-size:13px;font-weight:600;border-top:1px solid #fde68a}
.er-tip.show{display:block}
@media (max-width:480px){.er-ack{min-width:0;flex:1 0 100%;margin-left:0}}
