/* /demo - the page's own components. Tokens come from landing.css; nothing
   here hides content waiting for a script (the reason /demo once rendered
   blank was `[data-reveal]` waiting for a class nothing adds). */

.demo-page { max-width: 960px; }
.demo-page .section-heading { margin-bottom: 40px; }
.demo-page h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; margin: 0; font-weight: 620; }
.demo-page .section-heading > p:not(.eyebrow) { max-width: 660px; font-size: 16px; line-height: 1.7; color: var(--muted); margin: 22px 0 0; }

.demo-proof, .demo-close {
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  padding: 30px; margin: 0 0 30px; box-shadow: var(--shadow-soft);
}
.demo-proof h2, .demo-close h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; margin: 0; font-weight: 600; }
.demo-proof .proof-head > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 680px; margin: 14px 0 0; }
.demo-proof .eyebrow, .demo-close .eyebrow { margin-bottom: 12px; }

.proof-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.proof-examples[hidden] { display: none; }
.proof-example {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer;
  text-align: left; line-height: 1.35;
}
.proof-example:hover { background: var(--bg-2); }
.proof-example.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.proof-form { display: grid; gap: 8px; margin-top: 18px; }
.proof-form label { font-size: 13px; font-weight: 700; margin-top: 8px; }
.proof-form label span { font-weight: 500; color: var(--muted); }
.proof-form textarea {
  width: 100%; min-height: 84px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.55;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 12px 14px;
}
.proof-form textarea:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 10px; }
.proof-actions .button { cursor: pointer; }
.proof-actions .button[disabled] { opacity: .6; cursor: progress; }
.proof-note { margin: 0; font-size: 12px; color: var(--muted); max-width: 440px; line-height: 1.55; }

.proof-result { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.proof-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 16px; font-size: 18px; line-height: 1.3; }
.proof-verdict span {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.proof-verdict.is-held strong { color: var(--amber); }
.proof-verdict.is-clear strong { color: var(--green); }

.proof-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proof-steps > li {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--bg);
}
.proof-steps h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.3; }
.proof-steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.proof-steps small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.proof-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.proof-reasons { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.proof-reasons li + li { margin-top: 4px; }
.proof-commits { margin-top: 8px !important; }
.proof-boundary-note, .proof-error { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.proof-error { color: var(--amber); }

.close-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.close-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg); display: grid; align-content: start; gap: 8px; }
.close-grid b { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.close-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.close-grid .button { justify-self: start; margin-top: 6px; }

.demo-faq { margin-top: 10px; }
.demo-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.demo-smallprint { margin-top: 26px; font-size: 12px; color: var(--muted); max-width: 640px; }
.demo-smallprint a { color: var(--accent-text); }

@media (max-width: 760px) {
  .demo-proof, .demo-close { padding: 20px 16px; border-radius: 20px; }
  .close-grid { grid-template-columns: 1fr; }
  .proof-actions { align-items: stretch; flex-direction: column; }
  .proof-actions .button { width: 100%; }
  .proof-steps > li { padding: 14px; }
  .demo-cta { flex-direction: column; align-items: stretch; }
  .demo-cta .button { width: 100%; }
}
