/* The employee's screens. A different surface from the operator app: warm
   ground, one accent, large type, one thing to do per screen. The person
   reading this may be on a cheap phone in a van and worried about their job. */
.respondent {
  --paper: #FAF6EE;
  --ink: #1C1A17;
  --ink-soft: #5C554A;
  --rule: #E7DFD1;
  --pen: #27447F;
  --pen-soft: #E8ECF5;
  --recording: #A8321F;

  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.respondent .sheet {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.25rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.respondent h1 {
  font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.017em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.respondent p {
  max-width: 30rem;
  margin: 0 0 1rem;
  font-size: 1.0625rem;
}

.respondent a { color: var(--pen); text-underline-offset: 3px; }
.respondent a:focus-visible,
.respondent button:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
}

/* Who is asking. Quiet, but it should be obvious this is about their employer
   and not a stranger. */
.masthead {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0 0 1.75rem;
  margin: 0;
}

/* Progress as marks rather than a bar. A bar makes it a form. */
.dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 1.75rem;
}
.dots .dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--pen);
}
.dots .dot.done { background: var(--pen); }
.dots .dot.here { box-shadow: 0 0 0 3px var(--pen-soft); }
.dots__count {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.guidance {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.spacer { flex: 1 1 auto; min-height: 0; }

/* The one loud thing on the page. */
.respondent .btn,
.big-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.75rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--pen);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.big-button:hover { filter: brightness(1.1); }
.big-button--stop { background: var(--recording); }
.big-button--quiet {
  background: transparent;
  color: var(--pen);
  border: 2px solid var(--rule);
}

.record { margin: 0; }
.record__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0;
  min-height: 1.5rem;
}
.record__level {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: var(--rule);
  overflow: hidden;
}
.record__level span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--recording);
  transition: width 70ms linear;
}
.record__status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.record__or {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
.record__or form { display: flex; justify-content: center; }
.record__message {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

/* Typing, for anyone who would rather, or cannot talk where they are. */
.respondent .field { margin: 0 0 1rem; }
.respondent .field label {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.respondent textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  resize: vertical;
}
.respondent textarea:focus {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
  border-color: var(--pen);
}

/* Reassurance, next to the thing it reassures about. */
.aside {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--pen-soft);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.aside p { margin: 0 0 0.5rem; font-size: inherit; }
.aside p:last-child { margin: 0; }

.promises { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.promises li {
  position: relative;
  padding: 0 0 0.7rem 1.6rem;
  max-width: 30rem;
}
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--pen);
  border-bottom: 2px solid var(--pen);
  transform: rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .record__level span { transition: none; }
}

/* A link that happens to be a button, so it can drive the controller without
   a form submission. */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--pen);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
