/* Hallmark · shape: Stat-Led (swapped: the live figures open the first section, not the hero) · genre: modern-minimal · theme: brand · redesign: full · job: try · draw: ad001c · modes: light+dark
 * paper: oklch(98.6% 0.004 250) · accent: oklch(52% 0.15 245) · display: Inter · body: Inter · mono: DM Mono · hero: Settled · nav: floating pill · footer: letter close · signature: the install dialog with D:\Apps chosen as the folder, set large in the hero
 * axes: light/grotesk-sans/chromatic-blue · posture: Committed (the brand blue carries the primary action, the stat figures and one tinted band) · contrast: pass · fold: pass · imagery: screenshots 6 (the Winsta demo build, captured with Playwright) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: P, a download page has little to argue; the hero shows the one thing winget alone cannot do (picking D:\Apps) instead of a generic dashboard */
/* Hallmark · dropped #pill-text · 58 names it (a third text block above the hero's actions); the version now sits under the download button */
/* Hallmark · reworded "Everything winget can do, without typing commands" to "winget, without the command line" · 58 names it (section heads six words or fewer) */
/* Hallmark · reworded the three install step headings to carry their step number inside the heading · 54 names the old numbered circles as ordinal eyebrows */
/* Hallmark · reworded the three feedback headings into link titles · 3 names the icon-tile cards they sat in; the words are unchanged */
/* Hallmark · dropped screenshot-installed-dark.png, screenshot-rollback-dark.png · replaced by fresh captures of the same screens in assets/screens */
/* Hallmark · refined after an Impeccable critique (22/32): hero head down a step, brand blue on actions and figures, all five features visible as a bento of cropped captures, SmartScreen reassurance under the download, plain-language copy for SHA-256 and AppData */
/* Hallmark · dismissed 42 · the nav is a floating pill holding a wordmark, four anchors and three tools, stamped nav: floating pill */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: sticky; top: var(--space-md); z-index: var(--z-sticky-nav); padding-inline: var(--space-md); }
.nav__pill {
  display: flex; align-items: center; gap: var(--space-lg);
  max-width: 1040px; min-height: 56px; margin-inline: auto; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  border: 1px solid var(--color-rule); border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-paper) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
}
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; font-size: var(--text-md); text-decoration: none; }
.wordmark img { width: 24px; height: 24px; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__tools { display: flex; align-items: center; gap: var(--space-2xs); margin-left: auto; }

.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-width: 40px; min-height: 40px; padding: 0 var(--space-sm);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.tool:hover { background: var(--color-paper-2); color: var(--color-ink); }
.tool:active { background: var(--color-paper-3); }
.tool:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tool:disabled { opacity: 0.55; cursor: not-allowed; }
.tool svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg);
  border: 1px solid var(--color-accent); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn--quiet:active { background: var(--color-paper-3); }

