/* =========================================================================
   Health Shift Hero — marketing site design system
   -------------------------------------------------------------------------
   Self-contained. No external fonts, no CDNs — system font stack only.
   Professional healthcare-B2B look: light background, deep teal/navy
   primary, one warm accent (amber), generous whitespace, ~72rem content
   column, responsive with no JavaScript (the nav simply wraps on mobile).

   Documented utility / section classes used by content pages:
     .hero         — full-width intro band with headline + CTA row
     .cards/.card  — responsive card grid + individual card
     .cta-row      — horizontal group of call-to-action buttons (wraps)
     .btn          — button base; .btn--primary / .btn--secondary variants
     .tier-table   — styled pricing / comparison table
     .disclosure   — small-print footnote / fee-disclosure text
     .section      — vertical rhythm wrapper for page sections
     .lede         — larger intro paragraph
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --color-navy: #0f2c3f;        /* deep navy — headings, header bg */
  --color-teal: #0d6e6e;        /* primary teal — links, buttons */
  --color-teal-dark: #095656;   /* teal hover */
  --color-accent: #d98324;      /* warm amber accent */
  --color-accent-dark: #b96c15; /* amber hover */

  /* Neutrals */
  --color-bg: #f6f8f9;          /* page background */
  --color-surface: #ffffff;     /* cards, tables */
  --color-border: #d9e1e4;      /* hairlines */
  --color-text: #1f2d34;        /* body text */
  --color-muted: #566772;       /* secondary text */
  --color-band: #eef3f4;        /* subtle section band */

  /* Layout */
  --content-max: 72rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 44, 63, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 44, 63, 0.10);

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.5em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.lede {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 46rem;
}

img { max-width: 100%; height: auto; }

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---- Header & nav ----------------------------------------------------- */
.site-header {
  background: var(--color-navy);
  color: #fff;
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.wordmark__accent { color: var(--color-accent); }
.wordmark:hover { color: #fff; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.site-nav__link {
  color: #d8e4e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.site-nav__link.is-current {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

/* ---- Main layout ------------------------------------------------------ */
.site-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.section { margin: 2.5rem 0; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}
.hero h1 { color: #fff; }
.hero p { color: #e3eef1; }
.hero .lede { color: #e3eef1; }
.hero a { color: #fff; }

/* ---- Buttons & CTA row ------------------------------------------------ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #1f2d34;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.btn--secondary {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn--secondary:hover {
  background: var(--color-teal);
  color: #fff;
}
/* Secondary button placed on a dark hero */
.hero .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.hero .btn--secondary:hover {
  background: #fff;
  color: var(--color-navy);
}

/* ---- Card grid -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card--highlight {
  border-color: var(--color-teal);
  border-width: 2px;
}

/* ---- Tier / pricing table --------------------------------------------- */
.tier-table-wrap { overflow-x: auto; }
.tier-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.98rem;
  margin: 1.5rem 0;
}
.tier-table th,
.tier-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.tier-table thead th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}
.tier-table tbody tr:nth-child(even) { background: var(--color-band); }
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table td.price {
  font-weight: 700;
  color: var(--color-teal);
  white-space: nowrap;
}

/* ---- Disclosure / footnote text --------------------------------------- */
.disclosure {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  border-left: 3px solid var(--color-border);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
}
.disclosure strong { color: var(--color-text); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--color-band);
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.site-footer__tagline { margin-bottom: 0.5rem; }

/* ---- Responsive tweaks ------------------------------------------------ */
@media (max-width: 40rem) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav { width: 100%; }
}
