/* JSYNC IT Solutions — custom layer on top of Tailwind
 *
 * Palette tokens mirror assets/js/tailwind-config.js so they are available
 * to plain CSS (gradients, pseudo-elements, custom properties) as well as
 * to Tailwind utilities.
 */

:root {
  /* Core */
  --primary: #004ac6;
  --primary-container: #2563eb;
  --trust-blue: #034694;
  --tertiary: #005d72;
  --tertiary-fixed-dim: #7dd2ef;
  --surface: #f8f9ff;
  --on-surface: #0b1c30;

  /* Platform brands — source: ../salosync, ../ballncourt.
     Keep in sync with assets/js/tailwind-config.js if either rebrands. */
  --salosync-orange: #e87822;
  --salosync-orange-dark: #c2410c;
  --salosync-teal: #007690;
  --salosync-tint: #fff7ed;

  --bnc-green: #004526;
  --bnc-green-deep: #002c17;
  --bnc-yellow: #d4f000;
  --bnc-navy: #11254a;
  --bnc-tint: #f1f7f3;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Offset anchor jumps so the sticky header doesn't cover section headings */
[id] {
  scroll-margin-top: 5rem;
}

/* Visible focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* ---------------------------------------------------------------------------
   Blueprint grid — the 48px coordinate layer used behind dark sections.
--------------------------------------------------------------------------- */
.jsync-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.2;
}

/* Ambient mesh blobs behind the hero. Kept in CSS rather than as four
   utility-laden divs so the markup stays readable. */
.jsync-mesh::before,
.jsync-mesh::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}

.jsync-mesh::before {
  top: -8rem;
  left: -8rem;
  width: 37.5rem;
  height: 37.5rem;
  background: linear-gradient(to bottom right, var(--primary), var(--trust-blue), transparent);
  opacity: 0.7;
}

.jsync-mesh::after {
  top: 20%;
  right: -6rem;
  width: 31.25rem;
  height: 31.25rem;
  background: linear-gradient(to bottom left, var(--salosync-teal), var(--primary-container), transparent);
  opacity: 0.55;
}

/* ---------------------------------------------------------------------------
   Platform cards — each takes its accent from a single --brand property, so
   the same markup serves both without a second set of utility classes.
--------------------------------------------------------------------------- */
.platform-card {
  --brand: var(--primary);
  --brand-tint: #eff6ff;
  border-top: 3px solid var(--brand);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.platform-card--salosync {
  --brand: var(--salosync-orange);
  --brand-tint: var(--salosync-tint);
}

.platform-card--ballncourt {
  --brand: var(--bnc-green);
  --brand-tint: var(--bnc-tint);
}

.platform-card:hover {
  box-shadow: 0 12px 28px -8px rgb(11 28 48 / 0.18);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .platform-card,
  .platform-card:hover {
    transform: none;
    transition: none;
  }
}

.platform-card__mark {
  background-color: var(--brand-tint);
}

.platform-card__check {
  color: var(--brand);
}

.platform-card__link {
  color: var(--brand);
}

.platform-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
}
