/* reclaim site. Colours and type are the app's design tokens (app/ui/src/lib/tokens.css),
   ported value for value where the site uses them: light on :root, dark under
   prefers-color-scheme. No external fonts: the system font, as in the app. */

:root {
  --desk: linear-gradient(160deg, #AFC3D6 0%, #D9CCDA 100%);
  --menubar: rgba(255,255,255,0.55);
  --tray-on: rgba(0,0,0,0.12);
  --panel: rgba(246,246,248,0.94);
  --panel-ring: rgba(0,0,0,0.14);
  --panel-hi: rgba(255,255,255,0.70);
  --panel-shadow: 0 12px 32px rgba(0,0,0,0.22);
  --bg: #FFFFFF;
  --bg-2: #FAFAFB;
  --elev: #FFFFFF;
  --chrome: #F2F2F4;
  --text: rgba(0,0,0,0.88);
  --text-2: rgba(0,0,0,0.62);
  --faint: rgba(0,0,0,0.30);
  --sep: rgba(0,0,0,0.10);
  --sep-strong: rgba(0,0,0,0.20);
  --fill: rgba(0,0,0,0.05);
  --btn: rgba(0,0,0,0.07);
  --btn-hover: rgba(0,0,0,0.11);
  --track: rgba(0,0,0,0.08);
  --used: rgba(0,0,0,0.32);
  --accent: #007AFF;
  --accent-fill: #0064D1;
  --accent-hover: #0057B8;
  --on-accent: #FFFFFF;
  --focus: #0A84FF;
  --link: #005FC8;
  --safe: #1A7F37;
  --busy: #B35000;
  --idle: #5B4FD6;
  --manual: rgba(0,0,0,0.62);
  --terminal-bg: #1E1E1E;
  --terminal-text: rgba(255,255,255,0.88);
  --terminal-dim: rgba(255,255,255,0.62);
  --win-shadow: 0 0 0 0.5px rgba(0,0,0,0.22), 0 18px 48px rgba(0,0,0,0.18);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  --radius-control: 6px;
  --radius-inset: 8px;
  --radius-sheet: 12px;
  --radius-card: 14px;

  --motion-fast: 150ms;
  --motion: 200ms;

  --gutter: 16px;
  --max: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: linear-gradient(160deg, #1A2230 0%, #2B2333 100%);
    --menubar: rgba(28,28,30,0.55);
    --tray-on: rgba(255,255,255,0.18);
    --panel: rgba(50,50,54,0.94);
    --panel-ring: rgba(255,255,255,0.18);
    --panel-hi: rgba(255,255,255,0.08);
    --panel-shadow: 0 12px 32px rgba(0,0,0,0.45);
    --bg: #1E1E1E;
    --bg-2: #232325;
    --elev: #2C2C2E;
    --chrome: #2A2A2C;
    --text: rgba(255,255,255,0.88);
    --text-2: rgba(255,255,255,0.62);
    --faint: rgba(255,255,255,0.30);
    --sep: rgba(255,255,255,0.10);
    --sep-strong: rgba(255,255,255,0.18);
    --fill: rgba(255,255,255,0.07);
    --btn: rgba(255,255,255,0.12);
    --btn-hover: rgba(255,255,255,0.17);
    --track: rgba(255,255,255,0.10);
    --used: rgba(255,255,255,0.30);
    --accent: #0A84FF;
    --accent-fill: #086CD1;
    --accent-hover: #075FBD;
    --link: #4DA3FF;
    --safe: #4AD968;
    --busy: #FFA056;
    --idle: #9AA3FF;
    --manual: rgba(255,255,255,0.62);
    --terminal-bg: #141416;
    --win-shadow: 0 0 0 0.5px rgba(255,255,255,0.16), 0 18px 48px rgba(0,0,0,0.45);
  }
}

@media (prefers-contrast: more) {
  :root {
    --sep: rgba(0,0,0,0.25);
    --sep-strong: rgba(0,0,0,0.45);
    --btn: rgba(0,0,0,0.11);
    --panel-ring: rgba(0,0,0,0.30);
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --sep: rgba(255,255,255,0.25);
    --sep-strong: rgba(255,255,255,0.45);
    --btn: rgba(255,255,255,0.16);
    --panel-ring: rgba(255,255,255,0.35);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion: 0ms;
  }
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, ul, figure {
  margin: 0;
}

ul { padding: 0; list-style: none; }

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p, dd { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}


code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.08em 0.32em;
  border-radius: 4px;
  background: var(--fill);
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible { transform: none; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--sep);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
}


@media (max-width: 719px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 56px 72px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    padding-block: 80px 96px;
  }
}

