/* ScreenMIDAS umbrella pages: the landing page (screenmidas.com) and the
   consulting site (consult.screenmidas.com). Theme taken from BetMIDAS
   (bet.screenmidas.com): white header with a thin brand-green strip and menu
   tabs rising out of it, warm neutral surfaces, green accent. */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f2f2ee; --line: #e1e0d9; --axis: #c3c2b7;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --accent: #0d8f62; --accent-ink: #ffffff; --accent-soft: #dcf1e8;
  --ok: #006300; --err: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --line: #2c2c2a; --axis: #383835;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --accent: #34c58f; --accent-ink: #0b0b0b; --accent-soft: #143628;
    --ok: #0ca30c; --err: #f08a5d; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --line: #2c2c2a; --axis: #383835;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --accent: #34c58f; --accent-ink: #0b0b0b; --accent-soft: #143628;
  --ok: #0ca30c; --err: #f08a5d; --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
/* The footer (and any footnote just above it) spans the full screen width. */
footer .wrap, .wrap.wide { max-width: none; margin: 0; padding: 0 24px; }

/* Header: as on BetMIDAS */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 2px solid var(--accent); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: .2px; color: var(--ink); text-decoration: none; }
.brand span, .accent { color: var(--accent); }
.nav { display: flex; gap: 4px; align-self: stretch; align-items: flex-end; margin-bottom: -10px; flex-wrap: wrap; }
.nav a { padding: 7px 14px 6px; border-radius: 8px 8px 0 0; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: filter .12s, padding .12s; }
.nav a:hover { filter: brightness(1.08); }
.nav a.on { padding-top: 10px; filter: brightness(.82); font-weight: 700; }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; margin: 0 0 14px; max-width: 820px; letter-spacing: -.3px; }
.hero p.lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 720px; margin: 0 0 26px; }
/* An opening statement with no buttons, followed by another hero: less space between them. */
.hero.hero-lead { padding-bottom: 0; }
.hero.hero-lead p.lede { margin-bottom: 0; }
/* Capability panels under the opening statement */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.caps div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 14px 16px; color: var(--ink-2); font-size: 14px; box-shadow: var(--shadow); }
.caps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--accent); font-size: 15px; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.outline { background: transparent; color: var(--accent); margin-left: 8px; }
.btn.outline:hover { background: var(--accent-soft); }
.btn:disabled { opacity: .6; cursor: default; }

/* Sections */
section { padding: 44px 0; }
section h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.2px; }
section p.sub { color: var(--ink-2); margin: 0 0 24px; max-width: 720px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.card h3 { margin: 0 0 4px; font-size: 21px; }
.card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0 0 12px; }
.card ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.card ul li { margin: 4px 0; }
.card .go { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .go:hover { text-decoration: underline; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.steps div { padding-left: 42px; position: relative; color: var(--ink-2); }
.steps div::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px;
  height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; }
.steps b { color: var(--ink); display: block; }

/* Inquiry form */
.form { display: grid; gap: 14px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } .btn.outline { margin-left: 0; margin-top: 8px; } }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea, .form select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; margin: 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* Footer: the same on every ScreenMIDAS site (copyright and a link home);
   disclaimers and footnotes sit just above it. */
.footnote { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; padding: 0 0 14px; }
footer { padding: 24px 0 36px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
