/* Demos shared by the landing and the product pages: the board built from the real board.css classes
   and the task builder whose preview lights up the layers read so far (static/js/cards/site-demo.js). */

/* Demo board: real board.css classes, denser, without reactions to the mouse. */
.landing-demo {
  position: relative; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--bg);
  font-family: var(--sans); pointer-events: none; user-select: none;
}
.landing-demo .top { height: 64px; padding: 0 26px; }
.landing-demo .board { min-height: 360px; padding: 28px 26px 22px; }
.landing-demo .col-body { min-height: 0; overflow: visible; }
.landing-demo .col:not(.col--done) .tick { display: none; }
.landing-demo .card { transition: background .35s ease; }
.landing-demo .card--hot { background: var(--field); }
.landing-toast {
  position: absolute; left: 50%; bottom: 24px; padding: 11px 16px;
  background: var(--solid); color: var(--solid-fg); border-radius: var(--radius);
  font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .22s ease, transform .22s ease;
}
.landing-toast--on { opacity: 1; transform: translate(-50%, 0); }
/* Task builder: steps on the left, the preview on the right lights up the layers read so far. */
.landing-builder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); margin-top: clamp(40px, 5vw, 64px); }
.landing-steps { display: flex; flex-direction: column; }
.landing-step { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 56vh; padding-block: 40px; opacity: .36; transition: opacity .5s ease; }
.landing-step:first-child { justify-content: flex-start; min-height: 40vh; padding-top: 8px; }
.landing-step--current { opacity: 1; }
.landing-preview {
  position: sticky; top: 140px; align-self: start;
  padding: clamp(24px, 3vw, 40px); border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--bg);
}
.landing-preview-head { margin-bottom: 18px; }
.landing-preview-head .tabs { margin-left: -12px; }
.landing-layer {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 14px 0;
  border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.7; color: var(--tick); transition: color .45s ease;
}
.landing-layer:last-of-type { border-bottom: 1px solid var(--rule); }
.landing-layer .site-label { padding-top: 6px; color: var(--tick); transition: color .45s ease; }
.landing-layer p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.landing-layer--read { color: var(--fg-prompt); }
.landing-layer--read .site-label { color: var(--fg-strong); }
.landing-preview-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.landing-preview-actions .btn { height: 44px; }

@media (max-width: 992px) {
  .landing-builder { grid-template-columns: 1fr; }
  .landing-preview { display: none; }
  .landing-step, .landing-step:first-child { min-height: 0; padding-block: 24px; opacity: 1; }
}

/* On a phone the demo shows every column stacked instead of the app's one column behind tabs. */
@media (max-width: 768px) {
  .landing-demo .top { height: 56px; padding: 0 16px; }
  .landing-demo .tabs { display: none; }
  .landing-demo .board { display: grid; grid-template-columns: 1fr; gap: 26px; min-height: 0; padding: 18px 16px 10px; overflow: visible; }
  .landing-demo .col, .landing-demo .col-head { display: flex; }
  .landing-demo .col--done .col-head h2 { display: block; }
}
