/* The v6 demo form shares the homepage's typography, surfaces and buttons. */
.demo-dialog { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 0; width: min(600px, calc(100% - 40px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-frame); }
.demo-dialog[open] { animation: demo-enter .25s var(--ease) both; }
.demo-dialog::backdrop { background: rgb(13 18 33 / .32); backdrop-filter: blur(5px); }
body.has-demo-open { overflow: hidden; }
.demo-dialog__body { padding: 40px; }
.demo-dialog__close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); z-index: 1; }
.demo-dialog__close:hover { background: var(--line-2); }
.demo-dialog__close svg { width: 20px; height: 20px; }
.demo-dialog__eyebrow { display: block; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-right: 40px; margin-bottom: 16px; }
.demo-dialog h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.08; letter-spacing: -.045em; max-width: 430px; }
.demo-dialog h2:focus { outline: none; }
.demo-dialog__intro { color: var(--mute); margin: 16px 0 28px; max-width: 450px; font-size: 16px; line-height: 1.6; }
.demo-dialog__fields { display: grid; gap: 18px; }
.demo-dialog__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-dialog label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.demo-dialog label small { font: inherit; font-weight: 400; color: var(--mute); }
.demo-dialog input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; font: 400 16px var(--font); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); transition: border-color .15s, background .15s; }
.demo-dialog input::placeholder { color: var(--mute-2); }
.demo-dialog input:focus { background: #fff; outline: 2px solid var(--blue); outline-offset: 2px; }
.demo-dialog .btn { width: 100%; height: 50px; min-height: 50px; flex: none; margin-top: 20px; gap: 10px; }
.demo-dialog .btn:disabled { opacity: .65; cursor: wait; }
.demo-dialog__privacy { color: var(--mute); font-size: 12px; line-height: 1.6; margin-top: 14px; text-align: center; }
.demo-dialog__privacy a { text-decoration: underline; text-underline-offset: 3px; }
.demo-dialog__status { color: var(--red); font-size: 14px; margin-top: 16px; }
.demo-dialog__status:empty { display: none; }
.demo-dialog__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-dialog__success { padding: 36px 0 8px; }
.demo-dialog__success[hidden] { display: none; }
.demo-dialog__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel); margin-bottom: 24px; }
.demo-dialog__check svg { width: 28px; height: 28px; }
.demo-dialog__success p { color: var(--mute); margin-top: 16px; }
@keyframes demo-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
 .demo-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border: 0; border-radius: 24px 24px 0 0; }
 .demo-dialog::before { content: ''; display: block; height: 4px; width: 36px; margin: 10px auto 0; border-radius: 4px; background: var(--line-2); }
 .demo-dialog__body { padding: 24px 24px max(28px, env(safe-area-inset-bottom)); }
 .demo-dialog__close { top: 20px; right: 16px; }
 .demo-dialog__eyebrow { margin-bottom: 14px; }
 .demo-dialog__row { grid-template-columns: 1fr; gap: 18px; }
 .demo-dialog__intro { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .demo-dialog[open] { animation: none; } }
