:root {
  --paper: #ffffff;
  --paper-alt: #f4f6f8;
  --ink: #1b1f24;
  --muted: #5b6470;
  --line: #e3e6ea;
  --accent: #0b5cad;
  --band: #eef1f4;
  --panel-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(27, 31, 36, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16181c;
    --paper-alt: #1d2025;
    --ink: #e8eaed;
    --muted: #9aa3ad;
    --line: #2c3036;
    --accent: #7ab4ff;
    --band: #24282e;
    --panel-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--band);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 15px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  width: 28px;
  height: 28px;
}

.topbar nav {
  display: flex;
  gap: 20px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 15ch;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 15px;
  color: var(--muted);
}

/* Screenshots */

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #1b1f24;
  box-shadow: var(--panel-shadow);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  max-width: 34em;
}

.shot figcaption b {
  color: var(--ink);
  font-weight: 600;
}

.hero .shot {
  max-width: 420px;
  justify-self: end;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
}

.shots .wide {
  grid-column: 1 / -1;
}

/* Body sections */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section > h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section > .intro {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.features p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--band);
  font-weight: 600;
  font-size: 0.9rem;
}

.limits {
  max-width: 44em;
  margin: 0;
  padding-left: 1.2em;
}

.limits li + li {
  margin-top: 8px;
}

.privacy-glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.privacy-glance ul {
  margin: 0;
  padding-left: 1.2em;
}

.privacy-glance li + li {
  margin-top: 8px;
}

.privacy-glance aside {
  background: var(--paper-alt);
  border-radius: 10px;
  padding: 24px;
}

.privacy-glance aside p {
  margin: 0 0 12px;
}

.privacy-glance aside p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  opacity: 0.9;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 15px;
  color: var(--muted);
}

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

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

/* Policy document */

.doc {
  max-width: 44em;
  padding: 40px 0 72px;
}

.doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc .effective {
  color: var(--muted);
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 44px 0 12px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .summary {
  background: var(--paper-alt);
  border-radius: 10px;
  padding: 20px 24px;
}

.doc .summary h2 {
  margin-top: 0;
}

.doc .summary ul {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.doc th {
  font-weight: 600;
}

.doc td:first-child {
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 24px;
  }

  .hero .shot {
    justify-self: start;
  }

  .features,
  .shots,
  .privacy-glance {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .topbar nav {
    gap: 14px;
  }

  .doc td:first-child {
    white-space: normal;
  }
}

/* Selection Math additions */

kbd {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--band);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}

.shot.window img {
  background: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(27, 31, 36, 0.18)) drop-shadow(0 18px 28px rgba(27, 31, 36, 0.22));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot.window img {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
  }
}

.hero .shot.window {
  max-width: 340px;
}

.shots.windows {
  align-items: start;
}

.shots.windows .shot img {
  max-width: 420px;
}

.source {
  color: var(--accent);
}

.note {
  color: var(--muted);
  max-width: 44em;
  margin: 20px 0 0;
  font-size: 15px;
}
