/* CineQC styles, part 3 of 5: guide and methodology pages, Model Arena. */
/* ── Guide page (how to use) ── */
.qcg { max-width: 1040px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem) 5rem; position: relative; z-index: 1; }

.qcg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.qcg-hero-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.qcg-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* coral scan-line sweeping the hero art */
.qcg-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  mix-blend-mode: screen;
  animation: qcg-scan 4.2s cubic-bezier(.5,0,.5,1) infinite;
  pointer-events: none;
}
@keyframes qcg-scan { 0%,100% { transform: translateY(-40%); opacity: 0; } 45% { opacity: 1; } 50% { transform: translateY(210%); opacity: 1; } 55%,100% { opacity: 0; } }

.qcg-band { position: relative; margin: 0 0 1.75rem; border: 1px solid var(--glass-border); border-radius: 0.75rem; overflow: hidden; aspect-ratio: 24 / 7; }
.qcg-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qcg-band--top img { object-position: top; }

/* ── Model Arena (v4.0) ─────────────────────────────────────────────── */
.arena-empty {
  margin: 2.5rem 0;
  padding: 2rem;
  border: 1px dashed var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-secondary);
}
.arena-empty h2 { margin: 0 0 0.5rem; color: var(--text-primary); }
.arena-empty a { color: var(--qc-orange); }
.arena-empty code { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent); }
.arena-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.arena-tile {
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
}
.arena-tile-n { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.arena-tile-k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.arena-sec { margin: 2.5rem 0; }
.arena-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.arena-sec-head h2 { margin: 0.2rem 0 0; }
.arena-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.arena-danger { color: #ff5d5d; border-color: rgba(255, 93, 93, 0.35); }
.arena-note { font-size: 0.8rem; color: var(--text-muted); margin: 0.75rem 0 0; }
.arena-note a { color: var(--accent); }
.arena-model { cursor: pointer; }
.arena-model:hover { color: var(--accent); }
.arena-rename {
  font: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--accent);
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
  width: 9em;
}
.arena-spark { display: block; }
.arena-del {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.1rem 0.45rem;
}
.arena-del:hover { color: #ff5d5d; border-color: rgba(255, 93, 93, 0.5); }
.agree-inputs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.agree-inputs input {
  flex: 1 1 260px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
}
.agree-inputs input:focus { outline: none; border-color: var(--accent); }
#agree-result { margin-top: 1rem; }
#agree-result code { font-family: var(--font-mono); color: var(--accent); }

/* scroll-reveal (progressive enhancement; content visible without .qcg-motion) */
.qcg-motion .qcg-reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.qcg-motion .qcg-reveal.in { opacity: 1; transform: none; }
.qcg-motion .qcg-stagger > * { opacity: 0; transform: translateY(1.4rem); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.qcg-motion .qcg-stagger.in > * { opacity: 1; transform: none; }
.qcg-motion .qcg-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.qcg-motion .qcg-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.qcg-motion .qcg-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.qcg-motion .qcg-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.qcg-motion .qcg-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.qcg-motion .qcg-stagger.in > *:nth-child(7) { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .qcg-scanline { animation: none; display: none; }
}

@media (max-width: 760px) {
  .qcg-hero { grid-template-columns: minmax(0, 1fr); }
  .qcg-band { aspect-ratio: 16 / 8; }
}

.qcg-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.qcg-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0;
}
.qcg-hero h1 em { color: var(--qc-orange); font-style: normal; }

.qcg-lede { color: var(--text-secondary); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6; max-width: 60ch; }
/* Inline links in guide / methodology copy: accent, not browser-default blue. */
.qcg-lede a, .qcg-metric a, .qcg-export a, .qcg-step a, .qcg-note a { color: var(--qc-orange); text-underline-offset: 2px; }
.qcg-hero .qcg-lede { margin: 1.1rem 0 1.75rem; }

.qcg-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.qcg-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--glass-border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qcg-privacy {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

.qcg-sec { margin-top: clamp(3rem, 7vw, 5rem); }
.qcg-sec-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  margin: 0 0 0.6rem;
}
.qcg-sec-head .qcg-lede { margin: 0 0 1.75rem; }

.qcg-flow, .qcg-metrics, .qcg-exports {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.qcg-step, .qcg-metric, .qcg-export, .qcg-verdict-card {
  padding: 1.3rem 1.4rem;
  background: var(--noir-onyx);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
}
.qcg-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.qcg-step h3, .qcg-metric h3, .qcg-export h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.4rem;
}
.qcg-step p, .qcg-metric p, .qcg-export p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }

.qcg-note {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.qcg-rubric { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.qcg-rubric ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.qcg-rubric li { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; padding-left: 1rem; position: relative; }
.qcg-rubric li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; background: var(--accent); border-radius: 1px; }
.qcg-rubric li b { color: var(--text-primary); font-weight: 700; }
.qcg-vlabel { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.qcg-verdict-card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.qcg-verdict-card b { color: var(--text-primary); }

.qcg-close { margin-top: clamp(3.5rem, 8vw, 6rem); text-align: center; }
.qcg-close h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 0.75rem; }
.qcg-close .qcg-lede { margin: 0 auto 1.75rem; }

@media (max-width: 640px) {
  .qcg-rubric { grid-template-columns: minmax(0, 1fr); }
}

