/* Paleta: cinza / azul / verde — app mobile, futurismo leve */
:root {
  --bg0: #0f1419;
  --bg1: #1a222d;
  --gray: #8b98a8;
  --blue: #3d8bfd;
  --blue-dim: #2a5a9e;
  --green: #3dd68c;
  --green-dim: #1f7a4d;
  --text: #e8eef5;
  --danger: #e85d5d;
  --font: "Segoe UI", system-ui, sans-serif;
}


* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a2a3d 0%, transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1));
}

.app {
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.banner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(61, 139, 253, 0.12);
  border: 1px solid rgba(61, 139, 253, 0.35);
  font-size: 0.9rem;
  color: var(--gray);
}

.banner p {
  margin: 0;
}

.banner strong {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.banner.hidden {
  display: none;
}

.btn-continue {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  background: var(--green-dim);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.btn-continue:hover {
  background: var(--green);
  color: var(--bg0);
}

.record {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px solid var(--blue-dim);
  background: radial-gradient(circle at 40% 35%, #243044, #121820);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.record:hover {
  transform: scale(1.03);
  border-color: var(--blue);
}

.record[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(61, 214, 140, 0.12);
}

.record-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(61, 139, 253, 0.25);
  pointer-events: none;
}

.record[aria-pressed="true"] .record-ring {
  border-color: rgba(61, 214, 140, 0.45);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.65; }
}

.record-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--gray);
  min-height: 1.2em;
}

.transcript {
  width: 100%;
  flex: 1;
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(15, 20, 25, 0.55);
  border: 1px solid rgba(139, 152, 168, 0.18);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 8rem;
  max-height: 45dvh;
  overflow-y: auto;
}

.transcript:empty::before {
  content: "a transcrição aparece aqui";
  color: var(--gray);
  opacity: 0.7;
}
