:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #18212b;
  --muted: #5e6a77;
  --line: #d9dfe5;
  --accent: #2f6fe4;
  --accent-ink: #ffffff;
  --shadow: 0 30px 80px rgb(24 33 43 / 16%);
  --bar: rgb(238 241 244 / 88%);
  --bar-line: rgb(24 33 43 / 8%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1c2229;
    --ink: #eef2f6;
    --muted: #9aa6b2;
    --line: #2c343d;
    --accent: #5b93f5;
    --shadow: 0 30px 80px rgb(0 0 0 / 50%);
    --bar: rgb(18 22 27 / 88%);
    --bar-line: rgb(255 255 255 / 8%);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, #8a5cf6 14%, transparent), transparent 70%),
    radial-gradient(900px 500px at 0% 10%, color-mix(in srgb, #2f7cf6 12%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Full width, with the content lined up with the page below. */
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  /* A solid-enough bar, so pictures never show through the words. */
  background: var(--bar);
  border-bottom: 1px solid var(--bar-line);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

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

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

.top__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.top__nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.top__nav a:not(.button):hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.button--small {
  padding: 7px 14px;
  font-size: 14px;
}

.button--big {
  padding: 15px 28px;
  font-size: 18px;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 56px 0 24px;
  text-align: center;
}

.pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 em {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}

.hero__lead {
  max-width: 640px;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: 19px;
}

.hero__small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot--hero {
  margin-top: 48px;
}

section {
  padding: 72px 0 0;
}

h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card p,
.split__text p,
.steps p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.card__dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: var(--dot);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 56px;
}

.split__text h3 + p {
  margin-bottom: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 8px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  max-width: 1160px;
  margin: 96px auto 0;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.page h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 8px;
}

.page h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  text-align: left;
}

.page p,
.page li {
  color: var(--muted);
}

@media (max-width: 760px) {
  .top__nav {
    gap: 14px;
  }

  /* On a phone the bar keeps Features and Download; the rest is further down the page. */
  .top__nav a:not(.button):not([href$='features.html']) {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 17px;
  }

  /* Every big button on a phone: full width, the same size, words centred. */
  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button--big {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 17px;
  }

  .showcase__text,
  .feature__text {
    text-align: left;
  }

  .contact .button {
    align-self: stretch;
  }

  .top .button--small {
    padding: 7px 14px;
  }

  .steps li,
  .card {
    padding: 20px;
  }

  .foot {
    gap: 8px 18px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .shot {
    border-radius: 12px;
  }

  .showcase__text h2,
  .feature__text h2 {
    font-size: 28px;
  }

  section {
    padding-top: 56px;
  }

  .feature {
    padding-top: 48px;
  }

  .contact {
    padding: 18px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contact__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.contact textarea {
  resize: vertical;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-color: var(--accent);
}

.contact .button {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact__small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact__trap {
  position: absolute;
  left: -10000px;
}

.page--center {
  text-align: center;
  padding-top: 96px;
}

/* ---------- Credits ---------- */

.credits {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  columns: 2 280px;
  column-gap: 32px;
  font-size: 14px;
}

.credits li {
  break-inside: avoid;
  padding: 4px 0;
}

.credits span {
  color: var(--muted);
}

/* ---------- Terms and privacy ---------- */

.legal h2 {
  font-size: 19px;
}

.legal p,
.legal li {
  line-height: 1.65;
}

/* ---------- Showcase (home) and the Features page ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.showcase__text h2 {
  text-align: left;
  margin-bottom: 14px;
}

.showcase__text > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticks {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 5px 0 5px 28px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%232f6fe4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.split--reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 0;
}

.feature:nth-of-type(even) .shot {
  order: 2;
}

.feature__text h2 {
  text-align: left;
  margin-bottom: 12px;
}

.feature__text > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.feature__text .ticks {
  margin-bottom: 0;
}

.page-hero {
  padding: 48px 0 8px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
}

.more {
  padding-top: 80px;
}

.cta {
  margin-top: 80px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .showcase,
  .feature,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature:nth-of-type(even) .shot {
    order: 0;
  }
}

/* ---------- Mac and Windows downloads ---------- */

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button--ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button--ghost:hover {
  box-shadow: 0 10px 24px rgb(24 33 43 / 12%);
}

.steps__os {
  margin: 28px 0 14px;
  font-size: 20px;
}

.steps__os:first-of-type {
  margin-top: 0;
}

/* ---------- Invite gate ---------- */

.gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}

.gate {
  width: min(440px, 100%);
  padding: 40px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate__icon {
  margin: 0 auto 20px;
  border-radius: 18px;
}

.gate h1 {
  font-size: clamp(30px, 7vw, 38px);
}

.gate h1 em {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}

.gate__lead {
  margin: 14px 0 26px;
  color: var(--muted);
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate__code {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-align: center;
  text-indent: 0.5em;
}

.gate__code:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-color: var(--accent);
}

.gate__error {
  margin: 0;
  color: #c2410c;
  font-size: 15px;
}

.gate .button--big {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.gate__small {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}
