/* Kinetic Ledger: bright precision-dashboard style with blueprint motion. */
:root {
  --kinetic-bg: #f7fbff;
  --kinetic-panel: #ffffff;
  --kinetic-blue: #2557ff;
  --kinetic-cyan: #12b7d8;
  --kinetic-lime: #a6e22e;
  --kinetic-ink: #111827;
  --kinetic-muted: #5f6f86;
}

html body {
  color: var(--kinetic-ink) !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 87, 255, .12), transparent 22rem),
    radial-gradient(circle at 88% 8%, rgba(166, 226, 46, .2), transparent 20rem),
    linear-gradient(180deg, #f8fcff, #eef6ff 58%, #f7fbff) !important;
}

html body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(37, 87, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 183, 216, .1) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(166, 226, 46, .16) 46% 48%, transparent 48%) !important;
  background-size: 42px 42px, 42px 42px, 180px 180px !important;
  mask-image: linear-gradient(180deg, #000, transparent 92%) !important;
  animation: blueprintShift 8s ease-in-out infinite alternate !important;
}

html body .site-header {
  background: rgba(248, 252, 255, .88) !important;
  border-bottom: 1px solid rgba(37, 87, 255, .16) !important;
  backdrop-filter: blur(16px) !important;
}

html body .site-header,
html body .site-header a,
html body .brand strong,
html body .brand small,
html body .nav-links a {
  color: var(--kinetic-ink) !important;
  opacity: 1 !important;
}

html body h1,
html body h2,
html body h3 {
  color: var(--kinetic-ink) !important;
  letter-spacing: 0 !important;
}

html body p,
html body li,
html body dd,
html body .hero-lede {
  color: var(--kinetic-muted) !important;
}

html body .hero,
html body .studio-hero,
html body .page-hero,
html body .service-detail-hero {
  border-radius: 10px !important;
  border: 1px solid rgba(37, 87, 255, .18) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,246,255,.9)),
    radial-gradient(circle at 83% 18%, rgba(166, 226, 46, .28), transparent 16rem) !important;
  box-shadow: 0 28px 80px rgba(37, 87, 255, .12), inset 0 0 0 1px rgba(255,255,255,.8) !important;
}

html body .card,
html body .card-link,
html body article,
html body .summary-card,
html body .portrait-card,
html body .service-card,
html body .board-card,
html body .contact-panel,
html body .trust-panel {
  color: var(--kinetic-ink) !important;
  border: 1px solid rgba(37, 87, 255, .16) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 18px 44px rgba(37, 87, 255, .1) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

html body .card:hover,
html body .card-link:hover,
html body article:hover {
  transform: translateY(-5px) translateX(2px) !important;
  border-color: rgba(37, 87, 255, .36) !important;
  box-shadow: 0 28px 64px rgba(37, 87, 255, .16) !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--kinetic-blue), var(--kinetic-cyan)) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 30px rgba(37, 87, 255, .22) !important;
}

html body .button.secondary {
  color: var(--kinetic-ink) !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid rgba(37, 87, 255, .2) !important;
}

html body .eyebrow,
html body .tag,
html body .badge,
html body .pill {
  color: #0b1b3a !important;
  background: linear-gradient(90deg, rgba(166,226,46,.88), rgba(18,183,216,.24)) !important;
  border: 1px solid rgba(37, 87, 255, .16) !important;
  border-radius: 8px !important;
}

html body .summary-card,
html body .board-card {
  border-left: 5px solid var(--kinetic-blue) !important;
}

/* Interior layout identity: blueprint dashboard with dense data modules. */
html body .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  border-radius: 0 !important;
  border-top: 8px solid var(--kinetic-blue) !important;
  min-height: 560px !important;
  position: relative !important;
}

html body .hero::after {
  content: "Claims\\AQueues\\ADenials\\AReports" !important;
  white-space: pre-line !important;
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 230px !important;
  padding: 18px !important;
  color: #0b1b3a !important;
  background: rgba(166, 226, 46, .24) !important;
  border: 1px solid rgba(37, 87, 255, .22) !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
}

html body .summary-card {
  transform: none !important;
  border-left: 0 !important;
  border-top: 5px solid var(--kinetic-blue) !important;
}

html body .service-list,
html body .support-grid,
html body .systems-grid,
html body .trust-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 14px !important;
}

html body .service-list article,
html body .support-grid article,
html body .systems-grid article,
html body .trust-grid article {
  grid-column: auto !important;
  min-height: 190px !important;
  min-width: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  border-left: 5px solid var(--kinetic-blue) !important;
}

html body .service-list article:nth-child(2n),
html body .support-grid article:nth-child(2n),
html body .systems-grid article:nth-child(2n),
html body .trust-grid article:nth-child(2n) {
  transform: none !important;
  border-left-color: var(--kinetic-lime) !important;
}

