/* Code Mavericks — shared stylesheet. Replaces Foundation. */
:root {
  --navy: #001639;
  --navy-soft: #0d1f3f;
  --navy-border: #1c3055;
  --accent: #4f8ef7;
  --ink: #1a1a22;
  --ink-soft: #44444a;
  --muted: #66666e;
  --muted-2: #77777f;
  --faint: #9a9a95;
  --line: #e6e6e3;
  --wash: #f5f7fb;
  --on-navy: #aebcd6;
  --on-navy-soft: #8fa1c2;
  --radius: 12px;
  --radius-sm: 6px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #3d7ce4; }
.btn-navy { background: var(--navy); color: #ffffff; }
.btn-navy:hover { background: #0a2450; }
.btn-ghost-dark { border-color: #3a4f78; color: #c6d2e8; }
.btn-ghost-dark:hover { border-color: var(--accent); color: #ffffff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #ffffff; }

/* Header */
.site-header {
  border-bottom: 1px solid #ececea;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img, .brand svg { width: 36px; height: 36px; }
.brand-name { font-weight: 600; font-size: 16px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { color: var(--ink-soft); font-size: 14.5px; }
.main-nav > a:hover, .main-nav > a.active { color: var(--navy); }
.nav-item { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.nav-item > a { color: var(--ink-soft); font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.nav-item:hover > a { color: var(--navy); }
.dropdown {
  position: absolute;
  top: 100%;
  left: -12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 22, 57, 0.10);
  padding: 8px;
  min-width: 300px;
  display: none;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
}
.dropdown a small { display: block; color: var(--muted-2); font-size: 12.5px; }
.dropdown a:hover { background: var(--wash); }
.header-cta { white-space: nowrap; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.mobile-nav { display: none; background: var(--navy); }
.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 13px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--navy-border);
}
.mobile-nav a.sub { padding-left: 42px; color: var(--on-navy); font-size: 14px; }
.mobile-nav.open { display: block; }

/* Hero */
.hero { background: var(--navy); color: #ffffff; padding: 72px 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 600; color: #ffffff; }
.hero .lead { font-size: 17px; color: var(--on-navy); max-width: 520px; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  color: #9fb3d9;
  border: 1px solid #2a3f66;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-center .hero-actions { justify-content: center; }

/* Stats strip */
.stats { border-bottom: 1px solid #ececea; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 26px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid #ececea; }
.stat b { display: block; font-size: 24px; font-weight: 600; color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted-2); }

/* Sections */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 26px; color: var(--ink); }
.section-head p { color: var(--muted-2); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #ffffff;
}
.card .icon { color: var(--accent); margin-bottom: 12px; }
.card h3 { font-size: 16.5px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card-wash { background: var(--wash); border: 0; }

/* Feature band (product spotlight) */
.band {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.band .kicker { font-size: 12px; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.band h3 { font-size: 22px; color: var(--navy); margin-top: 8px; }
.band p { color: var(--ink-soft); font-size: 15px; }
.code-chip {
  background: var(--navy-soft);
  border-radius: 8px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #9fd0a8;
  line-height: 1.7;
  overflow-x: auto;
}
.code-chip .cm { color: #7fa3d9; }

/* CTA band */
.cta { background: var(--navy); color: #ffffff; text-align: center; padding: 60px 0; }
.cta h2 { color: #ffffff; font-size: 24px; }
.cta p { color: var(--on-navy); font-size: 15px; }

/* Forms (contact) */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d9d9d6;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #ffffff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.fine-print { font-size: 12px; color: var(--faint); }

/* Overlay (contact submit) */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 22, 57, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
#overlay.show { display: flex; }
#overlay-content {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  max-width: 90vw;
}

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { color: var(--navy); font-size: 30px; }
.legal h2 { font-size: 19px; color: var(--navy); margin-top: 1.8em; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding: 22px 0; font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--on-navy-soft); }
.site-footer a:hover { color: #ffffff; }
.footer-links { display: flex; gap: 18px; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .band { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 44px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid #ececea; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Additions: Askline chat preview, generic strips, 404 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.chat-card { background: #ffffff; border-radius: var(--radius); padding: 18px; font-size: 13.5px; color: var(--ink); }
.bubble-q { background: #eef2f9; color: #33333a; border-radius: 12px 12px 12px 3px; padding: 10px 14px; max-width: 88%; margin-bottom: 10px; }
.bubble-a { background: var(--navy); color: #dbe4f5; border-radius: 12px 12px 3px 12px; padding: 10px 14px; max-width: 88%; margin-left: auto; margin-bottom: 10px; }
.bubble-a .caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); margin-left: 3px; vertical-align: middle; }
.chat-meta { display: flex; gap: 6px; align-items: center; color: var(--faint); font-size: 12px; }
.strip { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: center; }
.strip h3 { margin: 0 0 2px; font-size: 15.5px; }
.strip p { margin: 0; font-size: 14px; color: var(--muted); }
.notfound { text-align: center; padding: 90px 24px; }
.notfound svg { margin: 0 auto 24px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: #eef2f9; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-bottom: 12px; }