*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --surface:  #f7f8fa;
  --border:   #e5e7eb;
  --text:     #1f2328;
  --muted:    #57606a;
  --accent:   #3b82d4;
  --verified: #166534;
  --verified-bg: #dcfce7;
  --pending:  #92400e;
  --pending-bg: #fef3c7;
  --human:    #1e3a5f;
  --human-bg: #dbeafe;
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 2rem 1rem 4rem;
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.page-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.site-header { border-bottom: 2px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.site-header h1 { font-size: 1.5rem; font-weight: 700; }
.site-header .meta { color: var(--muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* Scoreboard */
.scoreboard { margin-bottom: 1.5rem; }

.scoreboard-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 520px) {
  .scoreboard-tiles { grid-template-columns: 1fr; }
}

.scoreboard-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
}

.scoreboard-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.scoreboard-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

/* F-01 waveform section */
.f01-section {
  margin-bottom: 2rem;
}

.f01-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.f01-figure {
  margin: 0 0 0.75rem;
}

.f01-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.f01-figure figcaption {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Banner */
.banner {
  margin-bottom: 2rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9375rem;
}
.banner p { margin: 0; }
.banner p + p { margin-top: 0.35rem; color: var(--muted); font-size: 0.875rem; }
.banner a { color: var(--accent); }

/* Cards */
.cards { display: flex; flex-direction: column; gap: 1.5rem; }

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-header h2 { font-size: 1.05rem; font-weight: 700; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-verified { background: var(--verified-bg); color: var(--verified); }
.badge-pending  { background: var(--pending-bg);  color: var(--pending);  }
.badge-human    { background: var(--human-bg);    color: var(--human);    }

.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 1rem; }
.card dt { font-weight: 600; color: var(--muted); white-space: nowrap; }
.card dd { color: var(--text); }

.reason-note {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--human-bg);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--human);
}

/* Audio section */
.audio-section { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .audio-section { grid-template-columns: 1fr; } }

.audio-block h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; }

audio {
  width: 100%;
  height: 36px;
  accent-color: var(--accent);
}

.transcript {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.transcript p { margin: 0; line-height: 1.5; }

/* Visually hidden (accessible to screen readers) */
.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;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* code blocks wrap on small screens instead of widening the page */
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.note { font-size: 0.9rem; color: var(--muted); }
