/* MUIC HP Drivers — self-contained stylesheet (no external fonts or libraries) */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e6eb;
  --accent: #0b3d91;          /* deep navy */
  --accent-hover: #082e6e;
  --accent-soft: #e8eef9;
  --warn-bg: #fff7e6;
  --warn-border: #f3d9a4;
  --warn-text: #7a4b00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #151820;
    --surface: #171a22;
    --text: #e8eaef;
    --muted: #9aa2b1;
    --border: #2a2f3a;
    --accent: #6c9cff;
    --accent-hover: #8ab0ff;
    --accent-soft: #1b2540;
    --warn-bg: #2a2110;
    --warn-border: #5a4418;
    --warn-text: #f1c979;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .35em;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: .94rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 640px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; max-width: 640px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
  font-size: .95rem;
}
.notice[hidden] { display: none; }
.notice .icon { margin-top: 3px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Download cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card-primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card p { color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.badge {
  font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.badge-muted { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.filetype { font-family: var(--mono); font-size: .85rem; color: var(--muted); }

.meta { margin: 0 0 20px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .9rem; }
.meta div { display: flex; justify-content: space-between; padding: 3px 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-family: var(--mono); font-size: .85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: auto; padding: 11px 18px; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .btn-primary, .badge:not(.badge-muted) { color: #0f1115; }
}

/* Install */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: .85rem;
}

.code-block {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 10px 10px 14px; margin-bottom: 10px;
}
.code-block code { background: none; border: 0; padding: 0; }

.copy {
  flex: none; font: inherit; font-size: .8rem; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.copied { color: #1a7f37; border-color: #1a7f37; }

/* Checksums */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hashes { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hashes th, .hashes td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hashes tr:last-child td { border-bottom: 0; }
.hashes th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.hashes td:first-child { white-space: nowrap; font-weight: 600; }
.hashes td:last-child { width: 1%; }
.hashes code { background: none; border: 0; padding: 0; font-size: .82rem; word-break: break-all; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 18px;
}
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Footer */
.site-footer { padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Responsive */
@media (max-width: 760px) {
  .cards, .two-col { grid-template-columns: 1fr; }
  .two-col { gap: 32px; }
  .hero { padding: 48px 0 24px; }
  .section { padding: 40px 0; }
  .nav { gap: 14px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .copy, .toast, .btn { display: none; }
}
