/* The cyborg showcase: the demo's own styles, on Levada's tokens (levada.css). */
.cy-pane[hidden] { display: none; }
.cy-note, .cy-blurb { color: var(--muted); max-width: 70ch; margin: 0 0 12px; }
.cy-picks, .cy-suggest, .cy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.cy-chipbtn { min-height: 48px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.cy-chipbtn[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.cy-setup { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 8px; }
.cy-setup label { display: grid; gap: 4px; font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cy-input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; width: 100%; }
.cy-setup .cy-input { min-width: 240px; }
.cy-status { min-height: 1.4em; margin: 6px 0; color: var(--muted); font-size: .95rem; }
.cy-status.bad { color: #c4472f; font-weight: 600; }
.cy-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .cy-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); } }
.cy-thread { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 220px; max-height: 620px; overflow: auto; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.cy-in { text-align: right; }
.cy-in span { display: inline-block; max-width: 85%; text-align: left; background: var(--chip); border-radius: 16px 16px 4px 16px; padding: 8px 14px; white-space: pre-wrap; }
.cy-bot { margin-top: 8px; border-left: 5px solid var(--accent); background: var(--bg); border-radius: 4px 16px 16px 16px; padding: 10px 14px; max-width: 94%; }
.cy-bot.cy-none { border-left-color: #d39b3a; }
.cy-draft { white-space: pre-wrap; }
.cy-meta { margin-top: 6px; font: .75rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.cy-prob { margin-top: 6px; color: #c4472f; font-weight: 600; font-size: .92rem; }
.cy-req { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--chip); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.cy-how { margin-top: 8px; }
.cy-how summary, .cy-prompt summary { cursor: pointer; color: var(--accent); font-size: .9rem; font-weight: 600; }
.cy-how h4 { margin: 12px 0 4px; font: .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cy-bot pre, .cy-office, .cy-how pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 6px 0; font: .78rem/1.5 var(--mono); }
.cy-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.cy-chip { padding: 2px 10px; border-radius: 999px; background: var(--chip); font: .78rem var(--mono); }
.cy-send { display: flex; gap: 8px; margin: 10px 0; }
.cy-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); align-self: start; }
.cy-side h3 { margin: 10px 0 6px; font: .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cy-row { display: grid; gap: 4px; padding: 8px 10px; margin: 6px 0; border-radius: 12px; border-left: 5px solid var(--line); background: var(--bg); }
.cy-row.proposed { border-left-color: #d39b3a; } .cy-row.approved { border-left-color: var(--accent); }
.cy-row small { color: var(--muted); }
.cy-empty { color: var(--muted); font-size: .92rem; padding: 4px 0; }
.btn.btn-primary:disabled, .cy-send .btn:disabled, .cy-actions .btn:disabled { opacity: .5; cursor: default; }
.cy-actions .btn, .cy-send .btn, .cy-row .btn { min-height: 48px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.cy-actions .btn-primary, .cy-send .btn-primary, .cy-row .btn-primary, .cy-setup .btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.cy-setup .btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-weight: 600; cursor: pointer; }
.demo-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.stack { display: grid; gap: 14px; }
.build-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.build-list li { padding: 12px 16px; border-radius: 12px; background: var(--basalt-chip); color: var(--on-basalt); box-shadow: 0 0 0 1px color-mix(in oklch, var(--on-basalt), transparent 88%); }
.build-list li b { display: block; color: var(--sprout); margin-bottom: 2px; }
.build-list .next { border: 1px dashed color-mix(in oklch, var(--ochre), transparent 30%); box-shadow: none; background: transparent; }
.build-list .next b { color: var(--ochre); }
/* The business sheet and what was read from it (assets/business.js). */
.sh-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.sh-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .sh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sh-col h3 { margin: 0 0 8px; font: .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sh-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; font: .82rem/1.55 var(--mono); }
.sh-read { display: grid; gap: 10px; align-content: start; }
.sh-badge { display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--chip); font: .75rem var(--mono); letter-spacing: .08em; }
.sh-block { padding: 8px 12px; border-radius: 12px; background: var(--bg); border-left: 5px solid var(--accent); }
.sh-block b { display: block; font: .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sh-block.warn { border-left-color: #d39b3a; }
.sh-block ul { margin: 0; padding-left: 18px; }
.sh-block li { margin: 2px 0; }
.sh-block small { color: var(--muted); }

/* The page sets its own base: Levada's body rule has fonts only, and the colours came from the wazaa pages' style.css, which this page does not load. */
body.welcome { margin: 0; background: var(--bg); color: var(--text); }
.demo-card { color: var(--text); }
summary { min-height: 44px; display: flex; align-items: center; }

/* The hero: the copy, and a small real example beside it. */
.hero-wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; } }
.hero-teaser { display: none; }
@media (min-width: 980px) { .hero-teaser { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--basalt-chip); box-shadow: 0 0 0 1px color-mix(in oklch, var(--on-basalt), transparent 85%); } }
.hero-teaser pre { margin: 0; white-space: pre-wrap; font: .8rem/1.6 var(--mono); color: var(--on-basalt-muted); }
.hero-teaser .arrow-down { font: .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sprout); }
.hero-teaser .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-teaser .chips span { padding: 3px 10px; border-radius: 999px; background: color-mix(in oklch, var(--sprout), transparent 82%); color: var(--on-basalt); font: .78rem var(--mono); }
.hero-teaser small { font: .75rem var(--mono); letter-spacing: .06em; color: var(--on-basalt-muted); }

/* The sheet: the written side stays in view while the read side scrolls. */
@media (min-width: 900px) { .sh-col.left { position: sticky; top: 16px; align-self: start; } }

/* The pipeline on basalt: readable text, and the status as a chip. */
.on-basalt .steps li p { color: var(--on-basalt-muted); }
.on-basalt .steps li p b { color: var(--on-basalt); font-weight: 600; }
.steps .when { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; font: .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.steps .when.built { background: var(--sprout); color: var(--basalt-deep); }
.steps .when.partly { border: 1px solid var(--sprout); color: var(--sprout); }
.steps .when.next { border: 1px dashed var(--ochre); color: var(--ochre); }
@media (min-width: 920px) {
  #pipeline .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
  #pipeline .steps li { padding-bottom: 28px; }
  #pipeline .steps li::after { display: none; }
}

/* The closing: one clear next step, then the two sister pages. */
.closing .ctas { justify-content: center; margin: 22px 0 6px; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px auto 0; max-width: 720px; text-align: left; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: block; padding: 22px 24px; border-radius: var(--radius); text-decoration: none; color: var(--on-basalt); background: var(--basalt-chip); box-shadow: 0 0 0 1px color-mix(in oklch, var(--on-basalt), transparent 85%); transition: box-shadow 200ms var(--ease-out), scale 160ms var(--ease-out); }
.tile strong { display: block; margin-bottom: 4px; font: 500 1.05rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--sprout); }
.tile span { color: var(--on-basalt-muted); font-size: .95rem; }
@media (hover: hover) { .tile:hover { box-shadow: 0 0 0 2px var(--sprout); } }
@media (prefers-reduced-motion: no-preference) { .tile:active { scale: 0.98; } }

/* The header's button: one line, a 44 px target (Levada's nav padding stacked on the button's own made it a tall blob). */
.site-head nav a.btn { padding: 0 22px; min-height: 44px; white-space: nowrap; }
.cy-given { display: grid; gap: 8px; }
.cy-given-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 14px; font-size: .88rem; }
.cy-given-row strong { font-weight: 600; }
.cy-given-text { white-space: pre-line; overflow-wrap: anywhere; }
.cy-given-note { margin: 8px 0 0; font-size: .8rem; opacity: .8; }
@media (max-width: 560px) { .cy-given-row { grid-template-columns: minmax(0, 1fr); } }
