/* ScreenZa Neyraldrop — a calm Windows 98 look: teal desktop, gray beveled
   windows, navy title bars, yellow tooltips. */
:root {
  --desk: #008080;
  --face: #c0c0c0;
  --light: #ffffff;
  --shadow: #808080;
  --dark: #000000;
  --navy: #000080;
  --title-to: #1084d0;
  --text: #000000;
  --muted: #404040;
  --tip: #ffffe1;
  --link: #0000ee;
  --font: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: auto;
}

img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--link); }
a:focus-visible, .btn:focus-visible, .menu a:focus-visible {
  outline: 1px dotted var(--dark);
  outline-offset: -4px;
}

.desktop {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  gap: 28px;
}

/* -- window ---------------------------------------------------------------- */
.win {
  background: var(--face);
  padding: 3px;
  box-shadow:
    inset -1px -1px var(--dark), inset 1px 1px #dfdfdf,
    inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  min-width: 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 3px 0 4px;
  background: linear-gradient(90deg, var(--navy), var(--title-to));
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.title img { width: 16px; height: 16px; flex: none; }
.title span { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.title.inactive { background: linear-gradient(90deg, #808080, #b5b5b5); color: #dcdcdc; }

.controls { display: flex; gap: 2px; flex: none; }
.controls i {
  width: 16px; height: 14px;
  background: var(--face);
  box-shadow:
    inset -1px -1px var(--dark), inset 1px 1px var(--light),
    inset -2px -2px var(--shadow);
  position: relative;
}
.controls i:last-child { margin-left: 2px; }
.controls i::after {
  content: ""; position: absolute; left: 4px; right: 5px; bottom: 3px;
  height: 2px; background: var(--dark);
}
.controls i:nth-child(2)::after {
  top: 2px; bottom: 3px; height: auto; background: none;
  border: 1px solid var(--dark); border-top-width: 2px;
}
.controls i:last-child::after {
  content: "×"; left: 0; right: 0; top: -3px; bottom: auto; height: auto;
  background: none; font: bold 13px/1 var(--font); color: var(--dark);
  text-align: center; padding-top: 2px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  padding: 2px 2px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px var(--light);
}
.menu a {
  color: var(--text);
  text-decoration: none;
  padding: 2px 8px;
}
.menu a:hover { background: var(--navy); color: #fff; }

.address {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 5px;
  font-size: 13px;
}
.address .field {
  flex: 1; min-width: 0;
  background: #fff; padding: 2px 6px;
  box-shadow:
    inset 1px 1px var(--shadow), inset -1px -1px var(--light),
    inset 2px 2px var(--dark), inset -2px -2px #dfdfdf;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.address img { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }

.body { padding: 18px 20px 20px; }
.sunken {
  background: #fff;
  box-shadow:
    inset 1px 1px var(--shadow), inset -1px -1px var(--light),
    inset 2px 2px var(--dark), inset -2px -2px #dfdfdf;
  padding: 2px;
}

.status {
  display: flex; gap: 2px; margin-top: 2px; font-size: 12px;
}
.status span {
  padding: 1px 6px;
  box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status span:first-child { flex: 1; }

h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 34px; letter-spacing: -0.5px; }
h2 { font-size: 22px; margin-bottom: 6px; }
h3 { font-size: 15px; margin-bottom: 4px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 30px;
  padding: 6px 16px;
  background: var(--face);
  color: var(--text);
  font: 14px var(--font);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow:
    inset -1px -1px var(--dark), inset 1px 1px var(--light),
    inset -2px -2px var(--shadow), inset 2px 2px #dfdfdf;
}
.btn:active {
  box-shadow:
    inset 1px 1px var(--dark), inset -1px -1px var(--light),
    inset 2px 2px var(--shadow), inset -2px -2px #dfdfdf;
  padding: 7px 15px 5px 17px;
}
.btn.primary { outline: 1px solid var(--dark); outline-offset: 0; }
.btn svg { flex: none; }
.btn.download { padding: 10px 18px; text-align: left; min-width: 250px; }
.btn.download:active { padding: 11px 17px 9px 19px; }
.btn.download b { display: block; font-size: 15px; }
.btn.download small { display: block; color: var(--muted); font-size: 12px; }
.btn.unavailable small { color: #8a5a00; }

.downloads { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 8px; }

/* -- hero ------------------------------------------------------------------ */
.hero .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.brand img { width: 96px; height: 96px; flex: none; }
.tagline { font-size: 17px; margin: 6px 0 0; color: var(--muted); }
.lead { font-size: 15px; }

/* dashed selection frame with a pixel cursor, like the logo */
.select {
  position: relative;
  padding: 10px;
  background:
    linear-gradient(90deg, #000 50%, #fff 0) top / 8px 1px repeat-x,
    linear-gradient(90deg, #000 50%, #fff 0) bottom / 8px 1px repeat-x,
    linear-gradient(0deg, #000 50%, #fff 0) left / 1px 8px repeat-y,
    linear-gradient(0deg, #000 50%, #fff 0) right / 1px 8px repeat-y;
}
.select::after {
  content: "";
  position: absolute; right: -14px; bottom: -22px;
  width: 26px; height: 38px;
  background: url("img/cursor.svg") no-repeat;
  background-size: contain;
  image-rendering: pixelated;
}

/* -- features -------------------------------------------------------------- */
.icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px;
}
.icons article {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border: 1px dotted transparent;
}
.icons article:hover { border-color: var(--dark); background: #f4f4f4; }
.icons img { width: 32px; height: 32px; flex: none; margin-top: 2px; }
.icons p { margin: 0; color: var(--muted); font-size: 13px; }

/* -- showcase rows ---------------------------------------------------------- */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.show.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.show.flip .shot { order: 2; }
.shot .sunken { padding: 0; background: var(--face); }
.shot img { width: 100%; }
.note {
  background: var(--tip);
  border: 1px solid var(--dark);
  padding: 6px 10px;
  font-size: 13px;
  margin-top: 10px;
}
ul.checks { list-style: none; margin: 8px 0 0; padding: 0; }
ul.checks li { padding-left: 22px; position: relative; margin-bottom: 4px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 13px; height: 13px; background: #fff;
  box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--light),
    inset 2px 2px var(--dark), inset -2px -2px #dfdfdf;
}
ul.checks li::after {
  content: ""; position: absolute; left: 4px; top: 5px;
  width: 4px; height: 7px;
  border: solid var(--dark); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
kbd {
  font: 12px var(--font);
  background: var(--face);
  padding: 0 5px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light),
    inset -2px -2px var(--shadow);
  white-space: nowrap;
}

/* -- key / comparison --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.list th {
  text-align: left; font-weight: normal; background: var(--face);
  padding: 3px 8px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light),
    inset -2px -2px var(--shadow);
}
table.list th:not(:first-child), table.list td:not(:first-child) { text-align: center; width: 92px; }
table.list td { padding: 4px 8px; border-bottom: 1px solid #ececec; }
table.list tr:hover td { background: var(--navy); color: #fff; }
.yes::before { content: "✔"; }
.no { color: #a0a0a0; }
.no::before { content: "—"; }
ol.steps { margin: 8px 0 14px; padding-left: 22px; }
ol.steps li { margin-bottom: 6px; }

/* -- stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 12px; text-align: center; }
.stat b { display: block; font-size: 26px; color: var(--navy); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--muted); }

details { margin-bottom: 6px; }
details summary { cursor: pointer; font-weight: bold; padding: 4px 0; }
details p { margin: 2px 0 8px 18px; color: var(--muted); }

/* -- taskbar footer ------------------------------------------------------------ */
.taskbar {
  display: flex; align-items: center; gap: 6px;
  background: var(--face);
  padding: 3px 3px;
  box-shadow: inset 0 1px #dfdfdf, inset 0 2px var(--light);
  font-size: 13px;
}
.taskbar .btn { min-height: 24px; padding: 2px 8px; gap: 6px; font-weight: bold; }
.taskbar .btn img { width: 16px; height: 16px; }
.taskbar .task {
  flex: 1; min-width: 0; padding: 3px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.taskbar .tray {
  display: flex; align-items: center; gap: 8px; padding: 2px 10px;
  box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--light);
  white-space: nowrap;
}
.taskbar .tray img { width: 16px; height: 16px; }

/* -- small screens --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .body, .show, .show.flip, .split { grid-template-columns: minmax(0, 1fr); }
  .show.flip .shot { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .desktop { padding: 16px 16px 28px; gap: 20px; }
  .body { padding: 14px; }
  h1 { font-size: 26px; }
  .brand img { width: 64px; height: 64px; }
  .btn.download { width: 100%; min-width: 0; }
  .address .label { display: none; }
  .taskbar .task { display: none; }
  .taskbar .tray { margin-left: auto; }
  table.list th:not(:first-child), table.list td:not(:first-child) { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
kbd.key { white-space: normal; word-break: break-all; }
