/* GovernEdge, governedge.ai. Hand-written CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-2: #eef1f5;
  --bg-3: #f6f8fa;
  --ink: #1b1f24;
  --ink-2: #5b6472;
  --line: #dfe4ea;
  --navy: #1f3864;
  --teal: #0e7c7b;
  --teal-2: #3fd8c7;
  --contact-bg: #0f1b33;
  --contact-ink: #f5f7fa;
  --contact-muted: #c7d0de;
  --max: 1120px;
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b33;
    --bg-2: #17274a;
    --bg-3: #132140;
    --ink: #e7ecf3;
    --ink-2: #a3aec2;
    --line: #2a3d63;
    --navy: #c7d0de;
    --teal: #3fd8c7;
    --teal-2: #3fd8c7;
    --contact-bg: #0b1529;
    --contact-ink: #f5f7fa;
    --contact-muted: #c7d0de;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.2rem); font-weight: 720; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); font-weight: 680; }
h3 { font-size: 1.12rem; font-weight: 680; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.wrap { margin-inline: auto; width: min(var(--max), 100% - 2.5rem); }
.narrow { max-width: 820px; }
.skip {
  background: var(--teal); border-radius: 6px; color: #fff; left: -999px; padding: 0.55rem 0.9rem;
  position: absolute; top: 0.5rem; z-index: 100;
}
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { align-items: center; display: flex; gap: 1.5rem; min-height: 64px; }
.brand { align-items: center; color: var(--ink); display: inline-flex; font-size: 1.15rem; font-weight: 720; gap: 0.6rem; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { height: 30px; width: 28px; }
.nav { align-items: center; display: flex; gap: 1.35rem; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 0.94rem; text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  background: var(--teal); border: 1px solid var(--teal); border-radius: 8px; color: #fff !important;
  display: inline-block; font-size: 0.96rem; font-weight: 700; padding: 0.7rem 1.1rem; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.btn.ghost:hover { border-color: var(--ink-2); filter: none; }

/* Layout */
section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; scroll-margin-top: 4.25rem; }
section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--bg-3); }
.grid { display: grid; gap: 1.25rem; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { margin-bottom: 2.5rem; max-width: 46rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.eyebrow { color: var(--teal); display: block; font-size: 0.76rem; font-weight: 720; letter-spacing: 0.12em; margin-bottom: 0.9rem; text-transform: uppercase; }
.lede { color: var(--ink-2); font-size: clamp(1.08rem, 2vw, 1.25rem); max-width: 45rem; }
.small { font-size: 0.9rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg) 64%, var(--bg-3) 100%); padding-bottom: clamp(4rem, 9vw, 7rem); padding-top: clamp(4.5rem, 10vw, 8rem); }
.hero-grid { max-width: 1120px; }
.hero h1 { max-width: 14em; }
.hero .lede { margin-bottom: 2rem; }
.page-hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg) 64%, var(--bg-3) 100%); padding-bottom: clamp(3.75rem, 8vw, 6.5rem); padding-top: clamp(4.5rem, 10vw, 8rem); }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }
.where { color: var(--ink-2); font-size: 0.93rem; margin: 0; max-width: 44rem; }

/* Content */
.triggers article { border-top: 3px solid var(--teal-2); padding-top: 1rem; }
.triggers h3 { margin-bottom: 0.35rem; }
.triggers p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.problem { border-top: 1px solid var(--line); margin-top: 3rem; max-width: 65rem; padding-top: 2rem; }
.problem h3 { font-size: 1.35rem; }
.problem > p:not(.source) { color: var(--ink-2); }
.source { border-left: 3px solid var(--teal-2); color: var(--ink-2); font-size: 0.86rem; margin: 1.5rem 0 0; max-width: 64rem; padding-left: 1rem; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.42rem; }
.card li:last-child { margin-bottom: 0; }
.card.featured { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.kicker, .role { color: var(--teal); font-size: 0.77rem; font-weight: 720; letter-spacing: 0.1em; margin: 0 0 0.55rem; text-transform: uppercase; }
.duration { color: var(--navy); font-size: 0.94rem; font-weight: 720; margin-bottom: 1rem; }
.process { color: var(--ink-2); margin: 2rem 0 0; max-width: 65rem; }
.process strong { color: var(--ink); }
.note { color: var(--ink-2); font-size: 0.94rem; margin: 1.25rem 0 0; max-width: 65rem; }
.faq-section { background: var(--bg-2); }
.faq-list { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); list-style: none; margin: 0; padding: 0; }
.faq-list li { border-top: 1px solid var(--line); padding: 1.5rem; }
.faq-list li:first-child { border-top: 0; }
.faq-list h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.55rem; }
.faq-list p { color: var(--ink-2); margin: 0; }
.person p:last-child { color: var(--ink-2); font-size: 0.96rem; }
.team-roles h2 { font-size: 1.28rem; }
.team-model h2 { max-width: 22em; }
.team-model > p:last-child { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 0; }

/* Contact and footer */
.contact { background: var(--contact-bg); border-top: 0; color: var(--contact-ink); }
.contact + .site-footer { border-top: 0; }
.contact h2 { color: var(--contact-ink); max-width: 19em; }
.contact .eyebrow { color: var(--teal-2); }
.contact .lede { color: var(--contact-muted); }
.contact-inner { max-width: 48rem; }
.email { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 720; margin: 1.5rem 0 0.6rem; overflow-wrap: anywhere; }
.email a { color: var(--teal-2); }
.site-footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; padding: 2rem 0 3rem; }
.site-footer .wrap { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
/* 404 */
.notfound { display: grid; min-height: 60vh; place-items: center; text-align: center; }

@media (max-width: 900px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), 100% - 2rem); }
  .site-header .wrap { gap: 0.75rem; min-height: 60px; }
  .brand { font-size: 1.05rem; }
  .brand svg { height: 26px; width: 24px; }
  .nav { gap: 0; }
  .nav .btn { font-size: 0.87rem; padding: 0.6rem 0.78rem; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .card { padding: 1.25rem; }
}

@media print {
  .site-header, .skip, .btn { display: none !important; }
  section { padding: 1.5rem 0; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
