/* ---------- Get a demo (demo.html): the pitch left, the form in a white panel right, on the hero's gradient card ---------- */
.demo { max-width: 1440px; margin: 0 auto; padding: 16px; }
.demo__card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); align-items: start; gap: 64px; min-height: calc(100svh - 112px); padding: 72px 72px 64px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(60% 50% at 85% 0%, rgba(201,213,255,.45), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(230,235,254,.7), transparent 70%), linear-gradient(180deg, #f3f5fa, #fbfcfe 60%, #f5f7fb);
  box-shadow: inset 0 0 0 1px rgba(6,33,80,.06); }
/* a faint dotted grid under the pitch, fading out toward the form */
.demo__card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(20,36,107,.09) 1px, transparent 0) 0 0 / 24px 24px;
  -webkit-mask: radial-gradient(70% 70% at 15% 30%, #000 20%, transparent 75%); mask: radial-gradient(70% 70% at 15% 30%, #000 20%, transparent 75%); }

/* the pitch */
.demo__pitch { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.demo__title { margin: 24px 0 0; max-width: 560px; font-size: 48px; font-weight: 400; line-height: 56px; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.demo__accent, .demo__pillars b { background: linear-gradient(90deg, #3b6cf0, #14246b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo__lede { max-width: 500px; margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.demo__list { display: flex; flex-direction: column; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.demo__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; max-width: 480px; }
.demo__list i { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--navy); }
.demo__list i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo__list b { display: block; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--ink); }
.demo__list span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.demo__pillars { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(6,33,80,.1); font-size: 15px; line-height: 20px; color: #3a4a66; }
.demo__pillars b { margin-right: 6px; font-weight: 500; }

/* the form panel */
.demo__panel { position: relative; padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(6,33,80,.08), 0 40px 80px -40px rgba(20,36,107,.35); }
.demo__form { display: flex; flex-direction: column; gap: 16px; }
.demo__form[hidden] { display: none; }
.demo__form-title { margin: 0 0 4px; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--ink); }
.demo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; line-height: 16px; color: #3a4a66; }
.field em { font-style: normal; color: #d23b3b; }
.field small { margin-left: 4px; font-size: 12px; font-weight: 400; color: #8a94a6; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 0 14px; border: 0; border-radius: 12px; background: #f6f8fb; box-shadow: inset 0 0 0 1px rgba(6,33,80,.12); font: 400 15px/20px var(--sans); color: var(--ink); outline: none; transition: box-shadow .2s, background .2s; }
.field input, .field select { height: 48px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 92px; }
.field textarea::placeholder { color: #a3abba; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #f6f8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%233a4a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.field select:invalid { color: #8a94a6; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(6,33,80,.24); }
.field input:focus, .field select:focus, .field textarea:focus { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(59,108,240,.14); }
.field.is-bad input, .field.is-bad select { box-shadow: inset 0 0 0 1.5px #d23b3b; }
.field__err { font-size: 12px; line-height: 16px; color: #d23b3b; }
.demo__submit { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
.demo__submit .btn { height: 48px; padding-top: 0; padding-bottom: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.demo__submit .btn[disabled] { opacity: .7; cursor: progress; }
.demo__note { margin: 0; font-size: 13px; line-height: 18px; color: #8a94a6; text-align: center; }

/* sent */
.demo__done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0 8px; outline: none; animation: demo-rise .6s cubic-bezier(.16,1,.3,1) both; }
.demo__done[hidden] { display: none; }
@keyframes demo-rise { from { opacity: 0; transform: translateY(18px); } }
.demo__done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; background: radial-gradient(circle at 35% 30%, #8fb0ff, #3b6cf0 55%, #2552d8); box-shadow: inset 0 2px 4px rgba(255,255,255,.45), 0 8px 24px rgba(59,108,240,.45); }
.demo__done-mark img { width: 26px; height: auto; }
.demo__done-title { margin: 0; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--ink); }
.demo__done-body { margin: 0 0 12px; font-size: 15px; line-height: 22px; color: var(--muted); }
.demo__done-body b { font-weight: 500; color: var(--ink); }
.demo__done .btn { height: 44px; padding-top: 0; padding-bottom: 0; }

/* the footer, without the landing page's closing call to action above it */
.closing--demo { margin-top: 24px; padding-top: 24px; }

/* desktop: the card is one screen tall (below the nav), its two columns centred in it; on shorter screens the
   spacing, fields and type step down so the whole form stays in view (laptops ~760–900px tall, then 720px) */
@media (min-width: 1101px) {
  .demo__card { align-items: center; padding-top: 48px; padding-bottom: 48px; } /* min-height (one screen) is set above; it can still grow, e.g. with error messages */
}
@media (min-width: 1101px) and (max-height: 900px) {
  .demo__card { padding: 32px 64px; }
  .demo__title { margin-top: 20px; font-size: 44px; line-height: 52px; }
  .demo__list { margin-top: 28px; gap: 14px; }
  .demo__pillars { margin-top: 28px; padding-top: 18px; }
  .demo__panel { padding: 24px 28px; }
  .demo__form { gap: 12px; }
  .demo__form-title { margin-bottom: 0; }
  .field input, .field select { height: 44px; }
  .field textarea { height: 72px; min-height: 72px; resize: none; }
  .demo__submit { gap: 10px; margin-top: 4px; }
  .demo__submit .btn { height: 46px; }
}
@media (min-width: 1101px) and (max-height: 760px) {
  .demo__card { padding: 24px 56px; }
  .demo__title { margin-top: 16px; font-size: 40px; line-height: 48px; }
  .demo__lede { margin-top: 12px; font-size: 15px; line-height: 22px; }
  .demo__list { margin-top: 20px; gap: 12px; }
  .demo__list span { font-size: 13px; line-height: 18px; }
  .demo__pillars { margin-top: 20px; padding-top: 14px; }
  .demo__panel { padding: 20px 24px; }
  .demo__form { gap: 10px; }
  .demo__form-title { font-size: 18px; line-height: 24px; }
  .field { gap: 5px; }
  .field input, .field select { height: 40px; }
  .field textarea { height: 60px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .demo__submit .btn { height: 44px; }
}


@media (prefers-reduced-motion: reduce) {
  .demo__done { animation: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) {
  .demo__card { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 32px 40px; min-height: 0; }
  .demo__panel { max-width: 640px; }
  .demo__pillars { margin-top: 32px; }
}
@media (max-width: 720px) {
  .demo { padding: 8px; }
  .demo__card { padding: 28px 16px 16px; border-radius: 18px; gap: 32px; }
  .demo__title { margin-top: 20px; font-size: 34px; line-height: 42px; }
  .demo__lede { font-size: 15px; line-height: 22px; }
  .demo__list { margin-top: 28px; gap: 16px; }
  .demo__pillars { display: none; }
  .demo__panel { padding: 20px 16px; border-radius: 16px; }
  .demo__row { grid-template-columns: 1fr; gap: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* 16px stops iOS zooming into the field */
}
@media (max-width: 400px) {
  .demo__title { font-size: 30px; line-height: 38px; }
}
.demo__list a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(6,33,80,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.demo__list a:hover { text-decoration-color: currentColor; }
.demo__note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(6,33,80,.25); text-underline-offset: 3px; }
.demo__note a:hover { color: var(--navy); text-decoration-color: currentColor; }

/* forced-dark:start: generated from the rules above, only when the browser forces a dark theme (see the forced-dark script in each page head) */
html.forced-dark .demo__card { background: radial-gradient(60% 50% at 85% 0%, rgba(33,40,79,0.45), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(26,31,62,0.7), transparent 70%), linear-gradient(180deg, #131c2e, #0d1626 60%, #111b2c); box-shadow: inset 0 0 0 1px rgba(175,195,255,0.075); }
html.forced-dark .demo__card::before { background: radial-gradient(circle at 1px 1px, rgba(20,36,107,0.09) 1px, transparent 0) 0 0 / 24px 24px; }
html.forced-dark .demo__title { color: #e9eef6; }
html.forced-dark .demo__accent, html.forced-dark .demo__pillars b { background: none; color: #9db4ee; -webkit-text-fill-color: #9db4ee; }
html.forced-dark .demo__lede { color: #b3b8c0; }
html.forced-dark .demo__list i { background: #3b6cf0; }
html.forced-dark .demo__list i svg { fill: none; stroke: #ffffff; }
html.forced-dark .demo__list b { color: #e9eef6; }
html.forced-dark .demo__list span { color: #b3b8c0; }
html.forced-dark .demo__pillars { border-top: 1px solid rgba(175,195,255,0.125); color: #c3cfe2; }
html.forced-dark .demo__panel { background: #060e1d; box-shadow: 0 0 0 1px rgba(175,195,255,0.1), 0 40px 80px -40px rgba(0,0,0,0.64); }
html.forced-dark .demo__form-title { color: #e9eef6; }
html.forced-dark .field > span { color: #c3cfe2; }
html.forced-dark .field em { color: #fb8d85; }
html.forced-dark .field small { color: #929caf; }
html.forced-dark .field input, html.forced-dark .field select, html.forced-dark .field textarea { border: 0; background: #111a2b; box-shadow: inset 0 0 0 1px rgba(175,195,255,0.15); color: #e9eef6; outline: none; }
html.forced-dark .field textarea::placeholder { color: #a3abba; }
html.forced-dark .field select { background: #111a2b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%233a4a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
html.forced-dark .field select:invalid { color: #929caf; }
html.forced-dark .field input:hover, html.forced-dark .field select:hover, html.forced-dark .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(175,195,255,0.3); }
html.forced-dark .field input:focus, html.forced-dark .field select:focus, html.forced-dark .field textarea:focus { background-color: #060e1d; box-shadow: inset 0 0 0 1.5px #3e4d69, 0 0 0 4px rgba(59,108,240,0.14); }
html.forced-dark .field.is-bad input, html.forced-dark .field.is-bad select { box-shadow: inset 0 0 0 1.5px #d23b3b; }
html.forced-dark .field__err { color: #fb8d85; }
html.forced-dark .demo__submit .btn { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
html.forced-dark .demo__note { color: #929caf; }
html.forced-dark .demo__done { outline: none; }
html.forced-dark .demo__done-mark { background: radial-gradient(circle at 35% 30%, #8fb0ff, #3b6cf0 55%, #2552d8); box-shadow: inset 0 2px 4px rgba(255,255,255,0.158), 0 8px 24px rgba(59,108,240,.45); }
html.forced-dark .demo__done-title { color: #e9eef6; }
html.forced-dark .demo__done-body { color: #b3b8c0; }
html.forced-dark .demo__done-body b { color: #e9eef6; }
html.forced-dark .demo__list a { color: #e1edff; text-decoration: underline; text-decoration-color: rgba(225,237,255,0.3); }
html.forced-dark .demo__list a:hover { text-decoration-color: currentColor; }
html.forced-dark .demo__note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(225,237,255,0.25); }
html.forced-dark .demo__note a:hover { color: #e1edff; text-decoration-color: currentColor; }
/* forced-dark:end */
