/* WinRunner — Windows 95-style site. Tokens and primitives follow the WinHub site
   (winhub/app/globals.css) so the two look like one family. */

:root {
  color-scheme: light;

  --desktop: #008080;
  --face: #c0c0c0;
  --light: #dfdfdf;
  --highlight: #ffffff;
  --shadow: #808080;
  --dark: #0a0a0a;
  --text: #000000;
  --muted: #404040;
  --select-bg: #000080;
  --select-fg: #ffffff;
  --title-a: #000080;
  --title-b: #1084d0;
  --link: #000080;
  --tooltip: #ffffe1;

  --font: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, sans-serif;
  --mono: "Courier New", Consolas, "Lucida Console", monospace;

  --shell-max: 980px;
  --gutter: 16px;
  --taskbar-h: 36px;

  --bevel-raised:
    inset -1px -1px var(--dark), inset 1px 1px var(--highlight),
    inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  --bevel-pressed:
    inset -1px -1px var(--highlight), inset 1px 1px var(--dark),
    inset -2px -2px var(--light), inset 2px 2px var(--shadow);
  --bevel-window:
    inset -1px -1px var(--dark), inset 1px 1px var(--light),
    inset -2px -2px var(--shadow), inset 2px 2px var(--highlight);
  --bevel-field:
    inset -1px -1px var(--highlight), inset 1px 1px var(--shadow),
    inset -2px -2px var(--light), inset 2px 2px var(--dark);
  --bevel-thin-raised: inset -1px -1px var(--shadow), inset 1px 1px var(--highlight);
  --bevel-thin-sunken: inset -1px -1px var(--highlight), inset 1px 1px var(--shadow);
}

@media (max-width: 640px) {
  :root { --gutter: 10px; --taskbar-h: 34px; }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--desktop);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--taskbar-h) + 24px + env(safe-area-inset-bottom));
}

h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--link); }
code { font-family: var(--mono); font-size: 13px; }
::selection { background: var(--select-bg); color: var(--select-fg); }
:focus-visible { outline: 1px dotted var(--dark); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 100;
  background: var(--tooltip); color: var(--text);
  padding: 6px 10px; box-shadow: 0 0 0 1px var(--dark);
}
.skip-link:focus { top: 8px; }

.pixel { image-rendering: pixelated; }

.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.desktop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }

/* ── Window ───────────────────────────────────────────────────────────────── */

.win { background: var(--face); box-shadow: var(--bevel-window); padding: 3px; }

.win__title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 22px; padding: 2px 3px 2px 4px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff; font-weight: 700; user-select: none;
}

.win__title-text {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win__title-text img { width: 16px; height: 16px; flex: none; }

.win__controls { display: flex; gap: 2px; flex: none; }
.win__ctl {
  width: 16px; height: 14px; background: var(--face); box-shadow: var(--bevel-raised);
  display: grid; place-items: center;
}
.win__ctl + .win__ctl--close { margin-left: 2px; }
.win__ctl svg { width: 8px; height: 7px; }

.win__body { padding: 14px; }
@media (max-width: 640px) { .win__body { padding: 10px 8px; } }

.statusbar { display: flex; gap: 2px; margin-top: 2px; }
.statusbar > * {
  flex: 1; min-width: 0; padding: 2px 6px; box-shadow: var(--bevel-thin-sunken);
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 75px; min-height: 24px; padding: 4px 12px;
  border: 0; border-radius: 0; background: var(--face); color: var(--text);
  box-shadow: var(--bevel-raised); font: inherit; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 1px dotted var(--dark); outline-offset: -5px; }
.btn:active { box-shadow: var(--bevel-pressed); padding: 5px 11px 3px 13px; }
.btn--default { box-shadow: 0 0 0 1px var(--dark), var(--bevel-raised); }
.btn--default:active { box-shadow: 0 0 0 1px var(--dark), var(--bevel-pressed); }
.btn--lg { min-height: 32px; padding: 6px 20px; font-weight: 700; }
.btn--lg:active { padding: 7px 19px 5px 21px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Group boxes, fields ──────────────────────────────────────────────────── */

.groupbox {
  margin: 0; min-width: 0; padding: 10px 12px 12px; border: 0;
  box-shadow: inset -1px -1px var(--highlight), inset 1px 1px var(--shadow),
    inset -2px -2px var(--shadow), inset 2px 2px var(--highlight);
}
.groupbox > legend {
  position: relative; padding: 0 4px; margin-left: 4px;
  font-weight: 700; background: var(--face);
}

.sunken { background: #fff; box-shadow: var(--bevel-field); padding: 3px; }

.muted { color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.hero__icon { width: 96px; height: 96px; }
.hero h1 { font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.hero .tagline { font-size: 15px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .hero__icon { width: 64px; height: 64px; }
  .hero h1 { font-size: 24px; }
}

/* ── Screenshot ───────────────────────────────────────────────────────────── */

.shot { width: 100%; height: auto; }

/* ── Features ─────────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 14px;
}
.features p { margin-top: 2px; }

/* ── Steps ────────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 28px; height: 24px;
  background: var(--face); box-shadow: var(--bevel-raised); font-weight: 700;
}
.steps strong { display: block; }
.steps-cta { margin-top: 16px; }

/* ── Taskbar ──────────────────────────────────────────────────────────────── */

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--taskbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--face);
  box-shadow: inset 0 1px var(--light), inset 0 2px var(--highlight);
}
.taskbar__inner { display: flex; align-items: center; gap: 4px; height: var(--taskbar-h); padding: 4px 4px 2px; }
.taskbar__start { height: 100%; font-weight: 700; }
.taskbar__start img { width: 16px; height: 16px; }
.taskbar__spacer { flex: 1; }
.taskbar__tray {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 10px;
  box-shadow: var(--bevel-thin-sunken); font-size: 12px; white-space: nowrap;
}
@media (max-width: 480px) {
  .taskbar__note { display: none; }
  .statusbar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
