/* Milepost DMS — trymilepost.com
   Light theme. Mobile-first. No framework.
   Contrast (on #ffffff): navy 12.4:1, green 5.0:1, ink-2 7.4:1 — all WCAG AA for body text.
   Meaning is never carried by colour alone: active nav = underline + bold, errors = text + icon word. */

:root {
  --navy: #1f3346;
  --navy-2: #2b4660;
  --navy-tint: #eef2f6;
  --green: #2e7d4f;
  --green-dark: #23633e;
  --green-tint: #e8f3ec;
  --ink: #1b2430;
  --ink-2: #4a5563;
  --line: #d5dce4;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 16px rgba(16, 32, 48, .06);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: .5rem;
}

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

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; min-height: 64px; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--navy); background: #fff;
  border: 2px solid var(--navy); border-radius: 8px; padding: .35rem .8rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 500; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .4em; }

/* JS present + small screen: collapse the nav behind the Menu button */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding: .5rem 0 1rem; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li a { display: block; padding: .7rem 0; border-top: 1px solid var(--line); }
  .js .site-nav li .btn { margin-top: .75rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  background: var(--green); color: #fff; border: 2px solid var(--green);
  border-radius: 8px; padding: .75rem 1.3rem; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy-tint); color: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--navy-tint); color: var(--navy); border-color: var(--navy-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav .btn, .site-nav .btn:hover { color: #fff; text-decoration: none; padding: .5rem 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ext::after { content: " \2197"; } /* ↗ marks links that leave the site — a symbol, not a colour */

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--navy-tint), #fff); }
.hero .lead { margin-top: .75rem; }
.hero-note { font-size: .95rem; color: var(--ink-2); margin-top: 1rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); margin: 0; }
.card .tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-tint); border-radius: 4px; padding: .1rem .5rem; margin-bottom: .6rem;
}

/* ---------- Proof block ---------- */
.proof { background: var(--navy); color: #fff; }
.proof h2, .proof h3 { color: #fff; }
.proof p, .proof li { color: #e6ecf2; }
.proof .eyebrow { color: #bfe3cc; }
.proof ul { padding-left: 1.2rem; }
.proof li { margin-bottom: .4rem; }

/* ---------- Feature sections ---------- */
.feature { display: grid; gap: 1.75rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.15fr; }
  .feature.flip .feature-copy { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--green-dark);
}
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem;
  text-decoration: none; color: var(--navy); background: #fff; font-size: .95rem;
}
.toc a:hover { border-color: var(--navy); text-decoration: underline; }

/* ---------- Screenshot slots ---------- */
.shot { margin: 0; }
.shot-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  /* Placeholder look: shows through until the real .webp exists */
  background:
    repeating-linear-gradient(135deg, rgba(31,51,70,.05) 0 12px, rgba(31,51,70,0) 12px 24px),
    var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  color: var(--ink-2); font-size: .9rem; text-align: center; /* styles the alt text if the image is missing */
}
.shot figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .6rem; }
.shot figcaption strong { color: var(--navy); }
.strip { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .strip-4 { grid-template-columns: repeat(4, 1fr); } }
.gallery { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta { background: var(--green-dark); color: #fff; text-align: center; padding: 3rem 0; }
.cta h2 { color: #fff; }
.cta p { color: #eaf5ee; max-width: 40em; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Prose pages ---------- */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; max-width: 40rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; color: var(--navy); }
.field .hint { font-size: .9rem; color: var(--ink-2); }
.req { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid #8a97a6; border-radius: 8px; padding: .65rem .75rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice {
  border: 2px solid var(--navy); background: var(--navy-tint); border-radius: 8px; padding: .8rem 1rem; font-weight: 600;
}
.notice strong { text-transform: uppercase; letter-spacing: .04em; }
.small { font-size: .9rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dfe6ee; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #bfe3cc; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 40px; width: auto; margin-bottom: .75rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.copy { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1rem; color: #c3cfdb; }

/* demo-login checkbox on the contact form (D4239=3) */
.form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.form label.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }

/* comparison tables (alternative pages) */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; background: #fff; }
.compare th, .compare td { border: 1px solid var(--line); padding: .7rem .85rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy-tint); color: var(--navy); }
.compare tbody th { color: var(--navy); width: 26%; }
