* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f8f9fa;
  color: #1a1a2e;
}
.mockup {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.mockup__header {
  text-align: center;
  margin-bottom: 24px;
}
.mockup__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.mockup__subtitle {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}
.mockup__section {
  margin-bottom: 20px;
}
.mockup__section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.mockup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  transition: border-color 0.15s ease;
}
.mockup__row:last-child { margin-bottom: 0; }
.mockup__row:hover { border-color: #ccc; }
.mockup__label { font-weight: 500; }
.mockup__value {
  color: #555;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.mockup__select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.mockup__select:hover { border-color: #999; }
.mockup__select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.mockup__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.mockup__badge--active {
  background: #dcfce7;
  color: #166534;
}
.mockup__badge--idle {
  background: #f3f4f6;
  color: #6b7280;
}
.mockup__badge--recording {
  background: #fee2e2;
  color: #991b1b;
  animation: pulse-badge 1.2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Recording flow ── */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  position: relative;
}
.flow-step:first-child { border-radius: 10px 10px 0 0; }
.flow-step:last-child { border-radius: 0 0 10px 10px; }
.flow-step + .flow-step { border-top: none; }
.flow-step__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.flow-step__number--done {
  background: #16a34a;
  color: #fff;
}
.flow-step__number--active {
  background: #ef4444;
  color: #fff;
  animation: pulse-badge 1.2s ease-in-out infinite;
}
.flow-step__content { flex: 1; }
.flow-step__title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.flow-step__desc {
  font-size: 0.72rem;
  color: #666;
  margin: 0;
}

.recording-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 20px;
  text-align: center;
}
.recording-indicator__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ef4444;
  margin-bottom: 14px;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.recording-indicator__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ef4444;
  margin: 0 0 6px;
}
.recording-indicator__timer {
  font-size: 2rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #1a1a2e;
  margin: 0;
}
.recording-indicator__hint {
  font-size: 0.72rem;
  color: #888;
  margin: 12px 0 0;
}

.result-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}
.result-card__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 8px;
}
.result-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #1a1a2e;
}
.result-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.result-card__action {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.result-card__action:hover {
  background: #f5f5f5;
  border-color: #bbb;
}
.result-card__action--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.result-card__action--primary:hover {
  background: #1d4ed8;
}

/* ── Future features ── */
.future-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.future-card:hover {
  border-color: #c4c4c4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.future-card:last-child { margin-bottom: 0; }
.future-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.future-card__desc {
  font-size: 0.75rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.future-card__tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ede9fe;
  color: #6d28d9;
}
.future-card__tag--future {
  background: #fef3c7;
  color: #92400e;
}

/* ── Desktop-width enhancements ── */
@media (min-width: 500px) {
  .mockup { padding: 32px 28px; }
  .future-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .future-cards-grid .future-card { margin-bottom: 0; }
}