.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); text-decoration-color: currentColor; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- Product plates ---------- */
.plate { margin: 0; border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-plate); }
.plate > img { border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Hero (Settled) ---------- */
.hero { padding-block: var(--space-xl) 0; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center;
  min-height: min(calc(100dvh - 112px), 800px);
}
.hero h1 { max-width: 13ch; font-size: var(--text-display-s); }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__meta { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hero__note { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.cmd code { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-sm); }
.hero__visual { justify-self: start; width: 100%; max-width: 560px; margin: 0; }
.hero__visual .plate { aspect-ratio: 1200 / 1516; }

/* ---------- Figures ---------- */
.figures { padding-block: var(--section-gap-s) 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--color-rule); }
.stat { display: flex; flex-direction: column; padding: var(--space-xl) var(--space-lg); border-left: 1px solid var(--color-rule); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dd { order: -1; margin: 0; color: var(--color-accent); font: var(--display-weight) var(--text-3xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat dd.loading { color: var(--color-muted); }
.stat dd.unavailable { font: 500 var(--text-lg)/1.2 var(--font-body); letter-spacing: 0; }
.stat dt { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.stats-note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Features (Bento) ---------- */
.features { padding-block: var(--section-gap) 0; }
.head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.head-split h2 { grid-column: 1 / 7; }
.head-split .lead { grid-column: 8 / 13; color: var(--color-ink-2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.tile { grid-column: span 5; display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.tile--wide { grid-column: span 7; }
.tile--full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--space-3xl); }
.tile h3 { font-size: var(--text-xl); }
.tile p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 52ch; }
.tile .plate { background: var(--color-paper); }
.tile .plate > img { width: 100%; }

/* ---------- Demo clips ---------- */
.demo { padding-block: var(--section-gap) 0; }
.demo__tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-2xl); }
.demo__tab {
  min-height: 44px; padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill);
  background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1.2 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.demo__tab:hover { background: var(--color-paper-2); color: var(--color-ink); }
.demo__tab[aria-selected="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.demo__tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.demo__panel { margin-top: var(--space-lg); }
.demo__plate { overflow: hidden; aspect-ratio: 1280 / 828; background: #0d1418; }
.demo__plate video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); }

/* ---------- Install (Rows) ---------- */
.install { padding-block: var(--section-gap-l) 0; }
.rows-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.rows-wrap > .rows-head { grid-column: 1 / 5; }
.rows-wrap > .rows-head .lead { margin-top: var(--space-md); font-size: var(--text-md); color: var(--color-ink-2); }
.rows { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-rule); counter-reset: step; }
.rows > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.rows h3 { font-size: var(--text-lg); }
.rows ol.steps { display: contents; }
.rows .n { font-variant-numeric: tabular-nums; color: var(--color-muted); margin-right: var(--space-xs); }
.rows p { color: var(--color-ink-2); }

/* ---------- Feedback (Band) ---------- */
.feedback { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-field); }
.feedback .rows-head { grid-column: 1 / 6; }
.fb-list { grid-column: 7 / 13; display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.fb-list a {
  display: grid; gap: var(--space-2xs); padding: var(--space-lg); border-radius: var(--radius-card);
  background: var(--color-paper); box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.fb-list a:hover { transform: translateY(-1px); }
.fb-list a:active { transform: none; }
.fb-list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.fb-list strong { font-size: var(--text-lg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.fb-list a:hover strong { text-decoration-color: var(--color-accent); }
.fb-list span { color: var(--color-ink-2); }

/* ---------- FAQ (Rows) ---------- */
.faq { padding-block: var(--section-gap) 0; }
.faq-list { grid-column: 5 / 13; border-top: 1px solid var(--color-rule); }
.faq-list details { border-bottom: 1px solid var(--color-rule); }
.faq-list summary {
  position: relative; display: block; padding: var(--space-lg) var(--space-2xl) var(--space-lg) 0;
  font-size: var(--text-lg); font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: var(--space-2xs); top: calc(50% - 7px); width: 10px; height: 10px;
  border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-in-out);
}
.faq-list details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq-list details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* ---------- Close ---------- */
.close { padding-block: var(--section-gap-l) var(--section-gap); }
.close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.close .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.close__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.close__star { margin-top: var(--space-md); font-size: var(--text-sm); }
.close .plate { aspect-ratio: 2560 / 1520; }

/* ---------- Footer (letter close) ---------- */
.footer { padding-block: var(--space-2xl) var(--space-3xl); border-top: 1px solid var(--color-rule); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.signoff { grid-column: 1 / 7; }
.signoff p:first-child { font-size: var(--text-xl); font-weight: 600; letter-spacing: var(--tracking-display); }
.signoff p + p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.footer__links { grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.footer__links a { color: var(--color-ink-2); }
.footer__links a:hover { color: var(--color-ink); }
.footer__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .nav__links { display: none; }
  .hero__grid, .close__grid, .tile--full { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
  .tile, .tile--wide, .tile--full { grid-column: 1 / -1; }
  .hero__visual { justify-self: start; max-width: 440px; }
  .head-split h2, .head-split .lead, .rows-wrap > .rows-head, .rows, .faq-list, .feedback .rows-head, .fb-list, .signoff, .footer__links { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
}
@media (max-width: 40rem) {
  .nav__pill { gap: var(--space-xs); padding-left: var(--space-md); }
  .tool .tool__label { display: none; }
  .rows > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .stat { padding: var(--space-lg) var(--space-md); }
  .stat dd { font-size: var(--text-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tool, .fb-list a, .link, .faq-list summary::after, .demo__tab { transition: none; }
}
