:root {
  --bg: #040605;
  --surface: #080d0a;
  --surface-2: #0d1510;
  --glass: rgba(0, 255, 132, 0.05);
  --text: #f0fdf4;
  --muted: #7a9a87;
  --dim: #445a4e;
  --line: rgba(0, 255, 132, 0.28);
  --line-soft: rgba(240, 253, 244, 0.1);
  --green: #00ff84;
  --green-2: #97ffd0;
  --amber: #c8ff4d;
  --red: #ff5c5c;
}

/* Prevent author display rules from overriding the HTML hidden attribute */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 350;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(0, 255, 132, 0.14) 1px, transparent 0) 0 0 / 24px 24px;
  opacity: 0.6;
  z-index: 0;
}

a { color: inherit; }
button, textarea, input { font: inherit; }

.topbar, main { position: relative; z-index: 1; width: min(1200px, calc(100vw - 48px)); margin: 0 auto; }

/* topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.brand, nav, .recorder-actions, .upload-row { display: flex; align-items: center; }

.brand {
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.brand-mark {
  width: 32px; height: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px; padding: 6px;
  border: 1px solid var(--line);
}

.brand-mark span { background: var(--green); box-shadow: 0 0 12px rgba(0, 255, 132, 0.6); }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 255, 132, 0.45); }

nav { gap: 28px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 400; text-decoration: none; transition: color 0.15s; }
nav a:hover { color: var(--text); }

/* hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-copy h1 { margin: 0; font-size: 64px; font-weight: 300; line-height: 1.0; letter-spacing: -0.01em; }
.hero-copy p { margin-top: 20px; max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.75; }

.eyebrow, .small-label, .text-label {
  display: block;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* buttons */

.button, .ghost-button, .upload-button, .sample-buttons button {
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.button { padding: 13px 22px; font-size: 14px; font-weight: 500; }
.button.primary { color: #020804; background: var(--green); }
.button.secondary, .ghost-button, .sample-buttons button, .upload-button { color: var(--muted); background: transparent; }
.button:hover, .ghost-button:hover, .upload-button:hover, .sample-buttons button:hover { opacity: 0.75; }

/* hero console */

.hero-console, .panel, .steps article { border: 1px solid var(--line); background: var(--surface); }

.hero-console { display: grid; gap: 24px; padding: 28px; }
.console-top { display: flex; justify-content: space-between; color: var(--green-2); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }

.glyph-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  align-self: center; padding: 24px;
  border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.2);
}
.glyph-board span { aspect-ratio: 1; border: 1px solid rgba(0, 255, 132, 0.35); }
.glyph-board span:nth-child(1), .glyph-board span:nth-child(2), .glyph-board span:nth-child(5),
.glyph-board span:nth-child(8), .glyph-board span:nth-child(11), .glyph-board span:nth-child(13),
.glyph-board span:nth-child(14), .glyph-board span:nth-child(16), .glyph-board span:nth-child(20),
.glyph-board span:nth-child(21), .glyph-board span:nth-child(22), .glyph-board span:nth-child(25) {
  background: var(--green); box-shadow: 0 0 16px rgba(0, 255, 132, 0.5);
}

