/**
 * ScholarGigs — static info pages (/for-clients.html, /for-students.html)
 * Aligned with Tailwind theme in tailwind.config.js + App.tsx landing patterns.
 */
:root {
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --accent-500: #f59e0b;
  --accent-600: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Heebo, Assistant, system-ui, sans-serif;
  color: var(--slate-900);
  line-height: 1.6;
  background:
    radial-gradient(ellipse 95% 65% at 50% -35%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(circle at 95% 5%, rgba(253, 230, 138, 0.35), transparent 40%),
    var(--slate-50);
}

.page-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--slate-900);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.brand-mark:hover {
  color: var(--brand-700);
}

.brand-mark img {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem;
  box-shadow:
    0 10px 25px -5px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(226, 232, 240, 0.7);
}

.top-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.top-link:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--brand-600);
}

/* Hero — matches App.tsx landing hero card */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background: #fff;
  box-shadow:
    0 24px 64px -16px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(241, 245, 249, 0.9);
  padding: 1.75rem 1.5rem 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% -20%, rgba(14, 165, 233, 0.12), transparent 45%);
}

.hero > * {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
}

.badge--employer {
  color: var(--accent-600);
  background: rgba(255, 251, 235, 0.95);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.badge--student {
  color: var(--brand-700);
  background: rgba(240, 249, 255, 0.95);
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.65rem;
}

.lead {
  font-size: 1rem;
  color: var(--slate-600);
  margin: 0 0 1.25rem;
  line-height: 1.65;
  max-width: 52rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons — match components/Button.tsx primary + outline */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px -4px rgba(2, 132, 199, 0.45);
}

.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 6px 20px -4px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.stats {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.stat {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(241, 245, 249, 0.9);
  border-radius: 0.875rem;
  padding: 0.75rem 0.85rem;
  text-align: right;
}

.stat b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.45;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(241, 245, 249, 0.95);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
}

.section-title {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

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

.card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.1);
  border-color: rgba(125, 211, 252, 0.45);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--slate-900);
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.steps {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.step-num {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.35);
}

.step strong {
  font-weight: 900;
  color: var(--slate-900);
}

.faq {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

details {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

details[open] {
  border-color: rgba(125, 211, 252, 0.5);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--slate-900);
}

details p {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.footer-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  border-radius: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), #fff);
  box-shadow:
    0 10px 40px -12px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(241, 245, 249, 0.85);
}

.footer-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--slate-900);
}

.footer-cta p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 40rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
