:root {
  --xp-blue-top: #0a246a;
  --xp-blue: #245edb;
  --xp-blue-mid: #3a81f0;
  --xp-blue-light: #6ca8f5;
  --xp-face: #ece9d8;
  --xp-face-dark: #d4d0c8;
  --xp-white: #ffffff;
  --xp-text: #000000;
  --xp-link: #0000ee;
  --xp-border: #0054e3;
  --xp-green: #3c8a2e;
  --xp-shadow: #808080;
  --xp-inset: #fff;
  --max: 860px;
  --taskbar-h: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font: 13px/1.45 Tahoma, "Segoe UI", Geneva, Verdana, sans-serif;
  color: var(--xp-text);
  background: #5a8f3c;
}

/* Bliss-ish desktop */
.desktop {
  min-height: 100vh;
  padding: 12px 12px calc(var(--taskbar-h) + 16px);
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #7ec8f5 0%, #5aa4d8 42%, transparent 43%),
    linear-gradient(180deg, #5aa4d8 0%, #7eb63e 48%, #3f7a28 100%);
  background-attachment: fixed;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Classic XP window chrome */
.window {
  background: var(--xp-face);
  border: 2px solid var(--xp-border);
  border-radius: 8px 8px 0 0;
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.25),
    inset 1px 1px 0 #fff;
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(
    180deg,
    var(--xp-blue-light) 0%,
    var(--xp-blue-mid) 8%,
    var(--xp-blue) 45%,
    var(--xp-blue-top) 100%
  );
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.titlebar-icon {
  font-size: 12px;
  line-height: 1;
}

.titlebar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-btns {
  display: flex;
  gap: 2px;
}

.tb-btn {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3c8cf0, #1a5bbf);
  border: 1px solid #fff;
  border-right-color: #003c9a;
  border-bottom-color: #003c9a;
  border-radius: 3px;
  line-height: 1;
}

.tb-btn.close {
  background: linear-gradient(180deg, #e8795a, #c13a1c);
  border-right-color: #7a1800;
  border-bottom-color: #7a1800;
}

.menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 2px 4px;
  background: var(--xp-face);
  border-bottom: 1px solid #aca899;
  font-size: 12px;
}

.menubar a {
  color: var(--xp-text);
  text-decoration: none;
  padding: 2px 8px;
}

.menubar a:hover,
.menubar a:focus-visible {
  background: var(--xp-blue);
  color: #fff;
  outline: none;
}

.window-body {
  padding: 12px 14px 14px;
  background: var(--xp-white);
  border-top: 1px solid #fff;
}

.hero-body {
  background: var(--xp-face);
}

.hero-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.hero-icon {
  font-size: 42px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--xp-white);
  border: 2px inset #aca899;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--xp-blue-top);
  letter-spacing: 0.02em;
}

.tagline {
  margin: 2px 0 6px;
  color: #333;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 3px 8px;
  background: #ffffcc;
  border: 1px solid #caca00;
  font-size: 12px;
  font-weight: 700;
}

.intro {
  margin: 0 0 10px;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  background: var(--xp-face);
  border: 1px inset #fff;
  font-size: 11px;
  color: #333;
}

h3 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--xp-blue-top);
}

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 10px;
  padding-left: 1.35rem;
}

li { margin: 0.3rem 0; }

a {
  color: var(--xp-link);
}

a:focus-visible {
  outline: 1px dotted #000;
}

.diagram {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #000;
  color: #00ff00;
  font: 11px/1.4 "Lucida Console", "Courier New", monospace;
  border: 2px inset #808080;
  overflow-x: auto;
  white-space: pre;
}

.xp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 12px;
  background: #fff;
}

.xp-table th,
.xp-table td {
  border: 1px solid #7f9db9;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.xp-table th {
  background: var(--xp-face);
  font-weight: 700;
}

.xp-table code {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 11px;
}

.tip,
.callout {
  margin-top: 8px;
  padding: 8px 10px;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
  font-size: 12px;
}

.tip strong {
  display: block;
  margin-bottom: 2px;
  color: var(--xp-blue-top);
}

.modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0;
}

@media (min-width: 720px) {
  .modes {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.mode {
  background: var(--xp-face);
  border: 2px outset #fff;
  padding: 10px 10px 12px;
  position: relative;
}

.mode-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--xp-blue-mid), var(--xp-blue-top));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #fff;
  border-right-color: #003c9a;
  border-bottom-color: #003c9a;
  border-radius: 3px;
}

.mode h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.mode-lead {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--xp-blue-top);
}

.mode p {
  font-size: 12px;
}

.mode ul {
  margin-bottom: 0;
  font-size: 12px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--xp-face);
  border: 2px outset #fff;
  padding: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.card p {
  margin: 0;
  font-size: 12px;
  color: #222;
}

.oss {
  text-align: center;
}

.under-construction {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: #fc0;
  border: 2px outset #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: pulse-border 1.6s ease-in-out infinite;
}

@keyframes pulse-border {
  50% { filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .under-construction { animation: none; }
  html { scroll-behavior: auto; }
}

.soon {
  margin-top: 8px;
  font-style: italic;
  color: #333;
}

.free-banner {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: #c6efce;
  border: 2px outset #fff;
  color: #006100;
  font-weight: 700;
  font-size: 13px;
}

.footer-body {
  text-align: center;
  background: var(--xp-face);
}

.muted { color: #555; font-size: 12px; }

/* Taskbar */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  background: linear-gradient(180deg, #245edc 0%, #3f8cf3 6%, #245edb 12%, #1941a5 100%);
  border-top: 1px solid #062c8a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 50;
}

.start-btn {
  height: 24px;
  padding: 0 12px 0 8px;
  border: none;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #3caa3c, #1e7a1e);
  color: #fff;
  font: 700 12px/1 Tahoma, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  cursor: default;
  box-shadow: 1px 0 0 #0a4a0a;
}

.task-pill {
  height: 22px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  max-width: min(240px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  background: linear-gradient(180deg, #3b7deb, #1a4fb8);
  border: 1px solid #083a9a;
  border-radius: 2px;
}

.task-pill.active {
  background: linear-gradient(180deg, #1f5fc4, #163f8f);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.tray {
  margin-left: auto;
  height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 11px;
  background: linear-gradient(180deg, #1f5fc4, #163f8f);
  border: 1px inset #0a2f7a;
}

@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .hero-icon { width: 48px; height: 48px; font-size: 28px; }
  .diagram { font-size: 10px; }
  .task-pill { display: none; }
}
