/* MR INNOVATION INC. — company site
   Self-contained: no external fonts, scripts, or CDN requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #14161a;
  --muted: #5b6169;
  --border: #e4e7ec;
  --accent: #1a4fd6;
  --flag-bg: #fff4d6;
  --flag-border: #e0b64a;
  --flag-text: #6b4c00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-soft: #16191e;
    --text: #e8eaed;
    --muted: #9aa1ab;
    --border: #23272e;
    --accent: #7aa2ff;
    --flag-bg: #2e2408;
    --flag-border: #7a6220;
    --flag-text: #f0d795;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */

header {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 22px;
}

nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--accent); }

/* ---- content ---- */

main { padding: 56px 0 72px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  margin: 28px 0 6px;
}

.lede {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }

a { color: var(--accent); }

ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }

/* ---- product cards ---- */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 20px 0 8px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: var(--bg-soft);
}

.card h3 { margin-top: 0; }

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

/* ---- contact block ---- */

.contact {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-top: 20px;
}

.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
}

.contact dt { color: var(--muted); font-size: 15px; }
.contact dd { margin: 0; }

@media (max-width: 520px) {
  .contact dl { grid-template-columns: 1fr; gap: 2px 0; }
  .contact dd { margin-bottom: 12px; }
  h1 { font-size: 28px; }
  .lede { font-size: 18px; }
}

/* ---- placeholder flag ----
   Anything wearing this class is UNFINISHED and must not ship.
   See README.md in this folder. */

.todo {
  background: var(--flag-bg);
  border: 1px dashed var(--flag-border);
  color: var(--flag-text);
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 600;
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 48px;
  color: var(--muted);
  font-size: 14.5px;
}

footer p { margin: 0 0 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

.footer-legal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin-top: -4px;
}
