/* Book a demo: a native <dialog>, so focus stays inside it and Escape closes it. */
dialog.demo { border: 0; padding: 0; margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink, #233038);
  font-family: var(--font, "Suisse Intl", Inter, system-ui, sans-serif); box-shadow: rgba(35,48,56,.5) 0 40px 90px -30px; overflow: auto; }
dialog.demo [hidden] { display: none !important; }
dialog.demo::backdrop { background: rgba(35,48,56,.6); }
dialog.demo[open] { animation: demoIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes demoIn { from { opacity: 0; transform: translateY(16px); } }
.demo-top { position: relative; padding: 28px 28px 22px; color: #fff; overflow: hidden;
  background: radial-gradient(50% 62% at 62% -8%, #ff1744 0%, rgba(255,23,68,.7) 30%, rgba(255,23,68,0) 72%),
    radial-gradient(65% 75% at 0% 108%, #ffb03a 0%, rgba(255,176,58,.55) 38%, rgba(255,176,58,0) 72%),
    linear-gradient(165deg, #ff6a12 0%, #ff5b04 55%, #ff7d22 100%); }
.demo-top h2 { font-weight: 400; font-size: 30px; letter-spacing: -0.01em; line-height: 1.15; }
.demo-top p { font-weight: 500; font-size: 15px; line-height: 1.45; margin-top: 8px; max-width: 400px; }
.demo-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; border: 0; cursor: pointer; }
.demo-close:hover { background: rgba(255,255,255,.3); }
.demo-close svg { width: 18px; height: 18px; }
.demo-close:focus-visible, .demo-form input:focus-visible, .demo-form button:focus-visible { outline: 2px solid var(--ink, #233038); outline-offset: 2px; }
.demo-form { padding: 24px 28px 28px; display: grid; gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.demo-form label span.opt { font-weight: 400; color: var(--ink-700, #4a5054); }
.demo-form input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--ink-200, #ced3d4); background: #fff; color: inherit; border-radius: 0; width: 100%; }
.demo-form input:hover { border-color: var(--ink-500, #667175); }
.demo-form input[aria-invalid="true"] { border-color: #b4410a; }
.demo-form .err { font-size: 13px; font-weight: 400; color: #b4410a; min-height: 0; }
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form .send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 16px; padding: 12px 18px; background: var(--ink, #233038); color: #fff; border: 0; cursor: pointer; margin-top: 4px; transition: transform .25s, box-shadow .25s; }
.demo-form .send:hover { transform: translateY(-2px); box-shadow: rgba(35,48,56,.45) 0 10px 24px -12px; }
.demo-form .send[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.demo-form .send svg { width: 20px; height: 20px; }
.demo-form .fine { font-size: 13px; line-height: 1.45; color: var(--ink-700, #4a5054); }
.demo-form .fine a, .demo-msg a { text-decoration: underline; text-underline-offset: 3px; }
.demo-msg { padding: 28px; display: grid; gap: 12px; }
.demo-msg h3 { font-weight: 500; font-size: 22px; }
.demo-msg p { font-size: 16px; line-height: 1.5; color: var(--ink-700, #4a5054); }
.demo-msg .mk { width: 44px; height: 44px; background: var(--ink, #233038); display: grid; place-items: center; }
.demo-msg .mk svg { width: 24px; height: 24px; color: #ff5b04; }
.demo-problem { background: #ffe6d6; color: #a63a00; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
@media (max-width: 640px) { .demo-top { padding: 22px 18px 18px; } .demo-top h2 { font-size: 24px; } .demo-form, .demo-msg { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { dialog.demo[open] { animation: none; } }
