/* Demo controls frame the real exported Hive interface. */
.demo-page { margin: 0; min-width: 0; }
.demo-page *, .demo-page *::before, .demo-page *::after { box-sizing: border-box; }
.demo-page [hidden] { display: none !important; }
.demo-header, .demo-banner, .demo-intro, .demo-story, .demo-status, .demo-footer, .demo-notice { padding-inline: var(--page-gutter, 24px); }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.demo-brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; text-decoration: none; color: var(--ink); }
.demo-brand > span:last-child { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.demo-mark { display: grid; place-items: center; width: 34px; height: 36px; background: #f4cc44; color: #211e12; font-size: 22px; border-radius: 9px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel); color: var(--ink); font: 600 14px/1.4 var(--font-sans, sans-serif); text-decoration: none; cursor: pointer; }
.demo-button:hover { border-color: var(--ink-muted); }
.demo-primary { background: #f4cc44; color: #211e12; border-color: #c7a636; }
.demo-primary:hover { background: #ffdc62; border-color: #997b1c; }
.demo-button:disabled { opacity: .6; cursor: default; }
.demo-text-button { min-height: 44px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; padding: 8px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; background: var(--bg-sunken); color: var(--ink-muted); font-size: 13px; }
.demo-dot { display: inline-block; width: 7px; height: 7px; background: #bc941d; border-radius: 50%; margin-right: 8px; }
.demo-intro { padding-block: 32px 20px; max-width: 820px; }
.demo-intro h1 { font-family: var(--font-serif, serif); font-weight: 500; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 12px; }
.demo-intro p { color: var(--ink-muted); line-height: 1.7; margin: 0 0 18px; }
.demo-story { margin: 8px var(--page-gutter, 24px) 16px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.demo-story h2 { font-size: 20px; margin: 0 0 8px; }
.demo-story p { margin: 0 0 16px; line-height: 1.6; }
.demo-story small { display: block; margin-top: 14px; color: var(--ink-muted); line-height: 1.5; }
.demo-status { color: var(--ink-muted); font-size: 13px; margin-block: 12px; min-height: 20px; }
#demo-content { min-width: 0; max-width: 100%; }
#demo-content pre { max-width: 100%; overflow-x: auto; }
#demo-content:focus { outline: none; }
.demo-footer { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 28px; color: var(--ink-muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 24px; }
.demo-footer a, .demo-privacy a { color: inherit; }
.demo-notice { line-height: 1.6; }
.demo-skip { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 20; background: var(--panel); color: var(--ink); padding: 12px; }
.demo-skip:focus { transform: none; }
.demo-page :focus-visible { outline: 3px solid var(--accent, #b3522f); outline-offset: 3px; }
#waitlist-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 16px; padding: 28px; background: var(--panel); color: var(--ink); box-shadow: 0 20px 80px #0004; }
#waitlist-dialog::backdrop { background: #16151088; }
.demo-dialog-heading { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
.demo-dialog-heading h2 { font-family: var(--font-serif, serif); font-size: 28px; font-weight: 500; line-height: 1.2; margin: 0; }
.demo-dialog-heading button { margin: -10px -8px 0 0; text-decoration: none; }
#waitlist-purpose { color: var(--ink-muted); line-height: 1.6; }
#waitlist-form label { display: block; font-weight: 600; margin-bottom: 8px; }
#waitlist-email { display: block; width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; background: var(--bg); color: var(--ink); font: 16px var(--font-sans, sans-serif); }
#waitlist-challenge { margin-top: 16px; max-width: 100%; }
#waitlist-status { line-height: 1.5; font-size: 14px; }
#waitlist-submit { width: 100%; }
.demo-privacy { font-size: 13px; color: var(--ink-muted); margin-bottom: 0; }
@media (max-width: 640px) {
  .demo-header { align-items: start; flex-direction: column; gap: 14px; }
  .demo-header .demo-actions { width: 100%; }
  .demo-header .demo-primary { flex: 1; }
  .demo-banner { align-items: center; gap: 4px; font-size: 11px; }
  .demo-banner .demo-text-button { white-space: nowrap; }
  .demo-intro { padding-top: 24px; }
  .demo-story { padding: 16px; }
  #waitlist-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .demo-page *, .demo-page *::before, .demo-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
#demo-content { padding-inline: var(--page-gutter, 24px); }
.demo-task-header { margin-block: 20px; }
.demo-task-header > a { color: var(--ink-muted); font-size: 14px; }
.demo-task-header h2 { margin-block: 16px; font-size: clamp(24px, 3vw, 32px); }
.demo-task-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.demo-task-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.demo-task-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.demo-task-tabs a:hover { background: var(--bg-sunken); }
.demo-info { max-width: 760px; margin: 48px auto; padding: 24px; line-height: 1.7; }
.demo-info h1 { font-family: var(--font-serif, serif); font-weight: 500; line-height: 1.2; }
/* This small example board should reveal every state without horizontal hunting. */
.demo-page .kanban-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.demo-page .kanban-column { min-width: 0; }
@media (max-width: 900px) {
  .demo-page .kanban-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .demo-page .kanban-columns { grid-template-columns: minmax(0, 1fr); }
}
