:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e3e3e6;
  --accent: #0a66d0;
  --accent-fg: #ffffff;
  --card: #f6f6f8;
  --hero: #f0f2f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181f;
    --fg: #f2f2f5;
    --muted: #a1a1aa;
    --rule: #2c2f39;
    --accent: #4c9aff;
    --accent-fg: #0d1017;
    --card: #1e212a;
    --hero: #1b1e27;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg { display: block; }

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: .95rem;
}

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--fg); }

/* Hero */

.hero {
  background: var(--hero);
  border-bottom: 1px solid var(--rule);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 .75rem;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 34rem;
}

/* Call to action */

.cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 10px;
}

.cta:hover { opacity: .9; }

.cta-note {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Demo slot */

.demo {
  margin: 2.75rem auto 0;
  max-width: 40rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.10);
}

.demo video,
.demo img,
.demo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Content */

main section { padding: 3.25rem 0; }
main section + section { border-top: 1px solid var(--rule); }

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

h3 { font-size: 1.05rem; margin: 1.75rem 0 .4rem; }
h3:first-of-type { margin-top: 0; }

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

ul, ol { padding-left: 1.25rem; }
li { margin: .4rem 0; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.features h3 { margin: 0 0 .3rem; }
.features p { margin: 0; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

code {
  background: var(--card);
  padding: .12em .4em;
  border-radius: 4px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.updated { color: var(--muted); margin: 0 0 2rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* Feature sections */

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.lead-in {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 38rem) {
  .split { grid-template-columns: 1fr 1fr; }
}

.panel {
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.panel svg { display: block; width: 100%; height: auto; }

.panel-label {
  padding: .6rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

.panel-label span {
  font-weight: 400;
  color: var(--muted);
}

/* Keyboard shortcuts */

kbd {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .1em .45em;
  font: inherit;
  font-size: .85em;
  white-space: nowrap;
}

.shortcuts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.shortcuts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}

.shortcuts li:last-child { border-bottom: 0; }
.shortcuts .what { color: var(--muted); }

/* Compatibility row */

.apps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.apps li {
  margin: 0;
  padding: .35rem .8rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: .9rem;
}

/* Table of tools */

.tools {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.tools li {
  margin: 0;
  padding: .8rem .9rem;
  background: var(--card);
  border-radius: 10px;
  font-size: .92rem;
}

.tools strong { display: block; }
.tools span { color: var(--muted); font-size: .85rem; }

/* Pre-launch state for the call to action. The site goes live before the app
   does, and a button linking nowhere is worse than a button that says so. */

.cta-pending {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--rule);
  cursor: default;
}

.cta-pending:hover { opacity: 1; }

/* Real screenshots, as proof rather than explanation. The illustrations above
   teach the idea more clearly; these show it is real software. Both below the
   fold, so they are lazy-loaded and cost nothing on first paint. */

.shot {
  margin: 1.75rem 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
}

.shot figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .88rem;
}

/* Checksum block on the download page — available for anyone who wants it,
   folded away for everyone who does not. */

.verify {
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .75rem 1rem;
}

.verify summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
}

.verify p { margin: .75rem 0 0; font-size: .92rem; }
.verify code { word-break: break-all; }