.eyebrow {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

h1 {
  margin-top: 10px;
  font-size: clamp(34px, 6.2vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.5;
}

.lead code { color: var(--text); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--motion-fast) ease-out, scale var(--motion-fast) ease-out;
}

.button.primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}


.button.secondary {
  background: var(--btn);
  color: var(--text);
}


.requirements {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
}

/* Install command */

.install {
  margin-top: 32px;
  max-width: 34em;
}

.install-label {
  font-size: 15px;
  font-weight: 600;
}

.command {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 14px;
  border: 0.5px solid var(--sep-strong);
  border-radius: 16px;
  background: var(--bg-2);
}

.command code {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.copy-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease-out, scale var(--motion-fast) ease-out;
}


.copy-button svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  transition: opacity var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
}

.copy-button .check-icon {
  opacity: 0;
  transform: scale(0.7);
  color: var(--safe);
}

.copy-button.is-copied .copy-icon {
  opacity: 0;
  transform: scale(0.7);
}

.copy-button.is-copied .check-icon {
  opacity: 1;
  transform: none;
}

.copy-status {
  min-height: 1.5em;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.install-note {
  color: var(--text-2);
  font-size: 14px;
}

/* The menu-bar illustration: the app's panel, drawn with the app's tokens. */

.desk {
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

.desk-inner {
  position: relative;
  overflow: hidden;
  padding: 0 16px 28px;
  border-radius: 18px;
  background: var(--desk);
  box-shadow: var(--win-shadow);
}

.menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  height: 28px;
  margin-inline: -16px;
  padding-inline: 16px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.menubar-tray {
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: var(--tray-on);
}

.menubar svg,
.panel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel svg circle { fill: currentColor; stroke: none; }

.panel {
  width: min(100%, 340px);
  margin: 8px 0 0 auto;
  padding: 16px;
  border-radius: var(--radius-sheet);
  background: var(--panel);
  box-shadow: inset 0 0.5px 0 var(--panel-hi), 0 0 0 0.5px var(--panel-ring), var(--panel-shadow);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  font-size: 13px;
  line-height: 1.231;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
}

.tone-safe { color: var(--safe); }
.faint { color: var(--faint); }

.panel-hero {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-body {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--radius-control);
  background: var(--btn);
  font-weight: 500;
}

.panel-btn.primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.panel-status,
.panel-last {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: var(--radius-control);
}

.panel-status-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.panel-small {
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.273;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-disk {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-inset);
  background: var(--fill);
}

.panel-disk-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.panel-disk-line span:first-child { font-weight: 500; }
.panel-disk-line span:last-child { color: var(--text-2); }

.disk-bar {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}

.disk-used { width: 79.8%; background: var(--used); }
.disk-safe { width: 7.8%; background: var(--safe); }

.panel-divider {
  height: 0.5px;
  margin: 12px 0 6px;
  background: var(--sep);
}

.panel-last span { flex: 1; }

.panel-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.panel-footer .panel-small { flex: 1; }

/* Band */

.band {
  border-block: 0.5px solid var(--sep);
  background: var(--bg-2);
}

.band-inner {
  display: grid;
  gap: 12px;
  padding-block: 48px;
}

@media (min-width: 960px) {
  .band-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 56px;
  }
}

.band-title {
  font-size: 24px;
  line-height: 1.2;
}

.band p {
  color: var(--text-2);
  font-size: 18px;
}

/* Sections */

.section {
  padding-block: 72px 0;
}

.section:last-of-type { padding-bottom: 88px; }

h2 {
  font-size: clamp(28px, 4.4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
}

.section-lead {
  margin-top: 12px;
  max-width: 40em;
  color: var(--text-2);
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  padding: 20px;
  border: 0.5px solid var(--sep-strong);
  border-radius: var(--radius-card);
  background: var(--elev);
}

.card dt {
  font-size: 17px;
  font-weight: 650;
}

.card dd {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.aside {
  margin-top: 24px;
  max-width: 44em;
  color: var(--text-2);
  font-size: 15px;
}

/* Safety */

.safety {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

@media (min-width: 960px) {
  .safety {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
}

.points {
  display: grid;
  gap: 24px;
}

.points li {
  position: relative;
  padding-left: 32px;
}

.points li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--safe);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm4.7 6.3a1 1 0 0 0-1.4 0L8.5 11.1 6.7 9.3a1 1 0 1 0-1.4 1.4l2.5 2.5a1 1 0 0 0 1.4 0l5.5-5.5a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm4.7 6.3a1 1 0 0 0-1.4 0L8.5 11.1 6.7 9.3a1 1 0 1 0-1.4 1.4l2.5 2.5a1 1 0 0 0 1.4 0l5.5-5.5a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.points h3 {
  font-size: 18px;
  line-height: 1.3;
}

.points p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 16px;
}

.verdicts {
  padding: 8px;
  border: 0.5px solid var(--sep-strong);
  border-radius: 16px;
  background: var(--bg-2);
}

.verdict-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-inset);
  font-size: 15px;
}

.verdict-list li + li { border-top: 0.5px solid var(--sep); border-radius: 0; }

.verdict-name {
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.verdict-name code {
  padding: 0;
  background: none;
  font-size: 14px;
}

.verdict-why {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 14px;
}

.chip {
  justify-self: end;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--elev);
  box-shadow: 0 0 0 0.5px var(--sep-strong);
}

.chip.safe { color: var(--safe); }
.chip.busy { color: var(--busy); }
.chip.idle { color: var(--idle); }
.chip.manual { color: var(--manual); }

.verdicts figcaption {
  padding: 10px 12px 6px;
  border-top: 0.5px solid var(--sep);
  color: var(--text-2);
  font-size: 13px;
}

/* CLI */

.cli {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 960px) {
  .cli {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }
}

.cli-text {
  display: grid;
  gap: 14px;
  color: var(--text-2);
}

.terminal {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--terminal-bg);
  box-shadow: var(--win-shadow);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.terminal code {
  padding: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}

.terminal .prompt,
.terminal .comment { color: var(--terminal-dim); }

@media (max-width: 479px) {
  .terminal { padding: 16px; font-size: 13px; }
}

.panel-disk-line { flex-wrap: wrap; }

/* Notes */

.notes {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 720px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.note {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg-2);
  border: 0.5px solid var(--sep);
}

.note h3 {
  font-size: 17px;
  line-height: 1.3;
}

.note p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.note strong { color: var(--text); font-weight: 600; }

/* A whole command on its own lines: breaks only at spaces and <wbr>, never inside a flag. */
code.wrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-block: 6px;
  padding: 6px 8px;
  overflow-wrap: normal;
}

/* Footer */

.site-footer {
  border-top: 0.5px solid var(--sep);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a { color: var(--text-2); }

/* Hover only where a pointer can hover, so a tap never leaves a stuck state. */
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .nav-links a:hover { color: var(--text); }
  .button.primary:hover { background: var(--accent-hover); }
  .button.secondary:hover { background: var(--btn-hover); }
  .copy-button:hover { background: var(--btn-hover); }
  .site-footer a:hover { color: var(--text); }
}

@media (prefers-reduced-motion: no-preference) {
  .button:active,
  .copy-button:active { scale: 0.96; }
}

@media (forced-colors: active) {
  .button, .copy-button, .card, .note, .verdicts, .panel { border: 1px solid CanvasText; }
  .points li::before { background: CanvasText; }
}

.nowrap { white-space: nowrap; }
