/* ============================================================
   Design Partner Pilot page — layout and component styles.
   Extends theme.css tokens; no overrides of core variables.
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.pilot-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ─────────────────────────────────────────────────── */
.pilot-hero { padding: 100px 0 56px; text-align: center; }
.pilot-hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-inline);
  padding: 4px 12px;
  margin-bottom: 20px;
}
.pilot-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #E6EDF3;
  margin-bottom: 16px;
  line-height: 1.15;
}
.pilot-hero h1 em { font-style: normal; color: var(--accent); }
.pilot-hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.pilot-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-input);
  background: var(--accent);
  color: #0A0E17;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.pilot-cta-btn:hover { opacity: 0.87; }
.pilot-cta-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Hero CTA row — flex so buttons align on same baseline */
.pilot-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Sub-link below hero buttons */
.pilot-hero-sub-link { margin-top: 0; text-align: center; }
.pilot-pdf-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.pilot-pdf-link:hover { color: var(--fg); }

/* ── Section layout ───────────────────────────────────────── */
.pilot-section { padding: 56px 0; border-top: 1px solid var(--border); }
.pilot-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.pilot-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #E6EDF3;
  margin-bottom: 24px;
}
.pilot-section p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── Problem list ─────────────────────────────────────────── */
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}
.problem-icon { flex-shrink: 0; font-size: 18px; margin-top: 1px; }

/* ── Day 1 scope grid ─────────────────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.scope-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--fg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.15s;
}
.scope-item:hover { border-color: var(--accent); }
.scope-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 20px;
}

/* ── Trust surface grid ───────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.trust-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #E6EDF3;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-card h3 .trust-icon { font-size: 16px; }
.trust-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin: 0; }
.tlp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.tlp-green { background: #1a3a22; color: #3fb950; border: 1px solid #238636; }
.tlp-amber { background: #3a2a00; color: #e3b341; border: 1px solid #9e6a03; }
.tlp-red   { background: #3a0000; color: #f85149; border: 1px solid #b91c1c; }

/* ── Compliance bar ───────────────────────────────────────── */
.compliance-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-top: 24px;
}
.compliance-phases { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.phase-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-inline);
  background: #1a3a22;
  color: #3fb950;
  border: 1px solid #238636;
}
.phase-chip.pending {
  background: var(--bg);
  color: var(--fg-muted);
  border-color: var(--border);
}
.compliance-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ── Pilot terms ──────────────────────────────────────────── */
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 600px) { .terms-grid { grid-template-columns: 1fr; } }
.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.terms-card h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.terms-list { list-style: none; padding: 0; margin: 0; }
.terms-list li {
  font-size: 13px;
  color: var(--fg);
  padding: 5px 0;
  border-bottom: 1px solid #21262D;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}
.terms-list li:last-child { border-bottom: none; }
.check-icon { color: var(--accent); flex-shrink: 0; }

/* ── Application form ─────────────────────────────────────── */
.pilot-form-section { padding: 56px 0 80px; border-top: 1px solid var(--border); }
.pilot-form-wrap { max-width: 560px; margin: 0 auto; text-align: left; }
.pilot-form-wrap h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #E6EDF3;
  margin-bottom: 8px;
  text-align: center;
}
.pilot-form-wrap .form-sub {
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-group label .req { color: #f85149; margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: #484F58; }
select.form-input { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-submit {
  width: 100%;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #0A0E17;
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.form-submit:hover { opacity: 0.87; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { margin-top: 16px; font-size: 14px; text-align: center; min-height: 20px; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #f85149; }

/* ── Try-Recall demo section ──────────────────────────────── */
.pilot-recall-section {
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #0e1520 100%);
}
.recall-demo-heading {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: #E6EDF3;
  margin-bottom: 10px;
}
.recall-demo-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Sample query chips */
.recall-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.recall-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-inline);
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.recall-chip:hover { background: rgba(94,174,120,0.12); }
.recall-chip:disabled { opacity: 0.4; cursor: not-allowed; }

/* Query input row */
.recall-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}
.recall-query-input {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.recall-query-input:focus { border-color: var(--accent); }
.recall-query-input::placeholder { color: #484F58; }
.recall-query-input:disabled { opacity: 0.5; }
.recall-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: #0A0E17;
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.recall-submit-btn:hover { opacity: 0.87; }
.recall-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Status line */
.recall-status { font-size: 13px; min-height: 18px; margin-bottom: 4px; }
.recall-status.error { color: #f85149; }
.recall-status.info  { color: var(--fg-muted); }

/* Results meta line */
.recall-results-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* Individual result cards */
.recall-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.recall-result-card:hover { border-color: #2d3748; }

.recall-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.recall-node-type {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(94,174,120,0.1);
  color: var(--accent);
  border: 1px solid rgba(94,174,120,0.25);
  flex-shrink: 0;
}
.recall-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #E6EDF3;
  line-height: 1.3;
}

.recall-result-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.recall-confidence {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #3fb950;
}
.recall-confidence.low { color: #e3b341; }
.recall-source {
  font-size: 11px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}
.recall-timestamp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #484F58;
}

.recall-result-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Evidence panel */
.recall-evidence-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #21262D;
}
.recall-evidence-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 6px;
}
.recall-evidence-ids { display: flex; gap: 6px; flex-wrap: wrap; }
.recall-evidence-id-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: #161B22;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: #484F58;
  cursor: help;
}

/* CTA strip below results */
.recall-demo-cta {
  margin-top: 20px;
  text-align: center;
}
.recall-cta-arrow { color: var(--accent); margin-right: 8px; }
.recall-cta-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.recall-cta-link:hover { opacity: 0.8; }

/* Export STIX button */
.recall-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-inline);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  letter-spacing: 0.02em;
}
.recall-export-btn:hover { background: rgba(94,174,120,0.1); }
.recall-export-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Unseeded notice */
.recall-unseeded-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}
.recall-unseeded-notice a { color: var(--accent); }

@media (max-width: 600px) {
  .recall-input-row { flex-direction: column; }
  .recall-submit-btn { width: 100%; }
  .recall-chip-row { gap: 6px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.pilot-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.pilot-footer a { color: var(--accent); text-decoration: none; }
.pilot-footer a:hover { color: var(--link-hover); }
