/* Sahayak product pages — shared styles
 * Sits on top of Tailwind CDN. Only contains things Tailwind can't express cleanly.
 * Tokens documented in /assets/css/_TOKENS.md
 */

:root {
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-300: #5eead4;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-900: #134e4a;
  --slate-50:  #f8fafc;
  --slate-900: #0f172a;
}

html { scroll-behavior: smooth; }

.gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 60%, #115e59 100%);
}

.grain {
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 16px 16px;
}

.fade-in { animation: fadeIn 0.6s ease-out both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card hover bump used on landing pages */
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(13,148,136,.18);
}

/* CSS-only FAQ accordion — no JS dependency */
details > summary::marker,
details > summary::-webkit-details-marker { display: none; }
details > summary { cursor: pointer; list-style: none; }
details[open] > summary .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .15s ease; display: inline-block; }

/* Traffic-light dots (used in compliance-dashboard mockups) */
.dot { width: .65rem; height: .65rem; border-radius: 9999px; display: inline-block; }
.dot-green  { background: #16a34a; }
.dot-amber  { background: #d97706; }
.dot-red    { background: #e11d48; }
.dot-grey   { background: #94a3b8; }

/* Diagram placeholder (CSS-only, no images) */
.diagram-stub {
  position: relative;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
  border: 1px dashed #5eead4;
  border-radius: 1rem;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Logo placeholder used in social-proof rows */
.logo-placeholder {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: .5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* "Coming soon" badge used in /docs/ stubs */
.coming-soon {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
}

/* Pending-permission banner used on case-study pages */
.pending-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-size: .85rem;
}

/* Comparison table — vs-spreadsheet */
.vs-table th, .vs-table td { padding: .85rem 1rem; text-align: left; vertical-align: top; }
.vs-table thead { background: #f8fafc; }
.vs-table tbody tr + tr { border-top: 1px solid #f1f5f9; }
.vs-table .check { color: #16a34a; font-weight: 700; }
.vs-table .cross { color: #94a3b8; }

/* Generic dropdown for nav — pure CSS, no JS */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  box-shadow: 0 12px 32px -12px rgba(15,23,42,.18);
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: .55rem .7rem;
  border-radius: .5rem;
  font-size: .85rem;
  color: #1e293b;
}
.dropdown a:hover { background: #f0fdfa; color: #0f766e; }
.dropdown .label  { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: .4rem .7rem; }
