/* Dustpan for Windows only. The shared site styles stay in ../../style.css. Colours come from the app icon. */

.win-page {
  --sea: #0a6a74;
  --ocean: #0f5a8c;
  --deep: #1a4aa6;
  --sun: #ffc94d;
  --sun-ink: #2a1f00;
  --term: #0c1c26;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero: the icon's gradient, in both colour schemes */

.win-top { background: linear-gradient(135deg, var(--sea), var(--ocean) 55%, var(--deep)); color: #fff; }
.win-top .brand { color: #fff; }
.win-top .brand img { filter: brightness(0) invert(1); }
.win-top .site-nav a { color: rgb(255 255 255 / 78%); }
.win-top .site-nav a:hover { color: #fff; }
.win-top .site-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.win-top :focus-visible { outline-color: #fff; }

.win-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); gap: clamp(32px, 6vw, 72px); align-items: start;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.win-product { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-weight: 600; }
.win-product img { width: 44px; height: 44px; }
.win-hero h1 { font-size: clamp(46px, 5.4vw, 64px); line-height: 1.04; }
.win-hero .lead { color: rgb(255 255 255 / 88%); margin-top: 20px; }
.win-hero .actions { margin-top: 30px; }
.win-hero .button.soon { background: rgb(255 255 255 / 14%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); }
.win-hero .button.quiet { color: #fff; }
.win-hero .button.quiet:hover { background: rgb(255 255 255 / 12%); }
.win-hero .facts-line { color: rgb(255 255 255 / 82%); margin-top: 22px; }
.win-hero .by { margin: 10px 0 0; font-size: 15px; color: rgb(255 255 255 / 82%); }
.win-hero .by a { color: #fff; }

/* The try-it card */

.demo { color-scheme: light; background: #fff; color: #17251c; border-radius: 18px; padding: 20px 22px 18px; box-shadow: 0 30px 70px rgb(4 24 48 / 42%); }
.demo :focus-visible { outline-color: #0f5a8c; }
.demo-head h2 { font: 650 19px/1.3 var(--sans); letter-spacing: 0; margin: 0; }
.demo-head p { margin: 2px 0 12px; font-size: 14px; color: #56675c; }
.demo-list { list-style: none; margin: 0; padding: 0; }
.demo-wrap { margin-top: 6px; }
.demo-item { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 420ms var(--ease), opacity 260ms ease, transform 420ms var(--ease); transition-delay: var(--delay, 0ms); }
.demo-item.gone { grid-template-rows: 0fr; opacity: 0; transform: translateX(60%) rotate(1.5deg); }
.demo-row { overflow: hidden; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 11px; padding: 9px 0; border-top: 1px solid #e4e9e2; cursor: pointer; transition: padding 420ms var(--ease); transition-delay: inherit; }
.demo-item:first-child .demo-row { border-top: 0; }
.demo-item.gone .demo-row { padding-block: 0; border-top-width: 0; }
.demo-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #0f5a8c; }
.demo-path { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.demo-size { font-size: 13px; color: #56675c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-why { grid-column: 2 / -1; display: flex; align-items: baseline; gap: 7px; font-size: 13px; line-height: 1.35; color: #56675c; }
.tier { flex: none; font-size: 11px; font-weight: 650; padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; color: #56675c; }
.tier.exact { color: #0a6a74; }
.tier.review { color: #9a5500; }
.demo-foot { margin-top: 12px; min-height: 46px; }
.demo-go { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--sun); color: var(--sun-ink); font: 650 16px/1.2 var(--sans); cursor: pointer; transition: filter 160ms ease, transform 120ms ease; }
.demo-go:hover:not(:disabled) { filter: brightness(1.05); }
.demo-go:active:not(:disabled) { transform: scale(0.985); }
.demo-go:disabled { background: #e8ece6; color: #7a8a7f; cursor: default; }
.demo-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 8px 6px 14px; border-radius: 12px; background: #e6f2f1; font-size: 15px; }
.demo-done[hidden], .demo-go[hidden] { display: none; }
.demo-undo { border: 0; border-radius: 9px; padding: 7px 16px; background: #0f5a8c; color: #fff; font: 600 15px/1.2 var(--sans); cursor: pointer; }
.demo-note { margin: 12px 2px 0; font-size: 14px; color: rgb(255 255 255 / 82%); }

@media (max-width: 900px) {
  .win-hero { grid-template-columns: minmax(0, 1fr); }
  .win-hero > .demo-wrap { max-width: 560px; }
}

/* The tour of the screens */

.win-tour { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.win-tour .intro { margin-bottom: 22px; }
.tabs { display: none; gap: 6px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--muted); font: 600 15px/1.2 var(--sans); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.tabs button:hover { color: var(--ink); background: var(--moss); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.js .tabs { display: flex; }
.js .tour-panel[hidden] { display: none; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: 32px; }
.js .tour-panel { margin-bottom: 0; animation: panel-in 320ms var(--ease) both; }
.tour-panel h3 { font: 400 28px/1.15 var(--serif); margin: 6px 0 10px; }
.tour-panel p { color: var(--muted); margin: 0 0 10px; }
.tour-panel ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.tour-panel li { margin: 0 0 6px; }
.tour-panel li::marker { color: var(--accent); }
.tour-panel strong { color: var(--ink); }
.window { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 22px 54px var(--shadow); background: #f5f5f4; }
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding-left: 12px; background: #ecebe8; color: #1c1b19; font-size: 12px; }
.window-bar i { display: flex; height: 100%; }
.window-bar b { width: 40px; display: grid; place-items: center; font-weight: 400; color: #4a4843; }
.window-bar b::before { content: ""; width: 9px; height: 1px; background: currentColor; }
.window-bar b:nth-child(2)::before { height: 9px; background: none; border: 1px solid currentColor; border-radius: 2px; }
.window-bar b:nth-child(3)::before { height: 9px; background: linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%); }
.window img { width: 100%; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .tour-panel { grid-template-columns: minmax(0, 1fr); } }

/* Developers */

.win-dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.win-dev-grid h3 { margin-bottom: 10px; }
.win-dev-grid h3.next { margin-top: 28px; }
.back-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.back-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 0 8px; }
.back-table td { padding: 8px 12px 8px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.back-table td:last-child { padding-right: 0; }
.back-table code { background: none; padding: 0; font-size: 14px; line-height: 1.4; }
.back-note { margin: 14px 0 0; color: var(--muted); }
.terminal { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--term); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); color: #dce9ee; font: 14px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-x: auto; }
.terminal code { font: inherit; background: none; padding: 0; color: inherit; white-space: pre; }
.terminal .dim { color: #8aa4b0; }

/* What it will not do */

.win-limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.refused { list-style: none; margin: 0; padding: 0; font: 400 clamp(26px, 3.4vw, 38px)/1.3 var(--serif); }
.refused li { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--muted); }
.safe-list { display: grid; gap: 24px; }
.safe-list p { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .win-limits, .win-dev-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-item, .demo-row, .demo-go, .tabs button { transition: none; }
  .js .tour-panel { animation: none; }
}
