/* ===================================================
   trust-pages.css — Shared design system for CheapAI
   trust, proof, evidence, and reference pages
   =================================================== */

/* ── Page shell ─────────────────────────────────── */
.tp-page {
  background: var(--bg, #06061a);
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 6rem;
}

.tp-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tp-wrap--wide {
  max-width: 1100px;
}

/* ── Metadata bar (top of page) ─────────────────── */
.tp-meta-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.tp-meta-bar a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.tp-meta-bar a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.tp-meta-bar a.tp-meta-primary {
  color: var(--accent, #8b5cf6);
}

.tp-meta-dot {
  opacity: 0.3;
}

/* ── Page hero ──────────────────────────────────── */
.tp-hero {
  padding: 5rem 0 3rem;
  text-align: left;
}

.tp-hero--centered {
  text-align: center;
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 20px;
  padding: 0.3rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tp-badge--purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.tp-badge--green {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.tp-badge--amber {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

.tp-badge--blue {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #93c5fd;
}

.tp-badge--neutral {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.tp-badge .tp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: tp-pulse 2s ease-in-out infinite;
}

@keyframes tp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tp-hero h1 {
  font-family: var(--font-h, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.1rem;
}

.tp-hero h1 .tp-gradient {
  background: linear-gradient(135deg, #fff 0%, #a0a0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tp-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0;
}

.tp-hero--centered .tp-hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── Section spacing ────────────────────────────── */
.tp-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.tp-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2.5rem 0;
}

/* ── Section headings ───────────────────────────── */
.tp-h2 {
  font-family: var(--font-h, 'Space Grotesk', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tp-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e8e8f0;
  margin-bottom: 0.5rem;
}

/* ── Cards ──────────────────────────────────────── */
.tp-card {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.tp-card + .tp-card {
  margin-top: 1rem;
}

.tp-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.tp-card p:last-child {
  margin-bottom: 0;
}

.tp-card ul,
.tp-card ol {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.9;
  padding-left: 1.4rem;
  margin: 0;
}

.tp-card li {
  margin-bottom: 0.35rem;
}

.tp-card--accent {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.15);
}

.tp-card--purple {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.18);
}

.tp-card--warn {
  background: rgba(251, 191, 36, 0.03);
  border-color: rgba(251, 191, 36, 0.15);
}

.tp-card--flat {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* ── Grid layout ────────────────────────────────── */
.tp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

/* ── Step flow (numbered checklist) ─────────────── */
.tp-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.tp-step:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.tp-step-num {
  min-width: 30px;
  height: 30px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tp-step-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.tp-step-body p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.tp-step-body a {
  color: var(--accent, #8b5cf6);
  text-decoration: none;
}

.tp-step-body a:hover {
  text-decoration: underline;
}

/* ── Evidence rows ──────────────────────────────── */
.tp-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-evidence-row {
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  border-left: 3px solid transparent;
}

.tp-evidence-row--verified {
  background: rgba(16, 185, 129, 0.04);
  border-color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
}

.tp-evidence-row--unverified {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(107, 114, 128, 0.6);
}

.tp-evidence-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.tp-evidence-label--verified { color: #34d399; }
.tp-evidence-label--unverified { color: rgba(255, 255, 255, 0.3); }

.tp-evidence-body {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.tp-evidence-body a {
  color: var(--accent, #8b5cf6);
  text-decoration: none;
}

/* ── Status health cards ────────────────────────── */
.tp-status-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tp-status-card--operational {
  border-left-color: #10b981;
}

.tp-status-card--degraded {
  border-left-color: #fbbf24;
}

.tp-status-card--down {
  border-left-color: #f87171;
}

.tp-status-card--info {
  border-left-color: rgba(255, 255, 255, 0.2);
}

.tp-status-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.tp-status-detail {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.tp-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-status-pill--ok {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.tp-status-pill--warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.tp-status-pill--down {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.tp-status-pill--muted {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Overall status bar ─────────────────────────── */
.tp-overall-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tp-overall-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.tp-overall-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tp-overall-pill--ok {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.tp-overall-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Provider section headers ───────────────────── */
.tp-provider-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tp-provider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tp-provider-dot--anthropic { background: #d97757; }
.tp-provider-dot--google { background: #4285f4; }
.tp-provider-dot--deepseek { background: #60a5fa; }
.tp-provider-dot--openai { background: #10a37f; }

.tp-provider-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Table wrapper ──────────────────────────────── */
.tp-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tp-table thead tr {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.tp-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tp-table td {
  padding: 0.9rem 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.tp-table tbody tr:last-child td {
  border-bottom: none;
}

.tp-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* ── Badge pills (compatibility) ────────────────── */
.tp-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tp-pill--tested {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.tp-pill--partial {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.tp-pill--untested {
  background: rgba(107, 114, 128, 0.12);
  color: #9ca3af;
}

.tp-pill--verified {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.tp-pill--unverified {
  background: rgba(107, 114, 128, 0.1);
  color: #9ca3af;
}

.tp-pill--preview {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

/* ── Code block ─────────────────────────────────── */
.tp-code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #a78bfa;
  overflow-x: auto;
  white-space: pre;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Language label pill ────────────────────────── */
.tp-lang-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tp-lang-pill--python { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.tp-lang-pill--node { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.tp-lang-pill--curl { background: rgba(156, 163, 175, 0.12); color: #9ca3af; }
.tp-lang-pill--config { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* ── Related pages panel ────────────────────────── */
.tp-related {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-related-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.tp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.tp-related-link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.tp-related-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.tp-related-link-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.2rem;
}

.tp-related-link-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* ── CTA bar (bottom of page) ───────────────────── */
.tp-cta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent, #8b5cf6);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.tp-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.tp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, background 0.2s;
}

.tp-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.tp-cta-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}

.tp-cta-text-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.tp-cta-text-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── TOC (table of contents) ────────────────────── */
.tp-toc {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.tp-toc-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.85rem;
}

.tp-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1.5rem;
}

.tp-toc-item {
  font-size: 0.87rem;
  color: var(--accent, #8b5cf6);
  text-decoration: none;
  line-height: 1.9;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.tp-toc-item:hover {
  opacity: 1;
}

/* ── Inline callout ─────────────────────────────── */
.tp-callout {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.tp-callout--info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
}

.tp-callout--warn {
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.18);
  color: rgba(255, 255, 255, 0.65);
}

.tp-callout--accent {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: rgba(255, 255, 255, 0.65);
}

/* ── Mechanism grid (how it works) ─────────────── */
.tp-mechanism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tp-mechanism-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.tp-mechanism-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.tp-mechanism-num {
  font-family: var(--font-h, 'Space Grotesk', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.3);
  margin-bottom: 0.75rem;
}

.tp-mechanism-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tp-mechanism-body {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ── Pricing row (data pages) ───────────────────── */
.tp-pricing-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.tp-pricing-row:last-child {
  border-bottom: none;
}

.tp-pricing-model {
  font-weight: 600;
  color: #fff;
}

.tp-pricing-model-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  margin-top: 0.15rem;
}

.tp-pricing-official {
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.tp-pricing-cheapai {
  text-align: right;
  color: #34d399;
  font-weight: 700;
  white-space: nowrap;
}

.tp-pricing-savings {
  text-align: right;
  color: rgba(52, 211, 153, 0.7);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ── Responsive breakpoints ─────────────────────── */
@media (max-width: 700px) {
  .tp-hero {
    padding: 4rem 0 2rem;
  }

  .tp-grid-2,
  .tp-grid-3,
  .tp-toc-grid {
    grid-template-columns: 1fr;
  }

  .tp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tp-cta-text-links {
    margin-left: 0;
  }

  .tp-card {
    padding: 1.25rem 1.25rem;
  }

  .tp-pricing-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .tp-related-grid {
    grid-template-columns: 1fr;
  }

  .tp-hero h1 {
    font-size: 1.9rem;
  }

  .tp-wrap {
    padding: 0 1rem;
  }
}
