/* A List of Things To Do — marketing site.
   Colours are the app's default Indigo theme, so the site and the app look
   like the same thing. */

:root {
  --body: #1a1c2e;
  --panel: #20202e;
  --elev: #262739;
  --sunken: #151627;
  --text: #ffffff;
  --muted: #8b8d98;
  --faint: #55576a;
  --primary: #6b9cff;
  --success: #9ce3ba;
  --maxw: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--body);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* Header ----------------------------------------------------------------- */

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

header.site img { width: 34px; height: 34px; border-radius: 8px; }

header.site a.home {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

header.site nav { margin-left: auto; display: flex; gap: 1.25rem; }

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Hero ------------------------------------------------------------------- */

.hero { padding: 3rem 0 2rem; text-align: center; }

.hero img.icon {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

h1 {
  font-size: clamp(2rem, 6vw, 2.85rem);
  line-height: 1.12;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 auto;
  max-width: 32rem;
}

.badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: #10121f;
  font-weight: 600;
  text-decoration: none;
}

.badge.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--faint);
}

.badge:hover { opacity: 0.9; }

.note { color: var(--faint); font-size: 0.9rem; margin-top: 1rem; }

/* Sections --------------------------------------------------------------- */

section { padding: 2.5rem 0; }

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

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

.lede { color: var(--muted); }

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

.features li {
  background: var(--panel);
  border: 1px solid var(--elev);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.features strong { display: block; margin-bottom: 0.3rem; }

.features span { color: var(--muted); font-size: 0.95rem; }

/* A small mock of the app, so the page shows something before screenshots. */

.mock {
  background: var(--panel);
  border: 1px solid var(--elev);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  margin: 2.5rem auto 0;
  max-width: 24rem;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.mock h4 { margin: 0 0 0.9rem; font-size: 1.1rem; letter-spacing: -0.02em; }

.mock ul { list-style: none; margin: 0; padding: 0; }

.mock li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sunken);
  font-size: 0.98rem;
}

.mock li:last-child { border-bottom: 0; }

.dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--faint);
  flex: 0 0 auto;
}

.mock li.done { color: var(--faint); text-decoration: line-through; }

.mock li.done .dot { background: var(--faint); border-color: var(--faint); }

/* Content pages ---------------------------------------------------------- */

article ul { padding-left: 1.2rem; }

article li { margin-bottom: 0.5rem; }

.updated { color: var(--faint); font-size: 0.9rem; }

/* Footer ----------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--elev);
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  color: var(--faint);
  font-size: 0.9rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

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

footer.site .spacer { margin-left: auto; }

/* The app is dark only, and so is this page; a light-mode variant would be a
   different design, not a colour swap. */
