/* Waitlist form, the in-browser voice pacing demo and the feature tour. Builds on style.css tokens. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Waitlist. */
.waitlist {
  display: flex; flex-wrap: wrap; gap: 8px; max-width: 580px;
}
.waitlist input, .waitlist select {
  height: 46px; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--sheet);
  color: var(--ink); font: 16px var(--sans); padding: 0 14px;
}
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; }
.waitlist select { flex: 0 0 auto; padding-right: 10px; }
.waitlist input::placeholder { color: var(--pencil); }
.waitlist input:focus-visible, .waitlist select:focus-visible, .btn:focus-visible, .tabs button:focus-visible, .try-editor textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.waitlist .btn { height: 46px; }
.waitlist .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { flex-basis: 100%; margin: 4px 0 0; min-height: 1.5em; font-size: 15px; color: var(--graphite); }
.form-note.ok { color: var(--ink); }
.form-note.err { color: #b3261e; }
.waitlist.done input, .waitlist.done select, .waitlist.done .btn { display: none; }
.waitlist.done .form-note { font-size: 17px; }
.closing .waitlist { margin-top: 8px; }

/* Voice pacing demo: the same notch as the hero, but scrolled by script instead of a CSS loop. */
.stage.try { margin-top: 0; }
.stage.try .screen { height: 300px; }
.notch.live .text { animation: none; will-change: transform; }
.notch.live .glow { animation: none; opacity: 0.15; transition: opacity 0.12s linear; }
.notch.live .text p { margin: 0 0 0.6em; }
.try-status {
  position: absolute; left: 50%; top: 172px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 6px;
  font-size: 14px; color: var(--ink); border: 1px solid var(--rule-strong); background: var(--sheet); white-space: nowrap;
}
.try-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pencil); }
.try-status.listening .dot { background: #2f9e5b; }
.try-status.waiting .dot { background: #c99a2e; }
.try-meter { position: absolute; left: 50%; top: 222px; transform: translateX(-50%); width: min(280px, 70%); height: 6px; border-radius: 3px; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; }
.try-meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 3px; }
.try-meter b { position: absolute; top: -2px; bottom: -2px; width: 2px; left: 0; background: var(--blue); }
.try-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.try-controls .btn { user-select: none; -webkit-user-select: none; touch-action: none; }
.try-controls #try-hold.active { background: var(--deep); border-color: var(--ink); }
.try-editor { max-width: 640px; margin: 20px 0 0; display: grid; gap: 8px; }
.try-editor[hidden] { display: none; }
.try-editor label { font-size: 15px; color: var(--graphite); }
.try-editor textarea {
  width: 100%; resize: vertical; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--sheet);
  color: var(--ink); font: 16px/1.6 var(--sans); padding: 12px 14px;
}
.try-editor p { margin: 0; font-size: 14px; color: var(--graphite); }

/* Feature tour: one sheet, tabs underlined in ink. */
.tour { background: var(--sheet); border: 1px solid var(--rule); }
.tabs { display: flex; gap: 0; padding: 0 12px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs button {
  flex: 0 0 auto; height: 52px; padding: 0 14px; border: 0; cursor: pointer;
  background: transparent; color: var(--graphite); font: 500 16px var(--sans);
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.panel { padding: 8px 28px 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.feature-list li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.feature-list b { font-weight: 600; font-size: 16px; }
.feature-list span { color: var(--graphite); font-size: 16px; line-height: 1.55; }
.shortcuts { margin-top: 28px; }
.shortcuts h3 { font-size: 16px; margin: 0 0 16px; }
.shortcuts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.shortcuts dl div { display: grid; gap: 8px; }
.shortcuts dt { display: flex; gap: 6px; flex-wrap: wrap; }
.shortcuts dd { margin: 0; color: var(--graphite); font-size: 15px; }

@media (max-width: 640px) {
  .waitlist select { flex: 1 1 auto; }
  .waitlist .btn { flex: 1 1 100%; justify-content: center; }
  .stage.try .screen { height: 280px; }
  .feature-list { grid-template-columns: 1fr; }
  .panel { padding: 4px 18px 20px; }
  .tabs button { padding: 0 10px; }
}
