/* ALID demo page: layout around the real intake widget and the real console. The widget and console
   keep their own styles (shadow DOM / iframe); this file only frames them. */
/* step headers = the first instructions on the page (13 Nov 21:25; r7 21:56: plain accent 'Step n' kicker, no pill/dot), large Figtree heading, readable lede */
.demo-sec { padding-top: 64px; }
.demo-sec .demo-head { display: block; margin: 0 0 28px; max-width: 46rem; }
.demo-sec .demo-head .step-n { display: block; margin: 0 0 6px; padding: 0; background: none; border: 0; border-radius: 0; color: #C44B32; font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; line-height: 1.3; }
.demo-sec .demo-head h2 { display: block; margin: 0; font-size: clamp(1.9rem, 2.4vw + .9rem, 2.6rem); line-height: 1.1; color: var(--ink); }
.demo-sec .demo-head p { display: block; margin: 12px 0 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
@media (max-width: 640px) {
  .demo-sec { padding-top: 44px; }
  .demo-sec .demo-head { margin-bottom: 22px; }
  .demo-sec .demo-head p { font-size: 1.05rem; }
}

.demo-visitor { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-presets { display: grid; gap: 10px; margin: 0 0 16px; }
.demo-preset { font: inherit; text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.demo-preset strong { font-size: var(--fs-2); }
.demo-preset span { font-size: var(--fs-1); color: var(--muted); }
.demo-preset:hover { border-color: var(--accent); }
.demo-preset[aria-pressed=true] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #FFFBFA; }
.demo-preset.done::after { content: "Sent"; justify-self: start; margin-top: 4px; font-size: .75rem; font-weight: 700; color: var(--ok, #0F7B4F); letter-spacing: .02em; }
.demo-hint { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r); padding: 14px 16px; font-size: var(--fs-1); color: var(--ink-2); margin: 0 0 12px; min-height: 3.2em; }
.demo-hint strong { color: var(--ink); }
.demo-hint dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.demo-hint dt { color: var(--muted); }
.demo-hint dd { margin: 0; overflow-wrap: anywhere; }
.demo-hint .btn { margin-top: 10px; }
.demo-reset { font: inherit; font-size: var(--fs-1); background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.demo-reset:hover { color: var(--accent); }

.demo-frame { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; min-width: 0; box-shadow: 0 1px 2px rgba(11, 53, 88, .04), 0 10px 30px rgba(11, 53, 88, .06); }
.demo-chrome { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); min-width: 0; }
.demo-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D8D8DD; flex: none; }
.demo-chrome .url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 3px 12px; }
.demo-chrome .tag { flex: none; font-weight: 700; color: var(--accent); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.demo-chrome .acts { margin-left: auto; display: flex; gap: 8px; flex: none; }
.demo-chrome button { font: inherit; font-size: .8rem; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 3px 12px; cursor: pointer; color: var(--ink-2); }
.demo-chrome button:hover { border-color: var(--accent); color: var(--accent); }
.demo-widget { padding: 20px; background: #fff; min-height: 420px; }
.demo-widget #alid-demo { min-width: 0; }

.demo-note { margin: 0 0 12px; font-size: var(--fs-1); color: var(--ink-2); }
.demo-console iframe { display: block; width: 100%; height: 780px; border: 0; background: #F4F1EC; }
.demo-console.flash { animation: demo-flash 1.6s ease-out 1; }
@keyframes demo-flash { 0% { box-shadow: 0 0 0 4px rgba(196, 75, 50, .45); } 100% { box-shadow: 0 0 0 4px rgba(196, 75, 50, 0); } }
.demo-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; width: max-content; max-width: min(92vw, 460px); background: var(--ink); color: #fff; border-radius: 40px; padding: 11px 18px; font-size: var(--fs-1); font-weight: 600; transition: opacity .25s, transform .25s; display: flex; gap: 12px; align-items: center; }
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.demo-toast button { font: inherit; font-size: var(--fs-1); font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 40px; padding: 5px 14px; cursor: pointer; white-space: nowrap; }
.demo-real { margin-top: 8px; }
.demo-real .card h3 { font-size: var(--fs-2); }
@media (max-width: 900px) {
  .demo-visitor { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .demo-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .demo-toast { left: 12px; right: 12px; width: auto; max-width: none; transform: translateY(20px); border-radius: 16px; justify-content: space-between; bottom: 72px; }
  .demo-toast.on { transform: none; }
  .demo-presets { grid-template-columns: minmax(0, 1fr); }
  .demo-widget { padding: 12px; }
  .demo-console iframe { height: 700px; }
  .demo-chrome .url { display: none; }
  .demo-chrome .acts { margin-left: 0; }
  .demo-chrome .tag { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .demo-console.flash { animation: none; } .demo-toast { transition: none; } }
