/* Purplish Cloud's own pages (landing, download, host offline, unknown link). The Iris tokens are the Purplish app's
   (moonmic-app ui/shell.css, light and dark) so the pages look like part of the same product. Iris has one accent:
   ink #5548a5 on light, moon #b7b5ff on dark. Served under a strict CSP: no inline styles or scripts. */

:root {
  color-scheme: light;
  --bg: #f6f6fb;
  --surface: #ffffff;
  --text: #161533;
  --muted: #545274;
  --border: rgb(24 22 58 / 0.18);
  --shadow: 0 16px 44px rgb(22 21 51 / 0.16);
  --accent: #5548a5;
  --accent-hover: #44368c;
  --on-accent: #ffffff;
  --focus: var(--accent);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* Scrollbars (as the app, ui/shell.css): a thin rounded thumb in a 10 px gutter; stronger on hover and dragged. */
  --scroll-gutter: 10px;
  --scroll-thumb: color-mix(in srgb, var(--text) 24%, transparent);
  --scroll-thumb-hover: color-mix(in srgb, var(--text) 40%, transparent);
  --scroll-thumb-active: color-mix(in srgb, var(--text) 50%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #10111c;
    --surface: #181b2b;
    --text: #f3f3fa;
    --muted: #a9a8c6;
    --border: rgb(255 255 255 / 0.15);
    --shadow: 0 16px 48px rgb(2 2 8 / 0.62);
    --accent: #b7b5ff;
    --accent-hover: #ceccff;
    --on-accent: #0c0c14;
    --focus: #ffd36a;
    --scroll-thumb: color-mix(in srgb, var(--text) 20%, transparent);
    --scroll-thumb-hover: color-mix(in srgb, var(--text) 34%, transparent);
    --scroll-thumb-active: color-mix(in srgb, var(--text) 44%, transparent);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scrollbars, everywhere on these pages: a quiet 6 px rounded thumb inside a 10 px gutter, no arrows, no visible track
   or corner. Chromium and WebKit take the ::-webkit-scrollbar parts; only an engine without them (Firefox) gets the
   standard properties, because in Chromium `scrollbar-width` / `scrollbar-color` switch the ::-webkit-scrollbar styling
   off. High contrast (forced colors) keeps the system bar. */
@media not (forced-colors: active) {
  ::-webkit-scrollbar {
    width: var(--scroll-gutter);
    height: var(--scroll-gutter);
    background: transparent;
  }

  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: transparent;
  }

  ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: var(--scroll-thumb);
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
  }

  ::-webkit-scrollbar-thumb:active {
    background-color: var(--scroll-thumb-active);
  }

  @supports not selector(::-webkit-scrollbar) {
    * {
      scrollbar-width: thin;
      scrollbar-color: var(--scroll-thumb) transparent;
    }
  }
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.card {
  width: min(100%, 26rem);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto 0.75rem;
}

/* The product's name, lowercase as it always is. */
.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .status::before {
    animation: link-breathe 2s ease-in-out infinite;
  }
}

@keyframes link-breathe {
  50% {
    opacity: 0.35;
  }
}

a {
  color: var(--accent);
}

.get-app {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
}

.download {
  margin: 1rem 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.hash code {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  color: var(--text);
}

.soon {
  margin: 0.75rem 0;
}

.steps {
  margin: 1.25rem auto 0;
  padding-left: 1.25rem;
  max-width: 18rem;
  text-align: left;
  color: var(--muted);
}

.steps li + li {
  margin-top: 0.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn.secondary:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
