/* InstitutionalResearch.AI and M-Powered Insights websites. Brand colors from the M-Powered
   Insights logo (docs/brand/README.md): navy for text and surfaces, gold as an accent only
   (about 2:1 on white, so never for text). */

@font-face {
  font-family: "Jost";
  src: url("jost.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #2d3644;
  --navy-deep: #232a36;
  --navy-soft: #3b4659;
  --gold: #f8b400;
  --gold-soft: #fff4d6;
  --ink: #1f2733;
  --muted: #566070;
  --line: #dfe3e9;
  --surface: #ffffff;
  --page: #f6f7f9;
  --on-navy: #ffffff;
  --on-navy-muted: #c3cad5;
  --focus: #1f5fbf;
  --radius: 12px;
  --heading: "Jost", "Century Gothic", Futura, "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--focus); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Draft markers: remove the banner and every <mark class="edit"> before publishing. */
.draft-banner { background: var(--gold-soft); color: #6b4a00; text-align: center; font-size: 14px; padding: 6px 16px; }
mark.edit { background: #ffe39a; color: #5a3e00; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 -2px 0 #e0a800; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 85px; width: auto; display: block; }  /* the trimmed logo; its tagline needs the height to stay legible */
.logo-compact img { height: 46px; }  /* the product's compact lockup, which has no tagline */
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--focus); }

/* Buttons */
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.button:hover { background: var(--page); }
.button-primary { background: var(--navy); color: var(--on-navy); }
.button-primary:hover { background: var(--navy-deep); }
.nav .button { padding: 7px 14px; font-size: 15px; }
.nav .button-primary { color: var(--on-navy); }
.on-navy .button { border-color: var(--on-navy); color: var(--on-navy); }
.on-navy .button:hover { background: var(--navy-soft); }
.on-navy .button-primary { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.on-navy .button-primary:hover { background: #ffc633; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 80px 0; }
.on-navy { background: var(--navy); color: var(--on-navy-muted); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--on-navy); }
.on-navy a:not(.button) { color: var(--on-navy); }
.tinted { background: var(--page); }
.eyebrow { font-family: var(--heading); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex-shrink: 0; }
.on-navy .eyebrow { color: var(--on-navy-muted); }
.lede { font-size: 20px; max-width: 760px; }
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
/* A faint data pattern on the right, fading out before it reaches the text (decorative). */
.hero-pattern::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 600px);
  background: url("hero-pattern.svg") right center / contain no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
  pointer-events: none; }
.hero .wrap { position: relative; }
@media (forced-colors: active) { .hero-pattern::before { display: none; } }
.hero h1 { max-width: 860px; }
.hero .note { margin-top: 22px; font-size: 15px; }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* Product hero: text beside an illustrated governed answer (synthetic numbers, decorative). */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-split h1 { font-size: clamp(34px, 4.4vw, 50px); }
.answer-mock { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px 24px 20px;
  border-top: 4px solid var(--gold); box-shadow: 0 24px 60px rgba(10, 14, 22, .38); font-size: 15px; }
.answer-mock .ask { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: var(--page); color: var(--ink); margin: 0 0 18px; }
.answer-mock .ask svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.answer-mock .metric { font-family: var(--heading); font-weight: 600; color: var(--navy); font-size: 15px; margin: 0; }
.answer-mock .value { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; }
.answer-mock .value strong { font-family: var(--heading); font-size: 44px; font-weight: 500; color: var(--navy); line-height: 1.1; }
.answer-mock .delta { color: #1e6b3a; font-weight: 600; font-size: 14px; }
.answer-mock .bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 84px;
  padding-bottom: 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.answer-mock .bars span { display: block; background: #c9d0db; border-radius: 4px 4px 0 0; }
.answer-mock .bars span:last-child { background: var(--navy); }
.answer-mock .years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: center; font-size: 12px;
  color: var(--muted); margin-bottom: 16px; }
.answer-mock dl { margin: 0; display: grid; gap: 8px; }
.answer-mock dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.answer-mock dt { font-weight: 600; color: var(--navy); }
.answer-mock dd { margin: 0; color: var(--muted); }
.mock-caption { margin: 12px 0 0; font-size: 13px; text-align: right; color: var(--on-navy-muted); }
@media (forced-colors: active) { .answer-mock .bars span { background: CanvasText; } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { font-size: 13px; color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--gold-soft); color: var(--navy); }
.card-icon svg { width: 22px; height: 22px; }
.card-icon-mark { background: none; }
.card-icon-mark img { width: 44px; height: 44px; display: block; }
.card a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px;
  text-underline-offset: 3px; }
.on-navy .card { background: var(--navy-soft); border-color: #4a566b; }

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--on-navy); font-family: var(--heading); font-weight: 600; margin-bottom: 14px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

.split { display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: start; }
/* About: one wide, centered column, so the founder story reads in fewer, longer lines. */
.about { max-width: 1040px; }
.about-head { text-align: center; margin-bottom: 28px; }
.about-head .eyebrow { justify-content: center; }
.about-body { max-width: 1000px; margin: 0 auto; }
.about-beat { font-family: var(--heading); font-size: 28px; font-weight: 500; color: var(--navy); margin: 4px 0 18px; }
.about-sign { margin: 22px 0 0; font-family: var(--heading); font-weight: 600; font-size: 18px; color: var(--navy); }
.about-sign span { display: block; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--muted); }
.about-quote { max-width: 760px; margin: 36px auto 0; padding-top: 24px; border-top: 3px solid var(--gold); text-align: center;
  font-size: 22px; line-height: 1.45; color: var(--navy); font-family: var(--heading); text-wrap: balance; }
.quote-panel { border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; font-size: 20px; color: var(--navy); font-family: var(--heading); }

table.plain { width: 100%; border-collapse: collapse; font-size: 16px; }
table.plain th, table.plain td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-weight: 600; color: var(--navy); }
.table-wrap { overflow-x: auto; }

.small { font-size: 14px; }

/* Contact form (contact.html, ADR 0018) */
.contact-form { display: grid; gap: 18px; }
.contact-form > p { margin: 0; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid #8a94a3; border-radius: 8px; padding: 10px 12px; }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; }
.form-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.contact-form button.button { cursor: pointer; font: inherit; font-weight: 600; }
.contact-form button.button-primary { border-color: var(--navy); }
.dialog { max-width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--ink); background: var(--surface); box-shadow: 0 18px 48px rgba(20, 26, 36, .28); }
.dialog::backdrop { background: rgba(20, 26, 36, .55); }
.dialog h2 { font-size: 24px; margin-top: 0; }
.dialog .actions { margin-top: 20px; }
.dialog a.button { color: var(--navy); text-decoration: none; }  /* not the card's link style */
.dialog a.button-primary { color: var(--on-navy); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 48px 0 36px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--on-navy); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .small { font-size: 14px; margin-top: 18px; }
.site-footer img { height: 44px; width: auto; display: block; margin-bottom: 10px; }

@media (max-width: 820px) {
  .split, .hero-split { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-pattern::before { display: none; }  /* small screens: it would sit behind the text */
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px 18px; }
  .logo img { height: 64px; }
  .logo-compact img { height: 40px; }
  .nav { margin-left: 0; justify-content: flex-start; gap: 10px 16px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 52px; }
  .logo-compact img { height: 34px; }
}
