/* Original monochrome utility. System type, local assets, no decorative sections. */
:root {
  color-scheme: light;
  --paper: #f5f5f3;
  --surface: #fff;
  --ink: #191919;
  --muted: #656565;
  --line: #dcdcd9;
  --soft: #eeeeeb;
  --radius: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: #d7d7d2; color: var(--ink); }
p, h1, h2 { margin: 0; }
.page { width: min(820px, calc(100% - 64px)); margin: 0 auto; }
.intro { padding: 72px 0 36px; }
h1 { max-width: 12ch; font-size: clamp(44px, 7.5vw, 78px); line-height: 1.04; font-weight: 600; letter-spacing: -.06em; text-wrap: balance; }
.maker-window, .demo-window { background: var(--surface); border: 1px solid #cececb; border-radius: var(--radius); overflow: hidden; }
#question-form { padding: 28px; }
label { display: block; font-weight: 500; font-size: 15px; }
.question-field { position: relative; margin-top: 12px; }
textarea { display: block; width: 100%; min-width: 0; resize: vertical; border: 1px solid var(--line); border-radius: 7px; background: #fbfbfa; line-height: 1.55; font-size: 17px; padding: 16px 16px 38px; min-height: 176px; }
textarea::placeholder { color: #757570; }
textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; background: #fff; }
textarea[aria-invalid="true"] { border-color: var(--ink); }
.character-count { position: absolute; bottom: 12px; right: 16px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--muted); pointer-events: none; }
.character-count.over-limit { font-weight: 700; color: var(--ink); }
.field-error { font-size: 13px; font-weight: 600; margin-top: 12px; overflow-wrap: anywhere; }
.maker-actions, .copy-row, .handoff-actions { display: grid; align-items: center; gap: 10px; }
.maker-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; max-width: 300px; }
.button { min-width: 44px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; padding: 10px 17px; font-size: 14px; font-weight: 550; line-height: 1.4; text-decoration: none; text-align: center; transition: background 160ms, border-color 160ms; }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.primary:hover { background: #363636; }
.button.secondary { background: #fff; border-color: var(--line); }
.button.secondary:hover { background: #f3f3f1; border-color: #babab5; }
.button.quiet { background: transparent; color: var(--muted); padding-inline: 12px; }
.button.quiet:hover { color: var(--ink); background: var(--soft); }
.share-output { padding: 24px 28px; border-top: 1px solid var(--line); background: #f9f9f7; }
.share-label { font-size: 13px; margin-bottom: 10px; }
.copy-row { grid-template-columns: minmax(0, 1fr) auto; }
.copy-row input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.copy-status { font-size: 13px; margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
.copy-status:empty { display: none; }
.fine-print { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 590px; }
.demo-stage { height: 320px; position: relative; overflow: hidden; background: var(--surface); }
.sim-composer { position: absolute; bottom: 56px; left: 42px; right: 42px; display: flex; align-items: flex-end; gap: 12px; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf8; transition: border-color 180ms, box-shadow 180ms; }
.sim-input { flex: 1; min-width: 0; max-height: 115px; overflow: auto; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; align-self: stretch; }
#sim-placeholder { color: #656565; }
.sim-send { display: flex; align-items: center; justify-content: center; background: var(--ink); border-radius: 6px; color: white; width: 44px; height: 44px; flex: 0 0 44px; }
.sim-send svg { width: 22px; height: 22px; }
.typing-caret { display: none; width: 1px; height: 18px; background: var(--ink); vertical-align: -3px; margin-left: 2px; animation: caret 800ms step-end infinite; }
[data-phase="focused"] .typing-caret, [data-phase="typing"] .typing-caret { display: inline-block; }
[data-phase="focused"] .sim-composer, [data-phase="typing"] .sim-composer { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
[data-phase="focused"] #sim-placeholder, [data-phase="typing"] #sim-placeholder, [data-phase="sending"] #sim-placeholder, [data-phase="clicking"] #sim-placeholder { display: none; }
.demo-cursor { position: absolute; width: 24px; height: 31px; pointer-events: none; z-index: 2; top: 24%; left: 73%; transition: left 600ms var(--ease), top 600ms var(--ease), opacity 160ms, transform 120ms; filter: drop-shadow(0 1px 1px #00000025); }
.demo-cursor svg { width: 24px; height: 31px; display: block; }
[data-phase="clicking"] .demo-cursor { transform: scale(.86); }
[data-phase="clicking"] .sim-send { box-shadow: 0 0 0 5px #19191912; }
[data-phase="sent"] .demo-cursor, [data-phase="complete"] .demo-cursor { opacity: 0; }
.sent-scene { position: absolute; inset: 28px 42px; }
.question-receipt { width: fit-content; max-width: 100%; margin-left: auto; padding: 12px 16px; background: #f3f3f0; border-radius: 7px; }
#sent-question { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; max-height: 90px; overflow: auto; }
.punchline { text-align: center; margin-top: 44px; animation: appear 300ms var(--ease) both; }
.punchline h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.04em; font-weight: 550; text-wrap: balance; }
.progress-track { height: 2px; background: #e8e8e3; }
#playback-progress { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--ink); transition: transform 180ms linear; }
.viewer-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.handoff { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 22px; }
.handoff > p:first-child { font-size: 13px; color: var(--muted); }
.handoff-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; margin-top: 14px; }
.manual-copy { margin-top: 16px; }
.manual-copy label { font-size: 13px; margin-bottom: 10px; }
.manual-copy textarea { font-size: 16px; min-height: 100px; padding: 14px; }
footer { padding: 22px 0 32px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
.noscript { padding-top: 18px; font-size: 13px; }
.noscript a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 650px) {
  .page { width: calc(100% - 40px); }
  .intro { padding: 44px 0 28px; }
  #question-form, .share-output { padding: 22px; }
  .sim-composer { left: 22px; right: 22px; bottom: 46px; padding: 15px; }
  .sent-scene { inset: 24px 22px; }
  .demo-stage { height: 310px; }
  .punchline { margin-top: 36px; }
}
@media (max-width: 440px) {
  .page { width: calc(100% - 32px); }
  .intro { padding: 32px 0 24px; }
  h1 { font-size: clamp(44px, 12vw, 52px); }
  #question-form, .share-output { padding: 20px; }
  .maker-actions, .copy-row, .handoff-actions { grid-template-columns: 1fr; max-width: none; }
  .sim-composer { left: 16px; right: 16px; }
  .sent-scene { inset: 24px 16px; }
  #sent-question { max-height: 90px; }
  footer { margin-top: 24px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-cursor, .typing-caret { display: none; }
}
