/* AdjudiMED marketing site — Glass Box Solutions brand system.
   Navy structure (#112E51), restrained clinical teal accent, paper-first light
   theme, navy-tinted neutrals. No gradients, no glassmorphism, no hero-metric
   template. Restraint is the floor.
   @Developed & Documented by Glass Box Solutions, Inc. */

:root {
  /* Brand */
  --navy: #112e51;            /* GBS structural primary — does not change */
  --navy-700: #1c3d63;
  --navy-600: #2a4d76;
  --teal: #1f7e93;            /* clinical accent — restrained, not a wash */
  --teal-600: #196a7d;
  --teal-tint: #e7f1f3;

  /* Navy-tinted neutrals — never pure black/white */
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #f0f4f7;
  --foreground: #1d2733;
  --muted: #566678;
  --muted-2: #5f6c7a;
  --border: #dde4ea;
  --border-strong: #c6d0da;

  /* States (used sparingly) */
  --success: #2f9e6f;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --maxw: 1120px;
  --prose: 64ch;

  --shadow-sm: 0 1px 2px rgba(17, 46, 81, 0.06), 0 1px 1px rgba(17, 46, 81, 0.04);
  --shadow-md: 0 4px 16px rgba(17, 46, 81, 0.08), 0 1px 3px rgba(17, 46, 81, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keyboard focus — visible on light and navy surfaces (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 3px;
}
.cta :focus-visible,
.btn-primary:focus-visible {
  outline-color: #fff;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
  font-weight: 650;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand .product {
  font-size: 16px;
}
.brand .family {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--navy);
  text-decoration: none;
}
.nav .btn {
  color: #fff;
}
@media (max-width: 820px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-700);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--navy-600);
  text-decoration: none;
}
.btn-ghost {
  background: var(--teal);
  color: #fff;
}
.btn-ghost:hover {
  background: var(--teal-600);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 90% at 88% -10%, var(--teal-tint) 0%, transparent 60%),
    var(--background);
}
.hero .eyebrow {
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero .lede {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Section scaffolding ---------- */
section {
  padding: 76px 0;
}
.section-head {
  max-width: var(--prose);
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 12px 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
}
.alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

/* ---------- Problem statement ---------- */
.problem p {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--foreground);
  max-width: var(--prose);
}
.problem .accent {
  color: var(--navy);
  font-weight: 600;
}
.clock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.chip svg {
  width: 15px;
  height: 15px;
  color: var(--teal-600);
}

/* ---------- Pillar grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card .ico {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  color: var(--teal-600);
  margin-bottom: 16px;
}
.card .ico svg {
  width: 20px;
  height: 20px;
}
.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 4px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.step:last-child {
  border-bottom: 1px solid var(--border);
}
.step .num {
  counter-increment: step;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 650;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.step p {
  color: var(--muted);
  max-width: var(--prose);
}

/* ---------- Security ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 36px;
}
@media (max-width: 760px) {
  .sec-grid {
    grid-template-columns: 1fr;
  }
}
.sec-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
}
.sec-item svg {
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  margin-top: 2px;
}
.sec-item h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}
.sec-item p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Roles ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .roles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .roles {
    grid-template-columns: 1fr;
  }
}
.role {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.role h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.role p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.cta p {
  color: #c7d3e1;
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 16px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--navy);
}
.cta .btn-primary:hover {
  background: #eaf0f6;
}
.cta .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta .btn-secondary:hover {
  background: var(--navy-700);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-top .brand .product {
  color: var(--navy);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--navy);
  text-decoration: none;
}
.disclaimer {
  max-width: 78ch;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
