/**
 * Autisme Rwanda — shared brand tokens & UI primitives
 * Use across website pages, screening-tool, and screening app.
 */
:root {
  --ar-blue: #3e59a8;
  --ar-blue-deep: #2f4586;
  --ar-light-blue: #3b82f6;
  --ar-sky: #00ace4;
  --ar-green: #23ab4b;
  --ar-yellow: #fff500;
  --ar-dark: #231f20;
  --ar-ink: #1e293b;
  --ar-muted: #64748b;
  --ar-line: #e2e8f0;
  --ar-surface: #f8fafc;
  --ar-surface-soft: #f1f5f9;
  --ar-white: #ffffff;
  --ar-radius: 1rem;
  --ar-radius-lg: 1.25rem;
  --ar-radius-xl: 1.5rem;
  --ar-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --ar-shadow-soft: 0 8px 24px rgba(62, 89, 168, 0.1);
  --ar-shadow-lift: 0 18px 40px rgba(15, 23, 42, 0.12);
  --ar-focus: 0 0 0 3px rgba(62, 89, 168, 0.22);
  --ar-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ar-font-heading: "Outfit", system-ui, -apple-system, sans-serif;
}

/* Page shell helpers */
.ar-page {
  font-family: var(--ar-font-sans);
  color: var(--ar-muted);
  background: #ffffff;
  min-height: 100vh;
}

.ar-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ar-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ar-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ar-heading {
  font-family: var(--ar-font-heading);
  color: var(--ar-dark);
  letter-spacing: -0.02em;
}

.ar-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ar-blue);
}

.ar-card {
  background: var(--ar-white);
  border: 1px solid var(--ar-line);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ar-card-soft {
  background: var(--ar-white);
  border: 1px solid var(--ar-line);
  border-radius: 0.75rem;
  box-shadow: none;
}

.ar-card-interactive {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ar-card-interactive:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  padding: 0.75rem 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.ar-btn:focus-visible {
  outline: none;
  box-shadow: var(--ar-focus);
}

.ar-btn:active {
  transform: translateY(1px);
}

.ar-btn-primary {
  background: var(--ar-blue);
  color: #fff;
  box-shadow: none;
}

.ar-btn-primary:hover {
  background: var(--ar-blue-deep);
}

.ar-btn-sky {
  background: var(--ar-sky);
  color: #fff;
  box-shadow: none;
}

.ar-btn-green {
  background: var(--ar-green);
  color: #fff;
  box-shadow: none;
}

.ar-btn-ghost {
  background: #fff;
  color: var(--ar-ink);
  border-color: var(--ar-line);
}

.ar-btn-ghost:hover {
  border-color: rgba(62, 89, 168, 0.35);
  color: var(--ar-blue);
}

.ar-btn-outline {
  background: transparent;
  color: var(--ar-blue);
  border-color: rgba(62, 89, 168, 0.35);
}

.ar-btn-outline:hover {
  background: rgba(62, 89, 168, 0.06);
}

.ar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(62, 89, 168, 0.08);
  color: var(--ar-blue);
}

.ar-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .ar-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.ar-section-hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 172, 228, 0.14), transparent 32%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #edfaf3 100%);
}

.ar-input,
.ar-select,
.ar-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--ar-line);
  background: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  color: var(--ar-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ar-input:focus,
.ar-select:focus,
.ar-textarea:focus {
  outline: none;
  border-color: rgba(62, 89, 168, 0.45);
  box-shadow: var(--ar-focus);
}

.ar-stat {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ar-stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ar-stat-value {
  font-family: var(--ar-font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ar-dark);
  margin-top: 0.25rem;
}

/* Footer alignment */
.site-footer {
  background: linear-gradient(180deg, #17181b 0%, #0f1012 100%);
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.site-footer a {
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

/* Soft selection & text balance */
::selection {
  background: rgba(62, 89, 168, 0.22);
  color: #0f172a;
}

img {
  max-width: 100%;
}

/* Desktop website rhythm for content pages */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ar-blue) 0%, #2b4a96 55%, #0e7490 100%);
  padding: 7.5rem 0 4.25rem;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 20%, #fff 0, transparent 28%),
    radial-gradient(circle at 80% 0%, var(--ar-sky) 0, transparent 30%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-hero h1 {
  font-family: var(--ar-font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: rgba(219, 234, 254, 0.92);
  line-height: 1.7;
}

/* Screening app desktop polish */
.app-shell-main {
  background:
    radial-gradient(circle at 8% 0%, rgba(62, 89, 168, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.app-content-panel {
  background: transparent;
}

@media (min-width: 1024px) {
  .app-desktop-card {
    background: #fff;
    border: 1px solid var(--ar-line);
    border-radius: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  }
}
