/* getlidless.com/windows: the Windows beta's download page (slice W8).
   Loaded after ../style.css and uses its tokens. The pictures of Windows' own screens are drawn
   here in CSS, always light, because that is how Windows shows them; the page around them follows
   the reader's light or dark mode like the rest of the site. No scripts, no inline styles (the
   site's Content-Security-Policy allows neither). */

.win-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- The top: what it is, the download, and the honest card ---------- */

.win-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 40px;
}
.win-hero h1 {
  font: 700 clamp(34px, 5vw, 48px)/1.08 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.win-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.win-lede { color: var(--muted); font-size: 19px; max-width: 34ch; margin: 0 0 26px; }
.win-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.win-download:hover { background: var(--accent-hover); color: var(--accent-ink); }
.win-download:active { transform: translateY(1px); }
.win-download svg { width: 20px; height: 20px; flex: none; }
.win-meta { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.win-honest {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.win-honest h2 { font: 600 20px/1.3 var(--font-display); margin: 0 0 8px; }
.win-honest p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.win-who {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.win-who svg { width: 36px; height: 36px; flex: none; }
.win-who b { color: var(--text); }

/* ---------- Before you start: three short facts, side by side ---------- */

.win-needs { padding: 8px 0 56px; }
.win-needs h2 { font: 600 20px/1.3 var(--font-display); margin: 0 0 14px; }
.win-needs dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.win-needs dl > div { padding: 16px 24px 0 0; }
.win-needs dl > div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.win-needs dt { font-weight: 600; margin: 0 0 4px; }
.win-needs dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- The steps: a real sequence, so numbered ---------- */

.win-section { font: 700 30px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0 0 6px; }
.win-section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

.win-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.win-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 36px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.win-step-text h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font: 600 21px/1.3 var(--font-display);
  margin: 0 0 8px;
}
.win-step-text h3::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  transform: translateY(-2px);
}
.win-step-text p { color: var(--muted); font-size: 16px; margin: 0 0 8px; }
.win-step-text b { color: var(--text); font-weight: 600; }

.win-shot { margin: 0; }
.win-shot figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

/* Windows' own screens, drawn. Segoe UI on Windows, the closest system face elsewhere. */
.pic-edge, .pic-chrome, .pic-smartscreen, .pic-uac, .pic-setup {
  font-family: "Segoe UI", "Selawik", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.pic-edge p, .pic-chrome p, .pic-smartscreen p, .pic-uac p, .pic-setup p { margin: 0; }
.pic-ring { outline: 3px solid #f2b33d; outline-offset: 3px; border-radius: 2px; }

.pic-edge { background: #f9f9f9; color: #1b1b1b; padding: 14px 16px; }
.pic-edge-row { display: flex; gap: 12px; align-items: flex-start; }
.pic-edge-row b { display: block; font-weight: 600; margin-bottom: 2px; }
.pic-edge-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #e2e5e9;
  color: #b06a00;
  font-weight: 700;
}
.pic-edge-menu {
  width: 180px;
  margin: 10px 0 0 40px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}
.pic-edge-menu div { padding: 6px 10px; border-radius: 4px; }
.pic-chosen { background: #eaf2fb; outline: 2px solid #0067b8; }

/* Chrome's download bubble: the blocked file, the reason, and its two buttons. */
.pic-chrome { background: #fff; color: #1f1f1f; padding: 14px 16px; font-family: system-ui, "Segoe UI", sans-serif; }
.pic-chrome .pic-edge-row b { margin-bottom: 0; }
.pic-chrome-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fce8e6;
  color: #b3261e;
  font-weight: 700;
}
.pic-chrome-warn { display: block; color: #b3261e; }
.pic-chrome-why { margin: 10px 0 0 40px !important; color: #474747; }
.pic-chrome-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pic-chrome-buttons span { padding: 5px 14px; border-radius: 16px; border: 1px solid #c7c7c7; color: #0b57d0; }
.pic-chrome-buttons .pic-chrome-keep { border-color: #0b57d0; }

.pic-pair { display: grid; gap: 14px; }
.pic-smartscreen { background: #0067b8; color: #fff; padding: 20px 24px 18px; }
.pic-smartscreen p { margin: 0 0 10px; }
.pic-ss-title { font: 300 24px/1.2 "Segoe UI Light", "Segoe UI", system-ui, sans-serif; margin-bottom: 12px !important; }
.pic-ss-more { text-decoration: underline; }
.pic-ss-facts span:not([data-fill]) { display: inline-block; width: 80px; color: #cfe3f5; }
.pic-ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pic-ss-buttons span { min-width: 96px; padding: 5px 16px; border: 2px solid #fff; text-align: center; }
.pic-ss-buttons .pic-ss-main { background: #fff; color: #0067b8; }

.pic-uac { background: #f3f3f3; color: #1b1b1b; overflow: hidden; }
.pic-uac-band { background: #f2b33d; padding: 10px 18px !important; font-size: 12px; }
.pic-uac-question { padding: 16px 18px 6px !important; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pic-uac-app { display: flex; gap: 12px; align-items: center; padding: 10px 18px !important; }
.pic-uac-app i { display: block; width: 32px; height: 32px; border-radius: 4px; background: #d6dbe1; }
.pic-uac-facts { padding: 4px 18px 12px !important; color: #444; }
.pic-uac-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 18px 16px; background: #e9e9e9; }
.pic-uac-buttons span { padding: 6px 0; text-align: center; border-radius: 4px; background: #fdfdfd; border: 1px solid #d0d0d0; }
.pic-uac-buttons .pic-uac-main { background: #005fb8; border-color: #005fb8; color: #fff; }

.pic-setup { background: #f3f4f6; color: #1b2026; text-align: center; overflow: hidden; }
.pic-setup-face { padding: 22px 20px 18px; background: linear-gradient(180deg, #f8f9fb, #e9ecf0); }
.pic-setup-face svg { width: 40px; height: 40px; margin: 0 auto; }
.pic-setup-title { font-size: 18px; font-weight: 600; margin: 8px 0 2px !important; }
.pic-setup-face p:last-child { color: #56616c; font-size: 12px; }
.pic-setup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  background: #e9ecf0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.pic-setup-buttons span { min-width: 80px; padding: 5px 16px; border-radius: 4px; background: #fdfdfe; border: 1px solid rgba(0, 0, 0, 0.12); }
.pic-setup-buttons .pic-setup-main { background: #1b6a8b; border-color: transparent; color: #fff; }

/* ---------- Checking the file, and when the warnings stop ---------- */

.win-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 56px 0 72px; }
.win-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.win-panel h2 { font: 600 20px/1.3 var(--font-display); margin: 0 0 8px; }
.win-panel p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.win-panel pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ink-text);
  font: 13px/1.5 "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.win-hash code { letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .win-hero, .win-steps > li, .win-panels { grid-template-columns: minmax(0, 1fr); }
  .win-hero { gap: 28px; padding-top: 36px; }
  .win-needs dl { grid-template-columns: minmax(0, 1fr); }
  .win-needs dl > div, .win-needs dl > div + div { padding: 14px 0; border-left: 0; }
  .win-needs dl > div + div { border-top: 1px solid var(--line-soft); }
  .win-steps > li { padding: 22px 18px; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .win-download:active { transform: none; }
}

@media (forced-colors: active) {
  .pic-ring { outline-color: Highlight; }
}

/* ---------- The beta: what works and what is not in it yet (above the steps) ---------- */

.win-panels.win-beta { margin: 0 0 56px; }
.win-list { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.win-list li { margin: 0 0 6px; }
.win-list li::marker { color: var(--accent); }
.win-list b, .win-panel p b { color: var(--text); font-weight: 600; }
.win-honest p b { color: var(--text); font-weight: 600; }
