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

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #1e1e1e;
  --border-strong: #2a2a2a;
  --text: #d4d4d4;
  --muted: #5a5a5a;
  --dim: #333;
  --accent: #e5a00d;
  --accent-hover: #f0b01a;
  --green: #4ade80;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */

nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.copy-btn {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  padding: 0.9rem 2.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s;
}
.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.copied { background: var(--green); color: #0a0a0a; }
.hero-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero-hint a { color: var(--muted); text-decoration: underline; }
.hero-hint a:hover { color: var(--text); }

/* ── Sections ── */

section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
section p { margin-bottom: 0.75rem; }
section p:last-child { margin-bottom: 0; }

/* ── Scorecard ── */

.scorecard {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 2;
  color: #c9d1d9;
  margin-bottom: 1rem;
  white-space: pre;
  overflow-x: auto;
}

/* ── Model grid ── */

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}
.model-cell {
  background: var(--surface);
  padding: 1.25rem;
}
.model-cell strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.model-cell span { font-size: 0.82rem; color: var(--muted); }
.model-note { font-size: 0.82rem; color: var(--muted); }

/* ── Steps list ── */

ol.steps { padding-left: 1.5rem; }
ol.steps li { margin-bottom: 0.5rem; }
ol.steps li:last-child { margin-bottom: 0; }
.steps-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── CTA links ── */

.cta-link {
  display: inline-block;
  margin-top: 0.875rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
}
.cta-link:hover { text-decoration: underline; }

/* ── Prompt block ── */

.prompt-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.875rem;
}
.inline-copy-btn {
  background: transparent;
  border: 1px solid var(--dim);
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.12s;
}
.inline-copy-btn:hover { border-color: var(--border-strong); color: var(--text); }
.inline-copy-btn.copied { border-color: var(--green); color: var(--green); }
.prompt-display {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 440px;
  overflow-y: auto;
}

/* ── Prompt preview (collapsible, below hero) ── */

.prompt-preview {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.prompt-preview > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.prompt-preview > summary::-webkit-details-marker { display: none; }
.prompt-preview-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.prompt-preview-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.15s;
  display: inline-block;
}
.prompt-preview[open] .prompt-preview-arrow {
  transform: rotate(180deg);
}
.prompt-preview > summary:hover .prompt-preview-label,
.prompt-preview > summary:hover .prompt-preview-arrow { color: var(--text); }
.prompt-open-actions {
  padding: 0.75rem 0 0;
  display: flex;
  justify-content: flex-end;
}
.prompt-preview .prompt-display {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 1.25rem 0;
  background: transparent;
}

/* ── Human Guide specific ── */

.guide-body h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.guide-body .intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.guide-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.guide-section h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.guide-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.check-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.guide-section p { margin-bottom: 0.75rem; font-size: 0.9rem; }
.guide-section ul, .guide-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.guide-section li { margin-bottom: 0.3rem; }
.guide-section pre, .guide-section code {
  font-family: var(--mono);
  font-size: 0.78rem;
}
.guide-section pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  color: #c9d1d9;
  line-height: 1.7;
}
.guide-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.guide-section th, .guide-section td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.guide-section th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
details { margin-top: 0.75rem; }
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  user-select: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
summary:hover { color: var(--text); }
details[open] summary { color: var(--text); }
.details-body {
  padding: 1rem 0 0.5rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-left: 0.25rem;
}

/* ── Feedback form ── */

.feedback-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.feedback-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 1rem;
  resize: vertical;
  min-height: 280px;
  outline: none;
  border-radius: 0;
}
.feedback-form textarea:focus { border-color: var(--dim); }
.submit-btn {
  margin-top: 1rem;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s;
}
.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fs-success, .fs-error { display: none; margin-top: 1rem; padding: 0.75rem 1rem; font-size: 0.88rem; }
.fs-success { color: #4ade80; border-left: 3px solid #4ade80; }
.fs-error   { color: #f87171; border-left: 3px solid #f87171; }

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 2rem;
}
footer a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  margin: 0 0.75rem;
}
footer a:hover { color: var(--text); }

/* ── Page header (non-hero pages) ── */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.page-header p {
  color: var(--muted);
  font-size: 0.875rem;
}
.pdf-btn {
  background: transparent;
  border: 1px solid var(--dim);
  color: var(--muted);
  padding: 0.4rem 0.875rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.pdf-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ── Print ── */

@media print {
  @page { margin: 1.5cm 2cm; }

  body { background: white; color: #111; font-size: 11pt; line-height: 1.6; }

  nav, footer, .pdf-btn { display: none !important; }

  .container { max-width: 100%; padding: 0; }

  .page-header {
    padding: 0 0 1rem;
    border-bottom: 0.5pt solid #ccc;
    margin-bottom: 0;
  }
  .page-header h1 { font-size: 18pt; color: #111; }
  .page-header p { color: #555; }

  .guide-section {
    padding: 1rem 0;
    border-top: 0.5pt solid #ddd;
    page-break-inside: avoid;
  }
  .guide-section h2 { color: #666; font-size: 7.5pt; }
  .guide-section h3 { color: #111; font-size: 11pt; }
  .check-line { color: #444; }
  .guide-section p, .guide-section li { font-size: 10pt; color: #222; }

  summary { display: none; }
  details { display: block; }
  .details-body {
    padding: 0.4rem 0 0.4rem 0.875rem;
    border-left: 1.5pt solid #ddd;
    margin-left: 0.25rem;
    margin-top: 0.25rem;
  }

  .guide-section pre {
    background: #f5f5f5;
    border: 0.5pt solid #ddd;
    color: #222;
    font-size: 8.5pt;
    white-space: pre-wrap;
    page-break-inside: avoid;
    padding: 0.75rem 1rem;
  }
  .guide-section code { font-size: 9pt; color: #333; }
  .guide-section table { border-collapse: collapse; width: 100%; }
  .guide-section th { background: #f0f0f0; color: #333; font-size: 8pt; }
  .guide-section th, .guide-section td { border: 0.5pt solid #ccc; padding: 0.35rem 0.6rem; }

  a { color: #111; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #888; }
}

@media (max-width: 600px) {
  .hero-tagline { font-size: 1.4rem; }
  .model-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}
