/* OpenELIS Global — shared site stylesheet (static build)
   Replaces the WP-era "inline CSS only" rule. One source of truth for the design language.
   Palette carried from docs/design-conventions.md:
     teal #00695c / #00897b · orange #e65100 / #ff8f00 · purple #7b1fa2 · blue #1565c0 */

:root {
  --teal-d: #00695c;
  --teal: #00897b;
  --orange: #e65100;
  --orange-l: #ff8f00;
  --purple: #7b1fa2;
  --blue: #1565c0;
  --ink: #263238;
  --ink-soft: #455a64;
  --line: #e0e5e5;
  --bg-soft: #f5f7f7;
  --maroon: #b71c1c;
  --gray: #757575;
  --maxw: 1200px;
}

* { 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);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal-d); }

h1, h2, h3 { line-height: 1.2; }

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

/* ---------- Site header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.site-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-d); font-weight: 700; font-size: 18px; }
.site-header .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--teal-d); border-bottom-color: var(--teal); }
.nav .cta { background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 8px; border: none; }
.nav .cta:hover { background: var(--orange-l); border-bottom-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--teal-d); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-teal { background: var(--teal-d); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline { background: #fff; color: var(--teal-d); border: 2px solid var(--teal-d); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--teal-d) 0%, var(--teal) 100%); color: #fff; padding: 64px 20px; }
.hero .row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero .col { flex: 1 1 400px; }
.hero .crumb { font-size: 14px; opacity: .85; margin: 0 0 12px; }
.hero h1 { font-size: 42px; margin: 0 0 16px; font-weight: 700; }
.hero p.lead { font-size: 20px; margin: 0 0 24px; opacity: .96; }
.hero img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }

/* ---------- Sections ---------- */
.section { padding: 60px 20px; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 32px; color: var(--teal-d); margin: 0 0 20px; }
.section h2.center { text-align: center; margin-bottom: 40px; }
.lead-copy { font-size: 18px; color: var(--ink-soft); }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 60px; }

/* ---------- Stat strip ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.stats .stat { text-align: center; min-width: 140px; }
.stats .num { font-size: 34px; font-weight: 800; display: block; }
.stats .lbl { font-size: 14px; opacity: .9; }

/* ---------- Card grids ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 280px; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.card .badge { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff; width: 44px; height: 44px; border-radius: 999px; font-size: 20px; font-weight: 700; margin-bottom: 14px; }

/* Recolorable icon (Carbon icon set, Apache 2.0) — mask lets one SVG take any color via `color` */
.ic { display: inline-block; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
  vertical-align: middle; }
.ic-sm { width: 18px; height: 18px; }
.ic-teal { color: var(--teal-d); }

/* "Why it matters" evidence callout */
.why { border-left: 4px solid var(--teal); background: #f2f8f7; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
.why strong { color: var(--teal-d); }

/* Publication list */
.pub { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pub .meta { font-size: 12px; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pub h3 { font-size: 17px; margin: 6px 0 4px; color: var(--ink); }
.pub .authors { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.pub a { font-weight: 600; }

/* Contact form */
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; }
.field.full { flex-basis: 100%; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
form button.btn { border: none; cursor: pointer; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 10px; }

/* Logos, badges, team, partners */
.logo-band { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.logo-band img { height: 54px; width: auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: flex-start; }
.badge-row figure { margin: 0; text-align: center; width: 160px; }
.badge-row img { height: 68px; width: auto; max-width: 150px; object-fit: contain; }
.badge-row figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.team-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.team-member { width: 170px; text-align: center; }
.team-member img { width: 108px; height: 108px; border-radius: 999px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.team-member .initials { width: 108px; height: 108px; border-radius: 999px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; margin: 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.team-member h3 { font-size: 16px; margin: 12px 0 2px; color: var(--ink); }
.team-member p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.partner-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; display: flex; align-items: center; justify-content: center; width: 175px; height: 96px; }
.partner-grid img { max-height: 54px; max-width: 130px; width: auto; object-fit: contain; }
.card h3 { font-size: 19px; color: var(--teal-d); margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Screenshot figures ---------- */
.shot { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.12); border: 1px solid var(--line); background: #fff; }
figure { margin: 0; }
figure figcaption { font-size: 14px; color: var(--ink-soft); padding: 12px 4px 0; }
.shot-hero img { display: block; width: 100%; }
.demo-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--orange); text-decoration: none; }
.demo-link:hover { text-decoration: underline; }

/* ---------- Audience router ---------- */
.router { display: flex; flex-wrap: wrap; gap: 24px; }
.router a { flex: 1 1 260px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; transition: transform .12s ease, box-shadow .12s ease; }
.router a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.router h3 { color: var(--teal-d); margin: 0 0 8px; font-size: 20px; }
.router p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.router .go { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-d) 0%, var(--teal) 100%); color: #fff; padding: 56px 20px; text-align: center; }
.cta-band h2 { color: #fff; font-size: 30px; margin: 0 0 12px; }
.cta-band p { font-size: 18px; opacity: .95; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #10302c; color: #cfd8d5; padding: 48px 20px 28px; }
.site-footer .cols { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer .cols > div { flex: 1 1 200px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: #cfd8d5; text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .base { max-width: var(--maxw); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; opacity: .8; }

/* ---------- Under-the-hood list ---------- */
.uth { background: var(--bg-soft); border-radius: 12px; padding: 28px; }
.uth ul { margin: 0; padding-left: 20px; }
.uth li { margin: 0 0 10px; color: var(--ink-soft); }
.uth strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 6px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
}
