/* SetDesk public site -------------------------------------------------------
   Separate from the panel's stylesheet on purpose: this page is read once by
   somebody deciding whether to install the thing, and it should not carry the
   weight of an application's UI. The colours are the product's, so the two look
   like one thing. */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --bg-card: #141822;
  --border: #242a38;
  --text: #e9edf6;
  --text-muted: #a4adc0;
  --text-faint: #6e7688;
  --accent: #4f7cff;
  --accent-soft: rgba(79, 124, 255, .14);
  --accent-strong: #6b8fff;
  --success: #31c77e;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --border: #e0e5f0;
  --text: #121722;
  --text-muted: #4d5769;
  --text-faint: #8d97ab;
  --accent-soft: rgba(79, 124, 255, .1);
  --shadow: 0 18px 50px rgba(18, 23, 34, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.22; margin: 0; letter-spacing: -.02em; }

.small { font-size: 13px; }
.faint { color: var(--text-faint); }
.lead { color: var(--text-muted); font-size: 17.5px; margin: 18px 0 0; max-width: 56ch; }

/* Bar ---------------------------------------------------------------------- */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: 18px;
  font-size: 14.5px;
}

.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}

.icon-btn:hover { color: var(--text); border-color: var(--accent); }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; }
.btn.large { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.full { width: 100%; }

/* Hero --------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 56px;
}

.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 14px;
}

/* The drawn product shot. Nothing here is an image, so it stays sharp and
   costs nothing to load. */
.hero-art { perspective: 1400px; }

.window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: rotateY(-9deg) rotateX(3deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  margin-inline-start: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

.window-body { padding: 14px; }

.window-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.chip.accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.window-screen {
  position: relative;
  height: 230px;
  border-radius: 10px;
  background: linear-gradient(160deg, #1b2030 0%, #131824 100%);
  border: 1px solid var(--border);
  padding: 16px;
  overflow: hidden;
}

.screen-row {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  margin-bottom: 11px;
}

.screen-row.short { width: 62%; }

.screen-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44%;
  height: 58%;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

/* Strip -------------------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.strip div {
  padding: 22px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip strong { display: block; font-size: 17px; }
.strip span { color: var(--text-faint); font-size: 13.5px; }

/* Sections ----------------------------------------------------------------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px;
}

.section.alt {
  max-width: none;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section.alt > * { max-width: 1180px; margin-inline: auto; }

.section h2 { font-size: clamp(25px, 3vw, 34px); }
.section-lead { color: var(--text-muted); margin: 14px 0 0; max-width: 62ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 22px;
  margin-bottom: 15px;
}

.feature h3 { font-size: 18px; }
.feature p { color: var(--text-muted); margin: 9px 0 0; font-size: 14.5px; }

/* The long feature list ----------------------------------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px 40px;
  margin-top: 36px;
}

.spec h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.spec ul { margin: 0; padding-inline-start: 18px; }
.spec li { color: var(--text-muted); font-size: 14.5px; margin-bottom: 7px; }

/* Steps -------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 { font-size: 17px; }
.steps p { color: var(--text-muted); margin: 8px 0 0; font-size: 14.5px; }

/* Download ----------------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.download-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.download-card.muted { background: transparent; }

.download-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.os-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 22px;
}

.download-card h3 { font-size: 18px; }
.download-card p { margin: 4px 0 0; }
.download-card .btn { margin-bottom: 10px; }

/* Closing ------------------------------------------------------------------ */

.cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 90px;
  text-align: center;
}

.cta h2 { font-size: clamp(24px, 3vw, 33px); }
.cta p { color: var(--text-muted); margin: 14px auto 28px; max-width: 58ch; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
}

.site-footer a { color: var(--text-muted); }

/* Narrow ------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { display: none; }
  .site-nav { display: none; }
  .site-bar { padding: 12px 18px; }
  .section, .cta { padding-inline: 18px; }
  .strip { padding-inline: 18px; }
}

/* Screenshots -------------------------------------------------------------- */

.shots { margin-top: 30px; }

.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.shot-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.shot-tab:hover { color: var(--text); border-color: var(--accent); }

.shot-tab.current {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.shot-frame {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.shot-frame figcaption {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* The checksum under a download ------------------------------------------- */

.hash {
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.hash-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.hash code {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-muted);

  /* A 64-character token has nowhere to break on its own. */
  overflow-wrap: anywhere;
  word-break: break-all;
}

.footer-vendor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

@media (max-width: 600px) {
  .footer-vendor { align-items: flex-start; }
}

/* The operating-system marks on the download cards. */
.os-icon { color: var(--accent); }

.os-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}