html body:not(.vitalweb-remix) .intro-block {
  display: grid !important;
  grid-template-columns: minmax(0, .72fr) minmax(230px, .28fr) !important;
  gap: 28px !important;
  align-items: end !important;
  max-width: none !important;
  padding-bottom: 20px !important;
  border-bottom: 4px solid var(--kinetic-blue) !important;
}

html body:not(.vitalweb-remix) .intro-block::after {
  content: "Package Matrix\A 01 Essential\A 02 Professional\A 03 Complete" !important;
  white-space: pre-line !important;
  display: grid !important;
  align-content: center !important;
  justify-content: start !important;
  color: var(--kinetic-blue) !important;
  background: #ffffff !important;
  border: 1px solid rgba(37, 87, 255, .18) !important;
  border-radius: 4px !important;
  box-shadow: 0 18px 44px rgba(37, 87, 255, .1) !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  padding: 20px !important;
}

html body:not(.vitalweb-remix) .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border-top: 0 !important;
  padding-top: 18px !important;
  gap: 14px !important;
}

html body:not(.vitalweb-remix) main .grid .card {
  grid-column: auto !important;
  min-height: 330px !important;
  border-radius: 4px !important;
  border-left: 6px solid var(--kinetic-blue) !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
  grid-column: auto !important;
  transform: none !important;
  border-left-color: var(--kinetic-lime) !important;
}

@media (max-width: 820px) {
  html body:not(.vitalweb-remix) .intro-block,
  html body:not(.vitalweb-remix) .grid {
    grid-template-columns: 1fr !important;
  }

  html body:not(.vitalweb-remix) main .grid .card,
  html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
    grid-column: auto !important;
    transform: none !important;
  }
}

@keyframes blueprintShift {
  from { opacity: .5; transform: translate3d(0,0,0); }
  to { opacity: .82; transform: translate3d(18px,-12px,0); }
}

/* Card spacing safety pass: keeps text from hugging card borders on all sample pages. */
html body :where(.card, .card-link, .summary-card, .portrait-card, .service-card, .specialty-card, .resource-card, .testimonial-card, .fit-card, .process-card, .detail-card, .board-card, .contact-panel, .trust-panel, .detail-module, .detail-console),
html body :where(.service-list, .support-grid, .systems-grid, .trust-grid, .mosaic-grid, .reason-stack, .fit-ribbon) > article,
html body :where(.process-lane) li {
  box-sizing: border-box !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

/* Form spacing safety pass: keeps labels and controls comfortably inside contact forms. */
html body :where(form, .lead-form, .quote-form, .managed-form) {
  box-sizing: border-box !important;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

/* Mobile fit pass: avoid narrow text columns on essential interior pages. */
@media (max-width: 700px) {
  html body main,
  html body .page-hero,
  html body .intro-split,
  html body .about-profile,
  html body .trust-contact {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .page-hero,
  html body .intro-split,
  html body .about-profile,
  html body .trust-contact,
  html body .reason-stack,
  html body .mosaic-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html body .page-hero h1,
  html body .page-hero p,
  html body .lead,
  html body p,
  html body li {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Final readability/media safety pass: keeps page images contained and tiny marks readable. */
html body img {
  max-width: 100% !important;
}

html body :where(.brand-mark, .tag, .badge, .label, .kicker) {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body :where(.brand-mark) {
  color: #102326 !important;
  background: #f7fff9 !important;
  border: 1px solid rgba(16, 35, 38, .14) !important;
}

html body:not(.vitalweb-remix) main .grid .card,
html body:not(.vitalweb-remix) main .grid .card:visited {
  color: inherit !important;
  overflow: hidden !important;
}

html body:not(.vitalweb-remix) main .grid .card * {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Final mobile override: keep kinetic interior pages readable. */
@media (max-width: 700px) {
  html body .hero,
  html body .page-hero,
  html body .about-grid,
  html body .intro-split,
  html body .trust-contact,
  html body .reason-stack,
  html body .mosaic-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .hero *,
  html body .page-hero *,
  html body .about-grid *,
  html body .intro-split * {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Contact form safety pass: keeps compact demo forms readable on every page. */
html body form.contact-panel,
html body .contact-panel:is(form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

html body form.contact-panel label,
html body .contact-panel:is(form) label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font: inherit !important;
}

html body form.contact-panel textarea,
html body .contact-panel:is(form) textarea {
  min-height: 116px !important;
  resize: vertical;
}

/* Form field readability pass: prevents dark inherited controls on light contact layouts. */
html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  color: #172126 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(23, 33, 38, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body form.contact-panel input::placeholder,
html body form.contact-panel textarea::placeholder,
html body .contact-panel:is(form) input::placeholder,
html body .contact-panel:is(form) textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
