/* facts.css — winserv-ai-portal-tecnico.html document styles (light theme) */

.doc-wrap {
  padding: 3rem 0 4rem;
  background: #f1f5f9;
}

.doc-notice {
  border-left: 4px solid #d97706;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 2rem;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}
.doc-notice strong { color: #b45309; }

.doc-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.doc-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  line-height: 1.4;
}

.doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  margin: 1.75rem 0 0.625rem;
}
.doc-section h3:first-of-type { margin-top: 1rem; }

.doc-section p {
  margin-bottom: 0.875rem;
  line-height: 1.75;
  color: #334155;
}
.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul { padding-left: 1.375rem; margin-bottom: 0.875rem; }
.doc-section li { margin-bottom: 0.375rem; line-height: 1.65; color: #334155; }

.doc-section code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  color: #2563eb;
}

/* Blockquote */
.doc-quote {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}
.doc-quote strong { font-style: normal; color: #1d4ed8; }

/* Tables */
.doc-content .table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  -webkit-overflow-scrolling: touch;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 700px;
}
.doc-content table.compact { font-size: 11.5px; min-width: 0; }

.doc-content th {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.doc-content table.compact th { padding: 8px 10px; font-size: 10px; }

.doc-content td {
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #334155;
  line-height: 1.55;
  background: #ffffff;
}
.doc-content table.compact td { padding: 7px 10px; }
.doc-content tr:last-child td { border-bottom: none; }
.doc-content tr:nth-child(even) td { background: #f8fafc; }
.doc-content tr:hover td { background: #eff6ff; }

/* Status markers */
.doc-content .yes  { color: #059669; font-weight: 700; }
.doc-content .no   { color: #dc2626; }
.doc-content .warn { color: #d97706; }
.doc-content .highlight { font-weight: 700; color: #2563eb; }
.doc-content .exclusive {
  background: #ecfdf5;
  color: #059669;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

/* Competitor cards */
.doc-content .competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.doc-content .comp-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}
.doc-content .comp-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #0f172a;
}
.doc-content .comp-card p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
}

/* Callout boxes */
.doc-content .callout {
  border-left: 4px solid #2563eb;
  padding: 14px 18px;
  margin: 1rem 0;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}
.doc-content .callout strong { color: #1d4ed8; }

/* Callout table (token economy) */
.doc-content .callout table {
  margin-top: 12px;
  font-size: 12px;
  min-width: 0;
}
.doc-content .callout th {
  background: #1e3a8a;
  font-size: 10px;
}
.doc-content .callout td { padding: 7px 10px; background: #f0f7ff; }
.doc-content .callout tr:nth-child(even) td { background: #e0effe; }
.doc-content .callout p { margin-top: 8px; margin-bottom: 0; font-size: 13px; }

/* Intro grid */
.doc-content .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.doc-content .intro-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.375rem;
  text-align: center;
}
.doc-content .intro-card .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.doc-content .intro-card strong { display: block; font-size: 13.5px; color: #0f172a; margin-bottom: 6px; }
.doc-content .intro-card p { font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* Architecture diagram */
.doc-content .arch-diagram {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1.25rem;
}
.arch-row { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.arch-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  min-width: 140px;
}
.arch-box small { display: block; font-weight: 400; font-size: 11px; color: #64748b; margin-top: 4px; }
.arch-box.internet { border-color: #93c5fd; background: #eff6ff; }
.arch-box.caddy    { border-color: #6ee7b7; background: #ecfdf5; }
.arch-box.fastapi  { border-color: #fcd34d; background: #fffbeb; }
.arch-box.gemini   { border-color: #c4b5fd; background: #f5f3ff; }
.arch-box.postgres { border-color: #fca5a5; background: #fef2f2; }
.arch-arrow { font-size: 1.375rem; color: #94a3b8; margin: 4px 0; }
.arch-sub {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 8px 0; font-size: 11px; color: #64748b;
}
.arch-sub span {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3px 9px;
}
.arch-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed #bfdbfe;
  font-size: 11.5px; color: #64748b; font-weight: 600;
}

/* Summary grid */
.doc-content .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.doc-content .summary-box {
  border-radius: 10px;
  padding: 1.75rem;
}
.doc-content .summary-box.gain {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.doc-content .summary-box.risk {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}
.doc-content .summary-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.doc-content .summary-box.gain h4 { color: #065f46; }
.doc-content .summary-box.risk h4 { color: #991b1b; }
.doc-content .summary-box ul { padding-left: 1.25rem; }
.doc-content .summary-box li {
  font-size: 13.5px;
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.55;
}

/* Pulse for exclusive */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}
.doc-content td:has(.exclusive) { animation: softPulse 3s ease-in-out infinite; }

/* Document version footer */
.doc-version-line {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .doc-section { padding: 1.5rem 1.25rem; }
  .doc-content .intro-grid { grid-template-columns: 1fr; }
  .doc-content .summary-grid { grid-template-columns: 1fr; }
  .doc-content .competitor-grid { grid-template-columns: 1fr; }
}