.signal-lines { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: end; height: 80px; }
.signal-lines span { min-height: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.signal-lines span:nth-child(1) { height: 24px; }
.signal-lines span:nth-child(2) { height: 56px; }
.signal-lines span:nth-child(3) { height: 36px; }
.signal-lines span:nth-child(4) { height: 70px; }
.signal-lines span:nth-child(5) { height: 30px; }
.signal-lines span:nth-child(6) { height: 76px; }
.signal-lines span:nth-child(7) { height: 46px; }
.signal-lines span:nth-child(8) { height: 28px; }
.signal-lines span:nth-child(9) { height: 60px; }
.hero-console p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* workflow section */

.workflow, .demo-shell { padding: 96px 0; }
.section-heading, .demo-header { margin-bottom: 40px; }
h2 { margin: 0; font-size: 40px; font-weight: 300; line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps article { padding: 32px; }
.steps span { color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.steps h3 { margin: 48px 0 12px; font-size: 26px; font-weight: 380; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* sample buttons */

.sample-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sample-buttons button { padding: 9px 14px; font-size: 12px; }
.sample-buttons button.active { color: #020804; background: var(--green); border-color: var(--green); }

/* app grid */

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.protect-panel { grid-column: 1 / -1; }

/* panels */

.panel { padding: 28px; display: flex; flex-direction: column; gap: 20px; }

.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.panel-title strong { font-size: 15px; font-weight: 480; color: var(--text); }

.step-badge {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.panel-desc { color: var(--dim); font-size: 13px; line-height: 1.55; margin: -8px 0 0; }

/* conversation mode toggle */

.conv-toggle {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.conv-toggle.active { color: #020804; background: var(--green); border-color: var(--green); }
.conv-toggle:hover:not(.active) { color: var(--green); border-color: var(--green); }

/* turn history */

.turn-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  min-height: 44px;
}

.turn-history-empty { color: var(--dim); font-size: 12px; margin: 0; }

.turn-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.turn-chip-safe { border-color: rgba(0, 255, 132, 0.3); }
.turn-chip-redact { border-color: rgba(200, 255, 77, 0.3); }
.turn-chip-review, .turn-chip-block { border-color: rgba(255, 92, 92, 0.3); }

.turn-chip-num { color: var(--dim); }
.turn-chip-decision { color: var(--green-2); }
.turn-chip-review .turn-chip-decision, .turn-chip-block .turn-chip-decision { color: var(--red); }
.turn-chip-redact .turn-chip-decision { color: var(--amber); }
.turn-chip-safe .turn-chip-decision { color: var(--green); }

/* add turn button */

.add-turn-btn {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-style 0.15s;
}
.add-turn-btn:hover { background: rgba(0, 255, 132, 0.05); border-style: solid; }

.shortcut-hint { color: var(--dim); font-size: 11px; font-family: "SFMono-Regular", Consolas, monospace; margin: -14px 0 0; text-align: center; }

/* tab system */

.panel-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.tab-btn {
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-bottom: none;
  background: transparent;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab-btn.active { color: var(--green); background: rgba(0, 255, 132, 0.06); border-color: var(--line); }
.tab-btn:hover:not(.active) { color: var(--text); }

/* protect actions */

.protect-actions { display: flex; gap: 8px; margin-left: auto; }

.action-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.action-btn:hover { color: var(--green); border-color: var(--green); }
.action-btn:disabled { cursor: wait; opacity: 0.45; }

/* recorder */

.recorder-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.recorder-info p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.recorder-card.recording { border-color: var(--green); }

.waveform { display: none; align-items: flex-end; gap: 3px; height: 28px; margin-top: 12px; }
.recorder-card.recording .waveform { display: flex; }
.waveform span { display: block; width: 3px; background: var(--green); border-radius: 1px; animation: wave 1.1s ease-in-out infinite; transform-origin: bottom; }
.waveform span:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.waveform span:nth-child(2)  { height: 18px; animation-delay: 0.1s; }
.waveform span:nth-child(3)  { height: 12px; animation-delay: 0.2s; }
.waveform span:nth-child(4)  { height: 24px; animation-delay: 0.05s; }
.waveform span:nth-child(5)  { height: 10px; animation-delay: 0.3s; }
.waveform span:nth-child(6)  { height: 20px; animation-delay: 0.15s; }
.waveform span:nth-child(7)  { height: 14px; animation-delay: 0.25s; }
.waveform span:nth-child(8)  { height: 22px; animation-delay: 0.08s; }
.waveform span:nth-child(9)  { height: 9px;  animation-delay: 0.35s; }
.waveform span:nth-child(10) { height: 16px; animation-delay: 0.18s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.45; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.recorder-actions { gap: 8px; padding-top: 2px; }

.icon-button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s;
}
.icon-button:hover:not(:disabled) { border-color: var(--green); }
.icon-button span { width: 13px; height: 13px; display: block; border-radius: 50%; background: var(--green); }
.icon-button.stop span { border-radius: 0; }
.icon-button:disabled { cursor: not-allowed; opacity: 0.3; }

/* upload row */

.upload-row { gap: 10px; }
.upload-button, .ghost-button { padding: 10px 14px; font-size: 13px; font-weight: 420; }
#fileInput { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.text-label { margin-bottom: -12px; }

textarea, input[type="password"] {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 16px;
  color: var(--text);
  background: var(--surface-2);
  font: 14px/1.6 "SFMono-Regular", Consolas, monospace;
  transition: border-color 0.15s;
}
textarea {
  min-height: 160px;
  resize: vertical;
}
input[type="password"] { min-height: 48px; }
textarea:focus, input[type="password"]:focus { outline: none; border-color: var(--line); }
button:focus-visible, .upload-button:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }

/* result panel */

.score-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-cell { padding: 18px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.score-cell strong { display: block; margin-top: 8px; color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 28px; font-weight: 500; }

/* Decision value colours */
.decision-val { transition: color 0.2s; }
.decision-val.safe { color: var(--green); }
.decision-val.redact { color: var(--green-2); }
.decision-val.review { color: var(--amber); }
.decision-val.block { color: var(--red); }

.summary-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.finding-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finding-stat { min-width: 0; padding: 12px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.finding-stat strong { display: block; margin-top: 6px; color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; font-weight: 480; }

.findings { display: grid; gap: 10px; max-height: 390px; overflow-y: auto; padding-right: 4px; scrollbar-color: var(--green) transparent; }

.finding {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--green);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finding.medium { border-left-color: var(--amber); }
.finding.high, .finding.critical { border-left-color: var(--red); }

.finding-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finding-header strong { font-size: 13px; font-weight: 520; }

.sev-badge {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid;
  flex-shrink: 0;
}
.sev-badge.low    { color: var(--green-2); border-color: rgba(0, 255, 132, 0.3); }
.sev-badge.medium { color: var(--amber); border-color: rgba(200, 255, 77, 0.3); }
.sev-badge.high   { color: var(--red); border-color: rgba(255, 92, 92, 0.3); }
.sev-badge.critical { color: #ff8888; border-color: rgba(255, 136, 136, 0.4); }

.finding-count { color: var(--green-2); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.finding p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Confidence bar */
.conf-track { width: 100%; height: 3px; background: var(--line-soft); }
.conf-fill { height: 100%; background: var(--green); transition: width 0.4s ease; }
.conf-fill.medium { background: var(--amber); }
.conf-fill.high, .conf-fill.critical { background: var(--red); }
.conf-label { color: var(--dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: 0.04em; }

/* inspect tab - highlight view */

.highlight-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.legend-item {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.legend-medium { background: rgba(200, 255, 77, 0.18); color: var(--amber); border: 1px solid rgba(200, 255, 77, 0.3); }
.legend-high   { background: rgba(255, 92, 92, 0.15); color: var(--red); border: 1px solid rgba(255, 92, 92, 0.3); }
.legend-critical { background: rgba(255, 136, 136, 0.12); color: #ff8888; border: 1px solid rgba(255, 136, 136, 0.25); }
.legend-hint { margin-left: auto; color: var(--dim); font-size: 11px; font-style: italic; }

.transcript-highlight {
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  font: 13px/1.9 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
}

.transcript-highlight .safe-text { color: var(--text); opacity: 0.75; }

/* PII highlight marks */
.pii-mark {
  border-radius: 2px;
  padding: 1px 3px;
  cursor: help;
  font-weight: 500;
  transition: opacity 0.15s;
}
.pii-mark:focus { outline: 1px solid var(--green); outline-offset: 2px; }
.pii-mark:hover { opacity: 0.85; }

.pii-mark.pii-low {
  background: rgba(0, 255, 132, 0.12);
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.pii-mark.pii-medium {
  background: rgba(200, 255, 77, 0.18);
  border-bottom: 2px solid var(--amber);
  color: var(--amber);
}
.pii-mark.pii-high {
  background: rgba(255, 92, 92, 0.15);
  border-bottom: 2px solid var(--red);
  color: #ffb0b0;
}
.pii-mark.pii-critical {
  background: rgba(255, 136, 136, 0.20);
  border-bottom: 2px solid #ff8888;
  color: #ff8888;
  font-weight: 600;
}

/* protect panel */

.protect-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.protect-col { display: flex; flex-direction: column; gap: 12px; }
.export-options { display: grid; gap: 12px; max-width: 420px; }

pre {
  margin: 0;
  padding: 20px;
  min-height: 120px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  white-space: pre-wrap;
  color: var(--text);
  font: 13px/1.65 "SFMono-Regular", Consolas, monospace;
}

.guidance { display: grid; gap: 10px; }
.guidance p { margin: 0; padding: 16px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.55; }

/* conversation timeline */

.conv-timeline {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}

.conv-timeline-header { margin-bottom: 24px; }
.conv-timeline-header h3 { font-size: 28px; font-weight: 320; margin: 6px 0 0; }

.cumulative-risk { margin-bottom: 24px; }

.cumulative-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cumulative-stat { display: flex; flex-direction: column; gap: 6px; }
.cumulative-stat strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 20px; font-weight: 500; color: var(--text); }
.cumulative-stat.wide { flex: 1; }
.cumulative-stat.wide strong { font-size: 13px; }

.turn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.turn-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.turn-card-safe { border-left: 3px solid var(--green); }
.turn-card-redact { border-left: 3px solid var(--amber); }
.turn-card-review { border-left: 3px solid var(--red); }
.turn-card-block { border-left: 3px solid #ff8888; }

.turn-card-header { display: flex; align-items: center; gap: 10px; }

.turn-badge {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  color: var(--green);
  padding: 2px 8px;
  border: 1px solid var(--line);
}

.turn-decision-chip {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.turn-decision-safe { color: var(--green); }
.turn-decision-redact { color: var(--green-2); }
.turn-decision-review { color: var(--amber); }
.turn-decision-block { color: var(--red); }

.turn-score-num { margin-left: auto; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }

.turn-transcript-preview { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.turn-findings-row { display: flex; flex-wrap: wrap; gap: 6px; }

.turn-tag {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid;
}
.turn-tag-medium { color: var(--amber); border-color: rgba(200, 255, 77, 0.3); }
.turn-tag-high { color: var(--red); border-color: rgba(255, 92, 92, 0.3); }
.turn-tag-critical { color: #ff8888; border-color: rgba(255, 136, 136, 0.3); }
.turn-tag-safe { color: var(--green); border-color: rgba(0, 255, 132, 0.3); }
.turn-tag-muted { color: var(--dim); border-color: var(--line-soft); }

/* toast notifications */

.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: "SFMono-Regular", Consolas, monospace;
  pointer-events: auto;
  animation: toast-in 0.18s ease, toast-out 0.2s ease 3s forwards;
}
.toast-error { border-color: rgba(255, 92, 92, 0.5); color: var(--red); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(6px); }
}

/* footer */

footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  padding: 40px 16px; color: var(--dim); font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
footer a { color: var(--green-2); text-decoration: none; }

/* progress page */

.progress-page { max-width: 1100px; }
.progress-hero { padding: 88px 0 52px; border-bottom: 1px solid var(--line-soft); }
.progress-hero h1 { max-width: 840px; margin: 0; font-size: clamp(38px, 6vw, 70px); font-weight: 290; line-height: 1; }
.progress-hero p:not(.eyebrow) { max-width: 700px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.75; }

.progress-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 72px; }
.progress-summary-grid article, .progress-item, .progress-test-card { border: 1px solid var(--line); background: var(--surface); }
.progress-summary-grid article { padding: 24px; }
.progress-summary-grid strong { display: block; margin: 10px 0; font-size: 24px; font-weight: 360; }
.progress-summary-grid p, .progress-item p, .progress-test-card p, .progress-test-card li { color: var(--muted); font-size: 14px; line-height: 1.65; }

.progress-section { padding: 32px 0 54px; }
.progress-timeline { display: grid; gap: 16px; }

.progress-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px; padding: 24px;
  border-color: var(--line-soft);
}
.progress-item.current { border-color: var(--green); }

.progress-marker, .status-chip {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}
.progress-marker { min-width: 40px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); }
.status-chip { display: inline-block; margin-bottom: 12px; padding: 5px 8px; border: 1px solid var(--line); text-transform: uppercase; }

.progress-item h3 { margin: 0 0 14px; font-size: 24px; font-weight: 360; }
.progress-item code { color: var(--green-2); }

.progress-test-card { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; padding: 24px; }
.progress-output { color: var(--text) !important; font-family: "SFMono-Regular", Consolas, monospace; }
.progress-test-card ul { margin: 0; padding-left: 18px; }

/* responsive */

@media (max-width: 700px) {
  .protect-body { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .steps, .progress-summary-grid, .progress-test-card { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .protect-panel { grid-column: auto; }
  .hero { padding: 56px 0 64px; }
  .hero-copy h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .workflow, .demo-shell { padding: 64px 0; }
  .turn-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav { gap: 18px; }
  .hero-copy h1 { font-size: 34px; }
  .upload-row { flex-wrap: wrap; }
  .score-row, .recorder-card, .finding-stats { grid-template-columns: 1fr; }
  .progress-item { grid-template-columns: 1fr; }
  .panel-title { gap: 10px; }
  .panel-tabs { margin-left: 0; }
  .protect-actions { margin-left: 0; }
  .conv-toggle { margin-left: 0; }
}
