/* /demo (sitepages._demo_page): the page sent to investors and leads. One
 * idea per screen: what Liyagent does, three steps drawn as the product
 * draws them, what is live today, and the Book a demo form at #book.
 * Light only, on the site's tokens (welcome.css). */

.dm .hero { padding-bottom: 8px; }
.dm .hero-mark { display: none; }
.dm .sp-hero h1 { font-size: clamp(38px, 6vw, 80px); max-width: 19ch; }
.dm .sp-hero .lede { font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch; }
.dm .hero-actions { margin-top: 28px; }
.dm .hero-actions .btn { min-height: 46px; padding-inline: 22px; }

/* ---- the three steps ---- */
.dm-how { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px 0; }
.dm-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: dm;
}
.dm-step {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.dm-step + .dm-step::before {
  /* the arrow from one step to the next */
  content: ""; position: absolute; left: -16px; top: 42px; width: 12px; height: 12px;
  border-top: 1.6px solid var(--mute); border-right: 1.6px solid var(--mute); transform: rotate(45deg);
}
.dm-ico { width: 28px; height: 28px; color: var(--signal-text); margin-bottom: 6px; }
.dm-step h3 { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.dm-step > p:not(.dm-ui) { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* The product's own UI, small. */
.dm-ui { margin: 14px 0 0; font-size: 13px; }
.dm-bubble {
  align-self: flex-end; max-width: 92%; padding: 9px 13px; border-radius: 14px 14px 4px 14px;
  background: var(--ink); color: var(--paper);
}
.dm-call {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; background: var(--ground);
}
.dm-call code, .dm-ok code { font: 12px var(--mono); }
.dm-tag { font: 11px var(--mono); padding: 2px 6px; border-radius: 4px; color: var(--ok-text); background: #e3f1e8; }
.dm-wait { flex-basis: 100%; font: 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn-text); }
.dm-ok {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 8px; background: var(--ground);
  color: var(--ok-text); font-weight: 600;
}
.dm-ok code { color: var(--mute); font-weight: 400; }

/* ---- what is live today ---- */
.dm-proof {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
}
.dm-proof li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--paper);
}
.dm-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.dm-proof code { font: 12px var(--mono); color: var(--ink); }

/* ---- Book a demo ---- */
.dm-book {
  max-width: 760px; margin: clamp(56px, 8vw, 96px) auto 0; padding: clamp(24px, 4vw, 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 88px;
}
.dm-book:focus { outline: none; }
.dm-book:target, .dm-book.dm-lit { box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.25); }
.dm-book-head h2 {
  margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1; font-weight: 600;
  letter-spacing: -0.035em; text-transform: uppercase;
}
.dm-book-head .lede { margin-top: 10px; }
.dm-book .sp-prefill { margin-top: 12px; }
.dm-book .sp-book { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.dm-book .sp-book[hidden] { display: none; }
.dm-or { margin: 0; font-size: 14px; color: var(--mute); }
.dm-form { margin-top: 24px; max-width: none; }
.dm-form[hidden] { display: none; }
.dm-form input::placeholder { color: #8a8a83; }
.dm-form .btn { min-height: 46px; padding-inline: 24px; }
.dm-done { margin-top: 24px; padding: 20px 22px; border-radius: 12px; background: #e9f4ed; border: 1px solid #bfe0cb; }
.dm-done[hidden] { display: none; }
.dm-done:focus { outline: none; }
.dm-done h3 { margin: 0 0 4px; font-size: 20px; color: var(--ok-text); }
.dm-done h3::before { content: "✓ "; }
.dm-done p { margin: 4px 0 0; color: var(--ink-2); }
.dm-done a { color: var(--ink); font-weight: 600; }
.dm main { padding-bottom: clamp(56px, 8vw, 96px); }

@media (max-width: 860px) {
  .dm-steps { grid-template-columns: 1fr; gap: 14px; }
  .dm-step + .dm-step::before { left: 34px; top: -12px; transform: rotate(135deg); }
  .dm-step { padding: 18px; }
  .dm-ui { margin-top: 10px; }
}
@media (max-width: 640px) {
  .dm .hero { padding-top: 36px; }
  .dm .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .dm .hero-actions .btn { justify-content: center; }
  .dm-form { grid-template-columns: 1fr; }
  .dm-form .sp-actions .btn { width: 100%; justify-content: center; }
  .dm-book { margin-inline: 16px; }
}
